Skip to content

List of ped states

in0finite edited this page Feb 27, 2019 · 1 revision

Movement

  • Stand
  • Walk
  • Run
  • Sprint
  • Crouch
  • CrouchMove
  • Roll
  • Jump
  • Climb (ClimbIdle, ClimbPullUp, ...)
  • Fall

Aiming

  • StandAim
  • WalkAim
  • RunAim
  • CrouchAim

Firing

  • StandFire
  • WalkFire
  • RunFire
  • CrouchFire

Vehicle

  • VehicleEnter
  • VehicleSitting
  • VehicleExit

Vehicle aim/fire

  • VehicleAimAside
  • VehicleFireAside
  • DriveByAim
  • DriveByFire

Other

  • Fly
  • Dying
  • Dead
  • Swim
  • HitByWeapon - when hit by a shotgun or melee weapon
  • HitByVehicle
  • HitByOtherObject

Notes

When ped gets damaged, some states must play anim for upper part of body. So, there will not be separate states for damage.

Reloading may be a problem, because it can happen in many states.

Some states implement custom movement of the character. They will have to be updated when we switch to rigid body character.

Some states will share common game logic. For example, all fire states will fire the same way (check for enough ammo, reduce ammo, play fire sound, play fire anim, check for anim end, etc). They will use static methods from some class to perform this common logic.

Clone this wiki locally