mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Update 2.0
- 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.
This commit is contained in:
@@ -12,17 +12,10 @@
|
||||
/decl/emote/audible/gasp/get_emote_sound(var/atom/user)
|
||||
..()
|
||||
var/mob/living/carbon/human/H = user
|
||||
if(H.get_gender() == FEMALE)
|
||||
return list(
|
||||
"sound" = H.species.female_gasp_sound,
|
||||
"vol" = 60,
|
||||
"exr" = 10,
|
||||
"volchannel" = VOLUME_CHANNEL_INJ_DEATH
|
||||
)
|
||||
else
|
||||
return list(
|
||||
"sound" = H.species.male_gasp_sound,
|
||||
"vol" = 60,
|
||||
"exr" = 10,
|
||||
"volchannel" = VOLUME_CHANNEL_INJ_DEATH
|
||||
// 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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user