mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +00:00
Fixes teleporting while buckled
This commit is contained in:
@@ -108,12 +108,19 @@
|
|||||||
|
|
||||||
playSpecials(curturf,effectin,soundin)
|
playSpecials(curturf,effectin,soundin)
|
||||||
|
|
||||||
|
var/obj/structure/stool/bed/chair/C = null
|
||||||
|
if(isliving(teleatom))
|
||||||
|
var/mob/living/L = teleatom
|
||||||
|
if(L.buckled)
|
||||||
|
C = L.buckled
|
||||||
if(force_teleport)
|
if(force_teleport)
|
||||||
teleatom.forceMove(destturf)
|
teleatom.forceMove(destturf)
|
||||||
playSpecials(destturf,effectout,soundout)
|
playSpecials(destturf,effectout,soundout)
|
||||||
else
|
else
|
||||||
if(teleatom.Move(destturf))
|
if(teleatom.Move(destturf))
|
||||||
playSpecials(destturf,effectout,soundout)
|
playSpecials(destturf,effectout,soundout)
|
||||||
|
if(C)
|
||||||
|
C.forceMove(destturf)
|
||||||
|
|
||||||
destarea.Entered(teleatom)
|
destarea.Entered(teleatom)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user