"only when down" should now work

This commit is contained in:
deathride58
2017-09-03 18:54:25 -04:00
parent a8328aad8e
commit 91e5dbe0f3
+4 -3
View File
@@ -52,14 +52,15 @@
/obj/item/attack(mob/living/M, mob/living/user)
. = ..()
if(force && force >=11)
if(force && force >=15)
shake_camera(user, ((force - 10) * 0.01 + 1), ((force - 10) * 0.01))
if(M.client.prefs)
switch (M.client.prefs.damagescreenshake)
if (1)
shake_camera(M, ((force - 10) * 0.015 + 1), ((force - 10) * 0.015))
if (2)//setting is "only when down." check for knockdown status before applying this.
shake_camera(M, ((force - 10) * 0.015 + 1), ((force - 10) * 0.015))
if (2)
if (M.IsKnockdown)
shake_camera(M, ((force - 10) * 0.015 + 1), ((force - 10) * 0.015))
/obj/item/attack_obj(obj/O, mob/living/user)
. = ..()