-
Notifications
You must be signed in to change notification settings - Fork 368
List of ped states
in0finite edited this page Feb 27, 2019
·
1 revision
- Stand
- Walk
- Run
- Sprint
- Crouch
- CrouchMove
- Roll
- Jump
- Climb (ClimbIdle, ClimbPullUp, ...)
- Fall
- StandAim
- WalkAim
- RunAim
- CrouchAim
- StandFire
- WalkFire
- RunFire
- CrouchFire
- VehicleEnter
- VehicleSitting
- VehicleExit
- VehicleAimAside
- VehicleFireAside
- DriveByAim
- DriveByFire
- Fly
- Dying
- Dead
- Swim
- HitByWeapon - when hit by a shotgun or melee weapon
- HitByVehicle
- HitByOtherObject
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.