Skip to content

Commit

Permalink
Merge pull request Civ13#2658 from realkhad/new-sounds
Browse files Browse the repository at this point in the history
add new sound effects for charging & clapping
  • Loading branch information
Bierkraan authored Mar 31, 2024
2 parents 2db8b2a + 1e3e194 commit 1850441
Show file tree
Hide file tree
Showing 22 changed files with 34 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/game/mob/living/carbon/human/emotes/emote.dm
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ var/list/vocal_emotes = list(
if (!restrained())
message = "claps."
m_type = 2
playsound(get_turf(src), "sound/effects/emotes/clap.ogg", 100)
if (miming)
m_type = 1
if ("flap")
Expand Down Expand Up @@ -391,6 +392,8 @@ var/list/vocal_emotes = list(
playsound(get_turf(src), "charge_IRANIAN", 100)
else if (original_job.is_heist && original_job.is_law)
playsound(get_turf(src), "charge_POLICE", 100)
else // we default to generic charges if there's no appropriate civilian charge
playsound(get_turf(src), "charge_GENERIC_[gender]", 100)
if (PIRATES)
if (original_job.is_event)
playsound(get_turf(src), "charge_REDMENIA", 100)
Expand Down Expand Up @@ -461,6 +464,8 @@ var/list/vocal_emotes = list(
playsound(get_turf(src), "charge_VIETNAMESE", 100)
if (FILIPINO)
playsound(get_turf(src), "charge_FILIPINO", 100)
else // if no corresponding faction is found we'll default to generic charges
playsound(get_turf(src), "charge_GENERIC_[gender]", 100)
else
message = "makes a weak noise."
m_type = 2
Expand Down
29 changes: 29 additions & 0 deletions code/game/sound.dm
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,30 @@ var/list/charge_sounds_ballas = list(
'sound/effects/emotes/ballas_vsgrov2.ogg',
'sound/effects/emotes/ballas_vsgrov3.ogg',
'sound/effects/emotes/ballas_vsgrov4.ogg',)
// generic charge sounds from cm
var/list/charge_sounds_generic_male = list(
'sound/effects/emotes/male_generic_warcry1.ogg',
'sound/effects/emotes/male_generic_warcry2.ogg',
'sound/effects/emotes/male_generic_warcry3.ogg',
'sound/effects/emotes/male_generic_warcry4.ogg',
'sound/effects/emotes/male_generic_warcry5.ogg',
'sound/effects/emotes/male_generic_warcry6.ogg',
'sound/effects/emotes/male_generic_warcry7.ogg',
'sound/effects/emotes/male_generic_warcry8.ogg',
'sound/effects/emotes/male_generic_warcry9.ogg',
'sound/effects/emotes/male_generic_warcry10.ogg',
'sound/effects/emotes/male_generic_warcry11.ogg',
'sound/effects/emotes/male_generic_warcry12.ogg',
'sound/effects/emotes/male_generic_warcry13.ogg',
)
var/list/charge_sounds_generic_female = list(
'sound/effects/emotes/female_generic_warcry1.ogg',
'sound/effects/emotes/female_generic_warcry2.ogg',
'sound/effects/emotes/female_generic_warcry3.ogg',
'sound/effects/emotes/female_generic_warcry4.ogg',
'sound/effects/emotes/female_generic_warcry5.ogg',
'sound/effects/emotes/female_generic_warcry6.ogg',
)
// pain, etc sounds from Interbay

/proc/playsound(var/atom/source, soundin, vol as num, vary, extrarange as num, falloff, var/is_global, var/list/excluded = list())
Expand Down Expand Up @@ -604,4 +628,9 @@ var/const/FALLOFF_SOUNDS = 0.5
soundin = pick(charge_sounds_grove)
if ("charge_BALLAS")
soundin = pick(charge_sounds_ballas)
// generic charges from cm
if ("charge_GENERIC_male")
soundin = pick(charge_sounds_generic_male)
if ("charge_GENERIC_female")
soundin = pick(charge_sounds_generic_female)
return soundin
Binary file added sound/effects/emotes/clap.ogg
Binary file not shown.
Binary file not shown.
Binary file added sound/effects/emotes/female_generic_warcry2.ogg
Binary file not shown.
Binary file added sound/effects/emotes/female_generic_warcry3.ogg
Binary file not shown.
Binary file added sound/effects/emotes/female_generic_warcry4.ogg
Binary file not shown.
Binary file added sound/effects/emotes/female_generic_warcry5.ogg
Binary file not shown.
Binary file added sound/effects/emotes/female_generic_warcry6.ogg
Binary file not shown.
Binary file added sound/effects/emotes/male_generic_warcry1.ogg
Binary file not shown.
Binary file added sound/effects/emotes/male_generic_warcry10.ogg
Binary file not shown.
Binary file added sound/effects/emotes/male_generic_warcry11.ogg
Binary file not shown.
Binary file added sound/effects/emotes/male_generic_warcry12.ogg
Binary file not shown.
Binary file added sound/effects/emotes/male_generic_warcry13.ogg
Binary file not shown.
Binary file added sound/effects/emotes/male_generic_warcry2.ogg
Binary file not shown.
Binary file added sound/effects/emotes/male_generic_warcry3.ogg
Binary file not shown.
Binary file added sound/effects/emotes/male_generic_warcry4.ogg
Binary file not shown.
Binary file added sound/effects/emotes/male_generic_warcry5.ogg
Binary file not shown.
Binary file added sound/effects/emotes/male_generic_warcry6.ogg
Binary file not shown.
Binary file added sound/effects/emotes/male_generic_warcry7.ogg
Binary file not shown.
Binary file added sound/effects/emotes/male_generic_warcry8.ogg
Binary file not shown.
Binary file added sound/effects/emotes/male_generic_warcry9.ogg
Binary file not shown.

0 comments on commit 1850441

Please sign in to comment.