Skip to content

Commit

Permalink
Baton shove now requires disarm intent (BeeStation#11187)
Browse files Browse the repository at this point in the history
* tonfa now paralyses rather than sleeps, stunbaton only shoves on disarm

* Revert "tonfa now paralyses rather than sleeps, stunbaton only shoves on disarm"

This reverts commit ac7814c.
  • Loading branch information
ToasterBan authored and EvilDragonfiend committed Jul 30, 2024
1 parent aabea95 commit b40c9a0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions code/game/objects/items/stunbaton.dm
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,14 @@
target.stuttering = 20

// Shoving
var/shove_dir = get_dir(user.loc, target.loc)
var/turf/target_shove_turf = get_step(target.loc, shove_dir)
var/mob/living/carbon/human/target_collateral_human = locate(/mob/living/carbon) in target_shove_turf.contents
if (target_collateral_human && target_shove_turf != get_turf(user))
target.Knockdown(0.5 SECONDS)
target_collateral_human.Knockdown(0.5 SECONDS)
target.Move(target_shove_turf, shove_dir)
if(user.a_intent == INTENT_DISARM)
var/shove_dir = get_dir(user.loc, target.loc)
var/turf/target_shove_turf = get_step(target.loc, shove_dir)
var/mob/living/carbon/human/target_collateral_human = locate(/mob/living/carbon) in target_shove_turf.contents
if (target_collateral_human && target_shove_turf != get_turf(user))
target.Knockdown(0.5 SECONDS)
target_collateral_human.Knockdown(0.5 SECONDS)
target.Move(target_shove_turf, shove_dir)

target.do_stun_animation()

Expand Down

0 comments on commit b40c9a0

Please sign in to comment.