[MODULAR] Implement/remove unused mounted machine gun vars (#21623)

Implement or remove unused MMG vars
This commit is contained in:
Penelope Haze
2023-06-07 12:21:28 -07:00
committed by GitHub
parent 47a5c63595
commit 90aeb13538
@@ -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)