Is there a hook that handles the effects that play when a player is shot? I looked through the base gamemode files and i didn't see anything relevant.
I'm talking about the chunk of code that creates the blood splat effect and draws decals on the wall when you shoot a player.
Gamemode.PlayerHurt?
I think it's
[lua]
--[[---------------------------------------------------------
Name: gamemode:PlayerTraceAttack( )
Desc: A bullet has been fired and hit this player
Return true to completely override internals
-----------------------------------------------------------]]
function GM:PlayerTraceAttack( ply, dmginfo, dir, trace )
return false
end
[/lua]
Ahh, thanks. I swear i remember seeing the code before but i guess it's not even done in Lua.
Sorry, you need to Log In to post a reply to this thread.