mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
48 lines
2.0 KiB
Plaintext
48 lines
2.0 KiB
Plaintext
#define METEOR_DELAY 6000
|
|
|
|
/datum/game_mode/meteor
|
|
name = "Meteor"
|
|
round_description = "The space station has been stuck in a major meteor shower."
|
|
extended_round_description = "The station is on an unavoidable collision course with an asteroid field. The station will be continuously slammed with meteors, venting hallways, rooms, and ultimately destroying a majority of the basic life functions of the entire structure. Coordinate with your fellow crew members to survive the inevitable destruction of the station and get back home in one piece!"
|
|
config_tag = "meteor"
|
|
required_players = 0
|
|
votable = 0
|
|
uplink_welcome = "EVIL METEOR Uplink Console:"
|
|
deny_respawn = 1
|
|
|
|
/datum/game_mode/meteor/post_setup()
|
|
defer_powernet_rebuild = 2//Might help with the lag
|
|
..()
|
|
|
|
/datum/game_mode/meteor/process()
|
|
if(world.time >= METEOR_DELAY)
|
|
spawn() spawn_meteors(6)
|
|
|
|
/datum/game_mode/meteor/declare_completion()
|
|
var/text
|
|
var/survivors = 0
|
|
for(var/mob/living/player in player_list)
|
|
if(player.stat != DEAD)
|
|
var/turf/location = get_turf(player.loc)
|
|
if(!location) continue
|
|
switch(location.loc.type)
|
|
if( /area/shuttle/escape/centcom )
|
|
text += "<br><b><font size=2>[player.real_name] escaped on the emergency shuttle</font></b>"
|
|
if( /area/shuttle/escape_pod1/centcom, /area/shuttle/escape_pod2/centcom, /area/shuttle/escape_pod3/centcom, /area/shuttle/escape_pod5/centcom )
|
|
text += "<br><font size=2>[player.real_name] escaped in a life pod.</font>"
|
|
else
|
|
text += "<br><font size=1>[player.real_name] survived but is stranded without any hope of rescue.</font>"
|
|
survivors++
|
|
|
|
if(survivors)
|
|
world << "<span class='notice'><B>The following survived the meteor storm</B></span>:[text]"
|
|
else
|
|
world << "<span class='notice'><B>Nobody survived the meteor storm!</B></span>"
|
|
|
|
feedback_set_details("round_end_result","end - evacuation")
|
|
feedback_set("round_end_result",survivors)
|
|
|
|
..()
|
|
return 1
|
|
|
|
#undef METEOR_DELAY |