Skip to content

Commit

Permalink
Merge pull request #3562 from X0-11/subsystemgamermanual
Browse files Browse the repository at this point in the history
Vehicle weapons fix
  • Loading branch information
BDpuffy420 committed Jun 9, 2024
2 parents 9639d24 + 3162493 commit 404ad31
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 9 deletions.
6 changes: 6 additions & 0 deletions code/modules/halo/misc/payload.dm
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@
/obj/payload/Process()
checkexplode()

/obj/payload/CanPass(atom/movable/mover)
if(istype(mover,/obj/item/projectile))
return 1

. = ..()

//SELF DESTRUCT PAYLOAD DOES NOT MOVE//
/obj/payload/self_destruct
anchored = 1
Expand Down
4 changes: 2 additions & 2 deletions code/modules/halo/research/machines/dissembler.dm
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
/obj/machinery/research/component_dissembler/attempt_load_item(var/obj/item/I, var/mob/user as mob)
. = ..()
if(.)
START_PROCESSING(SSobj, src)
START_PROCESSING(SSmachines, src)
update_use_power(2)
icon_state = "h_lathe_wloop"
flick("h_lathe_load", src)
Expand All @@ -66,7 +66,7 @@
qdel(loaded_item)
loaded_item = null
progress = 0
STOP_PROCESSING(SSobj, src)
STOP_PROCESSING(SSmachines, src)
icon_state = "h_lathe"
else
progress += decon_speed
Expand Down
1 change: 1 addition & 0 deletions code/modules/halo/vehicles/types/bull.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

bound_height = 64
bound_width = 96
pixel_y = 10

comp_prof = /datum/component_profile/bull

Expand Down
1 change: 1 addition & 0 deletions code/modules/halo/vehicles/types/cobra.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

bound_height = 64
bound_width = 96
pixel_y = 10

comp_prof = /datum/component_profile/cobra

Expand Down
1 change: 1 addition & 0 deletions code/modules/halo/vehicles/types/scorpion.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
bound_height = 64
bound_width = 64
pixel_x = -16
pixel_y = 10
comp_prof = /datum/component_profile/scorpion

ammo_containers = newlist(/obj/item/ammo_magazine/scorp_coax,/obj/item/ammo_magazine/scorp_shell)
Expand Down
1 change: 1 addition & 0 deletions code/modules/halo/vehicles/types/warthog.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

bound_height = 64
bound_width = 64
pixel_y = 6

comp_prof = /datum/component_profile/warthog

Expand Down
13 changes: 6 additions & 7 deletions code/modules/halo/vehicles/vehiclebase.dm
Original file line number Diff line number Diff line change
Expand Up @@ -321,13 +321,12 @@
/obj/vehicles/proc/inactive_pilot_effects() //Overriden on a vehicle-by-vehicle basis.

/obj/vehicles/Process()
if(world.time % 3)
comp_prof.give_gunner_weapons(src)
update_object_sprites()
if(active)
var/list/drivers = get_occupants_in_position("driver")
if(!drivers.len || isnull(drivers) || movement_destroyed)
inactive_pilot_effects()
comp_prof.give_gunner_weapons(src)
update_object_sprites()
if(active)
var/list/drivers = get_occupants_in_position("driver")
if(!drivers.len || isnull(drivers) || movement_destroyed)
inactive_pilot_effects()
if(!isnull(spawn_datum) && !ispath(spawn_datum))
spawn_datum.process_resource_regen()

Expand Down
4 changes: 4 additions & 0 deletions code/modules/halo/vehicles/vehiclebase_weaponry.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
reconsider_magazine()
. = ..()

/obj/item/weapon/gun/vehicle_turret/Destroy()
. = ..()
linked_vehicle = null

/obj/item/weapon/gun/vehicle_turret/dropped(var/mob/user)
. = ..()
loc = null
Expand Down

0 comments on commit 404ad31

Please sign in to comment.