#Disable player vs player damage [JBMod/HL2DM] without enabling teams

1 messages · Page 1 of 1 (latest)

rich pawn
#

On a horror map I'm making, I would like for players NOT to damage eachother with their crowbars, but I'm not ENTIRELY sure how I would prevent this?
I've thought about making a trigger at spawn, that addoutputs the player to set their health to 100 everytime they take damage from the player, but the player entity seemingly doesn't have any outputs, so what can I do? Could it be a simple as a damage filter?

NO, I CANNOT JUST REMOVE THEIR CROWBARS!! They would be stuck t-posing if I did that... 😭😭😭

#

Looking at the source code for hl2dm, the crowbar does indeed use the DMG_CLUB damage type, i'll see if I can filter that on the player shrug

#

hold on, might just be this easy

#

i'll have to test it

#

Although, this probably also disables other things that use DMG_CLUB, like an NPC or trigger_hurt for example, not sure if npcs use it, but it's a possibility.
Won't really matter for my case however, if it does end up mattering I could probably use a filter_multi or whatever.