Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions code/game/machinery/vending/vendor_types/crew/vehicle_crew.dm
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@

if("ARC")
display_list = GLOB.cm_vending_vehicle_crew_arc
if("HUMVEE")
display_list = GLOB.cm_vending_vehicle_crew_humvee

if("APC")
if(available_categories)
Expand Down Expand Up @@ -204,6 +206,12 @@ GLOBAL_LIST_INIT(cm_vending_vehicle_crew_arc, list(
list("WHEELS", 0, null, null, null),
list("Replacement ARC Wheels", 0, /obj/item/hardpoint/locomotion/arc_wheels, VEHICLE_TREADS_AVAILABLE, VENDOR_ITEM_MANDATORY)))

GLOBAL_LIST_INIT(cm_vending_vehicle_crew_humvee, list(
list("STARTING KIT SELECTION:", 0, null, null, null),

list("WHEELS", 0, null, null, null),
list("Replacement Humvee Wheels", 0, /obj/item/hardpoint/locomotion/humvee_wheels, VEHICLE_TREADS_AVAILABLE, VENDOR_ITEM_MANDATORY)))

//------------WEAPONS RACK---------------

/obj/structure/machinery/cm_vending/sorted/cargo_guns/vehicle_crew
Expand Down
15 changes: 15 additions & 0 deletions code/game/supplyshuttle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,21 @@ GLOBAL_DATUM_INIT(supply_controller, /datum/controller/supply, new())
/datum/vehicle_order/arc/has_vehicle_lock()
return

/datum/vehicle_order/humvee
name = "M2420 JTMV-HWC Heavy Weapon Carrier"
ordered_vehicle = /obj/effect/vehicle_spawner/humvee

/datum/vehicle_order/humvee/medical
name = "M2421 JTMV-Ambulance"
ordered_vehicle = /obj/effect/vehicle_spawner/humvee/medical

/datum/vehicle_order/humvee/transport
name = "M2422 JTMV-Utility"
ordered_vehicle = /obj/effect/vehicle_spawner/humvee/transport

/datum/vehicle_order/humvee/has_vehicle_lock()
return

/obj/structure/machinery/computer/supply/asrs/vehicle/Initialize()
. = ..()

Expand Down
2 changes: 1 addition & 1 deletion code/modules/cm_tech/techs/marine/tier1/arc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

var/obj/structure/machinery/cm_vending/gear/vehicle_crew/gearcomp = GLOB.VehicleGearConsole

if(gearcomp.selected_vehicle == "TANK")
if(gearcomp.selected_vehicle == "TANK" || gearcomp.selected_vehicle == "HUMVEE")
to_chat(unlocking_mob, SPAN_WARNING ("A vehicle has already been selected for this operation."))
return FALSE

Expand Down
55 changes: 55 additions & 0 deletions code/modules/cm_tech/techs/marine/tier1/humvee.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/datum/tech/humvee
name = "M24 Series JTMV Vehicle"
desc = "Purchase an M24 Series JTMV, a M2420 JTMV-HWC Heavy Weapon Carrier, M2421 JTMV-Ambulance, or M2422 JTMV-Utility variant may be selected."
icon_state = "upgrade"

required_points = 5

tier = /datum/tier/one

announce_name = "M24 Series JTMV ACQUIRED"
announce_message = "An M24 Series JTMV has been authorized and will be delivered in the vehicle bay."

flags = TREE_FLAG_MARINE


/datum/tech/humvee/can_unlock(mob/unlocking_mob)
. = ..()

var/obj/structure/machinery/cm_vending/gear/vehicle_crew/gearcomp = GLOB.VehicleGearConsole

if(gearcomp.selected_vehicle == "TANK" || gearcomp.selected_vehicle == "ARC")
to_chat(unlocking_mob, SPAN_WARNING ("A vehicle has already been selected for this operation."))
return FALSE

return TRUE


/datum/tech/humvee/on_unlock()
. = ..()

var/obj/structure/machinery/computer/supply/asrs/vehicle/comp = GLOB.VehicleElevatorConsole
var/obj/structure/machinery/cm_vending/gear/vehicle_crew/gearcomp = GLOB.VehicleGearConsole

if(!comp || !gearcomp)
return FALSE

comp.spent = FALSE
QDEL_NULL_LIST(comp.vehicles)
comp.vehicles = list(
new /datum/vehicle_order/humvee(),
new /datum/vehicle_order/humvee/medical(),
new /datum/vehicle_order/humvee/transport()
)
comp.allowed_roles = list(JOB_SYNTH, JOB_SEA, JOB_SO, JOB_XO, JOB_CO, JOB_GENERAL)
comp.req_access = list(ACCESS_MARINE_COMMAND)
comp.req_one_access = list()
comp.spent = FALSE

gearcomp.req_access = list(ACCESS_MARINE_COMMAND)
gearcomp.req_one_access = list()
gearcomp.vendor_role = list()
gearcomp.selected_vehicle = "HUMVEE"
gearcomp.available_categories = VEHICLE_ALL_AVAILABLE

return TRUE
1 change: 0 additions & 1 deletion code/modules/vehicles/humvee/humvee.dm
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,4 @@
humvee.update_icon()

/obj/effect/vehicle_spawner/humvee/load_hardpoints(obj/vehicle/multitile/V)
. = ..()
V.add_hardpoint(new /obj/item/hardpoint/locomotion/humvee_wheels)
1 change: 0 additions & 1 deletion code/modules/vehicles/humvee/humvee_medical.dm
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,4 @@
humvee.update_icon()

/obj/effect/vehicle_spawner/humvee/medical/load_hardpoints(obj/vehicle/multitile/V)
. = ..()
V.add_hardpoint(new /obj/item/hardpoint/locomotion/humvee_wheels)
1 change: 1 addition & 0 deletions colonialmarines.dme
Original file line number Diff line number Diff line change
Expand Up @@ -1844,6 +1844,7 @@
#include "code\modules\cm_tech\techs\abstract\repeatable.dm"
#include "code\modules\cm_tech\techs\abstract\transitory.dm"
#include "code\modules\cm_tech\techs\marine\tier1\arc.dm"
#include "code\modules\cm_tech\techs\marine\tier1\humvee.dm"
#include "code\modules\cm_tech\techs\marine\tier1\points.dm"
#include "code\modules\cm_tech\techs\marine\tier2\orbital_ammo.dm"
#include "code\modules\cm_tech\techs\marine\tier3\cryo_spec.dm"
Expand Down