five-on-it / apps/client/src/renderer/riders
apps/client/src/renderer/riders
People seated in vehicles, drawn at their seats: everyone the latest snapshot has inside a vehicle (the player's own character too) gets the character model, tinted as on foot, placed at its seat of the vehicle's model (models.ts reads the seats' anchors) in the vehicle's drawn pose, leaning with a two-wheeler, and posed as the seat says (figure.ts, the seat's clip): a rider astride (pedalling a bicycle as fast as it goes), a pillion behind, a driver and a passenger in the buggy or behind a car's glass, which the models draw see-through (the seats sit low enough for a head under the roof, the body below the window sills inside the car's grey interior, where its legs are left out: drawn, a low car's would poke out under its body), holding its pistol out for a moment after each shot it fires from the seat, slumped forward when it was killed there (the dead stay in the car). A vehicle not drawn this frame hides its people. A rider is drawn by the models' batches (models.ts), like a person on foot: a change of look (a hostile) only changes its next draw; the dead keep their colours.