[MIRROR] DCS Update + Footstep element (#10125)

Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-02-08 18:41:38 -07:00
committed by GitHub
parent 4dab3b582f
commit 4524b7b325
61 changed files with 155 additions and 254 deletions

View File

@@ -14,7 +14,7 @@
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
var/custom_speech_bubble = "default"
var/custom_footstep = "Default" // CHOMPAdd
var/custom_footstep = "Default"
var/species_sound = "Unset" // CHOMPEdit: Use default species pain/scream sounds based off icon base if none set, override otherwise
// Definition of the stuff for Sizing
@@ -32,8 +32,8 @@
pref.voice_freq = save_data["voice_freq"]
pref.voice_sound = save_data["voice_sound"]
pref.custom_speech_bubble = save_data["custom_speech_bubble"]
//CHOMPAdd Start
pref.custom_footstep = save_data["custom_footstep"]
//CHOMPAdd Start
pref.species_sound = save_data["species_sound"]
//CHOMPAdd End
@@ -47,8 +47,8 @@
save_data["voice_freq"] = pref.voice_freq
save_data["voice_sound"] = pref.voice_sound
save_data["custom_speech_bubble"] = pref.custom_speech_bubble
//CHOMPAdd Start
save_data["custom_footstep"] = pref.custom_footstep
//CHOMPAdd Start
save_data["species_sound"] = pref.species_sound
//CHOMPAdd End
@@ -64,7 +64,7 @@
pref.size_multiplier = initial(pref.size_multiplier)
if(!(pref.custom_speech_bubble in selectable_speech_bubbles))
pref.custom_speech_bubble = "default"
if(!(pref.custom_footstep)) // CHOMPAdd
if(!(pref.custom_footstep))
pref.custom_footstep = "Default"
// var/datum/species/selected_species = GLOB.all_species[pref.species] // CHOMPEdit
if(!(pref.species_sound)) // CHOMPEdit // && selected_species.selects_bodytype
@@ -214,14 +214,6 @@
else
pref.voice_sound = choice
return TOPIC_REFRESH
// CHOMPAdd Start
else if(href_list["customize_footsteps"])
var/list/footstep_choice = selectable_footstep
var/choice = tgui_input_list(user, "What footstep sounds would your character make?", "Custom Foostep Sounds", footstep_choice)
if(choice)
pref.custom_footstep = footstep_choice[choice]
return TOPIC_REFRESH
// CHOMPAdd End
else if(href_list["customize_speech_bubble"])
var/choice = tgui_input_list(user, "What speech bubble style do you want to use? (default for automatic selection)", "Custom Speech Bubble", selectable_speech_bubbles)
if(!choice)
@@ -230,6 +222,13 @@
pref.custom_speech_bubble = choice
return TOPIC_REFRESH
else if(href_list["customize_footsteps"])
var/list/footstep_choice = selectable_footstep
var/choice = tgui_input_list(user, "What footstep sounds would your character make?", "Custom Foostep Sounds", footstep_choice)
if(choice)
pref.custom_footstep = footstep_choice[choice]
return TOPIC_REFRESH
else if(href_list["voice_test"])
var/sound/S
switch(pref.voice_sound)