hlsdk-portable icon indicating copy to clipboard operation
hlsdk-portable copied to clipboard

func_breakable shouldn't take damage when it's set to Trigger Only

Open FreeSlave opened this issue 1 year ago • 0 comments

When func_breakable is set to Trigger Only, it sets the pev->takedamage to DAMAGE_NO, but since there's no check for it in TakeDamage it still can take damage because some attacks don't check for pev->takedamage from outside (e.g. CheckTraceHullAttack).

I'm not sure if this fix should be merged as there could be some maps that rely on such behavior.

FreeSlave avatar Aug 15 '24 07:08 FreeSlave