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
1 change: 1 addition & 0 deletions code/__DEFINES/typecheck/generic_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#define isclient(X) (istype(X, /client))
#define isStack(X) (istype(X, /obj/item/stack))
#define issurface(X) (istype(X, /obj/structure/surface))
#define isscreenatom(A) (istype(A, /atom/movable/screen))
#define ismovableatom(A) (ismovable(A))
#define isatom(A) (isloc(A))
#define isfloorturf(A) (istype(A, /turf/open/floor))
Expand Down
2 changes: 1 addition & 1 deletion code/datums/supply_packs/vehicle_equipment.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
group = "Vehicle Equipment"

/datum/supply_packs/landing_pad
name = "AD-19E landing pad (x1)"
name = "AD-71E landing pad (x1)"
contains = list(
/obj/structure/landing_pad_folded,
)
Expand Down
2 changes: 1 addition & 1 deletion code/game/jobs/job/command/auxiliary/operations_pilot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
supervisors = "the auxiliary support officer"
flags_startup_parameters = ROLE_HIDDEN
gear_preset = /datum/equipment_preset/uscm_ship/op
entry_message_body = "<a href='"+WIKI_PLACEHOLDER+"'>Your job is to fly, protect, and maintain the AD-19E blackfoot.</a> While you are an officer, your authority is limited to the vtol, where you have authority over the enlisted personnel."
entry_message_body = "<a href='"+WIKI_PLACEHOLDER+"'>Your job is to fly, protect, and maintain the AD-71E blackfoot.</a> While you are an officer, your authority is limited to the VTOL, where you have authority over the enlisted personnel."

/obj/effect/landmark/start/pilot/operations_pilot
name = JOB_OPERATIONS_PILOT
Expand Down
2 changes: 1 addition & 1 deletion code/modules/gear_presets/uscm_ship.dm
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@

/datum/equipment_preset/uscm_ship/op/load_gear(mob/living/carbon/human/new_human)
var/back_item = /obj/item/storage/backpack/satchel
if(new_human.client && new_human.client.prefs && (new_human.client.prefs.backbag == 1))
if(new_human.client && new_human.client.prefs && (new_human.client.prefs.backbag == 1)) // note that 1 is not a boolean here
back_item = /obj/item/storage/backpack/marine

new_human.equip_to_slot_or_del(new /obj/item/device/radio/headset/almayer/po(new_human), WEAR_L_EAR)
Expand Down
2 changes: 2 additions & 0 deletions code/modules/mob/new_player/preferences_setup.dm
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@
return /datum/equipment_preset/uscm_ship/dp/full
if(JOB_DROPSHIP_CREW_CHIEF)
return /datum/equipment_preset/uscm_ship/dcc/full
if(JOB_OPERATIONS_PILOT)
return /datum/equipment_preset/uscm_ship/op
if(JOB_CORPORATE_LIAISON)
return /datum/equipment_preset/uscm_ship/liaison
if(JOB_COMBAT_REPORTER)
Expand Down
13 changes: 9 additions & 4 deletions code/modules/vehicles/blackfoot/blackfoot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
/obj/item/hardpoint/locomotion/blackfoot_thrusters,
/obj/item/hardpoint/primary/blackfoot_launchers,
/obj/item/hardpoint/support/sensor_array,
/obj/item/hardpoint/secondary/doorgun,
/obj/item/hardpoint/special/doorgun,
)

entrances = list(
Expand Down Expand Up @@ -79,7 +79,7 @@

var/state = STATE_STOWED

COOLDOWN_DECLARE(turn_delay)
COOLDOWN_DECLARE(turn_cooldown)
COOLDOWN_DECLARE(flight_sound_cooldown)

var/obj/blackfoot_shadow/shadow_holder
Expand Down Expand Up @@ -129,13 +129,18 @@
/obj/vehicle/multitile/blackfoot/Initialize(mapload, ...)
. = ..()
tacmap = new /datum/tacmap/drawing/blackfoot(src, minimap_type)
load_hardpoints()
load_role_reserved_slots()
update_icon()

/obj/vehicle/multitile/blackfoot/Destroy()
QDEL_NULL(shadow_holder)

. = ..()

/obj/vehicle/multitile/blackfoot/load_hardpoints()
add_hardpoint(new /obj/item/hardpoint/special/doorgun)

/obj/vehicle/multitile/blackfoot/load_role_reserved_slots()
var/datum/role_reserved_slots/reserved_slot = new
reserved_slot.category_name = "Crewmen"
Expand Down Expand Up @@ -221,7 +226,7 @@
if(state == STATE_VTOL)
return ..()

if(!COOLDOWN_FINISHED(src, turn_delay))
if(!COOLDOWN_FINISHED(src, turn_cooldown))
return FALSE

if(state != STATE_FLIGHT)
Expand All @@ -238,7 +243,7 @@
if(!.)
return

COOLDOWN_START(src, turn_delay, 1 SECONDS)
COOLDOWN_START(src, turn_cooldown, 1 SECONDS)

if(shadow_holder)
shadow_holder.dir = dir
Expand Down
2 changes: 1 addition & 1 deletion code/modules/vehicles/blackfoot/interior.dm
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@
return

var/obj/item/ammo_magazine/hardpoint/doorgun_ammo/ammo = item
var/obj/item/hardpoint/secondary/doorgun/doorgun = locate() in linked_blackfoot.hardpoints
var/obj/item/hardpoint/special/doorgun/doorgun = locate() in linked_blackfoot.hardpoints

if(!doorgun)
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
w_class = SIZE_LARGE
default_ammo = /datum/ammo/grenade_container/doorgun
max_rounds = 10
gun_type = /obj/item/hardpoint/secondary/doorgun
gun_type = /obj/item/hardpoint/special/doorgun
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/obj/item/hardpoint/secondary/doorgun
name = "\improper Doorgun"
/obj/item/hardpoint/special/doorgun
name = "\improper M866 Blackfoot Automatic Doorgun"
desc = ""

icon = 'icons/obj/vehicles/hardpoints/blackfoot.dmi'
Expand All @@ -25,7 +25,7 @@

var/interior_type = /datum/map_template/interior/blackfoot_doorgun

/obj/item/hardpoint/secondary/doorgun/on_install(obj/vehicle/multitile/vehicle)
/obj/item/hardpoint/special/doorgun/on_install(obj/vehicle/multitile/vehicle)
if(!istype(vehicle, /obj/vehicle/multitile/blackfoot))
return

Expand All @@ -36,13 +36,13 @@
INVOKE_ASYNC(blackfoot, TYPE_PROC_REF(/obj/vehicle/multitile, do_create_interior))
blackfoot.update_icon()

/obj/item/hardpoint/secondary/doorgun/reset_rotation()
/obj/item/hardpoint/special/doorgun/reset_rotation()
rotate(turning_angle(dir, NORTH))

/obj/item/hardpoint/secondary/doorgun/in_firing_arc(atom/target)
/obj/item/hardpoint/special/doorgun/in_firing_arc(atom/target)
return !..() // Just return the opposite since it fires in the back

/obj/item/hardpoint/secondary/doorgun/try_fire(atom/target, mob/living/user, params)
/obj/item/hardpoint/special/doorgun/try_fire(atom/target, mob/living/user, params)
var/obj/vehicle/multitile/blackfoot/blackfoot_owner = owner

if(!blackfoot_owner)
Expand All @@ -59,7 +59,7 @@
return ..()

// Just removes the sleep because it sucks
/obj/item/hardpoint/secondary/doorgun/reload(mob/user)
/obj/item/hardpoint/special/doorgun/reload(mob/user)
if(!LAZYLEN(backup_clips))
to_chat(usr, SPAN_WARNING("\The [name] has no remaining backup clips."))
return
Expand All @@ -76,7 +76,7 @@

to_chat(user, SPAN_NOTICE("You reload \the [name]."))

/obj/item/hardpoint/secondary/doorgun/can_be_removed(mob/remover)
/obj/item/hardpoint/special/doorgun/can_be_removed(mob/remover)
to_chat(remover, SPAN_WARNING("[src] cannot be removed from [owner]."))
return FALSE

3 changes: 3 additions & 0 deletions code/modules/vehicles/multitile/multitile_interaction.dm
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@
if(modifiers[SHIFT_CLICK] || modifiers[MIDDLE_CLICK] || modifiers[RIGHT_CLICK] || modifiers[BUTTON4] || modifiers[BUTTON5]) //don't step on examine, point, etc
return

if(isscreenatom(object)) // the user has clicked a UI element, which is handled elsewhere
return

var/seat = get_mob_seat(source)
switch(seat)
if(VEHICLE_DRIVER)
Expand Down
2 changes: 1 addition & 1 deletion colonialmarines.dme
Original file line number Diff line number Diff line change
Expand Up @@ -2616,12 +2616,12 @@
#include "code\modules\vehicles\hardpoints\primary\minigun.dm"
#include "code\modules\vehicles\hardpoints\primary\primary.dm"
#include "code\modules\vehicles\hardpoints\secondary\cupola.dm"
#include "code\modules\vehicles\hardpoints\secondary\doorgun.dm"
#include "code\modules\vehicles\hardpoints\secondary\flamer.dm"
#include "code\modules\vehicles\hardpoints\secondary\frontal_cannon.dm"
#include "code\modules\vehicles\hardpoints\secondary\grenade_launcher.dm"
#include "code\modules\vehicles\hardpoints\secondary\secondary.dm"
#include "code\modules\vehicles\hardpoints\secondary\tow.dm"
#include "code\modules\vehicles\hardpoints\special\doorgun.dm"
#include "code\modules\vehicles\hardpoints\special\firing_port_weapon.dm"
#include "code\modules\vehicles\hardpoints\special\special.dm"
#include "code\modules\vehicles\hardpoints\support\antenna.dm"
Expand Down
4 changes: 0 additions & 4 deletions maps/map_files/USS_Almayer/USS_Almayer.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -34908,10 +34908,6 @@
/obj/effect/decal/warning_stripes{
icon_state = "S"
},
/obj/item/hardpoint/secondary/doorgun{
pixel_y = 10;
pixel_x = 2
},
/turf/open/floor/almayer/plating/northeast,
/area/almayer/shipboard/operations)
"bFH" = (
Expand Down
Loading