GSC reference › Built-in
GetNormalizedMovement()
Built-in (engine)
Server
Player Called on: player
Get the player's movement normalized
Signature
<player> GetNormalizedMovement()
Called on an entity: player GetNormalizedMovement(...)
Example (from Treyarch's docs)
norm_move = self GetNormalizedMovement()
Real uses in BO3's scripts
Called 5 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_weap_shrink_ray.gsc, line 578
movement = who getnormalizedmovement(); - scripts/mp/gametypes/_prop_controls.gsc, line 1224
movement = self getnormalizedmovement(); - scripts/cp/cp_mi_cairo_aquifer_boss.gsc, line 1496
player_vec = self getnormalizedmovement(); - scripts/cp/doa/_doa_dev.gsc, line 43
lstick = player getnormalizedmovement(); - scripts/cp/doa/_doa_player_utility.gsc, line 1063
norm_move = self getnormalizedmovement();
Related built-ins
- GetNormalizedCameraMovement()Get the player's camera movement normalized
- GetPlayerMovementState()Returns the player movement state for the match record.
- GetMovementType()Returns the movement type for the entity
- GetCurrentWeapon()Gets the current player weapon
- SetLUIMenuData()Sets a data value for a given lui menu, the data name has to be precached and the value as well, if its a string.
- GiveWeapon()Give a weapon to the player
- HasPerk()Test if player has a perk
- HasWeapon()Returns true if the player has the given weapon
- TakeWeapon()Take the weapon
- ButtonPressed()Check if the host is pressing the button/key, "BUTTON_A", "BUTTON_B", "K", etc...
- GetPlayerAngles()Get the player view angles
- SwitchToWeapon()Switch to a different weapon or cycle weapons if no weapon is given
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).