Skip to content

Add new damage modifier for explosives - #2077

Open
Agiel wants to merge 1 commit into
NeotokyoRebuild:masterfrom
Agiel:explosive_damage_modifier
Open

Add new damage modifier for explosives#2077
Agiel wants to merge 1 commit into
NeotokyoRebuild:masterfrom
Agiel:explosive_damage_modifier

Conversation

@Agiel

@Agiel Agiel commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a new damage modifier for explosives sv_neo_exp_dmg_modifier with the same default value as the weapon modifier (1.485, which is parity).

I made it a separate modifier because I can see scenarios where we want to reduce bullet damage without affecting the grenades. The modifier is applied pretty high up the chain, because CGameRules::RadiusDamage takes the damage info as a const, and we want the correct damage in the WeaponHit event.

Note that explosives can still do less damage than they would in OGNT if there's a prop between the player and the explosion. This is intentional (by Valve) and handled in CGameRules::RadiusDamage. I deemed it outside the scope of this issue.

Toolchain

  • Cachy OS - gcc version 16.2.1 20260810

Linked Issues

@Agiel
Agiel requested a review from a team August 17, 2026 20:44

@AdamTadeusz AdamTadeusz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on devbox tested with a recon, throwing a grenade near straight down

Throw Position
bind k "setpos 0 0 180; setang 90 0 0"
Taking Damage Position
bind l "setpos 256 0 180; setang 90 0 0"

left with 88HP in both og and this branch, on master it was more like 92

@AdamTadeusz
AdamTadeusz requested a review from a team August 19, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Explosives should be affected by the damage multiplier

2 participants