mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 23:17:02 +01:00
Starline Fixes (#30527)
* fixes * this is better * i got it this time i swear
This commit is contained in:
@@ -113,20 +113,21 @@
|
||||
playsound(src, 'sound/machines/starline_ring.ogg', 50, 0, 2, ignore_walls = TRUE)
|
||||
icon_state = "ringing"
|
||||
sleep(ring_duration)
|
||||
icon_state = "base"
|
||||
if(phone_state == RINGING) // in case its answered mid ring
|
||||
icon_state = "base"
|
||||
sleep(ring_rest_duration)
|
||||
|
||||
/obj/machinery/phone/proc/start_call()
|
||||
phone_state = ACTIVE_CALL
|
||||
handheld.listening = TRUE
|
||||
connected_line.handheld.listening = TRUE
|
||||
connected_line.connected_line.audible_message("<span class='information'>The receiver clicks as the other picks up.</span>", hearing_distance = 1)
|
||||
connected_line.audible_message("<span class='information'>The receiver clicks as the other line picks up.</span>", hearing_distance = 3)
|
||||
|
||||
/obj/machinery/phone/proc/end_call()
|
||||
handheld.listening = FALSE
|
||||
phone_state = NO_CALLS
|
||||
if(connected_line)
|
||||
connected_line.audible_message("<span class='information'>The receiver clicks as the other line hangs up</span>", hearing_distance = 1)
|
||||
connected_line.audible_message("<span class='information'>The receiver clicks as the other line hangs up</span>", hearing_distance = 3)
|
||||
connected_line.connected_line = null
|
||||
if(connected_line.phone_state == RINGING)
|
||||
connected_line.phone_state = NO_CALLS
|
||||
|
||||
Reference in New Issue
Block a user