From 90aeb13538b850e9dcd3579f32fa4cd8a2283a61 Mon Sep 17 00:00:00 2001 From: Penelope Haze Date: Wed, 7 Jun 2023 14:21:28 -0500 Subject: [PATCH] [MODULAR] Implement/remove unused mounted machine gun vars (#21623) Implement or remove unused MMG vars --- .../mounted_machine_gun/code/mounted_machine_gun.dm | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/modular_skyrat/modules/mounted_machine_gun/code/mounted_machine_gun.dm b/modular_skyrat/modules/mounted_machine_gun/code/mounted_machine_gun.dm index cadc6ac4f03..ccabd4e05a9 100644 --- a/modular_skyrat/modules/mounted_machine_gun/code/mounted_machine_gun.dm +++ b/modular_skyrat/modules/mounted_machine_gun/code/mounted_machine_gun.dm @@ -18,14 +18,10 @@ plane = GAME_PLANE_UPPER /// The extra range that this turret gives regarding viewrange. var/view_range = 2.5 - /// Sound to play at the end of a burst - var/overheatsound = 'sound/weapons/sear.ogg' + /// Sound to play when overheated + var/overheatsound = 'modular_skyrat/modules/gunsgalore/sound/guns/fire/mg_overheat.ogg' /// Sound to play when firing var/firesound = 'modular_skyrat/modules/mounted_machine_gun/sound/50cal_box_01.ogg' - /// If using a wrench on the turret will start undeploying it - var/can_be_undeployed = FALSE - /// What gets spawned if the object is undeployed - var/obj/spawned_on_undeploy = /obj/item/mounted_machine_gun_folded /// How long it takes for a wrench user to undeploy the object var/undeploy_time = 3 SECONDS /// Our currently loaded ammo box. @@ -46,7 +42,7 @@ var/spread = 0 /// The position of our bolt. TRUE = locked(ready to fire) FALSE = forward(not ready to fire) var/bolt = TRUE - /// What we drop when undeployed. + /// What we drop when undeployed. If null, cannot be undeployed. var/undeployed_type = /obj/item/mounted_machine_gun_folded // Heat mechanics @@ -321,7 +317,7 @@ barrel_heat += barrel_heat_per_shot if(barrel_heat >= max_barrel_heat) overheated = TRUE - playsound(src, 'modular_skyrat/modules/gunsgalore/sound/guns/fire/mg_overheat.ogg', 100) + playsound(src, overheatsound, 100) particles = new /particles/smoke() addtimer(CALLBACK(src, PROC_REF(reset_overheat)), cooldown_time)