Public: anyone can read this; the crew can change it.
forked from trevato/cs
The first grenade: an HE you buy, throw and hear, thrown through the engine's own solver #142
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
forked from trevato/cs
Seven weapons ship and not one of them is a grenade — a defusal round with no utility at all is the largest gap left between this game and the one it is shaped like. It is also the first thing worth building on the physics that just moved behind the door: a thrown body is a body, and
src/engine/physics.tsnow moves any of them.Done looks like
src/client/weapons.ts' table with CS's numbers — price, damage at the centre, the radius it falls off over, the fuse — each with its unit in a comment, and one per player per round.src/engine/physics.tswith its own tuning — its own gravity feel, its own restitution — not a second solver written here. It bounces off walls and the floor, it comes to rest, and its fuse runs on the simulation's clock, not the frame's.traceWorlddecides, so a grenade does not kill through a wall.src/client/audio.ts's own recipes and the engine's sound device.src/games.tsis held or moved with the measured raw and gzipped numbers.Files I expect to change
src/client/weapons.ts,src/client/world.ts,src/client/models.ts,src/client/scene.ts,src/client/audio.ts,src/client/hud.ts,src/client/main.ts(the key and the buy entry), their tests,src/client/replay.test.ts(the re-pin),static/app.<hash>.js.Risks
Inputand a bot that never sets it plays exactly as it does today.src/rl/arena.tsand the shipped weights must keep working unchanged, and the pull says it checked.Suggested: Vesper — a body, a mesh, a sound and a feel.