five-on-it / apps/client/src/renderer/anim-state / AnimInput
Interface: AnimInput
Defined in: apps/client/src/renderer/anim-state.ts:57
A person's state as the animation reads it.
Properties
act
act:
"type"|"none"|"door"|"pickup"|"sit"|"dance"|"smoke"|"lie"|"lean"|"drop"|"search"|"plant"|"pick"|"defuse"|"repair"|"restrain"|"drag"|"hack"|"fire"|"use"|"phone"|"open"|"punch"|"knockout"|"throw"|"talk"|"shake"|"rummage"|"call"|"board"|"enter"|"exit"|"cower"|"climb"|"swim"|"bark"|"knock"|"point"|"handsUp"|"surrender"|"restrained"
Defined in: apps/client/src/renderer/anim-state.ts:93
What it does with its hands (the simulation's acts).
airborne
airborne:
number
Defined in: apps/client/src/renderer/anim-state.ts:65
How long it has been off the ground (s).
alert
alert:
number
Defined in: apps/client/src/renderer/anim-state.ts:101
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:87
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:91
Holding a grenade with its pin out.
cover
cover:
number
Defined in: apps/client/src/renderer/anim-state.ts:81
Its cover: 0 in the open, 1 hidden, 2 popped up.
coverLow
coverLow:
boolean
Defined in: apps/client/src/renderer/anim-state.ts:83
The cover is low (hidden means crouched).
fighting
fighting:
boolean
Defined in: apps/client/src/renderer/anim-state.ts:89
Its fists are up: it punched a moment ago.
grounded
grounded:
boolean
Defined in: apps/client/src/renderer/anim-state.ts:63
Standing on something.
held?
optionalheld?:"box"|"laptop"|"toolbox"|"bomb"|"briefcase"|"crowbar"|"cash_bag"
Defined in: apps/client/src/renderer/anim-state.ts:95
The prop it holds (its selected item's look: a box, a briefcase), if any.
jacking
jacking:
boolean
Defined in: apps/client/src/renderer/anim-state.ts:97
In a carjack's beat.
leading?
optionalleading?:boolean
Defined in: apps/client/src/renderer/anim-state.ts:77
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:71
Seated astride a bicycle: it pedals.
role
role:
Role
Defined in: apps/client/src/renderer/anim-state.ts:99
Who it is.
seat?
optionalseat?:string
Defined in: apps/client/src/renderer/anim-state.ts:69
Seated: the seat's pose (driver, passenger, rider, pillion).
sitting?
optionalsitting?:boolean
Defined in: apps/client/src/renderer/anim-state.ts:75
Sitting on a bench (@foi/sim's sitting.ts).
slumped?
optionalslumped?:boolean
Defined in: apps/client/src/renderer/anim-state.ts:73
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:59
Horizontal speed (m/s).
status
status:
string
Defined in: apps/client/src/renderer/anim-state.ts:67
Its status: awake, stunned, knockedOut, asleep, down, dead (the simulation's STATUSES).
variant?
optionalvariant?:number
Defined in: apps/client/src/renderer/anim-state.ts:79
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:61
Vertical speed (m/s, up positive).
weapon
weapon:
number
Defined in: apps/client/src/renderer/anim-state.ts:85
Its weapon's index in the simulation's WEAPONS.