Merge pull request #6 from iViscosity/master

Zombie Survival support for Wraith
This commit is contained in:
Brett Smith 2017-08-11 10:43:39 -05:00 committed by GitHub
commit 63739945d3

View File

@ -139,6 +139,13 @@ function PANEL:ShouldRevealPlayer( ply )
if engine.ActiveGamemode() == "murder" and not LocalPlayer():IsAdmin() then
return false
end
if engine.ActiveGamemode() == "zombiesurvival" then
local wraith = GAMEMODE.ZombieClasses[ "Wraith" ].Index
if ply:Team() == TEAM_UNDEAD and ply:GetZombieClass() == wraith then
return false
end
end
return true
end