diff --git a/code/game/gamemodes/malfunction/malfunction.dm b/code/game/gamemodes/malfunction/malfunction.dm index 2d6119016ac..cbdebbd3470 100644 --- a/code/game/gamemodes/malfunction/malfunction.dm +++ b/code/game/gamemodes/malfunction/malfunction.dm @@ -102,7 +102,7 @@ comm.messagetext.Add(intercepttext) command_alert("Summary downloaded and printed out at all communications consoles.", "Enemy communication intercept. Security Level Elevated.") - + world << sound('intercept.ogg') /datum/game_mode/malfunction/process() if (apcs >= 3 && malf_mode_declared) diff --git a/code/game/gamemodes/meteor/meteor.dm b/code/game/gamemodes/meteor/meteor.dm index 3a651045851..c4329a71be8 100644 --- a/code/game/gamemodes/meteor/meteor.dm +++ b/code/game/gamemodes/meteor/meteor.dm @@ -1,11 +1,26 @@ /datum/game_mode/meteor name = "meteor" config_tag = "meteor" + var/const/waittime_l = 600 //lower bound on time before intercept arrives (in tenths of seconds) + var/const/waittime_h = 1800 //upper bound on time before intercept arrives (in tenths of seconds) + var/const/meteordelay = 2000 + var/nometeors = 1 /datum/game_mode/meteor/announce() world << "The current game mode is - Meteor!" world << "The space station has been stuck in a major meteor shower. You must escape from the station or at least live." +/datum/game_mode/meteor/post_setup() + spawn (rand(waittime_l, waittime_h)) + send_intercept() + spawn(meteordelay) + nometeors = 0 + +/datum/game_mode/meteor/process() + if (nometeors) return + if (prob(10)) meteor_wave() + else spawn_meteors() + /datum/game_mode/meteor/declare_completion() var/list/survivors = list() var/area/escape_zone = locate(/area/shuttle/escape/centcom) @@ -36,4 +51,31 @@ else world << "\blue No one survived the meteor attack!" - return 1 \ No newline at end of file + return 1 + +/datum/game_mode/meteor/send_intercept() + var/intercepttext = "Cent. Com. Update Requested staus information: