diff --git a/gamemodes/zombiesurvival/gamemode/cl_init.lua b/gamemodes/zombiesurvival/gamemode/cl_init.lua index 3c883de..38fbf01 100644 --- a/gamemodes/zombiesurvival/gamemode/cl_init.lua +++ b/gamemodes/zombiesurvival/gamemode/cl_init.lua @@ -1780,6 +1780,10 @@ function GM:PlayerBindPress(pl, bind, wasin) elseif P_Team(pl) == TEAM_HUMAN then self:ToggleOTSCamera() end + elseif bind == "impulse 100" then + if P_Team(pl) == TEAM_UNDEAD and pl:Alive() then + self:ToggleZombieVision() + end end end @@ -2239,12 +2243,4 @@ end function PlayMenuCloseSound() MySelf:EmitSound("buttons/lightswitch2.wav", 100, 20) -end - -function GM:PlayerBindPress(ply, bind, pressed) - if IsValid( ply ) and ply:Team() == TEAM_UNDEAD and ply:Alive() and not IsFirstTimePredicted() then - if (bind == "impulse 100") then - self:ToggleZombieVision() - end - end end \ No newline at end of file