Skip to content

Commit

Permalink
CV90 turret + pre-made fix
Browse files Browse the repository at this point in the history
Might need switch the M249 to the M60 for the turret's MG
  • Loading branch information
savethetreez committed May 20, 2024
1 parent 49261b0 commit c99bfc0
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 12 deletions.
10 changes: 5 additions & 5 deletions code/modules/1713/machinery/modular_vehicles/carparts/premade.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1175,13 +1175,13 @@
axis = /obj/structure/vehicleparts/axis/heavy/cv90
tocreate = list(
"1,1" = list(/obj/structure/vehicleparts/movement/tracks/right,/obj/structure/vehicleparts/frame/cv90/rf),
"2,1" = list(/obj/structure/vehicleparts/movement/tracks/left,/obj/structure/vehicleparts/frame/cv90/lf),
"2,1" = list(/obj/structure/vehicleparts/movement/tracks/left,/obj/structure/vehicleparts/frame/cv90/lf,/obj/structure/bed/chair/drivers/tank),

"1,2" = list(/obj/structure/vehicleparts/frame/cv90/rfc,/obj/item/tank_system/aps/ironfist,/obj/item/weapon/gun/projectile/automatic/stationary/autocannon/shipunov2a72),
"2,2" = list(/obj/structure/vehicleparts/frame/cv90/lfc,/obj/structure/bed/chair/drivers/tank),
"1,2" = list(/obj/structure/vehicleparts/frame/cv90/rfc,/obj/structure/turret/cv90{density = 0}),
"2,2" = list(/obj/structure/vehicleparts/frame/cv90/lfc),

"1,3" = list(/obj/structure/vehicleparts/frame/cv90/rbc,/obj/structure/lamp/lamp_small/tank/red,/obj/item/ammo_magazine/a30mm_ap/btr80,/obj/item/ammo_magazine/a30mm_ap/btr80,/obj/item/ammo_magazine/a30mm_he/btr80),
"2,3" = list(/obj/structure/vehicleparts/frame/cv90/lbc),
"1,3" = list(/obj/structure/vehicleparts/frame/cv90/rbc,/obj/structure/lamp/lamp_small/tank/red,/obj/item/ammo_magazine/a35mm_fap,/obj/item/ammo_magazine/a35mm_fap,/obj/item/ammo_magazine/a35mm_hei,/obj/item/ammo_magazine/a35mm_hei),
"2,3" = list(/obj/structure/vehicleparts/frame/cv90/lbc,/obj/item/ammo_magazine/m249,/obj/item/ammo_magazine/m249,/obj/item/ammo_magazine/m249),

"1,4" = list(/obj/structure/vehicleparts/movement/tracks/left/reversed,/obj/structure/vehicleparts/frame/cv90/rb,/obj/structure/engine/internal/diesel/premade/btr80,/obj/item/weapon/reagent_containers/glass/barrel/fueltank/tank/fueleddiesel{density = 0}),
"2,4" = list(/obj/structure/vehicleparts/movement/tracks/right/reversed,/obj/structure/vehicleparts/frame/cv90/lb),
Expand Down
5 changes: 5 additions & 0 deletions code/modules/1713/machinery/vehicles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,11 @@
reg_number = ""
color = "#5C5C4C"
vehicle_type = "apc"
New()
..()
var/pickedname = pick(tank_names_nato)
tank_names_nato -= pickedname
name = "[name] \'[pickedname]\'"

/obj/structure/vehicleparts/axis/heavy/t80u
name = "T-80U"
Expand Down
33 changes: 29 additions & 4 deletions code/modules/1713/siege/turret.dm
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@

for (var/obj/structure/vehicleparts/frame/F in loc)
vehicle_dir = F.dir
if (F.axis && F.axis.color)
turret_color = F.axis.color

if(vehicle_dir != 0)
switch(vehicle_dir)
Expand Down Expand Up @@ -832,7 +834,6 @@
name = "T-80UK"

/obj/structure/turret/t90a
turret_color = "#4a5243"
turret_icon = "t90a_turret"
name = "T-90A"

Expand Down Expand Up @@ -1107,7 +1108,6 @@
..()

/obj/structure/turret/bradley
turret_color = "#787859"
turret_icon = "bradley_turret"
name = "Bradley"

Expand All @@ -1125,6 +1125,33 @@

rotation_speed = 0.3

New()
gunner_seat = new /obj/structure/bed/chair/gunner(src.loc)
gunner_seat.setup(src)
commander_seat = new /obj/structure/bed/chair/commander(src.loc)
commander_seat.setup(src)
weapons.Add(new/obj/item/weapon/gun/projectile/automatic/stationary/autocannon/bushmaster/bradley(src))
weapons.Add(new/obj/item/weapon/gun/projectile/automatic/manual/m249(src))
..()

/obj/structure/turret/cv90
turret_icon = "cv90_turret"
name = "CV90"

icon = 'icons/obj/guns/mgs.dmi'
icon_state = "autocannon"

turret_x = 16
turret_y = 24

gunner_x = -8
gunner_y = 0

commander_x = 8
commander_y = 0

rotation_speed = 0.3

New()
gunner_seat = new /obj/structure/bed/chair/gunner(src.loc)
gunner_seat.setup(src)
Expand Down Expand Up @@ -1179,7 +1206,6 @@
*/

/obj/structure/turret/m1abrams
turret_color = "#787859"
turret_icon = "m1a1_turret"
name = "M1A1_turret"

Expand Down Expand Up @@ -1209,7 +1235,6 @@
..()

/obj/structure/turret/challenger2
turret_color = "#787859"
turret_icon = "challenger2_turret"
name = "Challenger-2"

Expand Down
6 changes: 3 additions & 3 deletions code/modules/1713/weapons/guns/mg/stationary/mg.dm
Original file line number Diff line number Diff line change
Expand Up @@ -548,11 +548,11 @@
desc = "The Bushmaster III is a chain gun, like the other members of the Bushmaster family, which grants it great dependability and safety from ammunition cook-off even though it does result in lower rates of fire."
icon_state = "autocannon"
base_icon = "autocannon"
caliber = "a30"
caliber = "a35"
fire_sound = 'sound/weapons/guns/fire/2a72.ogg'
handle_casings = EJECT_CASINGS
magazine_type = /obj/item/ammo_magazine/a30mm_ap/btr80
good_mags = list(/obj/item/ammo_magazine/a30mm_ap/btr80, /obj/item/ammo_magazine/a30mm_he/btr80)
magazine_type = /obj/item/ammo_magazine/a35mm_fap
good_mags = list(/obj/item/ammo_magazine/a35mm_fap, /obj/item/ammo_magazine/a35mm_hei)
firemodes = list(
list(name = "automatic", burst=1, burst_delay=3, accuracy=list(2)),
)
Expand Down
Binary file modified icons/obj/vehicles/vehicles256x256.dmi
Binary file not shown.

0 comments on commit c99bfc0

Please sign in to comment.