Skip to content

Commit

Permalink
minor reorganization
Browse files Browse the repository at this point in the history
  • Loading branch information
Doubleumc committed Nov 8, 2023
1 parent 8fe84a2 commit f3d20ce
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 103 deletions.
6 changes: 2 additions & 4 deletions code/modules/vehicles/apc/apc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ GLOBAL_LIST_EMPTY(command_apc_list)
/obj/vehicle/multitile/proc/activate_horn,
/obj/vehicle/multitile/proc/switch_hardpoint,
/obj/vehicle/multitile/proc/cycle_hardpoint,
///obj/vehicle/multitile/proc/cycle_firemode,
/obj/vehicle/multitile/proc/name_vehicle
))
else if(seat == VEHICLE_GUNNER)
Expand Down Expand Up @@ -140,15 +139,14 @@ GLOBAL_LIST_EMPTY(command_apc_list)
/obj/vehicle/multitile/proc/activate_horn,
/obj/vehicle/multitile/proc/switch_hardpoint,
/obj/vehicle/multitile/proc/cycle_hardpoint,
///obj/vehicle/multitile/proc/cycle_firemode,
/obj/vehicle/multitile/proc/name_vehicle
/obj/vehicle/multitile/proc/name_vehicle,
))
else if(seat == VEHICLE_GUNNER)
remove_verb(M.client, list(
/obj/vehicle/multitile/proc/switch_hardpoint,
/obj/vehicle/multitile/proc/cycle_hardpoint,
/obj/vehicle/multitile/proc/toggle_shift_click,
/obj/vehicle/multitile/proc/name_vehicle
/obj/vehicle/multitile/proc/name_vehicle,
))
else if(seat == VEHICLE_SUPPORT_GUNNER_ONE || seat == VEHICLE_SUPPORT_GUNNER_TWO)
remove_verb(M.client, list(
Expand Down
59 changes: 4 additions & 55 deletions code/modules/vehicles/hardpoints/holder/tank_turret.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
density = TRUE //come on, it's huge

activatable = TRUE
//accuracy = 0.8

ammo = new /obj/item/ammo_magazine/hardpoint/turret_smoke
max_clips = 2
Expand Down Expand Up @@ -59,14 +58,14 @@
// Used during the windup
var/rotating = FALSE

burst_amount = 2
burst_delay = 1.0 SECONDS
extra_delay = 13.0 SECONDS
scatter = 4
gun_firemode = GUN_FIREMODE_BURSTFIRE
gun_firemode_list = list(
GUN_FIREMODE_BURSTFIRE,
)
scatter = 4
burst_amount = 2
burst_delay = 1.0 SECONDS
extra_delay = 13.0 SECONDS

/obj/item/hardpoint/holder/tank_turret/update_icon()
var/broken = (health <= 0)
Expand Down Expand Up @@ -218,53 +217,3 @@
var/origin_turf = ..()
origin_turf = get_step(get_step(origin_turf, owner.dir), owner.dir) //this should get us tile in front of tank to prevent grenade being stuck under us.
return origin_turf

/*
/obj/item/hardpoint/holder/tank_turret/fire(mob/user, atom/A)
if(ammo.current_rounds <= 0)
return
next_use = world.time + cooldown
var/turf/L
var/turf/R
switch(owner.dir)
if(NORTH)
L = locate(owner.x - 2, owner.y + 4, owner.z)
R = locate(owner.x + 2, owner.y + 4, owner.z)
if(SOUTH)
L = locate(owner.x + 2, owner.y - 4, owner.z)
R = locate(owner.x - 2, owner.y - 4, owner.z)
if(EAST)
L = locate(owner.x + 4, owner.y + 2, owner.z)
R = locate(owner.x + 4, owner.y - 2, owner.z)
else
L = locate(owner.x - 4, owner.y + 2, owner.z)
R = locate(owner.x - 4, owner.y - 2, owner.z)
if(LAZYLEN(activation_sounds))
playsound(get_turf(src), pick(activation_sounds), 60, 1)
fire_projectile(user, L)
sleep(10)
if(LAZYLEN(activation_sounds))
playsound(get_turf(src), pick(activation_sounds), 60, 1)
fire_projectile(user, R)
to_chat(user, SPAN_WARNING("Smoke Screen uses left: <b>[SPAN_HELPFUL(ammo ? ammo.current_rounds / 2 : 0)]/[SPAN_HELPFUL(ammo ? ammo.max_rounds / 2 : 0)]</b> | Mags: <b>[SPAN_HELPFUL(LAZYLEN(backup_clips))]/[SPAN_HELPFUL(max_clips)]</b>"))
*/

/*
/obj/item/hardpoint/holder/tank_turret/fire_projectile(mob/user, atom/A)
set waitfor = 0
var/turf/origin_turf = get_turf(src)
origin_turf = locate(origin_turf.x + origins[1], origin_turf.y + origins[2], origin_turf.z)
origin_turf = get_step(get_step(origin_turf, owner.dir), owner.dir) //this should get us tile in front of tank to prevent grenade being stuck under us.
var/obj/projectile/P = generate_bullet(user, origin_turf)
SEND_SIGNAL(P, COMSIG_BULLET_USER_EFFECTS, owner.seats[VEHICLE_GUNNER])
P.fire_at(A, owner.seats[VEHICLE_GUNNER], src, get_dist(origin_turf, A) + 1, P.ammo.shell_speed)
ammo.current_rounds--
*/
5 changes: 2 additions & 3 deletions code/modules/vehicles/hardpoints/primary/autocannon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
activation_sounds = list('sound/weapons/vehicles/autocannon_fire.ogg')

health = 500
//accuracy = 0.98
firing_arc = 60

origins = list(0, -3)
Expand All @@ -23,9 +22,9 @@
"8" = list(-32, 0)
)

fire_delay = 0.7 SECONDS
scatter = 1
gun_firemode = GUN_FIREMODE_AUTOMATIC
gun_firemode_list = list(
GUN_FIREMODE_AUTOMATIC,
)
scatter = 1
fire_delay = 0.7 SECONDS
5 changes: 2 additions & 3 deletions code/modules/vehicles/hardpoints/primary/dual_cannon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
damage_multiplier = 0.2

health = 500
//accuracy = 0.98
firing_arc = 60

origins = list(0, -2)
Expand All @@ -33,12 +32,12 @@
"8" = list(14, 9)
)

fire_delay = 0.3 SECONDS
scatter = 1
gun_firemode = GUN_FIREMODE_AUTOMATIC
gun_firemode_list = list(
GUN_FIREMODE_AUTOMATIC,
)
scatter = 1
fire_delay = 0.3 SECONDS

/obj/item/hardpoint/primary/dualcannon/set_bullet_traits()
..()
Expand Down
3 changes: 1 addition & 2 deletions code/modules/vehicles/hardpoints/primary/flamer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
activation_sounds = list('sound/weapons/vehicles/flamethrower.ogg')

health = 400
//accuracy = 0.75
firing_arc = 90

origins = list(0, -3)
Expand All @@ -25,8 +24,8 @@

use_muzzle_flash = FALSE

fire_delay = 2.0 SECONDS
scatter = 5
fire_delay = 2.0 SECONDS

/obj/item/hardpoint/primary/flamer/set_bullet_traits()
..()
Expand Down
7 changes: 1 addition & 6 deletions code/modules/vehicles/hardpoints/primary/ltb.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
activation_sounds = list('sound/weapons/vehicles/cannon_fire1.ogg', 'sound/weapons/vehicles/cannon_fire2.ogg')

health = 500
//accuracy = 0.97
firing_arc = 60

origins = list(0, -3)
Expand All @@ -30,9 +29,5 @@
"8" = list(-89, -4)
)

fire_delay = 20.0 SECONDS
gun_firemode = GUN_FIREMODE_SEMIAUTO
gun_firemode_list = list(
GUN_FIREMODE_SEMIAUTO,
)
scatter = 2
fire_delay = 20.0 SECONDS
5 changes: 2 additions & 3 deletions code/modules/vehicles/hardpoints/primary/minigun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
disp_icon_state = "ltaaap_minigun"

health = 350
//accuracy = 0.6
firing_arc = 90

origins = list(0, -3)
Expand All @@ -29,12 +28,12 @@
"8" = list(-77, 0)
)

fire_delay = 0.8 SECONDS
scatter = 7
gun_firemode = GUN_FIREMODE_AUTOMATIC
gun_firemode_list = list(
GUN_FIREMODE_AUTOMATIC,
)
scatter = 7
fire_delay = 0.8 SECONDS

//var/start_sound = 'sound/weapons/vehicles/minigun_start.ogg'
//var/loop_sound = 'sound/weapons/vehicles/minigun_loop.ogg'
Expand Down
9 changes: 4 additions & 5 deletions code/modules/vehicles/hardpoints/secondary/cupola.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
activation_sounds = list('sound/weapons/gun_smartgun1.ogg', 'sound/weapons/gun_smartgun2.ogg', 'sound/weapons/gun_smartgun3.ogg', 'sound/weapons/gun_smartgun4.ogg')

health = 350
//accuracy = 0.9
firing_arc = 120

origins = list(0, -2)
Expand All @@ -23,14 +22,14 @@
"8" = list(-5, 7)
)

burst_amount = 3
burst_delay = 0.3 SECONDS
extra_delay = 0.6 SECONDS
scatter = 3
gun_firemode = GUN_FIREMODE_BURSTFIRE
gun_firemode_list = list(
GUN_FIREMODE_BURSTFIRE,
)
scatter = 3
burst_amount = 3
burst_delay = 0.3 SECONDS
extra_delay = 0.6 SECONDS

/obj/item/hardpoint/secondary/m56cupola/set_bullet_traits()
..()
Expand Down
3 changes: 1 addition & 2 deletions code/modules/vehicles/hardpoints/secondary/flamer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
activation_sounds = list('sound/weapons/vehicles/flamethrower.ogg')

health = 300
//accuracy = 0.68
firing_arc = 120

origins = list(0, -2)
Expand All @@ -26,8 +25,8 @@
"4" = list(3, 0),
"8" = list(-3, 18)
)
scatter = 6

scatter = 6
fire_delay = 3.0 SECONDS

/obj/item/hardpoint/secondary/small_flamer/handle_fire(atom/target, mob/living/user, params)
Expand Down
5 changes: 2 additions & 3 deletions code/modules/vehicles/hardpoints/secondary/frontal_cannon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
damage_multiplier = 0.11

health = 350
//accuracy = 0.8
firing_arc = 120

origins = list(0, -2)
Expand All @@ -32,12 +31,12 @@
"8" = list(-62, -26)
)

fire_delay = 0.3 SECONDS
scatter = 4
gun_firemode = GUN_FIREMODE_AUTOMATIC
gun_firemode_list = list(
GUN_FIREMODE_AUTOMATIC,
)
scatter = 4
fire_delay = 0.3 SECONDS

/obj/item/hardpoint/secondary/frontalcannon/set_bullet_traits()
..()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
activation_sounds = list('sound/weapons/gun_m92_attachable.ogg')

health = 500
//accuracy = 0.4
firing_arc = 90
var/max_range = 7

Expand All @@ -25,8 +24,8 @@
"4" = list(6, 0),
"8" = list(-6, 17)
)
scatter = 10

scatter = 10
fire_delay = 3.0 SECONDS

/obj/item/hardpoint/secondary/grenade_launcher/set_bullet_traits()
Expand Down
7 changes: 1 addition & 6 deletions code/modules/vehicles/hardpoints/secondary/tow.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
disp_icon_state = "towlauncher"

health = 500
//accuracy = 0.8
firing_arc = 60

origins = list(0, -2)
Expand All @@ -29,10 +28,6 @@
"8" = list(-5, 10)
)

fire_delay = 15.0 SECONDS
gun_firemode = GUN_FIREMODE_SEMIAUTO
gun_firemode_list = list(
GUN_FIREMODE_SEMIAUTO,
)
scatter = 4
fire_delay = 15.0 SECONDS

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
activation_sounds = list('sound/weapons/gun_smartgun1.ogg', 'sound/weapons/gun_smartgun2.ogg', 'sound/weapons/gun_smartgun3.ogg', 'sound/weapons/gun_smartgun4.ogg')

health = 100
//accuracy = 0.9
firing_arc = 120
//FPWs reload automatically
var/reloading = FALSE
Expand All @@ -28,12 +27,12 @@

underlayer_north_muzzleflash = TRUE

fire_delay = 0.3 SECONDS
scatter = 3
gun_firemode = GUN_FIREMODE_AUTOMATIC
gun_firemode_list = list(
GUN_FIREMODE_AUTOMATIC,
)
scatter = 3
fire_delay = 0.3 SECONDS

/obj/item/hardpoint/special/firing_port_weapon/set_bullet_traits()
..()
Expand Down
7 changes: 1 addition & 6 deletions code/modules/vehicles/hardpoints/support/flare.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
activatable = TRUE

health = 500
//accuracy = 0.7
firing_arc = 120

origins = list(0, -2)
Expand All @@ -34,12 +33,8 @@
"8" = list(14, -6)
)

fire_delay = 3.0 SECONDS
gun_firemode = GUN_FIREMODE_SEMIAUTO
gun_firemode_list = list(
GUN_FIREMODE_SEMIAUTO,
)
scatter = 6
fire_delay = 3.0 SECONDS

/obj/item/hardpoint/support/flare_launcher/set_bullet_traits()
..()
Expand Down

0 comments on commit f3d20ce

Please sign in to comment.