From 3d813ed57470e8a0dcbcb403121f0e4ca6f5e564 Mon Sep 17 00:00:00 2001 From: QuacksQ <79924768+QuacksQ@users.noreply.github.com> Date: Sat, 1 Jun 2024 13:12:24 +0200 Subject: [PATCH] cooler shit --- code/modules/projectiles/guns/ballistic.dm | 2 ++ code/modules/projectiles/guns/energy.dm | 2 ++ code/modules/projectiles/guns/energy/energy_gun.dm | 1 + code/modules/projectiles/guns/energy/stun.dm | 1 + 4 files changed, 6 insertions(+) diff --git a/code/modules/projectiles/guns/ballistic.dm b/code/modules/projectiles/guns/ballistic.dm index ede1e51c740..243b65d8427 100644 --- a/code/modules/projectiles/guns/ballistic.dm +++ b/code/modules/projectiles/guns/ballistic.dm @@ -118,6 +118,8 @@ var/misfire_percentage_increment = 0 ///What is the cap on our misfire probability? Do not set this to 100. var/misfire_probability_cap = 25 + /// How much recoil the gun has. + recoil = 1 /obj/item/gun/ballistic/Initialize(mapload) . = ..() diff --git a/code/modules/projectiles/guns/energy.dm b/code/modules/projectiles/guns/energy.dm index 55f893b0dee..10ad3700a96 100644 --- a/code/modules/projectiles/guns/energy.dm +++ b/code/modules/projectiles/guns/energy.dm @@ -33,6 +33,8 @@ var/use_cyborg_cell = FALSE ///set to true so the gun is given an empty cell var/dead_cell = FALSE + /// How much recoil the gun has. + recoil = 0.2 /obj/item/gun/energy/fire_sounds() var/obj/item/ammo_casing/energy/shot = ammo_type[select] diff --git a/code/modules/projectiles/guns/energy/energy_gun.dm b/code/modules/projectiles/guns/energy/energy_gun.dm index dc2b18114d2..19c01d9f129 100644 --- a/code/modules/projectiles/guns/energy/energy_gun.dm +++ b/code/modules/projectiles/guns/energy/energy_gun.dm @@ -26,6 +26,7 @@ ammo_x_offset = 2 charge_sections = 3 single_shot_type_overlay = FALSE + recoil = 0.1 /obj/item/gun/energy/e_gun/mini/add_seclight_point() // The mini energy gun's light comes attached but is unremovable. diff --git a/code/modules/projectiles/guns/energy/stun.dm b/code/modules/projectiles/guns/energy/stun.dm index 635570fbb15..386e3bb82e3 100644 --- a/code/modules/projectiles/guns/energy/stun.dm +++ b/code/modules/projectiles/guns/energy/stun.dm @@ -32,6 +32,7 @@ inhand_icon_state = null ammo_type = list(/obj/item/ammo_casing/energy/disabler) ammo_x_offset = 2 + recoil = 0.1 /obj/item/gun/energy/disabler/add_seclight_point() AddComponent(/datum/component/seclite_attachable, \