five-on-it / packages/sim/src/sitting
packages/sim/src/sitting
Sitting on the level's seats (a bench's, a log's: @foi/world's spots of kind seat): a character on foot by a free seat sits on it with the interaction key, facing the seat's way, its body out of the physics while it sits (as in a car's seat) and its pose the seat's. A seat is one person's at a time, players' and the crowd's alike (SimWorld.spotTaken, hashed). Sitting, a player gets its breath back: its hit points come back by SIT.healPerSecond up to SIT.healTo of its full health (the police cool off faster while it sits unseen: @foi/ai's wanted.ts). Any movement key, the interaction key, a hit or a knock-down get it up, a step in front of the seat.