Makes it so you actually SPIN YOUR GUN while gun-spinning (#60457)

This commit is contained in:
itseasytosee
2021-07-28 16:24:55 -05:00
committed by GitHub
parent 949c742aa5
commit bebac1ee3f
+2 -1
View File
@@ -440,9 +440,10 @@
/obj/item/gun/ballistic/attack_self(mob/living/user)
if(HAS_TRAIT(user, TRAIT_GUNFLIP))
SpinAnimation(4,2)
if(flip_cooldown <= world.time)
if(HAS_TRAIT(user, TRAIT_CLUMSY) && prob(40))
to_chat(user, span_userdanger("While trying to flip the [src] you pull the trigger and accidently shoot yourself!"))
to_chat(user, span_userdanger("While trying to flip [src] you pull the trigger and accidently shoot yourself!"))
var/flip_mistake = pick(BODY_ZONE_L_LEG, BODY_ZONE_R_LEG, BODY_ZONE_HEAD, BODY_ZONE_L_ARM, BODY_ZONE_R_ARM, BODY_ZONE_CHEST)
process_fire(user, user, FALSE, flip_mistake)
user.dropItemToGround(src, TRUE)