mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-13 08:04:22 +01:00
office chairs spin with you when emoting (#18211)
This commit is contained in:
@@ -210,6 +210,8 @@
|
||||
/mob/proc/spin(spintime, speed)
|
||||
if(!speed || speed < 1) // Do NOT spin with infinite speed, it will break the reality
|
||||
return
|
||||
if(istype(buckled,/obj/structure/bed/chair/office)) // WEEEE!!!
|
||||
playsound(src, 'sound/effects/roll.ogg', 100, 1)
|
||||
spawn()
|
||||
var/D = dir
|
||||
while(spintime >= speed)
|
||||
@@ -224,5 +226,9 @@
|
||||
if(WEST)
|
||||
D = NORTH
|
||||
set_dir(D)
|
||||
if(istype(buckled,/obj/structure/bed/chair/office))
|
||||
var/obj/structure/bed/chair/office/O = buckled
|
||||
O.dir = D
|
||||
O.set_dir(D)
|
||||
spintime -= speed
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user