blob: 6de809fc78b8fc6223318e4284da1cb47e9c6654 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
local EVENT = {}
EVENT.Chance = 0.95
EVENT.Type = EVENT_BONUS
function EVENT:Start()
local spawns = ents.FindByClass( "info_lootspawn" )
local loot = table.Random( spawns )
if not IsValid( loot ) then MsgN( "ERROR: Unable to locate loot spawns. Map not configured?" ) return end
local ent = ents.Create( "sent_bonuscrate" )
ent:SetPos( loot:GetPos() + Vector(0,0,10) )
ent:Spawn()
for k,v in pairs( team.GetPlayers( TEAM_ARMY ) ) do
v:Notice( "Keep an eye out for a civilian weapon cache", 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 )
|