From 3f9caf5deb158f79b0b6a9e5e20c12fb9ed2fd1d Mon Sep 17 00:00:00 2001 From: KingkumaArt <69398298+KingkumaArt@users.noreply.github.com> Date: Thu, 25 Apr 2024 07:30:50 -0400 Subject: [PATCH] Fix: Makes the rebar crossbow's bowstring loosen after firing (#82830) ## About The Pull Request As it stands, after the rebar crossbow fires, it must be used inhand twice, once to loosen the bowstring, and a second time with a do_after to pull it back. Not only does this make no sense as the bowstring is what launches the projectile, but I actually had no idea it was even happening, until I got it pointed out on discord. ## Why It's Good For The Game The main reason is that the crossbow shooting a rod without moving the bowstring just looks weird, but also given the first inhand use doesn't have a delay, it also doesn't really serve any purpose. ## Changelog :cl: fix: The rebar crossbows now properly loosen their bowstring upon firing. /:cl: --- code/modules/projectiles/guns/ballistic/rifle.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/projectiles/guns/ballistic/rifle.dm b/code/modules/projectiles/guns/ballistic/rifle.dm index 966dd2caf32..ac988c2541b 100644 --- a/code/modules/projectiles/guns/ballistic/rifle.dm +++ b/code/modules/projectiles/guns/ballistic/rifle.dm @@ -219,6 +219,10 @@ bolt_locked = FALSE update_appearance() +/obj/item/gun/ballistic/rifle/rebarxbow/shoot_live_shot(mob/living/user) + ..() + rack() + /obj/item/gun/ballistic/rifle/rebarxbow/can_shoot() if (bolt_locked) return FALSE