Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new GSC functions #42

Open
Jbleezy opened this issue Jan 20, 2018 · 2 comments
Open

Add new GSC functions #42

Jbleezy opened this issue Jan 20, 2018 · 2 comments

Comments

@Jbleezy
Copy link
Contributor

Jbleezy commented Jan 20, 2018

The following functions would be great to have in BO1:
GetMoveSpeedScale()
WeaponReloadEndTime() (WeaponReloadTime() gets the weapon reload add time, the time when the ammo gets added to the clip)
IsReloading()
ActionSlotOneButtonPressed()
ActionSlotTwoButtonPressed() (fix)
ActionSlotThreeButtonPressed()
ActionSlotFourButtonPressed()
WeaponSwitchButtonPressed()

EDIT: Removed functions which are actually in the game already

@SE2Dev
Copy link
Collaborator

SE2Dev commented Jan 20, 2018

The following functions are already present:

  • UseButtonPressed()
  • UseButtonHeld()
  • AttackButtonPressed()
  • ReverseButtonPressed()
  • FragButtonPressed()
  • SecondaryOffhandButtonPressed()
  • AdsButtonPressed()
  • ThrowButtonPressed()
  • MeleeButtonPressed()
  • JumpButtonPressed()
  • ButtonPressed()
  • ActionSlotTwoButtonPressed()
  • SprintButtonPressed()
  • GasButtonPressed()
  • ReloadButtonPressed()

Of the functions you mentioned, the only one's that aren't already present are the following:

  • GetMoveSpeedScale()
  • WeaponReloadEndTime()
  • IsReloading()
  • ActionSlotOneButtonPressed()
  • ActionSlotThreeButtonPressed()
  • ActionSlotFourButtonPressed()
  • WeaponSwitchButtonPressed()

@Jbleezy
Copy link
Contributor Author

Jbleezy commented Jan 20, 2018

Okay I just tried them out, you're right.

Except ActionSlotTwoButtonPressed() is a bit buggy, it doesn't get notifies every time and it only gets notified the first time you press it. All the other ones will be true if you hold the button but not this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants