-
Notifications
You must be signed in to change notification settings - Fork 575
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
1,326 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/datum/ammo/bullet/re700 | ||
name = "rotary cannon bullet" | ||
icon_state = "autocannon" | ||
damage_falloff = 0 | ||
flags_ammo_behavior = AMMO_BALLISTIC | ||
|
||
accuracy = HIT_ACCURACY_TIER_7 | ||
scatter = 0 | ||
damage = 30 | ||
damage_var_high = PROJECTILE_VARIANCE_TIER_8 | ||
penetration = ARMOR_PENETRATION_TIER_2 | ||
accurate_range = 10 | ||
max_range = 12 | ||
shell_speed = AMMO_SPEED_TIER_6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
/datum/component/disk_reader | ||
dupe_mode = COMPONENT_DUPE_UNIQUE | ||
/// Ref to the inserted disk | ||
var/obj/item/disk/objective/disk | ||
|
||
/datum/component/disk_reader/Initialize() | ||
. = ..() | ||
if(!istype(parent, /obj/structure/machinery)) | ||
return COMPONENT_INCOMPATIBLE | ||
|
||
/datum/component/disk_reader/Destroy(force, silent) | ||
handle_qdel() | ||
return ..() | ||
|
||
/datum/component/disk_reader/RegisterWithParent() | ||
..() | ||
RegisterSignal(parent, COMSIG_PARENT_ATTACKBY, PROC_REF(on_disk_insert)) | ||
RegisterSignal(parent, COMSIG_PARENT_QDELETING, PROC_REF(handle_qdel)) | ||
RegisterSignal(parent, COMSIG_INTEL_DISK_COMPLETED, PROC_REF(on_disk_complete)) | ||
RegisterSignal(parent, COMSIG_INTEL_DISK_LOST_POWER, PROC_REF(on_power_lost)) | ||
|
||
/datum/component/disk_reader/UnregisterFromParent() | ||
..() | ||
handle_qdel() | ||
|
||
/datum/component/disk_reader/proc/handle_qdel() | ||
SIGNAL_HANDLER | ||
QDEL_NULL(disk) | ||
|
||
/datum/component/disk_reader/proc/on_disk_insert(datum/source, obj/item/disk/objective/potential_disk, mob/living/inserter, params) | ||
SIGNAL_HANDLER | ||
|
||
if(!istype(potential_disk) || !potential_disk.objective) | ||
return | ||
|
||
if(disk) | ||
to_chat(inserter, SPAN_WARNING("There's already a disk inside [parent], wait for it to finish first!")) | ||
return COMPONENT_NO_AFTERATTACK | ||
|
||
if(potential_disk.objective.state == OBJECTIVE_COMPLETE) | ||
to_chat(inserter, SPAN_WARNING("The reader displays a message stating this disk has already been read and refuses to accept it.")) | ||
return COMPONENT_NO_AFTERATTACK | ||
|
||
INVOKE_ASYNC(src, PROC_REF(handle_disk_insert), potential_disk, inserter) | ||
return COMPONENT_NO_AFTERATTACK | ||
|
||
/datum/component/disk_reader/proc/handle_disk_insert(obj/item/disk/objective/potential_disk, mob/living/inserter) | ||
if(tgui_input_text(inserter, "Enter the encryption key", "Decrypting [potential_disk]", "") != potential_disk.objective.decryption_password) | ||
to_chat(inserter, SPAN_WARNING("The reader buzzes, ejecting the disk.")) | ||
return | ||
|
||
if(disk) | ||
to_chat(inserter, SPAN_WARNING("There's already a disk inside [parent], wait for it to finish first!")) | ||
return | ||
|
||
if(!(potential_disk in inserter.contents)) | ||
return | ||
|
||
potential_disk.objective.activate() | ||
|
||
inserter.drop_inv_item_to_loc(potential_disk, parent) | ||
disk = potential_disk | ||
to_chat(inserter, SPAN_NOTICE("You insert [potential_disk] and enter the decryption key.")) | ||
inserter.count_niche_stat(STATISTICS_NICHE_DISK) | ||
|
||
/datum/component/disk_reader/proc/on_disk_complete(datum/source) | ||
SIGNAL_HANDLER | ||
var/atom/atom_parent = parent | ||
|
||
atom_parent.visible_message("[atom_parent] pings softly as the upload finishes and ejects [disk].") | ||
playsound(atom_parent, 'sound/machines/screen_output1.ogg', 25, 1) | ||
disk.forceMove(get_turf(atom_parent)) | ||
disk.name = "[disk.name] (complete)" | ||
disk.objective.award_points() | ||
disk.retrieve_objective.state = OBJECTIVE_ACTIVE | ||
disk.retrieve_objective.activate() | ||
disk = null | ||
|
||
/datum/component/disk_reader/proc/on_power_lost(datum/source) | ||
SIGNAL_HANDLER | ||
var/atom/atom_parent = parent | ||
|
||
atom_parent.visible_message(SPAN_WARNING("[atom_parent] powers down mid-operation as the area loses power.")) | ||
playsound(atom_parent, 'sound/machines/terminal_shutdown.ogg', 25, 1) | ||
SSobjectives.stop_processing_objective(src) | ||
disk.forceMove(get_turf(atom_parent)) | ||
disk = null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/datum/supply_packs/arcsentry_replacement | ||
name = "Replacement RE700 Rotary Cannon (x1)" | ||
contains = list( | ||
/obj/item/hardpoint/primary/arc_sentry, | ||
) | ||
cost = 25 | ||
containertype = /obj/structure/closet/crate/weapon | ||
containername = "RE700 Rotary Cannon crate" | ||
group = "Vehicle Equipment" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/datum/tech/arc | ||
name = "M540 Armored Recon Carrier" | ||
desc = "Purchase an M540 Armored Recon Carrier, specialized in assisting groundside command. Able to be driven by Staff Officers, Executive Officers, and Commanding Officers." | ||
icon_state = "upgrade" | ||
|
||
required_points = 5 | ||
|
||
tier = /datum/tier/one | ||
|
||
announce_name = "M540 ARC ACQUIRED" | ||
announce_message = "An M540 Armored Recon Carrier has been authorized and will be delivered in the vehicle bay." | ||
|
||
flags = TREE_FLAG_MARINE | ||
|
||
/datum/tech/arc/on_unlock() | ||
. = ..() | ||
|
||
var/obj/structure/machinery/computer/supplycomp/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/arc() | ||
) | ||
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 = "ARC" | ||
gearcomp.available_categories = VEHICLE_ALL_AVAILABLE | ||
|
||
return TRUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.