mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-09 22:23:58 +00:00
updates
This commit is contained in:
@@ -2,8 +2,12 @@
|
||||
* shakes the camera of any client watching from an atom's perspective
|
||||
*/
|
||||
/proc/shake_camera(atom/movable/AM, duration, strength = 1)
|
||||
if(!M || !IS_CONSCIOUS(M) || isEye(M) || isAI(M))
|
||||
if(!AM || isEye(AM) || isAI(AM))
|
||||
return
|
||||
if(ismob(AM))
|
||||
var/mob/M = AM
|
||||
if(!IS_CONSCIOUS(M))
|
||||
return
|
||||
if(!M.self_perspective)
|
||||
return
|
||||
for(var/client/C in AM.self_perspective.GetClients())
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
return
|
||||
if(C.using_perspective)
|
||||
CRASH("client already had perspective")
|
||||
return
|
||||
clients += C
|
||||
C.using_perspective = src
|
||||
Apply(C)
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
|
||||
/obj/item/chameleon/proc/eject_all()
|
||||
for(var/atom/movable/A in active_dummy)
|
||||
A.forceMove(active_dummy.loc))
|
||||
A.forceMove(active_dummy.loc)
|
||||
if(ismob(A))
|
||||
var/mob/M = A
|
||||
M.update_perspective()
|
||||
|
||||
Reference in New Issue
Block a user