mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
[GBP: NO UPDATE] Add moved signals to ai movement procs (#17364)
This commit is contained in:
@@ -131,7 +131,9 @@
|
||||
// Used in shuttle movement and AI eye stuff.
|
||||
// Primarily used to notify objects being moved by a shuttle/bluespace fuckup.
|
||||
/atom/movable/proc/setLoc(T, teleported=0)
|
||||
var/old_loc = loc
|
||||
loc = T
|
||||
Moved(old_loc, get_dir(old_loc, loc))
|
||||
|
||||
/atom/movable/Move(atom/newloc, direct = 0, movetime)
|
||||
if(!loc || !newloc) return 0
|
||||
|
||||
@@ -134,7 +134,9 @@
|
||||
if(!isturf(eye_user.loc))
|
||||
return
|
||||
T = get_turf(T)
|
||||
var/old_loc = loc
|
||||
loc = T
|
||||
Moved(old_loc, get_dir(old_loc, loc))
|
||||
if(use_static)
|
||||
GLOB.cameranet.visibility(src, GetViewerClient())
|
||||
if(visible_icon)
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
if(!isturf(ai.loc))
|
||||
return
|
||||
T = get_turf(T)
|
||||
loc = T
|
||||
..(T)
|
||||
if(use_static)
|
||||
ai.camera_visibility(src)
|
||||
if(ai.client)
|
||||
|
||||
Reference in New Issue
Block a user