mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-15 00:54:16 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user