diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm index c094fb5335e..b65bc1a3e86 100644 --- a/code/modules/mob/mob_helpers.dm +++ b/code/modules/mob/mob_helpers.dm @@ -364,17 +364,25 @@ It's fairly easy to fix if dealing with single letters but not so much with comp /proc/shake_camera(mob/M, duration, strength=1) - spawn(0) - if(!M || !M.client || M.shakecamera) - return - var/oldeye=M.client.eye + if(!M || !M.client || M.shakecamera) + return + M.shakecamera = 1 + spawn(1) + + var/atom/oldeye=M.client.eye + var/aiEyeFlag = 0 + if(istype(oldeye, /mob/aiEye)) + aiEyeFlag = 1 + var/x - M.shakecamera = 1 for(x=0; x