How to disable the red overlay when taking damage?
4 replies, posted
How to disable the red overlay when taking damage? The title pretty much says it all. I've poked around the wiki to try and find a solution, however I can't seem to find anything on it.
edit : Never-mind these idiotic rambles, scroll down.
These are just ideas, maybe you could scale the damage to 0, and then simply reduce the player's health. Or maybe you could try disguising the damage so it's a type that doesn't flash the HUD, but I'm not sure one exists.. I do think I saw it done tough. There probably is a one line undocumented command to make this whole thing happen but I don't know it.
[lua]
function GM:HUDShouldDraw( name )
if name == "CHudDamageIndicator" then
return false
end
return true
end[/lua]
[editline]03:53AM[/editline]
[QUOTE=Crazy Quebec;16787964]These are just ideas, maybe you could scale the damage to 0, and then simply reduce the player's health. Or maybe you could try disguising the damage so it's a type that doesn't flash the HUD, but I'm not sure one exists.. I do think I saw it done tough. There probably is a one line undocumented command to make this whole thing happen but I don't know it.[/QUOTE]
that's way too hacky
[QUOTE=Sechs;16787992]
that's way too hacky[/QUOTE]
I figured, I just really didn't know the name of the HUD to disable.. Guess I had to search the wiki a bit more.. [url]http://wiki.garrysmod.com/?title=Hud_Elements[/url]
[QUOTE=Sechs;16787992][lua]
function GM:HUDShouldDraw( name )
if name == "CHudDamageIndicator" then
return false
end
return true
end[/lua]
[editline]03:53AM[/editline]
that's way too hacky[/QUOTE]
Thanks
Sorry, you need to Log In to post a reply to this thread.