mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Some preferred changes
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
var/weight_gain = 100 // Weight gain rate.
|
||||
var/weight_loss = 50 // Weight loss rate.
|
||||
var/fuzzy = 0 // Preference toggle for sharp/fuzzy icon. Default sharp.
|
||||
var/voice_freq = 0
|
||||
var/voice_sound = "beep-boop"
|
||||
var/voice_freq = 42500 //CHOMPEdit - Why was the default 0
|
||||
var/voice_sound = "goon speak 1" //CHOMPEdit - Changed the default voice to one less jarring
|
||||
|
||||
// Definition of the stuff for Sizing
|
||||
/datum/category_item/player_setup_item/vore/size
|
||||
@@ -97,6 +97,7 @@
|
||||
. += "<b>Scaled Appearance:</b> <a [pref.fuzzy ? "" : ""] href='?src=\ref[src];toggle_fuzzy=1'><b>[pref.fuzzy ? "Fuzzy" : "Sharp"]</b></a><br>"
|
||||
. += "<b>Voice Frequency:</b> <a href='?src=\ref[src];voice_freq=1'>[pref.voice_freq]</a><br>"
|
||||
. += "<b>Voice Sounds:</b> <a href='?src=\ref[src];voice_sounds_list=1'>[pref.voice_sound]</a><br>"
|
||||
// . += "<a href='?src=\ref[src];voice_test=1'><b>Test Voice:</b></a><br>" Maybe later
|
||||
. += "<br>"
|
||||
. += "<b>Relative Weight:</b> <a href='?src=\ref[src];weight=1'>[pref.weight_vr]</a><br>"
|
||||
. += "<b>Weight Gain Rate:</b> <a href='?src=\ref[src];weight_gain=1'>[pref.weight_gain]</a><br>"
|
||||
@@ -186,7 +187,11 @@
|
||||
"goon speak skelly")
|
||||
var/choice = tgui_input_list(usr, "Which set of sounds would you like to use for your character's speech sounds?", "Voice Sounds", possible_voice_types)
|
||||
if(!choice)
|
||||
pref.voice_sound = "beep-boop"
|
||||
pref.voice_sound = "goon speak 1"
|
||||
else
|
||||
pref.voice_sound = choice
|
||||
/* Maybe later
|
||||
else if(href_list["voice_test"])
|
||||
SEND_SOUND(user, sound(pick(voice_sounds_list), 50, frequency = pref.voice_freq))
|
||||
*/
|
||||
return ..();
|
||||
|
||||
@@ -407,9 +407,9 @@
|
||||
feedback_add_details("admin_verb","TRadioSounds")
|
||||
|
||||
/client/verb/toggle_say_sounds()
|
||||
set name = "Sound Toggle: Say"
|
||||
set name = "Toggle Voice Sounds"
|
||||
set category = "Preferences"
|
||||
set desc = "Toggle hearing a sound when somebody speaks using say."
|
||||
set desc = "Toggle hearing a sound when somebody speaks or emotes."
|
||||
|
||||
var/pref_path = /datum/client_preference/say_sounds
|
||||
toggle_preference(pref_path)
|
||||
@@ -418,6 +418,8 @@
|
||||
to_chat(src, "You will now [(is_preference_enabled(/datum/client_preference/say_sounds)) ? "hear" : "not hear"] say sounds.")
|
||||
|
||||
feedback_add_details("admin_verb","TSaySounds")
|
||||
/*
|
||||
CHOMPRemove. Bundled voice sounds into emote/whisper/subtle. Going this extra length to babyproof prefs wasn't necessary and got in the way of quick whisper/say autofill.
|
||||
|
||||
/client/verb/toggle_emote_sounds()
|
||||
set name = "Sound Toggle: Me"
|
||||
@@ -457,6 +459,7 @@
|
||||
to_chat(src, "You will now [(is_preference_enabled(/datum/client_preference/subtle_sounds)) ? "hear" : "not hear"] subtle sounds.")
|
||||
|
||||
feedback_add_details("admin_verb","TSubtleSounds")
|
||||
*/
|
||||
|
||||
// Not attached to a pref datum because those are strict binary toggles
|
||||
/client/verb/toggle_examine_mode()
|
||||
|
||||
@@ -191,11 +191,13 @@
|
||||
if(message)
|
||||
message = encode_html_emphasis(message)
|
||||
|
||||
/* CHOMPRemove - Not needed if you set your defaults right
|
||||
var/ourfreq = null
|
||||
if(isliving(src))
|
||||
var/mob/living/L = src
|
||||
if(L.voice_freq > 0 )
|
||||
ourfreq = L.voice_freq
|
||||
*/
|
||||
|
||||
|
||||
// Hearing gasp and such every five seconds is not good emotes were not global for a reason.
|
||||
@@ -205,7 +207,7 @@
|
||||
if(!T) return
|
||||
|
||||
if(client)
|
||||
playsound(T, pick(emote_sound), 25, TRUE, falloff = 1 , is_global = TRUE, frequency = ourfreq, ignore_walls = FALSE, preference = /datum/client_preference/emote_sounds)
|
||||
playsound(T, pick(voice_sounds_list), 75, TRUE, falloff = 1 , is_global = TRUE, frequency = voice_freq, ignore_walls = FALSE, preference = /datum/client_preference/say_sounds)
|
||||
var/list/in_range = get_mobs_and_objs_in_view_fast(T,range,2,remote_ghosts = client ? TRUE : FALSE)
|
||||
var/list/m_viewers = in_range["mobs"]
|
||||
var/list/o_viewers = in_range["objs"]
|
||||
|
||||
@@ -402,20 +402,22 @@ var/list/channel_to_radio_key = new
|
||||
C.images -= I
|
||||
qdel(I)
|
||||
|
||||
/* CHOMPEdit - Not needed if you set your defaults right
|
||||
var/ourfreq = null
|
||||
if(voice_freq > 0 )
|
||||
ourfreq = voice_freq
|
||||
*/
|
||||
//Log the message to file
|
||||
if(message_mode)
|
||||
message = "([message_mode == "headset" ? "Common" : capitalize(message_mode)]) [message]" //Adds radio keys used if available
|
||||
if(whispering)
|
||||
if(do_sound && message)
|
||||
playsound(T, pick(voice_sounds_list), 25, TRUE, extrarange = -6, falloff = 1 , is_global = TRUE, frequency = ourfreq, ignore_walls = FALSE, preference = /datum/client_preference/whisper_sounds)
|
||||
playsound(T, pick(voice_sounds_list), 25, TRUE, extrarange = -6, falloff = 1 , is_global = TRUE, frequency = voice_freq, ignore_walls = FALSE, preference = /datum/client_preference/say_sounds)
|
||||
|
||||
log_whisper(message, src)
|
||||
else
|
||||
if(do_sound && message)
|
||||
playsound(T, pick(voice_sounds_list), 75, TRUE, falloff = 1 , is_global = TRUE, frequency = ourfreq, ignore_walls = FALSE, preference = /datum/client_preference/say_sounds)
|
||||
playsound(T, pick(voice_sounds_list), 75, TRUE, falloff = 1 , is_global = TRUE, frequency = voice_freq, ignore_walls = FALSE, preference = /datum/client_preference/say_sounds)
|
||||
log_say(message, src)
|
||||
return 1
|
||||
|
||||
|
||||
@@ -67,8 +67,9 @@
|
||||
else
|
||||
spawn(0)
|
||||
M.show_message(message, 2)
|
||||
if(M.is_preference_enabled(/datum/client_preference/subtle_sounds))
|
||||
M << sound('sound/talksounds/subtle_sound.ogg', volume = 50)
|
||||
if(M.is_preference_enabled(/datum/client_preference/say_sounds))
|
||||
if(voice_sounds_list) //CHOMPEdit, changes to subtle emotes to use mob voice instead
|
||||
M << sound(pick(voice_sounds_list), volume = 25)
|
||||
|
||||
for(var/obj/O as anything in vis_objs)
|
||||
spawn(0)
|
||||
@@ -147,14 +148,16 @@
|
||||
else
|
||||
pb = db.pred_body
|
||||
to_chat(pb, "<span class='changeling'>The captive mind of \the [M] thinks, \"[message]\"</span>") //To our pred if dominated brain
|
||||
if(pb.is_preference_enabled(/datum/client_preference/subtle_sounds))
|
||||
pb << sound('sound/talksounds/subtle_sound.ogg', volume = 50)
|
||||
if(pb.is_preference_enabled(/datum/client_preference/say_sounds))
|
||||
if(voice_sounds_list) //CHOMPEdit, changes subtle emote sound to use mob voice instead
|
||||
pb << sound(pick(voice_sounds_list), volume = 25)
|
||||
f = TRUE
|
||||
else if(M.absorbed && isbelly(M.loc))
|
||||
pb = M.loc.loc
|
||||
to_chat(pb, "<span class='changeling'>\The [M] thinks, \"[message]\"</span>") //To our pred if absorbed
|
||||
if(pb.is_preference_enabled(/datum/client_preference/subtle_sounds))
|
||||
pb << sound('sound/talksounds/subtle_sound.ogg', volume = 50)
|
||||
if(pb.is_preference_enabled(/datum/client_preference/say_sounds))
|
||||
if(voice_sounds_list) //CHOMPEdit, changes subtle emote sound to use mob voice instead
|
||||
pb << sound(pick(voice_sounds_list), volume = 25)
|
||||
f = TRUE
|
||||
|
||||
if(pb) //We are prey, let's do the prey thing.
|
||||
@@ -163,15 +166,17 @@
|
||||
if(istype(I, /mob/living/dominated_brain) && I != M)
|
||||
var/mob/living/dominated_brain/db = I
|
||||
to_chat(db, "<span class='changeling'>The captive mind of \the [M] thinks, \"[message]\"</span>") //To any dominated brains in the pred
|
||||
if(db.is_preference_enabled(/datum/client_preference/subtle_sounds))
|
||||
db << sound('sound/talksounds/subtle_sound.ogg', volume = 50)
|
||||
if(db.is_preference_enabled(/datum/client_preference/say_sounds))
|
||||
if(voice_sounds_list) //CHOMPEdit, changes subtle emote sound to use mob voice instead
|
||||
db << sound(pick(voice_sounds_list), volume = 25)
|
||||
f = TRUE
|
||||
for(var/B in pb.vore_organs)
|
||||
for(var/mob/living/L in B)
|
||||
if(L.absorbed && L != M && L.ckey)
|
||||
to_chat(L, "<span class='changeling'>\The [M] thinks, \"[message]\"</span>") //To any absorbed people in the pred
|
||||
if(L.is_preference_enabled(/datum/client_preference/subtle_sounds))
|
||||
L << sound('sound/talksounds/subtle_sound.ogg', volume = 50)
|
||||
if(L.is_preference_enabled(/datum/client_preference/say_sounds))
|
||||
if(voice_sounds_list) //CHOMPEdit, changes subtle emote sound to use mob voice instead
|
||||
L << sound(pick(voice_sounds_list), volume = 25)
|
||||
f = TRUE
|
||||
|
||||
//Let's also check and see if there's anyone inside of us to send the message to.
|
||||
@@ -179,26 +184,30 @@
|
||||
if(istype(I, /mob/living/dominated_brain))
|
||||
var/mob/living/dominated_brain/db = I
|
||||
to_chat(db, "<span class='changeling'><b>\The [M] thinks, \"[message]\"</b></span>") //To any dominated brains inside us
|
||||
if(db.is_preference_enabled(/datum/client_preference/subtle_sounds))
|
||||
db << sound('sound/talksounds/subtle_sound.ogg', volume = 50)
|
||||
if(db.is_preference_enabled(/datum/client_preference/say_sounds))
|
||||
if(voice_sounds_list) //CHOMPEdit, changes subtle emote sound to use mob voice instead
|
||||
db << sound(pick(voice_sounds_list), volume = 25)
|
||||
f = TRUE
|
||||
for(var/B in M.vore_organs)
|
||||
for(var/mob/living/L in B)
|
||||
if(L.absorbed)
|
||||
to_chat(L, "<span class='changeling'><b>\The [M] thinks, \"[message]\"</b></span>") //To any absorbed people inside us
|
||||
if(L.is_preference_enabled(/datum/client_preference/subtle_sounds))
|
||||
L << sound('sound/talksounds/subtle_sound.ogg', volume = 50)
|
||||
if(L.is_preference_enabled(/datum/client_preference/say_sounds))
|
||||
if(voice_sounds_list) //CHOMPEdit, changes subtle emote sound to use mob voice instead
|
||||
L << sound(pick(voice_sounds_list), volume = 25)
|
||||
f = TRUE
|
||||
|
||||
if(f) //We found someone to send the message to
|
||||
if(pb)
|
||||
to_chat(M, "<span class='changeling'>You think \"[message]\"</span>") //To us if we are the prey
|
||||
if(M.is_preference_enabled(/datum/client_preference/subtle_sounds))
|
||||
M << sound('sound/talksounds/subtle_sound.ogg', volume = 50)
|
||||
if(M.is_preference_enabled(/datum/client_preference/say_sounds))
|
||||
if(voice_sounds_list) //CHOMPEdit, changes subtle emote sound to use mob voice instead
|
||||
M << sound(pick(voice_sounds_list), volume = 25)
|
||||
else
|
||||
to_chat(M, "<span class='changeling'><b>You think \"[message]\"</b></span>") //To us if we are the pred
|
||||
if(M.is_preference_enabled(/datum/client_preference/subtle_sounds))
|
||||
M << sound('sound/talksounds/subtle_sound.ogg', volume = 50)
|
||||
if(M.is_preference_enabled(/datum/client_preference/say_sounds))
|
||||
if(voice_sounds_list) //CHOMPEdit, changes subtle emote sound to use mob voice instead
|
||||
M << sound(pick(voice_sounds_list), volume = 25)
|
||||
for (var/mob/G in player_list)
|
||||
if (istype(G, /mob/new_player))
|
||||
continue
|
||||
@@ -243,15 +252,17 @@
|
||||
else
|
||||
pb = db.pred_body
|
||||
to_chat(pb, "<span class='changeling'>\The [M] [message]</span>") //To our pred if dominated brain
|
||||
if(pb.is_preference_enabled(/datum/client_preference/subtle_sounds))
|
||||
pb << sound('sound/talksounds/subtle_sound.ogg', volume = 50)
|
||||
if(pb.is_preference_enabled(/datum/client_preference/say_sounds))
|
||||
if(voice_sounds_list) //CHOMPEdit, changes subtle emote sound to use mob voice instead
|
||||
pb << sound(pick(voice_sounds_list), volume = 25)
|
||||
f = TRUE
|
||||
|
||||
else if(M.absorbed && isbelly(M.loc))
|
||||
pb = M.loc.loc
|
||||
to_chat(pb, "<span class='changeling'>\The [M] [message]</span>") //To our pred if absorbed
|
||||
if(pb.is_preference_enabled(/datum/client_preference/subtle_sounds))
|
||||
pb << sound('sound/talksounds/subtle_sound.ogg', volume = 50)
|
||||
if(pb.is_preference_enabled(/datum/client_preference/say_sounds))
|
||||
if(voice_sounds_list) //CHOMPEdit, changes subtle emote sound to use mob voice instead
|
||||
pb << sound(pick(voice_sounds_list), volume = 25)
|
||||
f = TRUE
|
||||
|
||||
if(pb) //We are prey, let's do the prey thing.
|
||||
@@ -260,15 +271,17 @@
|
||||
if(istype(I, /mob/living/dominated_brain) && I != M)
|
||||
var/mob/living/dominated_brain/db = I
|
||||
to_chat(db, "<span class='changeling'>\The [M] [message]</span>") //To any dominated brains in the pred
|
||||
if(db.is_preference_enabled(/datum/client_preference/subtle_sounds))
|
||||
db << sound('sound/talksounds/subtle_sound.ogg', volume = 50)
|
||||
if(pb.is_preference_enabled(/datum/client_preference/say_sounds))
|
||||
if(voice_sounds_list) //CHOMPEdit, changes subtle emote sound to use mob voice instead
|
||||
pb << sound(pick(voice_sounds_list), volume = 25)
|
||||
f = TRUE
|
||||
for(var/B in pb.vore_organs)
|
||||
for(var/mob/living/L in B)
|
||||
if(L.absorbed && L != M && L.ckey)
|
||||
to_chat(L, "<span class='changeling'>\The [M] [message]</span>") //To any absorbed people in the pred
|
||||
if(L.is_preference_enabled(/datum/client_preference/subtle_sounds))
|
||||
L << sound('sound/talksounds/subtle_sound.ogg', volume = 50)
|
||||
if(L.is_preference_enabled(/datum/client_preference/say_sounds))
|
||||
if(voice_sounds_list) //CHOMPEdit, changes subtle emote sound to use mob voice instead
|
||||
L << sound(pick(voice_sounds_list), volume = 25)
|
||||
f = TRUE
|
||||
|
||||
//Let's also check and see if there's anyone inside of us to send the message to.
|
||||
@@ -276,26 +289,30 @@
|
||||
if(istype(I, /mob/living/dominated_brain))
|
||||
var/mob/living/dominated_brain/db = I
|
||||
to_chat(db, "<span class='changeling'><b>\The [M] [message]</b></span>") //To any dominated brains inside us
|
||||
if(db.is_preference_enabled(/datum/client_preference/subtle_sounds))
|
||||
db << sound('sound/talksounds/subtle_sound.ogg', volume = 50)
|
||||
if(db.is_preference_enabled(/datum/client_preference/say_sounds))
|
||||
if(voice_sounds_list) //CHOMPEdit, changes subtle emote sound to use mob voice instead
|
||||
db << sound(pick(voice_sounds_list), volume = 25)
|
||||
f = TRUE
|
||||
for(var/B in M.vore_organs)
|
||||
for(var/mob/living/L in B)
|
||||
if(L.absorbed)
|
||||
to_chat(L, "<span class='changeling'><b>\The [M] [message]</b></span>") //To any absorbed people inside us
|
||||
if(L.is_preference_enabled(/datum/client_preference/subtle_sounds))
|
||||
L << sound('sound/talksounds/subtle_sound.ogg', volume = 50)
|
||||
if(L.is_preference_enabled(/datum/client_preference/say_sounds))
|
||||
if(voice_sounds_list) //CHOMPEdit, changes subtle emote sound to use mob voice instead
|
||||
L << sound(pick(voice_sounds_list), volume = 25)
|
||||
f = TRUE
|
||||
|
||||
if(f) //We found someone to send the message to
|
||||
if(pb)
|
||||
to_chat(M, "<span class='changeling'>\The [M] [message]</span>") //To us if we are the prey
|
||||
if(M.is_preference_enabled(/datum/client_preference/subtle_sounds))
|
||||
M << sound('sound/talksounds/subtle_sound.ogg', volume = 50)
|
||||
if(M.is_preference_enabled(/datum/client_preference/say_sounds))
|
||||
if(voice_sounds_list) //CHOMPEdit, changes subtle emote sound to use mob voice instead
|
||||
M << sound(pick(voice_sounds_list), volume = 25)
|
||||
else
|
||||
to_chat(M, "<span class='changeling'><b>\The [M] [message]</b></span>") //To us if we are the pred
|
||||
if(M.is_preference_enabled(/datum/client_preference/subtle_sounds))
|
||||
M << sound('sound/talksounds/subtle_sound.ogg', volume = 50)
|
||||
if(M.is_preference_enabled(/datum/client_preference/say_sounds))
|
||||
if(voice_sounds_list) //CHOMPEdit, changes subtle emote sound to use mob voice instead
|
||||
M << sound(pick(voice_sounds_list), volume = 25)
|
||||
for (var/mob/G in player_list)
|
||||
if (istype(G, /mob/new_player))
|
||||
continue
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
var/absorbing_prey = 0 // Determines if the person is using the succubus drain or not. See station_special_abilities_vr.
|
||||
var/drain_finalized = 0 // Determines if the succubus drain will be KO'd/absorbed. Can be toggled on at any time.
|
||||
var/fuzzy = 0 // Preference toggle for sharp/fuzzy icon.
|
||||
var/voice_freq = 0 // Preference for character voice frequency
|
||||
var/list/voice_sounds_list = list() // The sound list containing our voice sounds!
|
||||
// var/voice_freq = 0 // Preference for character voice frequency CHOMPEdit - Moved to modular_chomp/code/modules/mob/mob.dm
|
||||
// var/list/voice_sounds_list = list() // The sound list containing our voice sounds! CHOMPEdit - Moved to modular_chomp/code/modules/mob/mob.dm
|
||||
var/permit_healbelly = TRUE
|
||||
var/stumble_vore = TRUE //Enabled by default since you have to enable drop pred/prey to do this anyway
|
||||
var/slip_vore = TRUE //Enabled by default since you have to enable drop pred/prey to do this anyway
|
||||
@@ -327,7 +327,7 @@
|
||||
drop_vore = P.drop_vore
|
||||
slip_vore = P.slip_vore
|
||||
stumble_vore = P.stumble_vore
|
||||
|
||||
|
||||
nutrition_message_visible = P.nutrition_message_visible
|
||||
nutrition_messages = P.nutrition_messages
|
||||
weight_message_visible = P.weight_message_visible
|
||||
|
||||
3
modular_chomp/code/modules/mob/mob.dm
Normal file
3
modular_chomp/code/modules/mob/mob.dm
Normal file
@@ -0,0 +1,3 @@
|
||||
/mob
|
||||
var/voice_freq = 42500 // Preference for character voice frequency
|
||||
var/list/voice_sounds_list = list() // The sound list containing our voice sounds!
|
||||
@@ -4494,6 +4494,7 @@
|
||||
#include "modular_chomp\code\modules\datums\supplypacks\munitions.dm"
|
||||
#include "modular_chomp\code\modules\emotes\definitions\audiable.dm"
|
||||
#include "modular_chomp\code\modules\mob\holder.dm"
|
||||
#include "modular_chomp\code\modules\mob\mob.dm"
|
||||
#include "modular_chomp\code\modules\mob\living\emote.dm"
|
||||
#include "modular_chomp\code\modules\mob\living\carbon\human\species\species.dm"
|
||||
#include "modular_chomp\code\modules\mob\living\carbon\human\species\station\protean\_protean_defines.dm"
|
||||
|
||||
Reference in New Issue
Block a user