mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
- Technical: All sounds are now using a masterlist that is indexed via keypairs, saving on overhead and copypaste. - Technical continued: Rather than defining sounds per species, go to sound.dm, add a define, following the above, then add your key + pair to species_sounds_map - for instance, `"Mouse" = mouse_sounds`. Easy as that. - All mobs refer to this list rather than defining their own pain/etc sounds. - All mobs can override death sounds with death_sound_override set to the sound (or sounds) of their choice. - Added the following sound options: Lizard, Metroid, Mouse, Raccoon, Slime, Spider, Teshari, Vox, Vulpine, Xeno - If Species Sound is set to "Unset", it will automatically grab the correct sounds for your gender *and* species, if those exist. - For developers: set `gender_specific_species_sounds` to TRUE on your species, and set `species_sounds_[gender]` (fill in gender with your chosen gender) for it to fetch these sounds. - Species can now control the volume that their emote sounds play at. Refer to the added variables in `species.dm` for details. - Cough/Sneeze/Scream/Pain/Gasp/Death sounds are all now standardized and use the same procs to fetch sounds, cutting down on copy/paste and reducing changes for things to go wrong. - Fixed multiple smaller bugs, the details of which elude me, in regards to 1.0/Original - Ported Xeno scream/roar/pain/death sounds from TGMC. - Deathgasp actually plays your death sound (TBD if this is too spammy). 2.1 - Technical: Fixed a runtime in get_default_species_sounds where it was trying to fetch from dummy mob rather than the player's preferences. - Fixed an error where chat would not display the "this set does not have 'x' sounds!" message.
22 lines
647 B
Plaintext
22 lines
647 B
Plaintext
/decl/emote/audible/wheeze
|
|
emote_sound = 'modular_chomp/sound/voice/wheeze.ogg'
|
|
|
|
/decl/emote/audible/prbt2
|
|
key = "prbt2"
|
|
emote_message_1p = "You prbt."
|
|
emote_message_3p = "prbts."
|
|
emote_message_1p_target = "You prbt at TARGET."
|
|
emote_message_3p_target = "prbts at TARGET."
|
|
emote_sound = 'sound/voice/prbt2.ogg'
|
|
|
|
/decl/emote/audible/gasp/get_emote_sound(var/atom/user)
|
|
..()
|
|
var/mob/living/carbon/human/H = user
|
|
// CHOMPEdit: Standardize Species Sounds Getters
|
|
var/vol = H.species.gasp_volume
|
|
return list(
|
|
"sound" = get_species_sound(get_gendered_sound(H))["gasp"],
|
|
"vol" = vol,
|
|
"volchannel" = VOLUME_CHANNEL_SPECIES_SOUNDS
|
|
)
|