Fixes calling the shuttle through the admin panel not playing shuttlecalled.ogg (#24367)

This commit is contained in:
adrian
2019-10-05 15:08:04 -03:00
committed by Probe1
parent 36a8c0570d
commit 467ddb685a

View File

@@ -330,6 +330,7 @@
return return
var/justification = stripped_input(usr, "Please input a reason for the shuttle call. You may leave it blank to not have one.", "Justification") var/justification = stripped_input(usr, "Please input a reason for the shuttle call. You may leave it blank to not have one.", "Justification")
emergency_shuttle.incall() emergency_shuttle.incall()
world << sound('sound/AI/shuttlecalled.ogg')
captain_announce("The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.[justification ? " Justification : '[justification]'" : ""]") captain_announce("The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.[justification ? " Justification : '[justification]'" : ""]")
log_admin("[key_name(usr)] called the Emergency Shuttle") log_admin("[key_name(usr)] called the Emergency Shuttle")
message_admins("<span class='notice'>[key_name_admin(usr)] called the Emergency Shuttle to the station</span>", 1) message_admins("<span class='notice'>[key_name_admin(usr)] called the Emergency Shuttle to the station</span>", 1)
@@ -340,6 +341,7 @@
switch(emergency_shuttle.direction) switch(emergency_shuttle.direction)
if(-1) if(-1)
emergency_shuttle.incall() emergency_shuttle.incall()
world << sound('sound/AI/shuttlecalled.ogg')
captain_announce("The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.") captain_announce("The emergency shuttle has been called. It will arrive in [round(emergency_shuttle.timeleft()/60)] minutes.")
log_admin("[key_name(usr)] called the Emergency Shuttle") log_admin("[key_name(usr)] called the Emergency Shuttle")
message_admins("<span class='notice'>[key_name_admin(usr)] called the Emergency Shuttle to the station</span>", 1) message_admins("<span class='notice'>[key_name_admin(usr)] called the Emergency Shuttle to the station</span>", 1)