mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-02-06 06:10:03 +00:00
# Conflicts: # code/__defines/holomap.dm # code/__defines/mobs.dm # code/_helpers/icons.dm # code/_helpers/unsorted.dm # code/_onclick/hud/hud.dm # code/_onclick/item_attack.dm # code/controllers/Processes/supply.dm # code/controllers/subsystems/planets.dm # code/datums/supplypacks/munitions.dm # code/datums/supplypacks/science.dm # code/datums/supplypacks/security.dm # code/datums/supplypacks/supply.dm # code/game/area/Space Station 13 areas.dm # code/game/atoms_movable.dm # code/game/machinery/autolathe.dm # code/game/machinery/doors/door.dm # code/game/machinery/jukebox.dm # code/game/machinery/recharger.dm # code/game/machinery/vending.dm # code/game/mecha/equipment/tools/medical_tools.dm # code/game/mecha/equipment/weapons/weapons.dm # code/game/objects/items/devices/PDA/PDA.dm # code/game/objects/items/devices/megaphone.dm # code/game/objects/items/poi_items.dm # code/game/objects/items/weapons/implants/implantlanguage.dm # code/game/objects/items/weapons/storage/firstaid.dm # code/game/objects/items/weapons/tools/weldingtool.dm # code/game/objects/structures/flora/trees.dm # code/game/objects/structures/plasticflaps.dm # code/game/supplyshuttle.dm # code/game/turfs/simulated/wall_attacks.dm # code/modules/admin/admin_verbs.dm # code/modules/assembly/infrared.dm # code/modules/client/client procs.dm # code/modules/client/preference_setup/loadout/loadout_utility.dm # code/modules/client/preferences.dm # code/modules/clothing/suits/miscellaneous.dm # code/modules/holomap/holomap_datum.dm # code/modules/holomap/station_holomap.dm # code/modules/integrated_electronics/core/printer.dm # code/modules/mining/machine_processing.dm # code/modules/mob/living/carbon/human/human_defense.dm # code/modules/mob/living/carbon/human/species/virtual_reality/avatar.dm # code/modules/mob/living/death.dm # code/modules/mob/living/silicon/ai/ai.dm # code/modules/mob/living/silicon/pai/pai.dm # code/modules/mob/living/silicon/robot/robot.dm # code/modules/mob/living/simple_animal/animals/parrot.dm # code/modules/mob/mob_movement.dm # code/modules/organs/organ_external.dm # code/modules/organs/organ_icon.dm # code/modules/organs/subtypes/standard.dm # code/modules/planet/weather.dm # code/modules/power/cable.dm # code/modules/power/fusion/core/core_control.dm # code/modules/power/fusion/fuel_assembly/fuel_control.dm # code/modules/power/fusion/gyrotron/gyrotron_control.dm # code/modules/projectiles/gun.dm # code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Food-Drinks.dm # config/names/first_name_skrell.txt # config/names/last_name_skrell.txt # icons/mob/head.dmi # icons/mob/robots.dmi # icons/mob/species/tajaran/helmet.dmi # icons/obj/ammo.dmi # icons/obj/gun.dmi # icons/obj/mining.dmi # icons/obj/projectiles.dmi # icons/obj/rig_modules.dmi # icons/obj/surgery.dmi # icons/turf/walls.dmi # maps/southern_cross/southern_cross-1.dmm # maps/southern_cross/southern_cross-3.dmm # maps/southern_cross/southern_cross-6.dmm # maps/southern_cross/southern_cross-8.dmm # maps/submaps/surface_submaps/mountains/backup/IceCave1.dmm # maps/submaps/surface_submaps/mountains/backup/IceCave1A.dmm # maps/submaps/surface_submaps/mountains/backup/IceCave1B.dmm # maps/submaps/surface_submaps/mountains/backup/IceCave1C.dmm # maps/submaps/surface_submaps/mountains/crashedcontainmentshuttle.dmm # maps/submaps/surface_submaps/mountains/deadspy.dmm # maps/submaps/surface_submaps/mountains/mountains_areas.dm # maps/submaps/surface_submaps/plains/Thiefc.dmm # maps/~map_system/maps.dm # vorestation.dme
111 lines
3.0 KiB
Plaintext
111 lines
3.0 KiB
Plaintext
/obj/item/device/radio/sleevecard
|
|
canhear_range = 0
|
|
|
|
/obj/item/device/sleevecard
|
|
name = "sleevecard"
|
|
desc = "This KHI-upgraded pAI module has enough capacity to run a whole mind of human-level intelligence."
|
|
|
|
icon = 'icons/obj/pda.dmi'
|
|
icon_state = "pai"
|
|
item_state = "electronic"
|
|
|
|
w_class = ITEMSIZE_SMALL
|
|
slot_flags = SLOT_BELT
|
|
origin_tech = list(TECH_DATA = 2)
|
|
show_messages = 0
|
|
|
|
var/obj/item/device/radio/sleevecard/radio
|
|
var/mob/living/silicon/infomorph/infomorph
|
|
var/current_emotion = 1
|
|
|
|
matter = list(DEFAULT_WALL_MATERIAL = 4000, "glass" = 4000)
|
|
|
|
/obj/item/device/sleevecard/relaymove(var/mob/user, var/direction)
|
|
if(user.stat || user.stunned)
|
|
return
|
|
var/obj/item/weapon/rig/rig = src.get_rig()
|
|
if(istype(rig))
|
|
rig.forced_move(direction, user)
|
|
|
|
/obj/item/device/sleevecard/New()
|
|
..()
|
|
overlays += "pai-off"
|
|
radio = new(src)
|
|
|
|
/obj/item/device/sleevecard/Destroy()
|
|
if(!isnull(infomorph))
|
|
infomorph.death(0)
|
|
infomorph = null
|
|
QDEL_NULL(radio)
|
|
return ..()
|
|
|
|
/obj/item/device/sleevecard/attack_self(mob/user)
|
|
add_fingerprint(user)
|
|
|
|
if(!infomorph)
|
|
to_chat(user,"<span class='warning'>\The [src] does not have a mind in it!</span>")
|
|
else
|
|
to_chat(user,"<span class='notice'>\The [src] displays the name '[infomorph]'.</span>")
|
|
|
|
//This is a 'hard' proc, it does no permission checking, do that on the computer
|
|
/obj/item/device/sleevecard/proc/sleeveInto(var/datum/transhuman/mind_record/MR)
|
|
infomorph = new(src,MR.mindname)
|
|
|
|
for(var/datum/language/L in MR.languages)
|
|
infomorph.add_language(L.name)
|
|
MR.mind_ref.active = 1 //Well, it's about to be.
|
|
MR.mind_ref.transfer_to(infomorph) //Does mind+ckey+client.
|
|
infomorph.ooc_notes = MR.mind_oocnotes
|
|
infomorph.apply_vore_prefs() //Cheap hack for now to give them SOME bellies.
|
|
|
|
//Don't set 'real_name' because then we get a nice (as sleevecard) thing.
|
|
infomorph.name = "[initial(infomorph.name)] ([MR.mindname])"
|
|
name = "[initial(name)] ([MR.mindname])"
|
|
var/emoname = infomorph_emotions[1]
|
|
setEmotion(infomorph_emotions[emoname])
|
|
|
|
if(infomorph.client)
|
|
return 1
|
|
|
|
return 0
|
|
|
|
/obj/item/device/sleevecard/proc/removePersonality()
|
|
if(infomorph)
|
|
infomorph.death(0)
|
|
|
|
turnOff()
|
|
|
|
/obj/item/device/sleevecard/proc/turnOff()
|
|
if(infomorph)
|
|
infomorph.close_up()
|
|
overlays.Cut()
|
|
name = "[initial(name)]"
|
|
|
|
/obj/item/device/sleevecard/proc/setEmotion(var/emotion)
|
|
if(infomorph && emotion)
|
|
overlays.Cut()
|
|
overlays += emotion
|
|
current_emotion = emotion
|
|
|
|
/obj/item/device/sleevecard/emp_act(severity)
|
|
for(var/mob/M in src)
|
|
M.emp_act(severity)
|
|
|
|
/obj/item/device/sleevecard/ex_act(severity)
|
|
if(infomorph)
|
|
infomorph.ex_act(severity)
|
|
else
|
|
qdel(src)
|
|
|
|
/obj/item/device/sleevecard/see_emote(mob/living/M, text)
|
|
if(infomorph && infomorph.client && !infomorph.canmove)
|
|
var/rendered = "<span class='message'>[text]</span>"
|
|
infomorph.show_message(rendered, 2)
|
|
..()
|
|
|
|
/obj/item/device/sleevecard/show_message(msg, type, alt, alt_type)
|
|
if(infomorph && infomorph.client)
|
|
var/rendered = "<span class='message'>[msg]</span>"
|
|
infomorph.show_message(rendered, type)
|
|
..()
|