summaryrefslogtreecommitdiff
path: root/gamemode/events/scientist.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/events/scientist.lua')
-rw-r--r--gamemode/events/scientist.lua38
1 files changed, 38 insertions, 0 deletions
diff --git a/gamemode/events/scientist.lua b/gamemode/events/scientist.lua
new file mode 100644
index 0000000..ce58fdf
--- /dev/null
+++ b/gamemode/events/scientist.lua
@@ -0,0 +1,38 @@
+
+local EVENT = {}
+
+EVENT.Chance = 0.75
+EVENT.Type = EVENT_BONUS
+
+function EVENT:Start()
+
+ local spawns = ents.FindByClass( "info_evac" )
+ local evac = table.Random( spawns )
+
+ local ent = ents.Create( "npc_scientist" )
+ ent:SetPos( evac:GetPos() + Vector(0,0,10) )
+ ent:Spawn()
+
+ for k,v in pairs( team.GetPlayers( TEAM_ARMY ) ) do
+
+ v:Notice( "A surviving field researcher has been sighted", GAMEMODE.Colors.White, 5 )
+
+ end
+
+end
+
+function EVENT:Think()
+
+end
+
+function EVENT:EndThink()
+
+ return true // true ends this immediately
+
+end
+
+function EVENT:End()
+
+end
+
+event.Register( EVENT )