Makes doors not horrid. Also fixes infinite heat (#17048)

* Makes doors use timers (from OP21)

* NO INFINITE HEAT ALLOWED >:(

* fug

* Update robot_animation_vr.dm
This commit is contained in:
Cameron Lennox
2025-02-05 14:02:34 -05:00
committed by GitHub
parent 2e4f1ce642
commit 8081f42210
3 changed files with 60 additions and 8 deletions
@@ -15,6 +15,8 @@
addtimer(CALLBACK(src, PROC_REF(transform_animation_sounds), 6, prev_lockcharge), 0.2 SECONDS)
/mob/living/silicon/robot/proc/transform_animation_sounds(var/recall, var/prev_lockcharge)
PRIVATE_PROC(TRUE)
SHOULD_NOT_OVERRIDE(TRUE)
if(recall > 0)
playsound(src, pick('sound/items/drill_use.ogg', 'sound/items/jaws_cut.ogg', 'sound/items/jaws_pry.ogg', 'sound/items/Welder.ogg', 'sound/items/Wirecutter.ogg', 'sound/items/Crowbar.ogg', 'sound/items/Ratchet.ogg'), 80, 1, -1)
recall--
@@ -23,6 +25,8 @@
transform_animation_end_lockdown(prev_lockcharge)
/mob/living/silicon/robot/proc/transform_animation_end_lockdown(var/prev_lockcharge)
PRIVATE_PROC(TRUE)
SHOULD_NOT_OVERRIDE(TRUE)
if(!prev_lockcharge)
SetLockdown(0)
anchored = FALSE