|
|
|
@@ -68,7 +68,7 @@
|
|
|
|
|
if(!purpose_fulfilled)
|
|
|
|
|
var/area/gate_area = get_area(src)
|
|
|
|
|
hierophant_message("<span class='large_brass'><b>An Ark of the Clockwork Justicar has fallen at [gate_area.map_name]!</b></span>")
|
|
|
|
|
send_to_playing_players(sound(null, 0, channel = CHANNEL_JUSTICAR_ARK))
|
|
|
|
|
sound_to_playing_players(channel = CHANNEL_JUSTICAR_ARK, S = sound(null, 0))
|
|
|
|
|
var/was_stranded = SSshuttle.emergency.mode == SHUTTLE_STRANDED
|
|
|
|
|
SSshuttle.clearHostileEnvironment(src)
|
|
|
|
|
if(!was_stranded && !purpose_fulfilled)
|
|
|
|
@@ -87,7 +87,7 @@
|
|
|
|
|
resistance_flags |= INDESTRUCTIBLE
|
|
|
|
|
countdown.stop()
|
|
|
|
|
visible_message("<span class='userdanger'>[src] begins to pulse uncontrollably... you might want to run!</span>")
|
|
|
|
|
send_to_playing_players(sound('sound/effects/clockcult_gateway_disrupted.ogg', 0, channel = CHANNEL_JUSTICAR_ARK, volume = 50))
|
|
|
|
|
sound_to_playing_players(volume = 50, channel = CHANNEL_JUSTICAR_ARK, S = sound('sound/effects/clockcult_gateway_disrupted.ogg', 0))
|
|
|
|
|
make_glow()
|
|
|
|
|
glow.icon_state = "clockwork_gateway_disrupted"
|
|
|
|
|
resistance_flags |= INDESTRUCTIBLE
|
|
|
|
@@ -208,7 +208,7 @@
|
|
|
|
|
if(still_needs_components())
|
|
|
|
|
if(!first_sound_played)
|
|
|
|
|
priority_announce("Massive energy anomaly detected on short-range scanners. Attempting to triangulate location...", "Anomaly Alert")
|
|
|
|
|
send_to_playing_players(sound('sound/effects/clockcult_gateway_charging.ogg', 1, channel = CHANNEL_JUSTICAR_ARK, volume = 10))
|
|
|
|
|
sound_to_playing_players(volume = 10, channel = CHANNEL_JUSTICAR_ARK, S = sound('sound/effects/clockcult_gateway_charging.ogg', 1))
|
|
|
|
|
first_sound_played = TRUE
|
|
|
|
|
make_glow()
|
|
|
|
|
glow.icon_state = "clockwork_gateway_components"
|
|
|
|
@@ -228,7 +228,8 @@
|
|
|
|
|
switch(progress_in_seconds)
|
|
|
|
|
if(-INFINITY to GATEWAY_REEBE_FOUND)
|
|
|
|
|
if(!second_sound_played)
|
|
|
|
|
send_to_playing_players(sound('sound/effects/clockcult_gateway_charging.ogg', 1, channel = CHANNEL_JUSTICAR_ARK, volume = 30))
|
|
|
|
|
new /obj/effect/temp_visual/decoy/fading/threesecond(loc, glow)
|
|
|
|
|
sound_to_playing_players(volume = 30, channel = CHANNEL_JUSTICAR_ARK, S = sound('sound/effects/clockcult_gateway_charging.ogg', 1))
|
|
|
|
|
second_sound_played = TRUE
|
|
|
|
|
make_glow()
|
|
|
|
|
glow.icon_state = "clockwork_gateway_charging"
|
|
|
|
@@ -236,13 +237,15 @@
|
|
|
|
|
if(!third_sound_played)
|
|
|
|
|
var/area/gate_area = get_area(src)
|
|
|
|
|
priority_announce("Location of massive energy anomaly has been triangulated. Location: [gate_area.map_name].", "Anomaly Alert")
|
|
|
|
|
send_to_playing_players(sound('sound/effects/clockcult_gateway_active.ogg', 1, channel = CHANNEL_JUSTICAR_ARK, volume = 35))
|
|
|
|
|
new /obj/effect/temp_visual/decoy/fading/threesecond(loc, glow)
|
|
|
|
|
sound_to_playing_players(volume = 35, channel = CHANNEL_JUSTICAR_ARK, S = sound('sound/effects/clockcult_gateway_active.ogg', 1))
|
|
|
|
|
third_sound_played = TRUE
|
|
|
|
|
make_glow()
|
|
|
|
|
glow.icon_state = "clockwork_gateway_active"
|
|
|
|
|
if(GATEWAY_RATVAR_COMING to GATEWAY_RATVAR_ARRIVAL)
|
|
|
|
|
if(!fourth_sound_played)
|
|
|
|
|
send_to_playing_players(sound('sound/effects/clockcult_gateway_closing.ogg', 1, channel = CHANNEL_JUSTICAR_ARK, volume = 40))
|
|
|
|
|
new /obj/effect/temp_visual/decoy/fading/threesecond(loc, glow)
|
|
|
|
|
sound_to_playing_players(volume = 40, channel = CHANNEL_JUSTICAR_ARK, S = sound('sound/effects/clockcult_gateway_closing.ogg', 1))
|
|
|
|
|
fourth_sound_played = TRUE
|
|
|
|
|
make_glow()
|
|
|
|
|
glow.icon_state = "clockwork_gateway_closing"
|
|
|
|
@@ -252,20 +255,20 @@
|
|
|
|
|
resistance_flags |= INDESTRUCTIBLE
|
|
|
|
|
purpose_fulfilled = TRUE
|
|
|
|
|
make_glow()
|
|
|
|
|
animate(glow, transform = matrix() * 1.5, alpha = 255, time = 125)
|
|
|
|
|
send_to_playing_players(sound('sound/effects/ratvar_rises.ogg', 0, channel = CHANNEL_JUSTICAR_ARK)) //End the sounds
|
|
|
|
|
animate(glow, transform = matrix() * 3, time = 125)
|
|
|
|
|
sound_to_playing_players('sound/effects/ratvar_rises.ogg', channel = CHANNEL_JUSTICAR_ARK) //End the sounds
|
|
|
|
|
sleep(125)
|
|
|
|
|
make_glow()
|
|
|
|
|
animate(glow, transform = matrix() * 3, alpha = 0, time = 5)
|
|
|
|
|
var/turf/startpoint = get_turf(src)
|
|
|
|
|
QDEL_IN(src, 3)
|
|
|
|
|
sleep(3)
|
|
|
|
|
make_glow()
|
|
|
|
|
glow.transform = matrix() * 4.5
|
|
|
|
|
animate(glow, transform = matrix() * 0.1, time = 10)
|
|
|
|
|
QDEL_IN(src, 10)
|
|
|
|
|
GLOB.clockwork_gateway_activated = TRUE
|
|
|
|
|
new/obj/structure/destructible/clockwork/massive/ratvar(startpoint)
|
|
|
|
|
send_to_playing_players("<span class='inathneq_large'>\"[text2ratvar("See Engine's mercy")]!\"</span>\n\
|
|
|
|
|
<span class='sevtug_large'>\"[text2ratvar("Observe Engine's design skills")]!\"</span>\n<span class='nezbere_large'>\"[text2ratvar("Behold Engine's light")]!!\"</span>\n\
|
|
|
|
|
<span class='nzcrentr_large'>\"[text2ratvar("Gaze upon Engine's power")].\"</span>")
|
|
|
|
|
send_to_playing_players('sound/magic/clockwork/invoke_general.ogg')
|
|
|
|
|
sound_to_playing_players('sound/effects/empulse.ogg')
|
|
|
|
|
var/x0 = startpoint.x
|
|
|
|
|
var/y0 = startpoint.y
|
|
|
|
|
for(var/I in spiral_range_turfs(255, startpoint))
|
|
|
|
|