Skip to content

Commit

Permalink
Dropship Launch Announcement Alarm
Browse files Browse the repository at this point in the history
Added restriction and warning about playing the alarm when you're not on a landing pad
  • Loading branch information
hislittlecuzingames committed Nov 21, 2023
2 parents c35cde6 + 0a2e53c commit 0410f21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/shuttle/computers/dropship_computer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@
if(shuttle.in_flyby && shuttle.timer && shuttle.timeLeft(1) >= DROPSHIP_WARMUP_TIME)
shuttle.setTimer(DROPSHIP_WARMUP_TIME)
if("play_launch_announcement_alarm")
if (shuttle.mode != SHUTTLE_IDLE && shuttle.mode != SHUTTLE_RECHARGING)
to_chat(usr, SPAN_WARNING("The Launch Announcement Alarm is designed to tell people that you're going to take off soon."))
return
shuttle.alarm_sound_loop.start()
shuttle.playing_launch_announcement_alarm = TRUE
return
Expand Down

0 comments on commit 0410f21

Please sign in to comment.