Adds the disks (#12829)

Adds a syndicate mod PC disk and a trapped mod PC disk that explodes on removal. Also removes ddos program from syndicate net and makes it an uplink item.
This commit is contained in:
nmajask
2021-12-19 08:20:34 -05:00
committed by GitHub
parent c4b49501c1
commit 1f7a1ca6fe
4 changed files with 61 additions and 2 deletions

View File

@@ -3,11 +3,10 @@
filedesc = "DoS Traffic Generator"
category = PROGRAM_CATEGORY_MISC
program_icon_state = "hostile"
extended_desc = "This advanced script can perform denial of service attacks against NTNet quantum relays. The system administrator will probably notice this. Multiple devices can run this program together against same relay for increased effect"
extended_desc = "This advanced script can perform denial of service attacks against NTNet quantum relays. The system administrator will probably notice this. Multiple devices can run this program together against the same relay for increased effect"
size = 20
requires_ntnet = TRUE
available_on_ntnet = FALSE
available_on_syndinet = TRUE
tgui_id = "NtosNetDos"
program_icon = "satellite-dish"

View File

@@ -26,3 +26,47 @@
power_usage = 40
icon_state = "datadisk3"
max_capacity = 256
///////////////////
//Syndicate Disks//
///////////////////
/obj/item/computer_hardware/hard_drive/portable/syndicate
name = "syndicate data disk"
desc = "Removable disk used to transfer illegal programs and pictures of cats."
icon_state = "datadisksyndicate"
max_capacity = 32
/obj/item/computer_hardware/hard_drive/portable/syndicate/ntnet_dos/install_default_programs()
..()
store_file(new/datum/computer_file/program/ntnet_dos(src))
//////////////
//Trap Disks//
//////////////
/obj/item/computer_hardware/hard_drive/portable/syndicate/trap
var/devastation_range = -1
var/heavy_impact_range = 1 // Maybe a bit too much
var/light_impact_range = 3
var/flash_range = 4
/obj/item/computer_hardware/hard_drive/portable/syndicate/trap/examine(user)
. = ..()
if(IS_JOB(user, "Signal Technician"))
. += span_notice("It appears to be rigged with explosives!")
/obj/item/computer_hardware/hard_drive/portable/syndicate/trap/diagnostics(var/mob/user)
..()
to_chat(user, "Payload Status: TRIGGERED!") // A little too late
trigger()
/obj/item/computer_hardware/hard_drive/portable/syndicate/trap/proc/trigger()
var/turf/T = get_turf(src.loc)
explosion(T, devastation_range, heavy_impact_range, light_impact_range, flash_range)
qdel(src)
return TRUE
/obj/item/computer_hardware/hard_drive/portable/syndicate/trap/on_remove(obj/item/modular_computer/MC, mob/user)
trigger()
..()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -76,6 +76,22 @@
user.change_number_of_hands(limbs+1)
to_chat(user, "You feel more dexterous")
/datum/uplink_item/explosives/trap_disk
name = "Syndicate Trapped Disk"
desc = "A bomb disguised as a syndicate disk that triggers on removal or when tampered with. Nanotrasen IT staff will likely be able to identify its true nature at a glance."
item = /obj/item/computer_hardware/hard_drive/portable/syndicate/trap
cost = 5
surplus = 10
/datum/uplink_item/device_tools/ntnet_dos
name = "DoS Traffic Generator Disk"
desc = "An advanced script in a portable disk that can perform denial of service attacks against NTNet quantum relays. \
The system administrator will probably notice this. \
Multiple devices can run this program together against the same relay for increased effect."
item = /obj/item/computer_hardware/hard_drive/portable/syndicate/ntnet_dos
cost = 2
surplus = 10
/datum/uplink_item/race_restricted/xeno_organ_kit
name = "Xenomorph Organ Kit"
desc = "A kit containing some organs that were... \"donated\" by your ancestors. Contains an autosurgeon, a plasma vessel, a resin spinner, and an acid gland."