Merge pull request #118 from BClark09/master
Added option to prevent being picked as a boss zombie.
This commit is contained in:
commit
1e089a84e3
3 changed files with 10 additions and 2 deletions
|
@ -33,6 +33,7 @@ end)
|
|||
|
||||
CreateClientConVar("zs_noredeem", "0", true, true)
|
||||
CreateClientConVar("zs_alwaysvolunteer", "0", true, true)
|
||||
CreateClientConVar("zs_nobosspick", "0", true, true)
|
||||
|
||||
GM.SuicideOnChangeClass = CreateClientConVar("zs_suicideonchange", "1", true, false):GetBool()
|
||||
cvars.AddChangeCallback("zs_suicideonchange", function(cvar, oldvalue, newvalue)
|
||||
|
|
|
@ -838,11 +838,12 @@ function GM:SpawnBossZombie(bossplayer, silent)
|
|||
livingbosses = livingbosses + 1
|
||||
if livingbosses >= 3 then return end
|
||||
else
|
||||
table.insert(zombies, ent)
|
||||
if ent:GetInfo("zs_nobosspick") == "0" then
|
||||
table.insert(zombies, ent)
|
||||
end
|
||||
end
|
||||
end
|
||||
table.sort(zombies, BossZombieSort)
|
||||
|
||||
bossplayer = zombies[1]
|
||||
end
|
||||
|
||||
|
|
|
@ -129,6 +129,12 @@ function MakepOptions()
|
|||
check:SetConVar("zs_alwaysvolunteer")
|
||||
check:SizeToContents()
|
||||
list:AddItem(check)
|
||||
|
||||
local check = vgui.Create("DCheckBoxLabel", Window)
|
||||
check:SetText("Prevent being picked as a boss zombie")
|
||||
check:SetConVar("zs_nobosspick")
|
||||
check:SizeToContents()
|
||||
list:AddItem(check)
|
||||
|
||||
local check = vgui.Create("DCheckBoxLabel", Window)
|
||||
check:SetText("Automatic suicide when changing classes")
|
||||
|
|
Loading…
Reference in a new issue