From ece3f43d2c52e6a7c61aa73712527461654de5b5 Mon Sep 17 00:00:00 2001 From: Doubleumc Date: Thu, 26 Oct 2023 23:52:28 -0400 Subject: [PATCH] APC single crew (#26) --- code/modules/vehicles/apc/apc.dm | 4 ++++ code/modules/vehicles/apc/apc_command.dm | 4 ++++ code/modules/vehicles/apc/apc_medical.dm | 4 ++++ code/modules/vehicles/hardpoints/primary/dual_cannon.dm | 2 ++ code/modules/vehicles/hardpoints/secondary/frontal_cannon.dm | 2 ++ code/modules/vehicles/hardpoints/support/flare.dm | 2 ++ 6 files changed, 18 insertions(+) diff --git a/code/modules/vehicles/apc/apc.dm b/code/modules/vehicles/apc/apc.dm index d71db37074..60d21f7090 100644 --- a/code/modules/vehicles/apc/apc.dm +++ b/code/modules/vehicles/apc/apc.dm @@ -108,6 +108,8 @@ GLOBAL_LIST_EMPTY(command_apc_list) add_verb(M.client, list( /obj/vehicle/multitile/proc/toggle_door_lock, /obj/vehicle/multitile/proc/activate_horn, + /obj/vehicle/multitile/proc/switch_hardpoint, + /obj/vehicle/multitile/proc/cycle_hardpoint, /obj/vehicle/multitile/proc/name_vehicle )) else if(seat == VEHICLE_GUNNER) @@ -135,6 +137,8 @@ GLOBAL_LIST_EMPTY(command_apc_list) remove_verb(M.client, list( /obj/vehicle/multitile/proc/toggle_door_lock, /obj/vehicle/multitile/proc/activate_horn, + /obj/vehicle/multitile/proc/switch_hardpoint, + /obj/vehicle/multitile/proc/cycle_hardpoint, /obj/vehicle/multitile/proc/name_vehicle, )) else if(seat == VEHICLE_GUNNER) diff --git a/code/modules/vehicles/apc/apc_command.dm b/code/modules/vehicles/apc/apc_command.dm index 67051cd1a6..1e9fba7371 100644 --- a/code/modules/vehicles/apc/apc_command.dm +++ b/code/modules/vehicles/apc/apc_command.dm @@ -98,6 +98,8 @@ add_verb(M.client, list( /obj/vehicle/multitile/proc/toggle_door_lock, /obj/vehicle/multitile/proc/activate_horn, + /obj/vehicle/multitile/proc/switch_hardpoint, + /obj/vehicle/multitile/proc/cycle_hardpoint, )) else if(seat == VEHICLE_GUNNER) add_verb(M.client, list( @@ -119,6 +121,8 @@ remove_verb(M.client, list( /obj/vehicle/multitile/proc/toggle_door_lock, /obj/vehicle/multitile/proc/activate_horn, + /obj/vehicle/multitile/proc/switch_hardpoint, + /obj/vehicle/multitile/proc/cycle_hardpoint, )) else if(seat == VEHICLE_GUNNER) remove_verb(M.client, list( diff --git a/code/modules/vehicles/apc/apc_medical.dm b/code/modules/vehicles/apc/apc_medical.dm index 92813c988f..c3b3a16bd8 100644 --- a/code/modules/vehicles/apc/apc_medical.dm +++ b/code/modules/vehicles/apc/apc_medical.dm @@ -54,6 +54,8 @@ add_verb(M.client, list( /obj/vehicle/multitile/proc/toggle_door_lock, /obj/vehicle/multitile/proc/activate_horn, + /obj/vehicle/multitile/proc/switch_hardpoint, + /obj/vehicle/multitile/proc/cycle_hardpoint, )) else if(seat == VEHICLE_GUNNER) add_verb(M.client, list( @@ -75,6 +77,8 @@ remove_verb(M.client, list( /obj/vehicle/multitile/proc/toggle_door_lock, /obj/vehicle/multitile/proc/activate_horn, + /obj/vehicle/multitile/proc/switch_hardpoint, + /obj/vehicle/multitile/proc/cycle_hardpoint, )) else if(seat == VEHICLE_GUNNER) remove_verb(M.client, list( diff --git a/code/modules/vehicles/hardpoints/primary/dual_cannon.dm b/code/modules/vehicles/hardpoints/primary/dual_cannon.dm index 763bfb6984..d33fc1d628 100644 --- a/code/modules/vehicles/hardpoints/primary/dual_cannon.dm +++ b/code/modules/vehicles/hardpoints/primary/dual_cannon.dm @@ -19,6 +19,8 @@ origins = list(0, -2) + allowed_seat = VEHICLE_DRIVER + ammo = new /obj/item/ammo_magazine/hardpoint/boyars_dualcannon max_clips = 2 diff --git a/code/modules/vehicles/hardpoints/secondary/frontal_cannon.dm b/code/modules/vehicles/hardpoints/secondary/frontal_cannon.dm index 4d454bed12..c7600059d9 100644 --- a/code/modules/vehicles/hardpoints/secondary/frontal_cannon.dm +++ b/code/modules/vehicles/hardpoints/secondary/frontal_cannon.dm @@ -18,6 +18,8 @@ origins = list(0, -2) + allowed_seat = VEHICLE_DRIVER + ammo = new /obj/item/ammo_magazine/hardpoint/m56_cupola/frontal_cannon max_clips = 1 diff --git a/code/modules/vehicles/hardpoints/support/flare.dm b/code/modules/vehicles/hardpoints/support/flare.dm index 00dcd3ac18..2cee40064f 100644 --- a/code/modules/vehicles/hardpoints/support/flare.dm +++ b/code/modules/vehicles/hardpoints/support/flare.dm @@ -19,6 +19,8 @@ origins = list(0, -2) + allowed_seat = VEHICLE_DRIVER + ammo = new /obj/item/ammo_magazine/hardpoint/flare_launcher max_clips = 3