mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 04:22:39 +01:00
pai sounds (#14579)
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
desc = "Noises"
|
||||
key = ""
|
||||
flags = RESTRICTED|NONGLOBAL|INNATE|NO_TALK_MSG|NO_STUTTER|TCOMSSIM
|
||||
allow_accents = TRUE
|
||||
allow_accents = TRUE
|
||||
|
||||
/datum/language/noise/format_message(message, verb)
|
||||
return "<span class='message'><span class='[colour]'>[message]</span></span>"
|
||||
return span(message, "<span class='[colour]'>[message]</span>")
|
||||
|
||||
/datum/language/noise/format_message_plain(message, verb)
|
||||
return message
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
log_say("[key_name(speaker)] : ([name]) [message]",ckey=key_name(speaker))
|
||||
|
||||
var/message_start = "<span style='font-size: [speaker.get_binary_font_size()];'><i><span class='game say'>[name], <span class='name'>[get_speaker_name(speaker)]</span>"
|
||||
var/message_body = "<span class='message'>[speaker.say_quote(message)], \"[message]\"</span></span></i></span>"
|
||||
var/message_body = span(message, "[speaker.say_quote(message)], \"[message]\"</span></span></i>")
|
||||
|
||||
for (var/mob/M as anything in dead_mob_list)
|
||||
if(!istype(M,/mob/abstract/new_player) && !istype(M,/mob/living/carbon/brain)) //No meta-evesdropping
|
||||
|
||||
@@ -204,16 +204,13 @@
|
||||
|
||||
|
||||
/mob/living/silicon/pai/LateLogin()
|
||||
greet()
|
||||
..()
|
||||
|
||||
/mob/living/silicon/pai/proc/greet()
|
||||
|
||||
if (!greeted)
|
||||
if(!greeted)
|
||||
// Basic intro text.
|
||||
to_chat(src, "<span class='danger'><font size=3>You are a Personal AI!</font></span>")
|
||||
to_chat(src, "<span class='notice'>You are a small artificial intelligence contained inside a portable tablet, and you are bound to a master. Your primary directive is to serve them and follow their instructions, follow this prime directive above all others. Check your Software interface to spend ram on programs that can help, and unfold your chassis to take a holographic form and move around the world.</span>")
|
||||
to_chat(src, SPAN_DANGER("<font size=3>You are a Personal AI!</font>"))
|
||||
to_chat(src, SPAN_NOTICE("You are a small artificial intelligence contained inside a portable tablet, and you are bound to a master. Your primary directive is to serve them and follow their instructions, follow this prime directive above all others. Check your Software interface to spend ram on programs that can help, and unfold your chassis to take a holographic form and move around the world."))
|
||||
playsound(usr, 'sound/effects/pai/pai_login.ogg', 75)
|
||||
greeted = 1
|
||||
..()
|
||||
|
||||
// this function shows the information about being silenced as a pAI in the Status panel
|
||||
/mob/living/silicon/pai/proc/show_silenced()
|
||||
@@ -248,7 +245,7 @@
|
||||
if(prob(20))
|
||||
var/turf/T = get_turf_or_move(src.loc)
|
||||
for (var/mob/M in viewers(T))
|
||||
M.show_message("<span class='warning'>A shower of sparks spray from [src]'s inner workings.</span>", 3, "<span class='warning'>You hear and smell the ozone hiss of electrical sparks being expelled violently.</span>", 2)
|
||||
M.show_message(SPAN_WARNING("A shower of sparks spray from [src]'s inner workings."), 3, SPAN_WARNING("You hear and smell the ozone hiss of electrical sparks being expelled violently."), 2)
|
||||
return src.death(0)
|
||||
|
||||
switch(pick(1,2,3))
|
||||
@@ -353,6 +350,7 @@
|
||||
var/turf/T = get_turf(src)
|
||||
if(loud && istype(T))
|
||||
T.visible_message(SPAN_NOTICE("<b>[src]</b> folds outwards, expanding into a mobile form."))
|
||||
playsound(src, 'sound/items/rped.ogg', 40, TRUE)
|
||||
canmove = TRUE
|
||||
resting = FALSE
|
||||
|
||||
@@ -427,7 +425,7 @@
|
||||
else
|
||||
resting = !resting
|
||||
icon_state = resting ? "[chassis]_rest" : "[chassis]"
|
||||
to_chat(src, "<span class='notice'>You are now [resting ? "resting" : "getting up"].</span>")
|
||||
to_chat(src, SPAN_NOTICE("You are now [resting ? "resting" : "getting up"]."))
|
||||
|
||||
canmove = !resting
|
||||
|
||||
@@ -448,15 +446,15 @@
|
||||
return
|
||||
|
||||
if(W.force)
|
||||
visible_message("<span class='danger'>[user.name] attacks [src] with [W]!</span>")
|
||||
visible_message(SPAN_DANGER("[user.name] attacks [src] with [W]!"))
|
||||
src.adjustBruteLoss(W.force)
|
||||
src.updatehealth()
|
||||
else
|
||||
visible_message("<span class='warning'>[user.name] bonks [src] harmlessly with [W].</span>")
|
||||
visible_message(SPAN_WARNING("[user.name] bonks [src] harmlessly with [W]."))
|
||||
|
||||
/mob/living/silicon/pai/AltClick(mob/user as mob)
|
||||
if(!user || user.stat || user.lying || user.restrained() || !Adjacent(user)) return
|
||||
visible_message("<span class='danger'>[user.name] boops [src] on the head.</span>")
|
||||
visible_message(SPAN_DANGER("[user.name] boops [src] on the head."))
|
||||
close_up()
|
||||
|
||||
//I'm not sure how much of this is necessary, but I would rather avoid issues.
|
||||
@@ -468,7 +466,9 @@
|
||||
return
|
||||
|
||||
var/turf/T = get_turf(src)
|
||||
if(istype(T)) T.visible_message("<b>[src]</b> neatly folds inwards, compacting down to a rectangular card.")
|
||||
if(istype(T))
|
||||
T.visible_message("<b>[src]</b> neatly folds inwards, compacting down to a rectangular card.")
|
||||
playsound(src, 'sound/items/rped.ogg', 40, TRUE)
|
||||
|
||||
src.stop_pulling()
|
||||
if (client)
|
||||
@@ -521,12 +521,12 @@
|
||||
if(istype(AM,/obj/item))
|
||||
var/obj/item/O = AM
|
||||
if(O.w_class > can_pull_size)
|
||||
to_chat(src, "<span class='warning'>You are too small to pull that.</span>")
|
||||
to_chat(src, SPAN_WARNING("You are too small to pull that."))
|
||||
return
|
||||
else
|
||||
..()
|
||||
else
|
||||
to_chat(src, "<span class='warning'>You are too small to pull that.</span>")
|
||||
to_chat(src, SPAN_WARNING("You are too small to pull that."))
|
||||
return
|
||||
|
||||
/mob/living/silicon/pai/UnarmedAttack(atom/A, proximity)
|
||||
@@ -539,7 +539,7 @@
|
||||
if(stat || sleeping || paralysis || weakened)
|
||||
return
|
||||
|
||||
var/selection = input(src, "Choose an icon for you card.") in pai_emotions
|
||||
var/selection = input(src, "Choose an icon for your card.") in pai_emotions
|
||||
card.setEmotion(pai_emotions[selection])
|
||||
|
||||
/mob/living/silicon/pai/set_respawn_time()
|
||||
|
||||
Reference in New Issue
Block a user