five-on-it / packages/sim/src/damage / hurtOccupants
Function: hurtOccupants()
hurtOccupants(
sim,vehicle,dv,point):void
Defined in: packages/sim/src/damage.ts:171
A crash's toll on the people in a wreck (a car shot to pieces, or wrecked by the crash itself): each loses CAR_HIT_DAMAGE hit points per m/s of the impact dv above KNOCKDOWN_SPEED, as a car hitting them on foot that fast would take, and may die in their seat (they stay there, slumped: boarding.ts). An invincible occupant, a ghost, shrugs it off. Each records a hit event, no one's doing.
Parameters
sim
vehicle
number
dv
number
point
x
number
y
number
z
number
Returns
void