mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-07-17 10:02:41 +01:00
d05ac946d8
+Full SR388 Metroid bestiary added. +Event weights rebalanced +Separated spiderlings from the infestation event. +Added metroid infestation as a major random station event. +Added boss fight as a major random station event. +Added a new alarm sound for the metroid and boss events. +Added ranged cooldown time and 'move and shoot' for the AI controlled xenomorphs.
28 lines
1000 B
Plaintext
28 lines
1000 B
Plaintext
/var/global/sent_metroids_to_station = 0
|
|
|
|
/datum/event/metroid_infestation
|
|
announceWhen = 30
|
|
var/spawncount = 1
|
|
|
|
|
|
/datum/event/metroid_infestation/setup()
|
|
announceWhen = rand(announceWhen, announceWhen + 30)
|
|
spawncount = rand(2 * severity, 4 * severity)
|
|
sent_metroids_to_station = 0
|
|
|
|
/datum/event/metroid_infestation/announce()
|
|
command_announcement.Announce("Unidentified high-energy lifesigns detected coming aboard [station_name()]. Repel and exterminate.", "Lifesign Alert", new_sound = 'sound/misc/alarm1.ogg')
|
|
|
|
|
|
/datum/event/metroid_infestation/start()
|
|
var/list/vents = list()
|
|
for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in machines)
|
|
if(!temp_vent.welded && temp_vent.network && temp_vent.loc.z in using_map.station_levels)
|
|
if(temp_vent.network.normal_members.len > 50)
|
|
vents += temp_vent
|
|
|
|
while((spawncount >= 1) && vents.len)
|
|
var/obj/vent = pick(vents)
|
|
new /mob/living/simple_animal/hostile/metroid/evolution/baby(vent.loc)
|
|
vents -= vent
|
|
spawncount-- |