Skip to content

Commit

Permalink
BTR-80 wheel unfuckening attempt
Browse files Browse the repository at this point in the history
Lost my will to live after attempting to fix them.
TO-DO:
- Figure out why the top part of the wheels isn't appearing when the APC is facing EAST/WEST (issue is most likely in frame_icons.dm)
- Sprite wheel movement
  • Loading branch information
savethetreez committed May 20, 2024
1 parent c99bfc0 commit 54c48ff
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1155,17 +1155,17 @@
custom_color = "#4A5243"
axis = /obj/structure/vehicleparts/axis/heavy/btr80
tocreate = list(
"1,1" = list(/obj/structure/vehicleparts/movement/armored/btr,/obj/structure/vehicleparts/frame/btr80/rf),
"2,1" = list(/obj/structure/vehicleparts/movement/armored/btr,/obj/structure/vehicleparts/frame/btr80/lf,/obj/structure/bed/chair/drivers/tank,/obj/structure/radio/transmitter_receiver/nopower/tank/faction2),
"1,1" = list(/obj/structure/vehicleparts/movement/armored/btr/right,/obj/structure/vehicleparts/frame/btr80/rf),
"2,1" = list(/obj/structure/vehicleparts/movement/armored/btr/left,/obj/structure/vehicleparts/frame/btr80/lf,/obj/structure/bed/chair/drivers/tank,/obj/structure/radio/transmitter_receiver/nopower/tank/faction2),

"1,2" = list(/obj/structure/vehicleparts/frame/btr80/rfc,/obj/structure/turret/btr80),
"2,2" = list(/obj/structure/vehicleparts/frame/btr80/lfc,/obj/item/ammo_magazine/pkm,/obj/item/ammo_magazine/pkm),

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

"1,4" = list(/obj/structure/vehicleparts/movement/armored/reversed,/obj/structure/vehicleparts/frame/btr80/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/armored/reversed,/obj/structure/vehicleparts/frame/btr80/lb),
"1,4" = list(/obj/structure/vehicleparts/movement/armored/btr/right/reversed,/obj/structure/vehicleparts/frame/btr80/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/armored/btr/left/reversed,/obj/structure/vehicleparts/frame/btr80/lb),
)

/obj/effects/premadevehicles/apc/cv90
Expand Down
48 changes: 25 additions & 23 deletions code/modules/1713/machinery/modular_vehicles/movement.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,32 @@

/obj/structure/vehicleparts/movement/armored/btr
name = "armored wheels"
icon_state = "wheel_t_dark"
base_icon = "wheel_t_dark"
movement_icon = "wheel_t_dark_m"
ntype = "wheel"
/obj/structure/vehicleparts/movement/tracks/btr/left_front
icon = 'icons/obj/vehicles/apcparts96x96.dmi'
icon_state = "btr80_tracks_left_front"
base_icon = "btr80_tracks_left_front"
movement_icon = "btr80_tracks_left_front_m"
/obj/structure/vehicleparts/movement/tracks/btr/right_front
icon = 'icons/obj/vehicles/apcparts96x96.dmi'
icon_state = "btr80_tracks_right_front"
base_icon = "btr80_tracks_right_front"
movement_icon = "btr80_tracks_right_front_m"
/obj/structure/vehicleparts/movement/tracks/btr/left_back
icon = 'icons/obj/vehicles/apcparts96x96.dmi'
icon_state = "btr80_tracks_left_back"
base_icon = "btr80_tracks_left_back"
movement_icon = "btr80_tracks_left_back_m"
/obj/structure/vehicleparts/movement/tracks/btr/right_back
icon = 'icons/obj/vehicles/apcparts96x96.dmi'
icon_state = "btr80_tracks_right_back"
base_icon = "btr80_tracks_right_back"
movement_icon = "btr80_tracks_right_back_m"
normal_icon = 'icons/obj/vehicles/apcparts96x96.dmi'
broken_icon = 'icons/obj/vehicles/apcparts96x96_damaged.dmi'
icon_state = "btr80_wheels_front_left"
base_icon = "btr80_wheels_front_left"
movement_icon = "btr80_wheels_front_left_m"
ntype = "wheel"
/obj/structure/vehicleparts/movement/armored/btr/left
icon_state = "btr80_wheels_front_left"
base_icon = "btr80_wheels_front_left"
movement_icon = "btr80_wheels_front_left_m"
/obj/structure/vehicleparts/movement/armored/btr/right
icon_state = "btr80_wheels_front_right"
base_icon = "btr80_wheels_front_right"
movement_icon = "btr80_wheels_front_right_m"
/obj/structure/vehicleparts/movement/armored/btr/left/reversed
reversed = TRUE
icon_state = "btr80_wheels_back_left"
base_icon = "btr80_wheels_back_left"
movement_icon = "btr80_wheels_back_left_m"
/obj/structure/vehicleparts/movement/armored/btr/right/reversed
icon_state = "btr80_wheels_back_right"
base_icon = "btr80_wheels_back_right"
movement_icon = "btr80_wheels_back_right_m"
reversed = TRUE


/obj/structure/vehicleparts/movement/tracks
name = "armored tracks"
Expand Down
Binary file modified icons/obj/vehicles/apcparts96x96.dmi
Binary file not shown.
Binary file modified icons/obj/vehicles/apcparts96x96_damaged.dmi
Binary file not shown.

0 comments on commit 54c48ff

Please sign in to comment.