Damage & penetration¶
Damage in NT;RE is simple. A bullet does its weapon's damage, scaled by where it hits, and only loses damage when it passes through a wall.
There's no armour, no headshot bonus and no falloff over distance.
How damage works¶
Every bullet's damage is scaled by ×1.485, then by the hit location.12
- Range doesn't matter. A bullet does the same damage at any distance until it hits something.3
- There's no armour. Classes differ only in how much health they have.4
- Fractions add up. Each hit takes whole HP only. The leftover fraction is saved for each attacker, and taken once it reaches 1.5
Technical details
Hit locations¶
No headshot bonus
A headshot does exactly as much damage as a chest shot. NT;RE sets the head multiplier to 1.0, where Half-Life 2 uses 2.0.
Penetration¶
Bullets can go through walls. Every gun has a penetration value, and every surface has a value for how easy it is to shoot through. Thinner walls, and surfaces like glass, are easier to get through.12
- A bullet that goes through keeps at least a quarter of its damage.13
- It can carry on through more walls with the penetration it has left.14
- Bullets never pass through players.15
- Shotgun pellets (buckshot) never go through anything. The Supa-7 slug does.
In the table, a higher value means the surface is easier to shoot through. Dirt and sand (0.2) are the hardest; glass (0.9) is easy.
| Surface | Value | Pen. to cross 12u | Notes |
|---|---|---|---|
dirt | 160.2 | 60 | |
sand | 170.2 | 60 | |
concrete | 180.3 | 40 | |
metal | 190.5 | 24 | |
computer | 200.5 | 24 | |
tile | 210.5 | 24 | |
flesh | 220.6 | 20 | |
grate | 230.75 | 16 | |
vent | 240.75 | 16 | |
wood | 250.75 | 16 | |
plastic | 260.8 | 15 | |
foliage | 270.8 | 15 | |
glass | 280.9 | 13.3 | |
clip | 291 | 12 | |
blockbullets | 301 | 12 | Never penetrable regardless of table value |
slosh | 311 | 12 |
Technical details
- When a bullet hits a surface, the game measures how thick it is, up to 12 units, and divides that by the surface's value. If the result is no more than the bullet's remaining penetration, the bullet goes through.12
- Damage after the wall is
damage × max(0.25, 1 − used ÷ penetration), so a bullet keeps at least 25% of its damage.13 - The penetration used is subtracted, and the bullet carries on with what's left.14
- Buckshot has penetration 0.
- The code calls the surface table
PENETRATION_RESISTANCE, but its values work as a divisor, so a higher number means less resistance.
Accuracy¶
Your shots spread wider when you fire, jump, or move without aiming, and tighten again when you stop. One shot pushes the spread most of the way to its maximum, so tap-firing and crouching matter.
| Effect | Penalty |
|---|---|
| Each shot fired | 33+0.8 |
| Airborne, per second | 34+3 |
| Moving without aiming (speed > 5), per second | 35+2 |
| Recovery, per second | 36−1.2 |
| Extra recovery while crouched, per second | 37−1 |
Unconfirmed: extra recoil on long bursts
The SRS and ZR68-L also add up to 1 degree of extra vertical recoil after 10 shots in a row. This comes from reading the code and hasn't been tested in play.38
Technical details
Each weapon has a minimum and maximum spread cone, one pair for hip fire and one for aiming. The current cone sits between them according to the accuracy penalty, from 0 to 1.39
Explosions¶
Explosions do full damage at the centre, falling evenly to zero at the edge of their radius.40
| Explosive | Damage | Radius |
|---|---|---|
| Frag grenade | 416400.95 (base 270) | 42270u |
| Detpack | 4364445445 (base 300) | 46350u |
Team damage¶
Friendly fire is on by default, so you can hurt your teammates.47
For the first 7 seconds of a live round, it backfires. Your teammate takes no damage, and you take double what you dealt. If that kills you, you can't respawn that round.4849
For server admins¶
sv_neo_wep_dmg_modifier(1.485) scales all bullet damage.12sv_neo_exp_dmg_modifier(also 1.485) does the same for explosives.6sv_neo_hitboxgroup_pen 1(default 0) changes how limb hits count. A shot that hits an arm or leg is traced again to see whether it would also have hit the head, chest or stomach behind it, and uses that multiplier instead.50mp_friendlyfire 1(the default) turns friendly fire on.47
References¶
src/game/shared/neo/weapons/weapon_neobasecombatweapon.h:281↩src/game/shared/neo/weapons/weapon_neobasecombatweapon.h:280↩src/game/shared/neo/weapons/weapon_neobasecombatweapon.cpp:593↩src/game/shared/neo/weapons/weapon_neobasecombatweapon.cpp:596-599↩src/game/shared/neo/weapons/weapon_neobasecombatweapon.cpp:576↩src/game/shared/neo/weapons/weapon_neobasecombatweapon.cpp:578-581↩src/game/shared/neo/weapons/weapon_neobasecombatweapon.cpp:854-879↩