I've been trying to do this for a while but I can't seem to do this at all.
If, for example, a traitor dies, his body is identified, and is then revived - He shows up as red on the scoreboard.
I can't figure out what's responsible for this, but how can I make this happen myself via code?
[url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/terrortown/gamemode/corpse.lua#L100[/url]
Call this on player when revived (true = visible in scoreboard, false = nop)
This could help you:
[url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/terrortown/gamemode/traitor_state.lua#L24-L85[/url]
These functions are used to tell the client who has which role.
[QUOTE=markusmarkusz;50999185]This could help you:
[url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/terrortown/gamemode/traitor_state.lua#L24-L85[/url]
These functions are used to tell the client who has which role.[/QUOTE]
Thanks, it's just what I needed!
Sorry, you need to Log In to post a reply to this thread.