Skip to content

Commit

Permalink
actually break your arm
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonespace27 committed Aug 24, 2023
1 parent b50e49c commit d055d5f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions code/modules/projectiles/guns/boltaction.dm
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@
user.apply_effect(0.7, WEAKEN)
user.apply_effect(1, SUPERSLOW)
user.apply_effect(2, SLOW)

if(ishuman(user))
if(istype(user.l_hand, /obj/item/weapon/gun/boltaction/vulture))
break_arm(user, LEFT)

else if(istype(user.r_hand, /obj/item/weapon/gun/boltaction/vulture))
break_arm(user, RIGHT)

//Either knockback or slam them into an obstacle.
var/direction = REVERSE_DIR(user.dir)
if(direction && !step(user, direction))
Expand All @@ -217,15 +225,6 @@

shake_camera(user, 7, 6) // Around 2x worse than getting hit with a heavy round

if(!ishuman(user))
return

if(istype(user.l_hand, /obj/item/weapon/gun/boltaction/vulture))
break_arm(user, LEFT)

else if(istype(user.r_hand, /obj/item/weapon/gun/boltaction/vulture))
break_arm(user, RIGHT)

/// The code that takes care of breaking a person's firing arm
/obj/item/weapon/gun/boltaction/vulture/proc/break_arm(mob/living/carbon/human/user, arm = LEFT)
var/obj/limb/arm/found_limb
Expand Down

0 comments on commit d055d5f

Please sign in to comment.