Added "spawnboss" input in trigger_bossclass

Uses the gamemode sort function to turn the highest scoring zombie into
a boss.
This commit is contained in:
Ben 2014-10-31 16:34:49 +00:00
parent 3a9a35363c
commit a187cc1c09

View file

@ -15,6 +15,8 @@ function ENT:AcceptInput(name, activator, caller, args)
name = string.lower(name) name = string.lower(name)
if string.sub(name, 1, 2) == "on" then if string.sub(name, 1, 2) == "on" then
self:FireOutput(name, activator, caller, args) self:FireOutput(name, activator, caller, args)
elseif name == "spawnboss" then
GAMEMODE:SpawnBossZombie(false, self.Silent)
elseif name == "seton" then elseif name == "seton" then
self.On = tonumber(args) == 1 self.On = tonumber(args) == 1
return true return true