Merge pull request #201 from Mka0207/master
ZombieVision moved to clientside.
This commit is contained in:
commit
0fbb2037c6
3 changed files with 4 additions and 10 deletions
|
@ -1779,6 +1779,10 @@ function GM:PlayerBindPress(pl, bind, wasin)
|
|||
self.ZombieThirdPerson = not self.ZombieThirdPerson
|
||||
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
|
||||
|
|
|
@ -260,10 +260,6 @@ function GM:ToggleZombieVision(onoff)
|
|||
end
|
||||
end
|
||||
|
||||
net.Receive("zs_togglezvision", function(length)
|
||||
gamemode.Call("ToggleZombieVision")
|
||||
end)
|
||||
|
||||
local CModWhiteOut = {
|
||||
["$pp_colour_addr"] = 0,
|
||||
["$pp_colour_addg"] = 0,
|
||||
|
|
|
@ -474,7 +474,6 @@ function GM:AddNetworkStrings()
|
|||
util.AddNetworkString("zs_deployableout")
|
||||
util.AddNetworkString("zs_trinketconsumed")
|
||||
util.AddNetworkString("zs_nailremoved")
|
||||
util.AddNetworkString("zs_togglezvision")
|
||||
util.AddNetworkString("zs_remantlercontent")
|
||||
util.AddNetworkString("zs_classunlockstate")
|
||||
util.AddNetworkString("zs_changeclass")
|
||||
|
@ -4309,11 +4308,6 @@ end
|
|||
|
||||
function GM:PlayerSwitchFlashlight(pl, newstate)
|
||||
if pl:Team() == TEAM_UNDEAD then
|
||||
if newstate then
|
||||
net.Start("zs_togglezvision")
|
||||
net.Send(pl)
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue