mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-17 10:03:50 +01:00
Implements PDA Beeping (#15616)
This commit is contained in:
@@ -28,6 +28,9 @@
|
||||
pda.ownjob = pda.id.assignment
|
||||
pda.ownrank = pda.id.rank
|
||||
pda.name = "PDA-[pda.owner] ([pda.ownjob])"
|
||||
if(!pda.silent)
|
||||
playsound(pda, 'sound/machines/terminal_processing.ogg', 15, TRUE)
|
||||
addtimer(CALLBACK(GLOBAL_PROC, .proc/playsound, pda, 'sound/machines/terminal_success.ogg', 15, TRUE), 1.3 SECONDS)
|
||||
if("pai")
|
||||
if(pda.pai)
|
||||
if(pda.pai.loc != pda)
|
||||
@@ -39,8 +42,9 @@
|
||||
if(2) // Eject pAI device
|
||||
var/turf/T = get_turf_or_move(pda.loc)
|
||||
if(T)
|
||||
pda.pai.loc = T
|
||||
pda.pai.forceMove(T)
|
||||
pda.pai = null
|
||||
playsound(pda, 'sound/machines/terminal_eject.ogg', 50, TRUE)
|
||||
|
||||
/datum/data/pda/app/notekeeper
|
||||
name = "Notekeeper"
|
||||
@@ -61,6 +65,9 @@
|
||||
if(..())
|
||||
return
|
||||
|
||||
if(!pda.silent)
|
||||
playsound(pda, 'sound/machines/terminal_select.ogg', 15, TRUE)
|
||||
|
||||
. = TRUE
|
||||
|
||||
switch(action)
|
||||
|
||||
Reference in New Issue
Block a user