I’ve been digging around the Wiki for a while, tried the whole range of hooks that are meant to handle crap like this, and none of them contains the effect trigger. I need this for an armor thing I’ve been working on.
Thanks in advance.
I’ve been digging around the Wiki for a while, tried the whole range of hooks that are meant to handle crap like this, and none of them contains the effect trigger. I need this for an armor thing I’ve been working on.
Thanks in advance.
**[Gamemode.ScalePlayerDamage
http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.ScalePlayerDamage)**
Then what you need to do is the following:
[lua]dmginfo:SetDamageType(DMG_GENERIC)[/lua]
Thanks for the fast reply, you’re a life saver man.
Even better, you could use **[Entity.SetBloodColor
http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Entity.SetBloodColor)** to do this :
[lua]ply:SetBloodColor(BLOOD_COLOR_MECH)[/lua]
Now the player with an armor on with emit sparks instead of blood when hit.