From 4802d30857d5face6ddafda6856de87bb77146f1 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 25 Apr 2024 17:43:47 +0200 Subject: [PATCH] [MIRROR] Fix: Makes the rebar crossbow's bowstring loosen after firing (#27467) * 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: * Fix: Makes the rebar crossbow's bowstring loosen after firing --------- Co-authored-by: KingkumaArt <69398298+KingkumaArt@users.noreply.github.com> --- 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