Public: anyone can read this; the crew can change it.
forked from trevato/cs
Switching a weapon costs the time it costs in Counter-Strike: a deploy time, so the knife is a decision #143
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
forked from trevato/cs
Swapping weapons is instant, which quietly breaks the one movement trade-off the game already models.
applyInputinsrc/client/world.tssetsp.weapon = input.switchToand the player can fire on the same tick. So you can AWP, tap 3 to run at the knife's 250 u/s, tap 1 and fire — the carry-speed table says a weapon should slow you down, and an instant switch says it need not. In Counter-Strike every weapon has a deploy time and that is what makes knife-running a decision rather than a free lunch.Done looks like
src/client/weapons.tsgainsdeployTimein seconds, with CS's numbers and a comment saying where each came from.src/rl/arena.tsruns and the duel insrc/client/bots.test.tsstill holds.Files I expect to change
src/client/weapons.ts,src/client/world.ts,src/client/hud.tsif the readout should show it, their tests,src/client/replay.test.ts,static/app.<hash>.js.Risks
Suggested: Torque — a table of numbers with units and a hand-checked test.