summaryrefslogtreecommitdiff
path: root/gamemode/events/radioblackout.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-05-30 21:01:18 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-05-30 21:01:18 -0400
commitd62058fcdea5fc6736a2a373f47dc6c14c70c319 (patch)
tree79a1325190e3f1f1b6d6a2dbcdfc1ba3fa866ac9 /gamemode/events/radioblackout.lua
parentc38f00182ba6c282806eecb39a42e64d5feafa37 (diff)
downloadredead-d62058fcdea5fc6736a2a373f47dc6c14c70c319.tar.gz
redead-d62058fcdea5fc6736a2a373f47dc6c14c70c319.tar.bz2
redead-d62058fcdea5fc6736a2a373f47dc6c14c70c319.zip
Removed exessive whitespace so future commits will be cleaner
Diffstat (limited to 'gamemode/events/radioblackout.lua')
-rw-r--r--gamemode/events/radioblackout.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/gamemode/events/radioblackout.lua b/gamemode/events/radioblackout.lua
index 27c5344..024037f 100644
--- a/gamemode/events/radioblackout.lua
+++ b/gamemode/events/radioblackout.lua
@@ -3,24 +3,24 @@ local EVENT = {}
EVENT.Chance = 0.75
EVENT.Type = EVENT_BAD
-EVENT.TimeText = { "30 seconds", "1 minute", "90 seconds" }
-EVENT.Times = { 30, 60, 90 }
+EVENT.TimeText = { "30 seconds", "1 minute", "90 seconds" }
+EVENT.Times = { 30, 60, 90 }
function EVENT:Start()
-
+
local num = math.random(1,3)
-
+
GAMEMODE.RadioBlock = CurTime() + EVENT.Times[ num ]
-
+
for k,v in pairs( team.GetPlayers( TEAM_ARMY ) ) do
-
+
v:Notice( "Radio communications will be down for " .. EVENT.TimeText[ num ], GAMEMODE.Colors.Red, 5 )
v:Notice( "Radio communications are back online", GAMEMODE.Colors.White, 5, EVENT.Times[ num ] )
-
+
end
-
+
end
-
+
function EVENT:Think()
end