Merged bindpress funcs.

This commit is contained in:
Mka0207 2019-03-18 15:18:49 -04:00
parent e881e4e588
commit f79846b7ad

View file

@ -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
@ -2240,11 +2244,3 @@ 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