Skip to content

Commit

Permalink
now only effects APC
Browse files Browse the repository at this point in the history
Now only APC hardpoints are controlled by driver, tank is untouched and still functional. No longer grant `Toggle Shift Click` to drivers as that verb is hard-coded for gunners and changing that is out of scope.
  • Loading branch information
Doubleumc committed Oct 26, 2023
1 parent 29031f9 commit f0bace3
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 0 additions & 2 deletions code/modules/vehicles/apc/apc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ GLOBAL_LIST_EMPTY(command_apc_list)
/obj/vehicle/multitile/proc/activate_horn,
/obj/vehicle/multitile/proc/switch_hardpoint,
/obj/vehicle/multitile/proc/cycle_hardpoint,
/obj/vehicle/multitile/proc/toggle_shift_click,
/obj/vehicle/multitile/proc/name_vehicle
))
else if(seat == VEHICLE_GUNNER)
Expand Down Expand Up @@ -140,7 +139,6 @@ GLOBAL_LIST_EMPTY(command_apc_list)
/obj/vehicle/multitile/proc/activate_horn,
/obj/vehicle/multitile/proc/switch_hardpoint,
/obj/vehicle/multitile/proc/cycle_hardpoint,
/obj/vehicle/multitile/proc/toggle_shift_click,
/obj/vehicle/multitile/proc/name_vehicle,
))
else if(seat == VEHICLE_GUNNER)
Expand Down
2 changes: 0 additions & 2 deletions code/modules/vehicles/apc/apc_command.dm
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
/obj/vehicle/multitile/proc/activate_horn,
/obj/vehicle/multitile/proc/switch_hardpoint,
/obj/vehicle/multitile/proc/cycle_hardpoint,
/obj/vehicle/multitile/proc/toggle_shift_click,
))
else if(seat == VEHICLE_GUNNER)
add_verb(M.client, list(
Expand All @@ -124,7 +123,6 @@
/obj/vehicle/multitile/proc/activate_horn,
/obj/vehicle/multitile/proc/switch_hardpoint,
/obj/vehicle/multitile/proc/cycle_hardpoint,
/obj/vehicle/multitile/proc/toggle_shift_click,
))
else if(seat == VEHICLE_GUNNER)
remove_verb(M.client, list(
Expand Down
2 changes: 0 additions & 2 deletions code/modules/vehicles/apc/apc_medical.dm
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
/obj/vehicle/multitile/proc/activate_horn,
/obj/vehicle/multitile/proc/switch_hardpoint,
/obj/vehicle/multitile/proc/cycle_hardpoint,
/obj/vehicle/multitile/proc/toggle_shift_click,
))
else if(seat == VEHICLE_GUNNER)
add_verb(M.client, list(
Expand All @@ -80,7 +79,6 @@
/obj/vehicle/multitile/proc/activate_horn,
/obj/vehicle/multitile/proc/switch_hardpoint,
/obj/vehicle/multitile/proc/cycle_hardpoint,
/obj/vehicle/multitile/proc/toggle_shift_click,
))
else if(seat == VEHICLE_GUNNER)
remove_verb(M.client, list(
Expand Down
2 changes: 1 addition & 1 deletion code/modules/vehicles/hardpoints/hardpoint.dm
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
//------INTERACTION VARS----------

//which seat can use this module
var/allowed_seat = VEHICLE_DRIVER
var/allowed_seat = VEHICLE_GUNNER

//Cooldown on use of the hardpoint
var/cooldown = 100
Expand Down
2 changes: 2 additions & 0 deletions code/modules/vehicles/hardpoints/primary/dual_cannon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

origins = list(0, -2)

allowed_seat = VEHICLE_DRIVER

ammo = new /obj/item/ammo_magazine/hardpoint/boyars_dualcannon
max_clips = 2

Expand Down
2 changes: 2 additions & 0 deletions code/modules/vehicles/hardpoints/secondary/frontal_cannon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions code/modules/vehicles/hardpoints/support/flare.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

origins = list(0, -2)

allowed_seat = VEHICLE_DRIVER

ammo = new /obj/item/ammo_magazine/hardpoint/flare_launcher
max_clips = 3

Expand Down

0 comments on commit f0bace3

Please sign in to comment.