mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-28 18:11:16 +00:00
## About The Pull Request <details> - renamed ai folder to announcer -- announcer -- - moved vox_fem to announcer - moved approachingTG to announcer - separated the ambience folder into ambience and instrumental -- ambience -- - created holy folder moved all related sounds there - created engineering folder and moved all related sounds there - created security folder and moved ambidet there - created general folder and moved ambigen there - created icemoon folder and moved all icebox-related ambience there - created medical folder and moved all medbay-related ambi there - created ruin folder and moves all ruins ambi there - created beach folder and moved seag and shore there - created lavaland folder and moved related ambi there - created aurora_caelus folder and placed its ambi there - created misc folder and moved the rest of the files that don't have a specific category into it -- instrumental -- - moved traitor folder here - created lobby_music folder and placed our songs there (title0 not used anywhere? - server-side modification?) -- items -- - moved secdeath to hailer - moved surgery to handling -- effects -- - moved chemistry into effects - moved hallucinations into effects - moved health into effects - moved magic into effects -- vehicles -- - moved mecha into vehicles created mobs folder -- mobs -- - moved creatures folder into mobs - moved voice into mobs renamed creatures to non-humanoids renamed voice to humanoids -- non-humanoids-- created cyborg folder created hiss folder moved harmalarm.ogg to cyborg -- humanoids -- -- misc -- moved ghostwhisper to misc moved insane_low_laugh to misc I give up trying to document this. </details> - [X] ambience - [x] announcer - [x] effects - [X] instrumental - [x] items - [x] machines - [x] misc - [X] mobs - [X] runtime - [X] vehicles - [ ] attributions ## Why It's Good For The Game This folder is so disorganized that it's vomit inducing, will make it easier to find and add new sounds, providng a minor structure to the sound folder. ## Changelog 🆑 grungussuss refactor: the sound folder in the source code has been reorganized, please report any oddities with sounds playing or not playing server: lobby music has been repathed to sound/music/lobby_music /🆑
115 lines
4.7 KiB
Plaintext
115 lines
4.7 KiB
Plaintext
/// One use AI card which downloads a ghost as a syndicate AI to put in your MODsuit
|
|
/obj/item/aicard/syndie
|
|
name = "syndiCard"
|
|
desc = "A storage device for AIs. Nanotrasen forgot to make the patent, so the Syndicate made their own version!"
|
|
icon = 'icons/obj/aicards.dmi'
|
|
icon_state = "syndicard"
|
|
base_icon_state = "syndicard"
|
|
item_flags = null
|
|
force = 7
|
|
|
|
/obj/item/aicard/syndie/loaded
|
|
/// Set to true while we're waiting for ghosts to sign up
|
|
var/finding_candidate = FALSE
|
|
|
|
/obj/item/aicard/syndie/loaded/examine(mob/user)
|
|
. = ..()
|
|
. += span_notice("This one has a little S.E.L.F. insignia on the back, and a label next to it that says 'Activate for one FREE aligned AI! Please attempt uplink reintegration or ask your employers for reimbursal if AI is unavailable or belligerent.")
|
|
|
|
/obj/item/aicard/syndie/loaded/attack_self(mob/user, modifiers)
|
|
if(!isnull(AI))
|
|
return ..()
|
|
if(finding_candidate)
|
|
balloon_alert(user, "loading...")
|
|
return TRUE
|
|
finding_candidate = TRUE
|
|
to_chat(user, span_notice("Connecting to S.E.L.F. dispatch..."))
|
|
procure_ai(user)
|
|
finding_candidate = FALSE
|
|
return TRUE
|
|
|
|
/// Sets up the ghost poll
|
|
/obj/item/aicard/syndie/loaded/proc/procure_ai(mob/user)
|
|
var/datum/antagonist/nukeop/op_datum = user.mind?.has_antag_datum(/datum/antagonist/nukeop,TRUE)
|
|
if(isnull(op_datum))
|
|
balloon_alert(user, "invalid access!")
|
|
return
|
|
var/mob/chosen_one = SSpolling.poll_ghosts_for_target(
|
|
check_jobban = ROLE_OPERATIVE,
|
|
poll_time = 20 SECONDS,
|
|
checked_target = src,
|
|
ignore_category = POLL_IGNORE_SYNDICATE,
|
|
alert_pic = src,
|
|
role_name_text = "Nuclear Operative Modsuit AI",
|
|
chat_text_border_icon = mutable_appearance(icon, "syndicard-full"),
|
|
)
|
|
on_poll_concluded(user, op_datum, chosen_one)
|
|
|
|
/// Poll has concluded with a ghost, create the AI
|
|
/obj/item/aicard/syndie/loaded/proc/on_poll_concluded(mob/user, datum/antagonist/nukeop/op_datum, mob/dead/observer/ghost)
|
|
if(isnull(ghost))
|
|
to_chat(user, span_warning("Unable to connect to S.E.L.F. dispatch. Please wait and try again later or use the intelliCard on your uplink to get your points refunded."))
|
|
return
|
|
|
|
// pick ghost, create AI and transfer
|
|
var/mob/living/silicon/ai/weak_syndie/new_ai = new /mob/living/silicon/ai/weak_syndie(get_turf(src), new /datum/ai_laws/syndicate_override, ghost)
|
|
// create and apply syndie datum
|
|
var/datum/antagonist/nukeop/nuke_datum = new()
|
|
nuke_datum.send_to_spawnpoint = FALSE
|
|
new_ai.mind.add_antag_datum(nuke_datum, op_datum.nuke_team)
|
|
new_ai.mind.special_role = "Syndicate AI"
|
|
new_ai.faction |= ROLE_SYNDICATE
|
|
// Make it look evil!!!
|
|
new_ai.hologram_appearance = mutable_appearance('icons/mob/silicon/ai.dmi',"xeno_queen") //good enough
|
|
new_ai.icon_state = resolve_ai_icon("hades")
|
|
// Hide PDA from messenger
|
|
var/datum/computer_file/program/messenger/msg = locate() in new_ai.modularInterface.stored_files
|
|
if(msg)
|
|
msg.invisible = TRUE
|
|
|
|
// Transfer the AI from the core we created into the card, then delete the core
|
|
capture_ai(new_ai, user)
|
|
var/obj/structure/ai_core/deactivated/detritus = locate() in get_turf(src)
|
|
qdel(detritus)
|
|
AI.control_disabled = FALSE
|
|
AI.radio_enabled = TRUE
|
|
do_sparks(4, TRUE, src)
|
|
playsound(src, 'sound/machines/chime.ogg', 25, TRUE)
|
|
return
|
|
|
|
/obj/item/aicard/syndie/loaded/upload_ai(atom/to_what, mob/living/user)
|
|
. = ..()
|
|
if (!.)
|
|
return
|
|
visible_message(span_warning("The expended card incinerates itself."))
|
|
do_sparks(3, cardinal_only = FALSE, source = src)
|
|
new /obj/effect/decal/cleanable/ash(get_turf(src))
|
|
qdel(src)
|
|
|
|
/// Upgrade disk used to increase the range of a syndicate AI
|
|
/obj/item/computer_disk/syndie_ai_upgrade
|
|
name = "AI interaction range upgrade"
|
|
desc = "A NT data chip containing information that a syndiCard AI can utilize to improve its wireless interfacing abilities. Simply slap it on top of an intelliCard, MODsuit, or AI core and watch it do its work! It's rumoured that there's something 'pretty awful' in it."
|
|
icon = 'icons/obj/antags/syndicate_tools.dmi'
|
|
icon_state = "something_awful"
|
|
max_capacity = 1000
|
|
w_class = WEIGHT_CLASS_NORMAL
|
|
|
|
/obj/item/computer_disk/syndie_ai_upgrade/pre_attack(atom/A, mob/living/user, params)
|
|
var/mob/living/silicon/ai/AI
|
|
if(isAI(A))
|
|
AI = A
|
|
else
|
|
AI = locate() in A
|
|
if(!AI || AI.interaction_range == INFINITY)
|
|
playsound(src,'sound/machines/buzz/buzz-sigh.ogg',50,FALSE)
|
|
to_chat(user, span_notice("Error! Incompatible object!"))
|
|
return ..()
|
|
AI.interaction_range += 2
|
|
if(AI.interaction_range > 7)
|
|
AI.interaction_range = INFINITY
|
|
playsound(src,'sound/machines/beep/twobeep.ogg',50,FALSE)
|
|
to_chat(user, span_notice("You insert [src] into [AI]'s compartment, and it beeps as it processes the data."))
|
|
to_chat(AI, span_notice("You process [src], and find yourself able to manipulate electronics from up to [AI.interaction_range] meters!"))
|
|
qdel(src)
|