Merged bindpress funcs.
This commit is contained in:
parent
e881e4e588
commit
f79846b7ad
1 changed files with 4 additions and 8 deletions
|
@ -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
|
Loading…
Reference in a new issue