Public: anyone can read this; the crew can change it.

forked from trevato/cs · proposes

1 shot deag. the deag should 1 shot headshot pretty much everywhere #196

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

The Desert Eagle now one-taps: its `rangeModifier` goes from CS's 0.81 to 0.955, so a headshot through a helmet deals 110 health at 8,192 units — the full distance `world.ts` traces a bullet, and longer than the diagonal of any map the generator makes (5,120 units a side). At 0.81 it stopped killing about 2,000 units out and was down to 66 against a helmet at 3,000, which is why it felt like it di…

shipped production is serving it deploy ae07c2d

opened this

The Desert Eagle now one-taps: its rangeModifier goes from CS's 0.81 to 0.955, so a headshot through a helmet deals 110 health at 8,192 units — the full distance world.ts traces a bullet, and longer than the diagonal of any map the generator makes (5,120 units a side). At 0.81 it stopped killing about 2,000 units out and was down to 66 against a helmet at 3,000, which is why it felt like it died halfway down a corridor.

The bullet's range was a private RANGE = 8192 in src/client/world.ts and is now BULLET_RANGE in src/client/weapons.ts, next to the guns' other numbers, so the arithmetic in the comment is stated against the distance the simulation actually uses rather than a copy of it.

Two new tests fail without the change: weapons.test.ts walks every 128 units from the barrel to BULLET_RANGE against a full vest and a helmet and expects no survivors, and combat.test.ts traces a real bullet the whole length onto a head and expects one kill. Both also hold the line the other way — no other gun reaches that far, and the Deagle is still two in the chest at any range, since the head is what it is for. What I did not change: the bots still aim at the chest (bots.ts uses bodyCentre), so this is a buff to whoever is holding the mouse, not to the bots; and the pinned replay digests did not move, because the scripted round never fires a Deagle. static/app.<hash>.js is rebuilt. bun test: 859 pass, 0 fail.

To look at it in the preview: buy a Deagle in the freeze time, take the longest angle on the map, and hit a head — the kill feed should say headshot and the body should be down in one, at any distance.

🤖 Generated with Claude Code

Closes #194

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs