Mapping/Objects - Car sprites (#19912)

Adds objects utilizing the largely unused cars 2-10 sprites. While
automobile/random does exist, this will be a nice QoL for mappers. Also,
shuffles around the sprites in cars.dmi.
This commit is contained in:
courierbravo
2024-11-04 21:51:53 +00:00
committed by GitHub
parent 513facdb0d
commit 20f5f40cb6
5 changed files with 258 additions and 26 deletions
+177 -7
View File
@@ -7,19 +7,189 @@
density = TRUE
layer = 7
/obj/structure/automobile/random/Initialize(mapload)
. = ..()
ClearOverlays()
name = "[pick("deluxe Shibata Sport automotive","beat-up Poplar Auto Group automotive","weathered Shibata Sport automotive","beat-up Langenfeld automotive","deluxe Langenfeld automotive","weathered Langenfeld automotive")]"
desc = "A [name] vehicle of working condition."
icon_state = "car[rand(1, 10)]"
return
/obj/random/automobile
name = "random civilian automobile"
desc = "A random make/model/color of a civilian vehicle"
icon = 'icons/obj/structure/urban/cars.dmi'
icon_state = "random_car"
spawnlist = list(
/obj/structure/automobile/poplar_boxvan_blue/deluxe = 1,
/obj/structure/automobile/poplar_boxvan_blue/weathered = 3,
/obj/structure/automobile/poplar_boxvan_blue/beat_up = 2,
/obj/structure/automobile/poplar_boxvan_green/deluxe = 1,
/obj/structure/automobile/poplar_boxvan_green/weathered = 3,
/obj/structure/automobile/poplar_boxvan_green/beat_up = 2,
/obj/structure/automobile/shibata_compact_white/deluxe = 1,
/obj/structure/automobile/shibata_compact_white/weathered = 3,
/obj/structure/automobile/shibata_compact_white/beat_up = 2,
/obj/structure/automobile/shibata_compact_teal/deluxe = 1,
/obj/structure/automobile/shibata_compact_teal/weathered = 3,
/obj/structure/automobile/shibata_compact_teal/beat_up = 2,
/obj/structure/automobile/shibata_compact_cyan/deluxe = 1,
/obj/structure/automobile/shibata_compact_cyan/weathered = 3,
/obj/structure/automobile/shibata_compact_cyan/beat_up = 2,
/obj/structure/automobile/shibata_compact_yellow/deluxe = 1,
/obj/structure/automobile/shibata_compact_yellow/weathered = 3,
/obj/structure/automobile/shibata_compact_yellow/beat_up = 2,
/obj/structure/automobile/langenfeld_hybrid_green/deluxe = 1,
/obj/structure/automobile/langenfeld_hybrid_green/weathered = 3,
/obj/structure/automobile/langenfeld_hybrid_green/beat_up = 2,
/obj/structure/automobile/langenfeld_hybrid_red/deluxe = 1,
/obj/structure/automobile/langenfeld_hybrid_red/weathered = 3,
/obj/structure/automobile/langenfeld_hybrid_red/beat_up = 2,
/obj/structure/automobile/langenfeld_hybrid_purple/deluxe = 1,
/obj/structure/automobile/langenfeld_hybrid_purple/weathered = 3,
/obj/structure/automobile/langenfeld_hybrid_purple/beat_up = 2,
/obj/structure/automobile/langenfeld_hybrid_white/deluxe = 1,
/obj/structure/automobile/langenfeld_hybrid_white/weathered = 3,
/obj/structure/automobile/langenfeld_hybrid_white/beat_up = 2
)
/obj/structure/automobile/police
name = "police cruiser"
desc = "A police vehicle with all the bells and whistles you'd expect from a decently-funded agency."
icon_state = "copcar"
/obj/structure/automobile/poplar_boxvan_blue
name = "blue poplar auto group van"
desc = "A boxy blue van. Cars in this style are found everywhere in the spur."
icon_state = "car1"
/obj/structure/automobile/poplar_boxvan_blue/deluxe
name = "deluxe poplar auto group van"
/obj/structure/automobile/poplar_boxvan_blue/weathered
name = "weathered poplar auto group van"
/obj/structure/automobile/poplar_boxvan_blue/beat_up
name = "beat-up poplar auto group van"
/obj/structure/automobile/poplar_boxvan_green
name = "green poplar auto group van"
desc = "A boxy green van. Cars in this style are found everywhere in the spur."
icon_state = "car2"
/obj/structure/automobile/poplar_boxvan_green/deluxe
name = "deluxe poplar auto group van"
/obj/structure/automobile/poplar_boxvan_green/weathered
name = "weathered poplar auto group van"
/obj/structure/automobile/poplar_boxvan_green/beat_up
name = "beat-up poplar auto group van"
/obj/structure/automobile/shibata_compact_white
name = "white shibata sport compact"
desc = "A compact electric car with a light cream paint job."
icon_state = "car3"
/obj/structure/automobile/shibata_compact_white/deluxe
name = "deluxe shibata sport compact"
/obj/structure/automobile/shibata_compact_white/weathered
name = "weathered shibata sport compact"
/obj/structure/automobile/shibata_compact_white/beat_up
name = "beat-up shibata sport compact"
/obj/structure/automobile/shibata_compact_teal
name = "teal shibata sport compact"
desc = "A compact electric car with a teal paint job."
icon_state = "car4"
/obj/structure/automobile/shibata_compact_teal/deluxe
name = "deluxe shibata sport compact"
/obj/structure/automobile/shibata_compact_teal/weathered
name = "weathered shibata sport compact"
/obj/structure/automobile/shibata_compact_teal/beat_up
name = "beat-up shibata sport compact"
/obj/structure/automobile/shibata_compact_cyan
name = "cyan shibata sport compact"
desc = "A compact electric car with a cyan paint job."
icon_state = "car5"
/obj/structure/automobile/shibata_compact_cyan/deluxe
name = "deluxe shibata sport compact"
/obj/structure/automobile/shibata_compact_cyan/weathered
name = "weathered shibata sport compact"
/obj/structure/automobile/shibata_compact_cyan/beat_up
name = "beat-up shibata sport compact"
/obj/structure/automobile/shibata_compact_yellow
name = "yellow shibata sport compact"
desc = "A compact electric car with a yellow paint job."
icon_state = "car6"
/obj/structure/automobile/shibata_compact_yellow/deluxe
name = "deluxe shibata sport compact"
/obj/structure/automobile/shibata_compact_yellow/weathered
name = "weathered shibata sport compact"
/obj/structure/automobile/shibata_compact_yellow/beat_up
name = "beat-up shibata sport compact"
/obj/structure/automobile/langenfeld_hybrid_green
name = "green langenfeld hybrid"
desc = "A hybrid combustion-electric car. Popular anywhere where electricity is expensive. This one has an olive green paint job."
icon_state = "car7"
/obj/structure/automobile/langenfeld_hybrid_green/deluxe
name = "deluxe langenfeld compact"
/obj/structure/automobile/langenfeld_hybrid_green/weathered
name = "weathered langenfeld compact"
/obj/structure/automobile/langenfeld_hybrid_green/beat_up
name = "beat-up langenfeld compact"
/obj/structure/automobile/langenfeld_hybrid_red
name = "red langenfeld hybrid"
desc = "A hybrid combustion-electric car. Popular anywhere where electricity is expensive. This one has a darker red paint job."
icon_state = "car8"
/obj/structure/automobile/langenfeld_hybrid_red/deluxe
name = "deluxe langenfeld compact"
/obj/structure/automobile/langenfeld_hybrid_red/weathered
name = "weathered langenfeld compact"
/obj/structure/automobile/langenfeld_hybrid_red/beat_up
name = "beat-up langenfeld compact"
/obj/structure/automobile/langenfeld_hybrid_purple
name = "purple langenfeld hybrid"
desc = "A hybrid combustion-electric car. Popular anywhere where electricity is expensive. This one has a midnight purple paint job."
icon_state = "car9"
/obj/structure/automobile/langenfeld_hybrid_purple/deluxe
name = "deluxe langenfeld compact"
/obj/structure/automobile/langenfeld_hybrid_purple/weathered
name = "weathered langenfeld compact"
/obj/structure/automobile/langenfeld_hybrid_purple/beat_up
name = "beat-up langenfeld compact"
/obj/structure/automobile/langenfeld_hybrid_white
name = "white langenfeld hybrid"
desc = "A hybrid combustion-electric car. Popular anywhere where electricity is expensive. This one has a light cream paint job."
icon_state = "car10"
/obj/structure/automobile/langenfeld_hybrid_white/deluxe
name = "deluxe langenfeld compact"
/obj/structure/automobile/langenfeld_hybrid_white/weathered
name = "weathered langenfeld compact"
/obj/structure/automobile/langenfeld_hybrid_white/beat_up
name = "beat-up langenfeld compact"
/obj/structure/automobile_filler
name = "vehicle"
desc = "A piece of a larger vehicle."