blob: ab792999d0419c7a5eadbb0033dbba0b55171790 (
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
|
local EVENT = {}
EVENT.Chance = 0.95
EVENT.Type = EVENT_WEATHER
EVENT.Types = {}
EVENT.Types[1] = "rain"
EVENT.Types[2] = "thunder"
EVENT.Types[3] = "lightning"
EVENT.Types[4] = "strong winds"
function EVENT:Start()
GAMEMODE:RandomizeWeather( true )
for k,v in pairs( team.GetPlayers( TEAM_ARMY ) ) do
v:Notice( "The weather conditions are worsening", 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 )
|