901fd15b44
A single meteor spawn will bring the server to it's knees, and there is zero, I repeat ZERO chance that people are going to fix the causes of lag when explosions trigger (see powernet/pipenet rebuilds) and atmos triggering
53 lines
1.5 KiB
Plaintext
53 lines
1.5 KiB
Plaintext
/datum/game_mode/meteor
|
|
name = "meteor"
|
|
config_tag = "meteor"
|
|
var/const/meteordelay = 2000
|
|
var/nometeors = 1
|
|
required_players = 0
|
|
|
|
|
|
/datum/game_mode/meteor/announce()
|
|
world << "<B>The current game mode is - Meteor!</B>"
|
|
world << "<B>The space station has been stuck in a major meteor shower. You must escape from the station or at least live.</B>"
|
|
|
|
|
|
/datum/game_mode/meteor/post_setup()
|
|
// defer_powernet_rebuild = 2//Might help with the lag
|
|
spawn(meteordelay)
|
|
nometeors = 0
|
|
..()
|
|
|
|
|
|
/datum/game_mode/meteor/process()
|
|
if(nometeors) return
|
|
|
|
spawn() spawn_meteors(1, meteors_normal)
|
|
|
|
|
|
/datum/game_mode/meteor/declare_completion()
|
|
var/text
|
|
var/survivors = 0
|
|
|
|
for(var/mob/living/player in player_list)
|
|
if(player.stat != DEAD)
|
|
++survivors
|
|
|
|
if(player.onCentcom())
|
|
text += "<br><b><font size=2>[player.real_name] escaped to the safety of Centcom.</font></b>"
|
|
else if(player.onSyndieBase())
|
|
text += "<br><b><font size=2>[player.real_name] escaped to the (relative) safety of Syndicate Space.</font></b>"
|
|
else
|
|
text += "<br><font size=1>[player.real_name] survived but is stranded without any hope of rescue.</font>"
|
|
|
|
|
|
if(survivors)
|
|
world << "<span class='boldnotice'>The following survived the meteor storm</span>:[text]"
|
|
else
|
|
world << "<span class='boldnotice'>Nobody survived the meteor storm!</span>"
|
|
|
|
feedback_set_details("round_end_result","end - evacuation")
|
|
feedback_set("round_end_result",survivors)
|
|
|
|
..()
|
|
return 1
|