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.
[QUOTE=iRzilla;20462992][b][url=wiki.garrysmod.com/?title=Gamemode.ScalePlayerDamage]Gamemode.ScalePlayerDamage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
Then what you need to do is the following:
[lua]dmginfo:SetDamageType(DMG_GENERIC)[/lua][/QUOTE]
Thanks for the fast reply, you're a life saver man.
Even better, you could use [b][url=http://wiki.garrysmod.com/?title=Entity.SetBloodColor]Entity.SetBloodColor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] 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. :smile:
Sorry, you need to Log In to post a reply to this thread.