five-on-it / apps/client/src/renderer/anim-state / AnimInput
Interface: AnimInput
Defined in: apps/client/src/renderer/anim-state.ts:48
A person's state as the animation reads it.
Properties
act
act:
"type"|"none"|"door"|"pickup"|"search"|"fire"|"use"|"drop"|"phone"|"open"|"pick"|"punch"|"knockout"|"throw"|"talk"|"shake"|"rummage"|"call"|"board"|"enter"|"exit"|"cower"|"climb"|"swim"|"bark"
Defined in: apps/client/src/renderer/anim-state.ts:84
What it does with its hands (the simulation's acts).
airborne
airborne:
number
Defined in: apps/client/src/renderer/anim-state.ts:56
How long it has been off the ground (s).
alert
alert:
number
Defined in: apps/client/src/renderer/anim-state.ts:90
A guard's alert: 0 none, 1 normal, 2 caution, 3 suspicious, 4 search, 5 alert.
armed
armed:
boolean
Defined in: apps/client/src/renderer/anim-state.ts:78
Whether it shows its weapon (a player, an armed guard, a chaser, an officer; not a passer-by).
cooking
cooking:
boolean
Defined in: apps/client/src/renderer/anim-state.ts:82
Holding a grenade with its pin out.
cover
cover:
number
Defined in: apps/client/src/renderer/anim-state.ts:72
Its cover: 0 in the open, 1 hidden, 2 popped up.
coverLow
coverLow:
boolean
Defined in: apps/client/src/renderer/anim-state.ts:74
The cover is low (hidden means crouched).
fighting
fighting:
boolean
Defined in: apps/client/src/renderer/anim-state.ts:80
Its fists are up: it punched a moment ago.
grounded
grounded:
boolean
Defined in: apps/client/src/renderer/anim-state.ts:54
Standing on something.
jacking
jacking:
boolean
Defined in: apps/client/src/renderer/anim-state.ts:86
In a carjack's beat.
leading?
optionalleading?:boolean
Defined in: apps/client/src/renderer/anim-state.ts:68
A dog walker whose dog is on its lead (@foi/sim's dogs.ts): it holds the lead out.
pedals?
optionalpedals?:boolean
Defined in: apps/client/src/renderer/anim-state.ts:62
Seated astride a bicycle: it pedals.
role
role:
Role
Defined in: apps/client/src/renderer/anim-state.ts:88
Who it is.
seat?
optionalseat?:string
Defined in: apps/client/src/renderer/anim-state.ts:60
Seated: the seat's pose (driver, passenger, rider, pillion).
sitting?
optionalsitting?:boolean
Defined in: apps/client/src/renderer/anim-state.ts:66
Sitting on a bench (@foi/sim's sitting.ts).
slumped?
optionalslumped?:boolean
Defined in: apps/client/src/renderer/anim-state.ts:64
Dead in its seat (killed in a car, @foi/sim's boarding.ts): slumped there.
speed
speed:
number
Defined in: apps/client/src/renderer/anim-state.ts:50
Horizontal speed (m/s).
status
status:
string
Defined in: apps/client/src/renderer/anim-state.ts:58
Its status: awake, stunned, knockedOut, asleep, down, dead (the simulation's STATUSES).
variant?
optionalvariant?:number
Defined in: apps/client/src/renderer/anim-state.ts:70
A number of its own (its entity), for the idles that vary from one person to the next.
vy
vy:
number
Defined in: apps/client/src/renderer/anim-state.ts:52
Vertical speed (m/s, up positive).
weapon
weapon:
number
Defined in: apps/client/src/renderer/anim-state.ts:76
Its weapon's index in the simulation's WEAPONS.