mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Traitor kill announcer (#37139)
* starts PR and adds bunch of soundfiles, will cull some if not needed * first blood * cuts down these sounds and uses this * fixes * works now * some more sound stuff * headshot support * runtime fix * not gonna use these either * converts files finally * forgot this * timer hotfix * oh, here * makes them say it too * Delete bunker.txt --------- Co-authored-by: SECBATON-GRIFFON <kanef9x@protonmail.com>
This commit is contained in:
@@ -47,6 +47,8 @@ var/global/datum/emergency_shuttle/emergency_shuttle
|
||||
|
||||
var/extremely_hihg_speed = FALSE
|
||||
|
||||
var/last_second_tick = 0
|
||||
|
||||
// call the shuttle
|
||||
// if not called before, set the endtime to T+600 seconds
|
||||
// otherwise if outgoing, switch to incoming
|
||||
@@ -106,6 +108,9 @@ var/global/datum/emergency_shuttle/emergency_shuttle
|
||||
if(online)
|
||||
var/timeleft = round((endtime - world.time)/10 ,1)
|
||||
if(direction >= 0)
|
||||
if(world.time - last_second_tick >= 1 SECONDS)
|
||||
INVOKE_EVENT(src, /event/shuttletimer, "time" = timeleft, "direction" = direction)
|
||||
last_second_tick = world.time
|
||||
return timeleft
|
||||
else
|
||||
return SHUTTLEARRIVETIME-timeleft
|
||||
|
||||
Reference in New Issue
Block a user