diff --git a/code/__DEFINES/sound.dm b/code/__DEFINES/sound.dm
index fd8d1e9639c..a843ca1511d 100644
--- a/code/__DEFINES/sound.dm
+++ b/code/__DEFINES/sound.dm
@@ -60,3 +60,109 @@
#define SOUND_ENVIRONMENT_DRUGGED 23
#define SOUND_ENVIRONMENT_DIZZY 24
#define SOUND_ENVIRONMENT_PSYCHOTIC 25
+
+/// List of all of our sound keys.
+#define SFX_SHATTER "shatter"
+#define SFX_EXPLOSION_LARGE "explosion_large"
+#define SFX_EXPLOSION_MICRO "explosion_micro"
+#define SFX_EXPLOSION_SMALL "explosion_small"
+#define SFX_EXPLOSION_MED "explosion_med"
+#define SFX_EXPLOSION_SMALL_DISTANT "explosion_small_distant"
+#define SFX_EXPLOSION_LARGE_DISTANT "explosion_large_distant"
+#define SFX_EXPLOSION_CREAK "explosion_creak"
+#define SFX_SPARKS "sparks"
+#define SFX_RUSTLE "rustle"
+#define SFX_PUNCH "punch"
+#define SFX_BONE_BREAK "bone_break"
+#define SFX_SNAP "snap"
+#define SFX_CLOWNSTEP "clownstep"
+#define SFX_SWING_HIT "swing_hit"
+#define SFX_PAGE_TURN "pageturn"
+#define SFX_GASBREATH "gasbreath"
+#define SFX_TERMINAL_TYPE "terminal_type"
+#define SFX_VENDING "vending"
+#define SFX_INCENDIARY_EXPLOSION "incendiary_explosion"
+#define SFX_MOLOTOV "molotov"
+#define SFX_FLASHBANG "flashbang"
+#define SFX_BALLISTIC_HIT "ballistic_hit"
+#define SFX_BALLISTIC_HITMARKER "ballistic hitmarker"
+#define SFX_BALLISTIC_ARMOR "ballistic_armor"
+#define SFX_BALLISTIC_MISS "ballistic_miss"
+#define SFX_BALLISTIC_BOUNCE "ballistic_bounce"
+#define SFX_ROCKET_BOUNCE "rocket_bounce"
+#define SFX_ENERGY_HIT "energy_hit"
+#define SFX_ALLOY_HIT "alloy_hit"
+#define SFX_ALLOY_ARMOR "alloy_armor"
+#define SFX_ALLOY_BOUNCE "alloy_bounce"
+#define SFX_GUN_SILENCED "gun_silenced"
+#define SFX_GUN_SMARTGUN "gun_smartgun"
+#define SFX_GUN_FLAMETHROWER "gun_flamethrower"
+#define SFX_GUN_AR12 "gun_ar12"
+#define SFX_GUN_FB12 "gun_fb12"
+#define SFX_SHOTGUN_SOM "shotgun_som"
+#define SFX_GUN_PULSE "gun_pulse"
+#define SFX_RPG_FIRE "rpg_fire"
+#define SFX_AC_FIRE "ac_fire"
+#define SFX_SVD_FIRE "svd_fire"
+#define SFX_FAL_FIRE "fal_fire"
+#define SFX_MP38_FIRE "mp38_fire"
+#define SFX_ACID_HIT "acid_hit"
+#define SFX_ACID_BOUNCE "acid_bounce"
+#define SFX_ALIEN_CLAW_FLESH "alien_claw_flesh"
+#define SFX_ALIEN_CLAW_METAL "alien_claw_metal"
+#define SFX_ALIEN_BITE "alien_bite"
+#define SFX_ALIEN_TAIL_ATTACK "alien_tail_attack"
+#define SFX_ALIEN_FOOTSTEP_LARGE "alien_footstep_large"
+#define SFX_ALIEN_CHARGE "alien_charge"
+#define SFX_ALIEN_RESIN_BUILD "alien_resin_build"
+#define SFX_ALIEN_RESIN_BREAK "alien_resin_break"
+#define SFX_ALIEN_RESIN_MOVE "alien_resin_move"
+#define SFX_ALIEN_TALK "alien_talk"
+#define SFX_LARVA_TALK "larva_talk"
+#define SFX_PREDALIEN_TALK "predalien_talk"
+#define SFX_ALIEN_GROWL "alien_growl"
+#define SFX_ALIEN_HISS "alien_hiss"
+#define SFX_ALIEN_TAIL_SWIPE "alien_tail_swipe"
+#define SFX_ALIEN_HELP "alien_help"
+#define SFX_ALIEN_DROOL "alien_drool"
+#define SFX_ALIEN_ROAR "alien_roar"
+#define SFX_ALIEN_ROAR_LARVA "alien_roar_larva"
+#define SFX_QUEEN "queen"
+#define SFX_ALIEN_VENTPASS "alien_ventpass"
+#define SFX_BEHEMOTH_STEP_SOUNDS "behemoth_step_sounds"
+#define SFX_BEHEMOTH_ROLLING "behemoth_rolling"
+#define SFX_BEHEMOTH_EARTH_PILLAR_HIT "behemoth_earth_pillar_hit"
+#define SFX_MALE_SCREAM "male_scream"
+#define SFX_MALE_PAIN "male_pain"
+#define SFX_MALE_GORED "male_gored"
+#define SFX_MALE_FRAGOUT "male_fragout"
+#define SFX_MALE_WARCRY "male_warcry"
+#define SFX_MALE_LAUGH "male_laugh"
+#define SFX_FEMALE_SCREAM "female_scream"
+#define SFX_FEMALE_PAIN "female_pain"
+#define SFX_FEMALE_GORED "female_gored"
+#define SFX_FEMALE_FRAGOUT "female_fragout"
+#define SFX_FEMALE_WARCRY "female_warcry"
+#define SFX_FEMALE_LAUGH "female_laugh"
+#define SFX_MALE_HUGGED "male_hugged"
+#define SFX_FEMALE_HUGGED "female_hugged"
+#define SFX_MALE_GASP "male_gasp"
+#define SFX_FEMALE_GASP "female_gasp"
+#define SFX_MALE_COUGH "male_cough"
+#define SFX_FEMALE_COUGH "female_cough"
+#define SFX_MALE_PREBURST "male_preburst"
+#define SFX_FEMALE_PREBURST "female_preburst"
+#define SFX_JUMP "jump"
+#define SFX_ROBOT_SCREAM "robot_scream"
+#define SFX_ROBOT_PAIN "robot_pain"
+#define SFX_ROBOT_WARCRY "robot_warcry"
+#define SFX_ROBOT_MALE_LAUGH "robot_male_laugh"
+#define SFX_ROBOT_FEMALE_LAUGH "robot_female_laugh"
+#define SFX_PRED_HUGGED "pred_hugged"
+#define SFX_PRED_SCREAM "pred_scream"
+#define SFX_PRED_PAIN "pred_pain"
+#define SFX_PRED_PREBURST "pred_preburst"
+#define SFX_PRED_WARCRY "pred_warcry"
+#define SFX_PRED_LAUGH "pred_laugh"
+#define SFX_CLAN_SWORD_HIT "clan_sword_hit"
+#define SFX_CHAIN_SWING "chain_swing"
diff --git a/code/_onclick/ventcrawl.dm b/code/_onclick/ventcrawl.dm
index f9bfdfff686..a37760735b7 100644
--- a/code/_onclick/ventcrawl.dm
+++ b/code/_onclick/ventcrawl.dm
@@ -67,7 +67,7 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, typecacheof(list(
visible_message(span_notice("[stealthy ? "[src] scrambles into the ventilation ducts!" : ""]"),span_notice("You climb into the ventilation ducts."))
if(!stealthy) //Xenos with stealth vent crawling can silently enter/exit vents.
- playsound(src, get_sfx("alien_ventpass"), 35, TRUE)
+ playsound(src, SFX_ALIEN_VENTPASS, 35, TRUE)
forceMove(vent_found)
update_pipe_vision()
diff --git a/code/datums/autocells/explosion.dm b/code/datums/autocells/explosion.dm
index 072fd88ec9c..863dfc411d9 100644
--- a/code/datums/autocells/explosion.dm
+++ b/code/datums/autocells/explosion.dm
@@ -263,19 +263,19 @@ as having entered the turf.
var/far_dist = power * 0.1
if(!silent)
var/frequency = GET_RAND_FREQUENCY
- var/sound/explosion_sound = sound(get_sfx("explosion_large"))
- var/sound/far_explosion_sound = sound(get_sfx("explosion_large_distant"))
- var/sound/creak_sound = sound(get_sfx("explosion_creak"))
+ var/sound/explosion_sound = SFX_EXPLOSION_LARGE
+ var/sound/far_explosion_sound = SFX_EXPLOSION_LARGE_DISTANT
+ var/sound/creak_sound = SFX_EXPLOSION_CREAK
//no need to loop this for every mob
switch(power)
if(0 to EXPLODE_LIGHT)
- explosion_sound = sound(get_sfx("explosion_small"))
- far_explosion_sound = sound(get_sfx("explosion_small_distant"))
+ explosion_sound = SFX_EXPLOSION_SMALL
+ far_explosion_sound = SFX_EXPLOSION_SMALL_DISTANT
if(EXPLODE_LIGHT to EXPLODE_HEAVY)
- explosion_sound = sound(get_sfx("explosion_med"))
+ explosion_sound = SFX_EXPLOSION_MED
if(EXPLODE_HEAVY to INFINITY)
- explosion_sound = sound(get_sfx("explosion_large"))
+ explosion_sound = SFX_EXPLOSION_LARGE
//there should be a use of client_by_zlevel, but due to the nature of explosions this is difficult to implement
for(var/MN in GLOB.player_list|GLOB.aiEyes)
@@ -285,16 +285,16 @@ as having entered the turf.
if(mob_turf?.z == epicenter.z)
var/dist = get_dist(mob_turf, epicenter)
if(dist <= max(round(power, 1)))
- our_mob.playsound_local(epicenter, null, 75, 1, frequency, falloff = 5, S = explosion_sound)
+ our_mob.playsound_local(epicenter, null, 75, 1, frequency, falloff = 5, sound_to_use = explosion_sound)
if(is_mainship_level(epicenter.z))
- our_mob.playsound_local(epicenter, null, 40, 1, frequency, falloff = 5, S = creak_sound)//ship groaning under explosion effect
+ our_mob.playsound_local(epicenter, null, 40, 1, frequency, falloff = 5, sound_to_use = creak_sound)//ship groaning under explosion effect
// You hear a far explosion if you're outside the blast radius. Small bombs shouldn't be heard all over the station.
else if(dist <= far_dist)
var/far_volume = clamp(far_dist, 30, 60) // Volume is based on explosion size and dist
far_volume += (dist <= far_dist * 0.5 ? 50 : 0) // add 50 volume if the mob is pretty close to the explosion
- our_mob.playsound_local(epicenter, null, far_volume, 1, frequency, falloff = 5, S = far_explosion_sound)
+ our_mob.playsound_local(epicenter, null, far_volume, 1, frequency, falloff = 5, sound_to_use = far_explosion_sound)
if(is_mainship_level(epicenter.z))
- our_mob.playsound_local(epicenter, null, far_volume * 3, 1, frequency, falloff = 5, S = creak_sound)//ship groaning under explosion effect
+ our_mob.playsound_local(epicenter, null, far_volume * 3, 1, frequency, falloff = 5, sound_to_use = creak_sound)//ship groaning under explosion effect
if(!orig_range)
orig_range = round(power / falloff)
new /obj/effect/temp_visual/explosion(epicenter, orig_range, color, power)
diff --git a/code/datums/fire_support.dm b/code/datums/fire_support.dm
index a0bd43a9681..ad06f9dd01f 100644
--- a/code/datums/fire_support.dm
+++ b/code/datums/fire_support.dm
@@ -359,7 +359,7 @@
/datum/fire_support/mortar/smoke/do_impact(turf/target_turf)
var/datum/effect_system/smoke_spread/smoke = new smoketype()
- playsound(target_turf, "explosion_small", 50)
+ playsound(target_turf, SFX_EXPLOSION_SMALL, 50)
playsound(target_turf, 'sound/effects/smoke_bomb.ogg', 25, TRUE)
smoke.set_up(smokeradius, target_turf, smoke_duration)
smoke.start()
diff --git a/code/datums/gamemodes/infestation.dm b/code/datums/gamemodes/infestation.dm
index f78be8ff1be..1b9ed72787b 100644
--- a/code/datums/gamemodes/infestation.dm
+++ b/code/datums/gamemodes/infestation.dm
@@ -104,7 +104,7 @@
var/numHostsTransitr = BIOSCAN_DELTA(numHostsTransit, delta)
var/numXenosTransitr = BIOSCAN_DELTA(numXenosTransit, delta)
- var/sound/S = sound(get_sfx("queen"), channel = CHANNEL_ANNOUNCEMENTS, volume = 50)
+ var/sound/S = sound(SFX_QUEEN, channel = CHANNEL_ANNOUNCEMENTS, volume = 50)
if(announce_xenos)
for(var/i in GLOB.alive_xeno_list_hive[XENO_HIVE_NORMAL])
var/mob/M = i
diff --git a/code/game/atoms/_atom.dm b/code/game/atoms/_atom.dm
index 9783f8c1618..efe3c85dd04 100644
--- a/code/game/atoms/_atom.dm
+++ b/code/game/atoms/_atom.dm
@@ -969,7 +969,7 @@ directive is properly returned.
///What happens when with atom is melted by acid
/atom/proc/do_acid_melt()
visible_message(span_xenodanger("[src] collapses under its own weight into a puddle of goop and undigested debris!"))
- playsound(src, "acid_hit", 25)
+ playsound(src, SFX_ACID_HIT, 25)
///Anything called here will have failed CanPass(), so it's likely dense.
/atom/proc/pre_crush_act(mob/living/carbon/xenomorph/charger, datum/action/ability/xeno_action/ready_charge/charge_datum)
diff --git a/code/game/objects/effects/aliens.dm b/code/game/objects/effects/aliens.dm
index d0f2c0f2903..c097c9db473 100644
--- a/code/game/objects/effects/aliens.dm
+++ b/code/game/objects/effects/aliens.dm
@@ -228,7 +228,7 @@
/obj/effect/xenomorph/acid/proc/on_pickup(obj/item/item, mob/living/carbon/human/human_user)
human_user.visible_message(span_danger("Corrosive substances seethe all over [human_user] as [human_user.p_they()] retrieves the acid-soaked [item]!"),
span_danger("Corrosive substances burn and seethe all over you upon retrieving the acid-soaked [item]!"))
- playsound(human_user, "acid_hit", 25)
+ playsound(human_user, SFX_ACID_HIT, 25)
human_user.emote("pain")
var/list/affected_limbs = list("l_hand", "r_hand", "l_arm", "r_arm")
var/limb_count = null
diff --git a/code/game/objects/explosion_recursive.dm b/code/game/objects/explosion_recursive.dm
index a4915763a7e..4e9260a9627 100644
--- a/code/game/objects/explosion_recursive.dm
+++ b/code/game/objects/explosion_recursive.dm
@@ -56,14 +56,14 @@ explosion resistance exactly as much as their health
msg_admin_ff("Explosion with Power: [power], Falloff: [falloff] in area [epicenter.loc.name] ([epicenter.x],[epicenter.y],[epicenter.z]).", src.loc.x, src.loc.y, src.loc.z [ADMIN_JMP(epicenter)])
playsound(epicenter, 'sound/effects/explosion/far0.ogg', 100, 1, round(power ^ 2, 1))
- var/sound/explosion_sound = sound(get_sfx("explosion_large"))
+ var/sound/explosion_sound = SFX_EXPLOSION_LARGE
switch(power)
if(0 to EXPLODE_LIGHT)
- explosion_sound = sound(get_sfx("explosion_small"))
+ explosion_sound = SFX_EXPLOSION_SMALL
if(EXPLODE_LIGHT to EXPLODE_HEAVY)
- explosion_sound = sound(get_sfx("explosion_med"))
+ explosion_sound = SFX_EXPLOSION_MED
if(EXPLODE_HEAVY to INFINITY)
- explosion_sound = sound(get_sfx("explosion_large"))
+ explosion_sound = SFX_EXPLOSION_LARGE
playsound(epicenter, get_sfx("explosion"), 90, 1, max(round(power, 1), 7))
playsound(epicenter, explosion_sound, 90, 1, falloff = 5)
diff --git a/code/game/objects/items/cocoon.dm b/code/game/objects/items/cocoon.dm
index eacfb0790cc..e5a3f175d61 100644
--- a/code/game/objects/items/cocoon.dm
+++ b/code/game/objects/items/cocoon.dm
@@ -54,7 +54,7 @@
new /obj/structure/bed/nest(loc)
anchored = FALSE
update_icon()
- playsound(loc, "alien_resin_move", 35)
+ playsound(loc, SFX_ALIEN_RESIN_MOVE, 35)
///Stop producing points and release the victim if needed
/obj/structure/cocoon/proc/life_draining_over(datum/source, must_release_victim = FALSE)
@@ -84,7 +84,7 @@
///Open the cocoon and move the victim out
/obj/structure/cocoon/proc/release_victim(gib = FALSE)
REMOVE_TRAIT(victim, TRAIT_STASIS, TRAIT_STASIS)
- playsound(loc, "alien_resin_move", 35)
+ playsound(loc, SFX_ALIEN_RESIN_MOVE, 35)
victim.forceMove(loc)
victim.setDir(NORTH)
victim.med_hud_set_status()
diff --git a/code/game/objects/items/defibrillator.dm b/code/game/objects/items/defibrillator.dm
index adac2fc391e..e6604112f41 100644
--- a/code/game/objects/items/defibrillator.dm
+++ b/code/game/objects/items/defibrillator.dm
@@ -95,7 +95,7 @@
ready = !ready
user.visible_message(span_notice("[user] turns [src] [ready? "on and opens the cover" : "off and closes the cover"]."),
span_notice("You turn [src] [ready? "on and open the cover" : "off and close the cover"]."))
- playsound(get_turf(src), "sparks", 25, TRUE, 4)
+ playsound(get_turf(src), SFX_SPARKS, 25, TRUE, 4)
if(ready)
playsound(get_turf(src), 'sound/items/defib_safetyOn.ogg', 30, 0)
else
diff --git a/code/game/objects/items/devices/tablets.dm b/code/game/objects/items/devices/tablets.dm
index cb0cb9295e9..c68189f7f64 100644
--- a/code/game/objects/items/devices/tablets.dm
+++ b/code/game/objects/items/devices/tablets.dm
@@ -181,7 +181,7 @@
var/list/cameras = get_available_cameras()
var/obj/machinery/camera/selected_camera = cameras[c_tag]
active_camera = selected_camera
- playsound(src, get_sfx("terminal_type"), 25, FALSE)
+ playsound(src, SFX_TERMINAL_TYPE, 25, FALSE)
if(!selected_camera)
return TRUE
diff --git a/code/game/objects/items/explosives/grenades/flashbang.dm b/code/game/objects/items/explosives/grenades/flashbang.dm
index aebc38c5fc0..0e1f576a3f9 100644
--- a/code/game/objects/items/explosives/grenades/flashbang.dm
+++ b/code/game/objects/items/explosives/grenades/flashbang.dm
@@ -25,7 +25,7 @@
/obj/item/explosive/grenade/flashbang/prime()
var/turf/target_turf = get_turf(src)
- playsound(target_turf, "flashbang", 65)
+ playsound(target_turf, SFX_FLASHBANG, 65)
for(var/mob/living/carbon/victim in hearers(max_range, target_turf))
if(!HAS_TRAIT(victim, TRAIT_FLASHBANGIMMUNE))
bang(target_turf, victim)
diff --git a/code/game/objects/items/explosives/grenades/grenade.dm b/code/game/objects/items/explosives/grenades/grenade.dm
index 785a5e2df8d..9853902be6b 100644
--- a/code/game/objects/items/explosives/grenades/grenade.dm
+++ b/code/game/objects/items/explosives/grenades/grenade.dm
@@ -53,7 +53,7 @@
balloon_alert_to_viewers("primes grenade")
if(initial(dangerous) && ishumanbasic(user))
- var/nade_sound = user.gender == FEMALE ? get_sfx("female_fragout") : get_sfx("male_fragout")
+ var/nade_sound = user.gender == FEMALE ? SFX_FEMALE_FRAGOUT : SFX_MALE_FRAGOUT
for(var/mob/living/carbon/human/H in hearers(6,user))
H.playsound_local(user, nade_sound, 35)
diff --git a/code/game/objects/items/explosives/grenades/marines.dm b/code/game/objects/items/explosives/grenades/marines.dm
index 734b097ed05..9c08b7cf632 100644
--- a/code/game/objects/items/explosives/grenades/marines.dm
+++ b/code/game/objects/items/explosives/grenades/marines.dm
@@ -158,7 +158,7 @@
/obj/item/explosive/grenade/sticky/trailblazer/prime()
flame_radius(0.5, get_turf(src))
- playsound(loc, "incendiary_explosion", 35)
+ playsound(loc, SFX_INCENDIARY_EXPLOSION, 35)
if(stuck_to)
clean_refs()
qdel(src)
@@ -200,7 +200,7 @@
/obj/item/explosive/grenade/sticky/trailblazer/phosphorus/prime()
flame_radius(0.5, get_turf(src), colour = "blue")
- playsound(loc, "incendiary_explosion", 35)
+ playsound(loc, SFX_INCENDIARY_EXPLOSION, 35)
if(stuck_to)
clean_refs()
qdel(src)
@@ -257,7 +257,7 @@
/obj/item/explosive/grenade/incendiary/prime()
flame_radius(2, get_turf(src))
- playsound(loc, "incendiary_explosion", 35)
+ playsound(loc, SFX_INCENDIARY_EXPLOSION, 35)
qdel(src)
@@ -294,7 +294,7 @@
/obj/item/explosive/grenade/incendiary/molotov/prime()
flame_radius(2, get_turf(src))
- playsound(loc, "molotov", 35)
+ playsound(loc, SFX_MOLOTOV, 35)
qdel(src)
/obj/item/explosive/grenade/incendiary/molotov/throw_impact(atom/hit_atom, speed, bounce = TRUE)
diff --git a/code/game/objects/items/explosives/plastique.dm b/code/game/objects/items/explosives/plastique.dm
index f764c12f8d3..70d9ed8c3ac 100644
--- a/code/game/objects/items/explosives/plastique.dm
+++ b/code/game/objects/items/explosives/plastique.dm
@@ -151,7 +151,7 @@
qdel(src)
return
cell_explosion(plant_target, 95, 45, EXPLOSION_FALLOFF_SHAPE_EXPONENTIAL)
- playsound(plant_target, sound(get_sfx("explosion_small")), 100, FALSE, 25)
+ playsound(plant_target, SFX_EXPLOSION_SMALL, 100, FALSE, 25)
var/datum/effect_system/smoke_spread/smoke = new smoketype()
smoke.set_up(smokeradius, plant_target, 2)
smoke.start()
@@ -190,7 +190,7 @@
qdel(src)
return
new /obj/fire/flamer/autospread(flame_target, 17, 31)
- playsound(plant_target, sound(get_sfx("explosion_small")), 100, FALSE, 25)
+ playsound(plant_target, SFX_EXPLOSION_SMALL, 100, FALSE, 25)
qdel(src)
/obj/fire/flamer/autospread
diff --git a/code/game/objects/items/flashlight.dm b/code/game/objects/items/flashlight.dm
index a1dc5d91768..c0127edae84 100644
--- a/code/game/objects/items/flashlight.dm
+++ b/code/game/objects/items/flashlight.dm
@@ -43,7 +43,7 @@
/obj/item/flashlight/attack_alien(mob/living/carbon/xenomorph/xeno_attacker, isrightclick = FALSE)
if(turn_light(xeno_attacker, FALSE) != CHECKS_PASSED)
return
- playsound(loc, "alien_claw_metal", 25, 1)
+ playsound(loc, SFX_ALIEN_CLAW_METAL, 25, 1)
xeno_attacker.do_attack_animation(src, ATTACK_EFFECT_CLAW)
to_chat(xeno_attacker, span_warning("We disable the metal thing's lights.") )
diff --git a/code/game/objects/items/portable_vendor.dm b/code/game/objects/items/portable_vendor.dm
index 75ad15db7b6..d08648f29b1 100644
--- a/code/game/objects/items/portable_vendor.dm
+++ b/code/game/objects/items/portable_vendor.dm
@@ -13,7 +13,7 @@
)
flags_atom = CONDUCT
force = 8
- hitsound = "swing_hit"
+ hitsound = SFX_SWING_HIT
throw_speed = 1
throw_range = 4
w_class = WEIGHT_CLASS_BULKY
diff --git a/code/game/objects/items/reagent_containers/food/drinks/bottle.dm b/code/game/objects/items/reagent_containers/food/drinks/bottle.dm
index a7af13fd465..97753a81e6c 100644
--- a/code/game/objects/items/reagent_containers/food/drinks/bottle.dm
+++ b/code/game/objects/items/reagent_containers/food/drinks/bottle.dm
@@ -22,7 +22,7 @@
I.SwapColor(rgb(255, 0, 220, 255), rgb(0, 0, 0, 0))
B.icon = I
- playsound(src, "shatter", 25, 1)
+ playsound(src, SFX_SHATTER, 25, 1)
user.put_in_active_hand(B)
qdel(src)
diff --git a/code/game/objects/items/stacks/sandbags.dm b/code/game/objects/items/stacks/sandbags.dm
index 9408d2360f9..46ae35efb93 100644
--- a/code/game/objects/items/stacks/sandbags.dm
+++ b/code/game/objects/items/stacks/sandbags.dm
@@ -40,7 +40,7 @@
new_bags.add_to_stacks(user)
var/obj/item/stack/sandbags_empty/E = src
var/replace = (user.get_inactive_held_item() == E)
- playsound(user.loc, "rustle", 30, 1, 6)
+ playsound(user.loc, SFX_RUSTLE, 30, 1, 6)
if(!E && replace)
user.put_in_hands(new_bags)
diff --git a/code/game/objects/items/storage/belt.dm b/code/game/objects/items/storage/belt.dm
index e2cc49f4463..289e73462ae 100644
--- a/code/game/objects/items/storage/belt.dm
+++ b/code/game/objects/items/storage/belt.dm
@@ -761,7 +761,7 @@
if(!cont)
break
- playsound(user.loc, "rustle", 15, TRUE, 6)
+ playsound(user.loc, SFX_RUSTLE, 15, TRUE, 6)
to_chat(user, span_notice("You refill [src] with [M]."))
return TRUE
diff --git a/code/game/objects/items/storage/pouch.dm b/code/game/objects/items/storage/pouch.dm
index f081a50b630..2e766b5b28d 100644
--- a/code/game/objects/items/storage/pouch.dm
+++ b/code/game/objects/items/storage/pouch.dm
@@ -876,7 +876,7 @@
if(!cont)
break
- playsound(user.loc, "rustle", 15, TRUE, 6)
+ playsound(user.loc, SFX_RUSTLE, 15, TRUE, 6)
to_chat(user, span_notice("You refill [src] with [M]."))
return TRUE
diff --git a/code/game/objects/items/tools/shovel_tools.dm b/code/game/objects/items/tools/shovel_tools.dm
index 8e3e50d1fe5..753ca89bf61 100644
--- a/code/game/objects/items/tools/shovel_tools.dm
+++ b/code/game/objects/items/tools/shovel_tools.dm
@@ -97,7 +97,7 @@
else
var/turf/T = target
balloon_alert(user, "Dumps the [dirt_type == DIRT_TYPE_SNOW ? "snow" : "dirt"]")
- playsound(user.loc, "rustle", 30, 1, 6)
+ playsound(user.loc, SFX_RUSTLE, 30, 1, 6)
if(dirt_type == DIRT_TYPE_SNOW)
var/obj/item/stack/snow/S = locate() in T
if(S && (S.amount + dirt_amt < S.max_amount))
diff --git a/code/game/objects/items/weapons/stunbaton.dm b/code/game/objects/items/weapons/stunbaton.dm
index 486831ca0e8..70bf117b4e6 100644
--- a/code/game/objects/items/weapons/stunbaton.dm
+++ b/code/game/objects/items/weapons/stunbaton.dm
@@ -113,7 +113,7 @@
if(bcell?.charge > hitcost)
status = !status
to_chat(user, span_notice("[src] is now [status ? "on" : "off"]."))
- playsound(loc, "sparks", 25, 1, 6)
+ playsound(loc, SFX_SPARKS, 25, 1, 6)
update_icon()
else
status = 0
@@ -225,7 +225,7 @@
if(charges > 0)
status = !status
to_chat(user, span_notice("\The [src] is now [status ? "on" : "off"]."))
- playsound(loc, "sparks", 15, 1)
+ playsound(loc, SFX_SPARKS, 15, 1)
update_icon()
else
status = 0
diff --git a/code/game/objects/items/weapons/weapon.dm b/code/game/objects/items/weapons/weapon.dm
index 99f79777e8d..47c72e81716 100644
--- a/code/game/objects/items/weapons/weapon.dm
+++ b/code/game/objects/items/weapons/weapon.dm
@@ -7,7 +7,7 @@
slot_l_hand_str = 'icons/mob/inhands/weapons/melee_left.dmi',
slot_r_hand_str = 'icons/mob/inhands/weapons/melee_right.dmi',
)
- hitsound = "swing_hit"
+ hitsound = SFX_SWING_HIT
var/caliber = "missing from codex" //codex
var/load_method = null //codex, defines are below.
var/max_shells = 0 //codex, bullets, shotgun shells TODO: KILL THESE TWO VARS
diff --git a/code/game/objects/machinery/camera/camera.dm b/code/game/objects/machinery/camera/camera.dm
index 00fdd581dbf..17443453a07 100644
--- a/code/game/objects/machinery/camera/camera.dm
+++ b/code/game/objects/machinery/camera/camera.dm
@@ -161,7 +161,7 @@
xeno_attacker.do_attack_animation(src, ATTACK_EFFECT_CLAW)
xeno_attacker.visible_message(span_danger("[xeno_attacker] slashes \the [src]!"), \
span_danger("We slash \the [src]!"))
- playsound(loc, "alien_claw_metal", 25, 1)
+ playsound(loc, SFX_ALIEN_CLAW_METAL, 25, 1)
if(!CHECK_BITFIELD(machine_stat, PANEL_OPEN))
ENABLE_BITFIELD(machine_stat, PANEL_OPEN)
diff --git a/code/game/objects/machinery/computer/camera.dm b/code/game/objects/machinery/computer/camera.dm
index 2d02861febe..1b2a948e1eb 100644
--- a/code/game/objects/machinery/computer/camera.dm
+++ b/code/game/objects/machinery/computer/camera.dm
@@ -120,7 +120,7 @@
var/list/cameras = get_available_cameras()
var/obj/machinery/camera/C = cameras[c_tag]
active_camera = C
- playsound(src, get_sfx("terminal_type"), 25, FALSE)
+ playsound(src, SFX_TERMINAL_TYPE, 25, FALSE)
// Show static if can't use the camera
if(!active_camera?.can_use())
diff --git a/code/game/objects/machinery/computer/camera_advanced.dm b/code/game/objects/machinery/computer/camera_advanced.dm
index d7136cc23cd..77c35761cd4 100644
--- a/code/game/objects/machinery/computer/camera_advanced.dm
+++ b/code/game/objects/machinery/computer/camera_advanced.dm
@@ -422,7 +422,7 @@
playsound(origin, 'sound/machines/terminal_prompt.ogg', 25, 0)
var/camera = tgui_input_list(owner, "Choose which camera you want to view?", "Cameras", T)
var/obj/machinery/camera/C = T[camera]
- playsound(src, "terminal_type", 25, 0)
+ playsound(src, SFX_TERMINAL_TYPE, 25, 0)
if(!C)
playsound(origin, 'sound/machines/terminal_prompt_deny.ogg', 25, 0)
diff --git a/code/game/objects/machinery/computer/nuke_disk_generator.dm b/code/game/objects/machinery/computer/nuke_disk_generator.dm
index b8c728cb482..4f2d3e4cc86 100644
--- a/code/game/objects/machinery/computer/nuke_disk_generator.dm
+++ b/code/game/objects/machinery/computer/nuke_disk_generator.dm
@@ -98,7 +98,7 @@
xeno_attacker.do_attack_animation(src, ATTACK_EFFECT_CLAW)
xeno_attacker.visible_message(span_danger("[xeno_attacker] slashes \the [src]!"), \
span_danger("We slash \the [src]!"), null, 5)
- playsound(loc, "alien_claw_metal", 25, TRUE)
+ playsound(loc, SFX_ALIEN_CLAW_METAL, 25, TRUE)
seconds_elapsed = (segment_time * 0.1) * completed_segments
running = FALSE
diff --git a/code/game/objects/machinery/miner.dm b/code/game/objects/machinery/miner.dm
index 61843a1adf8..8629e1a6c5a 100644
--- a/code/game/objects/machinery/miner.dm
+++ b/code/game/objects/machinery/miner.dm
@@ -339,7 +339,7 @@
xeno_attacker.do_attack_animation(src, ATTACK_EFFECT_CLAW)
xeno_attacker.visible_message(span_danger("[xeno_attacker] slashes \the [src]!"), \
span_danger("We slash \the [src]!"), null, 5)
- playsound(loc, "alien_claw_metal", 25, TRUE)
+ playsound(loc, SFX_ALIEN_CLAW_METAL, 25, TRUE)
miner_integrity -= 25
set_miner_status()
if(miner_status == MINER_DESTROYED && xeno_attacker.client)
diff --git a/code/game/objects/machinery/telecomms/ground_telecomms.dm b/code/game/objects/machinery/telecomms/ground_telecomms.dm
index 11005a72e4f..01906536534 100644
--- a/code/game/objects/machinery/telecomms/ground_telecomms.dm
+++ b/code/game/objects/machinery/telecomms/ground_telecomms.dm
@@ -132,7 +132,7 @@
X.do_attack_animation(src, ATTACK_EFFECT_CLAW)
X.visible_message(span_danger("[X] slashes \the [src]!"), \
span_danger("We slash \the [src]!"), null, 5)
- playsound(loc, "alien_claw_metal", 25, TRUE)
+ playsound(loc, SFX_ALIEN_CLAW_METAL, 25, TRUE)
tower_integrity -= 25
set_tower_status()
diff --git a/code/game/objects/machinery/vending/new_marine_vendors.dm b/code/game/objects/machinery/vending/new_marine_vendors.dm
index 4d7a0836966..06e52301acf 100644
--- a/code/game/objects/machinery/vending/new_marine_vendors.dm
+++ b/code/game/objects/machinery/vending/new_marine_vendors.dm
@@ -177,7 +177,7 @@
else
vended_items += new idx(loc)
- playsound(src, "vending", 25, 0)
+ playsound(src, SFX_VENDING, 25, 0)
if(icon_vend)
flick(icon_vend, src)
diff --git a/code/game/objects/machinery/vending/vending.dm b/code/game/objects/machinery/vending/vending.dm
index f3adae81c46..04c70ee4976 100644
--- a/code/game/objects/machinery/vending/vending.dm
+++ b/code/game/objects/machinery/vending/vending.dm
@@ -515,7 +515,7 @@
if(vending_sound)
playsound(src, vending_sound, 25, 0)
else
- playsound(src, "vending", 25, 0)
+ playsound(src, SFX_VENDING, 25, 0)
if(ispath(R.product_path,/obj/item/weapon/gun))
return new R.product_path(get_turf(src), 1)
else
diff --git a/code/game/objects/obj_defense.dm b/code/game/objects/obj_defense.dm
index 385b963e518..8d8af642b06 100644
--- a/code/game/objects/obj_defense.dm
+++ b/code/game/objects/obj_defense.dm
@@ -130,7 +130,7 @@
xeno_attacker.visible_message(span_danger("[xeno_attacker] has slashed [src]!"),
span_danger("We slash [src]!"))
xeno_attacker.do_attack_animation(src, ATTACK_EFFECT_CLAW)
- playsound(loc, "alien_claw_metal", 25)
+ playsound(loc, SFX_ALIEN_CLAW_METAL, 25)
attack_generic(xeno_attacker, damage_amount, damage_type, damage_flag, effects, armor_penetration)
return TRUE
diff --git a/code/game/objects/structures/curtains.dm b/code/game/objects/structures/curtains.dm
index eea081b6686..5c8cd3185b2 100644
--- a/code/game/objects/structures/curtains.dm
+++ b/code/game/objects/structures/curtains.dm
@@ -20,7 +20,7 @@
. = ..()
if(.)
return
- playsound(get_turf(loc), "rustle", 15, 1, 6)
+ playsound(get_turf(loc), SFX_RUSTLE, 15, 1, 6)
toggle()
/obj/structure/curtain/attack_alien(mob/living/carbon/xenomorph/attackingxeno, damage_amount, damage_type, damage_flag, effects, armor_penetration, isrightclick)
diff --git a/code/game/objects/structures/stool_bed_chair_nest/xeno_nest.dm b/code/game/objects/structures/stool_bed_chair_nest/xeno_nest.dm
index e1dafa8927f..dce0d655765 100644
--- a/code/game/objects/structures/stool_bed_chair_nest/xeno_nest.dm
+++ b/code/game/objects/structures/stool_bed_chair_nest/xeno_nest.dm
@@ -7,7 +7,7 @@
desc = "It's a gruesome pile of thick, sticky resin shaped like a nest."
icon = 'icons/Xeno/Effects.dmi'
icon_state = "nest"
- hit_sound = "alien_resin_break"
+ hit_sound = SFX_ALIEN_RESIN_BREAK
buckling_y = 6
buildstacktype = null //can't be disassembled and doesn't drop anything when destroyed
resistance_flags = UNACIDABLE|XENO_DAMAGEABLE
@@ -39,7 +39,7 @@
xeno_attacker.do_attack_animation(src, ATTACK_EFFECT_CLAW)
xeno_attacker.visible_message(span_xenonotice("\The [xeno_attacker] tears down \the [src]!"), \
span_xenonotice("We tear down \the [src]."))
- playsound(src, "alien_resin_break", 25)
+ playsound(src, SFX_ALIEN_RESIN_BREAK, 25)
take_damage(max_integrity) // Ensure its destroyed
/obj/structure/bed/nest/user_buckle_mob(mob/living/buckling_mob, mob/user, check_loc = TRUE, silent)
@@ -74,7 +74,7 @@
buckling_mob.visible_message(span_xenonotice("[user] secretes a thick, vile resin, securing [buckling_mob] into [src]!"),
span_xenonotice("[user] drenches you in a foul-smelling resin, trapping you in [src]!"),
span_notice("You hear squelching."))
- playsound(loc, "alien_resin_move", 50)
+ playsound(loc, SFX_ALIEN_RESIN_MOVE, 50)
silent = TRUE
return ..()
@@ -86,7 +86,7 @@
buckled_mob.visible_message(span_notice("\The [user] pulls \the [buckled_mob] free from \the [src]!"),
span_notice("\The [user] pulls you free from \the [src]."),
span_notice("You hear squelching."))
- playsound(loc, "alien_resin_move", 50)
+ playsound(loc, SFX_ALIEN_RESIN_MOVE, 50)
silent = TRUE
return ..()
if(force_nest)
diff --git a/code/game/objects/structures/xeno/_xeno.dm b/code/game/objects/structures/xeno/_xeno.dm
index 963b19610a4..a99a03ecf7d 100644
--- a/code/game/objects/structures/xeno/_xeno.dm
+++ b/code/game/objects/structures/xeno/_xeno.dm
@@ -2,7 +2,7 @@
name = "alien thing"
desc = "theres something alien about this"
icon = 'icons/Xeno/Effects.dmi'
- hit_sound = "alien_resin_break"
+ hit_sound = SFX_ALIEN_RESIN_BREAK
anchored = TRUE
max_integrity = 1
resistance_flags = UNACIDABLE
diff --git a/code/game/objects/structures/xeno/door.dm b/code/game/objects/structures/xeno/door.dm
index 4f8f24b47ec..9342e2fb09b 100644
--- a/code/game/objects/structures/xeno/door.dm
+++ b/code/game/objects/structures/xeno/door.dm
@@ -14,9 +14,9 @@
SMOOTH_GROUP_MINERAL_STRUCTURES,
)
soft_armor = list(MELEE = 33, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 15, BIO = 0, FIRE = 0, ACID = 0)
- trigger_sound = "alien_resin_move"
- hit_sound = "alien_resin_move"
- destroy_sound = "alien_resin_move"
+ trigger_sound = SFX_ALIEN_RESIN_MOVE
+ hit_sound = SFX_ALIEN_RESIN_MOVE
+ destroy_sound = SFX_ALIEN_RESIN_MOVE
///The delay before the door closes automatically after being open
var/close_delay = 10 SECONDS
///The timer that tracks the delay above
@@ -60,7 +60,7 @@
return TRUE
src.balloon_alert(xeno_attacker, "Destroying...")
- playsound(src, "alien_resin_break", 25)
+ playsound(src, SFX_ALIEN_RESIN_BREAK, 25)
if(do_after(xeno_attacker, 1 SECONDS, IGNORE_HELD_ITEM, src, BUSY_ICON_HOSTILE))
src.balloon_alert(xeno_attacker, "Destroyed")
qdel(src)
diff --git a/code/game/objects/structures/xeno/growth.dm b/code/game/objects/structures/xeno/growth.dm
index a11908c14d9..1dde434ccc3 100644
--- a/code/game/objects/structures/xeno/growth.dm
+++ b/code/game/objects/structures/xeno/growth.dm
@@ -6,7 +6,7 @@
opacity = FALSE
max_integrity = 5
layer = RESIN_STRUCTURE_LAYER
- hit_sound = "alien_resin_move"
+ hit_sound = SFX_ALIEN_RESIN_MOVE
var/growth_time = 300 SECONDS
var/structure = "wall"
@@ -22,11 +22,11 @@
SIGNAL_HANDLER
if(!ismob(O) || isxeno(O))
return
- playsound(src, "alien_resin_break", 25)
+ playsound(src, SFX_ALIEN_RESIN_BREAK, 25)
deconstruct(TRUE)
/obj/alien/resin/resin_growth/proc/on_growth()
- playsound(src, "alien_resin_build", 25)
+ playsound(src, SFX_ALIEN_RESIN_BUILD, 25)
var/turf/T = get_turf(src)
switch(structure)
if("wall")
diff --git a/code/game/objects/structures/xeno/resin.dm b/code/game/objects/structures/xeno/resin.dm
index d8d3b2ef0ad..cbaa5bfdb6a 100644
--- a/code/game/objects/structures/xeno/resin.dm
+++ b/code/game/objects/structures/xeno/resin.dm
@@ -17,7 +17,7 @@
opacity = FALSE
max_integrity = 36
layer = RESIN_STRUCTURE_LAYER
- hit_sound = "alien_resin_move"
+ hit_sound = SFX_ALIEN_RESIN_MOVE
var/slow_amt = 8
/// Does this refund build points when destoryed?
var/refundable = TRUE
@@ -65,7 +65,7 @@
if(CHECK_BITFIELD(SSticker.mode?.flags_round_type, MODE_ALLOW_XENO_QUICKBUILD) && SSresinshaping.should_refund(src, xeno_attacker) && refundable)
SSresinshaping.decrement_build_counter(xeno_attacker)
xeno_attacker.do_attack_animation(src, ATTACK_EFFECT_CLAW)
- playsound(src, "alien_resin_break", 25)
+ playsound(src, SFX_ALIEN_RESIN_BREAK, 25)
deconstruct(TRUE)
return
diff --git a/code/game/sound.dm b/code/game/sound.dm
index f9b1853850e..bd673e5ad57 100644
--- a/code/game/sound.dm
+++ b/code/game/sound.dm
@@ -36,7 +36,9 @@
1.0, 10.0, 10.0, 255, \
)
-/**Proc used to play a sound.
+/**
+ * Proc used to play a sound.
+ *
* Arguments:
* * source: what played the sound.
* * soundin: the .ogg to use.
@@ -94,21 +96,36 @@ A good representation is: 'byond applies a volume reduction to the sound every X
continue
crew.playsound_local(origin_point, soundin, vol*0.5, vary, frequency, falloff, is_global, channel, S)
-//todo rename S to sound_to_use
-/mob/proc/playsound_local(turf/turf_source, soundin, vol, vary, frequency, falloff, is_global, channel = 0, sound/S, distance_multiplier = 1, mob/sound_reciever)
+/**
+ * Plays a sound locally
+ *
+ * Arguments:
+ * * turf_source - The turf our sound originates from
+ * * soundin - the .ogg or SFX of our sound
+ * * vol - Changes the volume of our sound, relevant when measuring falloff
+ * * vary - to make the frequency var of the sound vary (mostly unused).
+ * * frequency - Optional: if vary is set, this is how much we vary by (or a random amount if not given any value)
+ * * falloff - Optional: Calculates falloff if not passed a value
+ * * is_global - if false, sets our environment to SOUND_ENVIRONMENT_ROOM
+ * * channel - Optional: Picks a random available channel if not set
+ * * sound_to_use - Optional: Will default to soundin
+ * * distance_multiplier - Affects x and z hearing
+ * * sound_reciever - Defaults to src, the thing that is hearing this sound
+ */
+/mob/proc/playsound_local(turf/turf_source, soundin, vol, vary, frequency, falloff, is_global, channel = 0, sound/sound_to_use, distance_multiplier = 1, mob/sound_reciever)
if(!sound_reciever)
sound_reciever = src
if(!sound_reciever.client)
return FALSE
- if(!S)
- S = sound(get_sfx(soundin))
- S.wait = 0 //No queue
- S.channel = channel || SSsounds.random_available_channel()
- S.volume = vol
+ if(!sound_to_use)
+ sound_to_use = sound(get_sfx(soundin))
+ sound_to_use.wait = 0 //No queue
+ sound_to_use.channel = channel || SSsounds.random_available_channel()
+ sound_to_use.volume = vol
if(vary)
- S.frequency = frequency ? frequency : GET_RANDOM_FREQ
+ sound_to_use.frequency = frequency ? frequency : GET_RANDOM_FREQ
if(isturf(turf_source))
// 3D sounds, the technology is here!
@@ -119,24 +136,24 @@ A good representation is: 'byond applies a volume reduction to the sound every X
distance *= distance_multiplier
- if(S.volume <= 2*distance)
+ if(sound_to_use.volume <= 2*distance)
return FALSE //no volume or too far away to hear such a volume level.
var/dx = turf_source.x - T.x // Hearing from the right/left
- S.x = dx * distance_multiplier
+ sound_to_use.x = dx * distance_multiplier
var/dz = turf_source.y - T.y // Hearing from infront/behind
- S.z = dz * distance_multiplier
+ sound_to_use.z = dz * distance_multiplier
//The y value is for above your head, but there is no ceiling in 2d spessmens.
- S.y = 1
- S.falloff = falloff ? falloff : FALLOFF_SOUNDS * max(round(S.volume * 0.05), 1)
+ sound_to_use.y = 1
+ sound_to_use.falloff = falloff ? falloff : FALLOFF_SOUNDS * max(round(sound_to_use.volume * 0.05), 1)
if(!is_global)
- S.environment = SOUND_ENVIRONMENT_ROOM
+ sound_to_use.environment = SOUND_ENVIRONMENT_ROOM
- SEND_SOUND(sound_reciever, S)
+ SEND_SOUND(sound_reciever, sound_to_use)
-/mob/living/playsound_local(turf/turf_source, soundin, vol, vary, frequency, falloff, is_global, channel = 0, sound/S, distance_multiplier = 1, mob/sound_reciever)
+/mob/living/playsound_local(turf/turf_source, soundin, vol, vary, frequency, falloff, is_global, channel = 0, sound/sound_to_use, distance_multiplier = 1, mob/sound_reciever)
if(ear_deaf > 0)
return FALSE
return ..()
@@ -185,229 +202,229 @@ A good representation is: 'byond applies a volume reduction to the sound every X
if(O.client)
SEND_SOUND(O, soundin)
-// The pick() proc has a built-in chance that can be added to any option by adding ,X; to the end of an option, where X is the % chance it will play.
-/proc/get_sfx(S)
- if(!istext(S))
- return S
- switch(S)
+///Used to convert a SFX define into a .ogg so we can add some variance to sounds. If soundin is already a .ogg, we simply return it
+/proc/get_sfx(soundin)
+ if(!istext(soundin))
+ return soundin
+ switch(soundin)
// General effects
- if("shatter")
- S = pick('sound/effects/glassbr1.ogg','sound/effects/glassbr2.ogg','sound/effects/glassbr3.ogg')
- if("explosion_large")
- S = pick('sound/effects/explosion/large1.ogg','sound/effects/explosion/large2.ogg','sound/effects/explosion/large3.ogg','sound/effects/explosion/large4.ogg','sound/effects/explosion/large5.ogg','sound/effects/explosion/large6.ogg')
- if("explosion_micro")
- S = pick('sound/effects/explosion/micro1.ogg','sound/effects/explosion/micro2.ogg','sound/effects/explosion/micro3.ogg')
- if("explosion_small")
- S = pick('sound/effects/explosion/small1.ogg','sound/effects/explosion/small2.ogg','sound/effects/explosion/small3.ogg','sound/effects/explosion/small4.ogg')
- if("explosion_med")
- S = pick('sound/effects/explosion/medium1.ogg','sound/effects/explosion/medium2.ogg','sound/effects/explosion/medium3.ogg','sound/effects/explosion/medium4.ogg','sound/effects/explosion/medium5.ogg','sound/effects/explosion/medium6.ogg')
- if("explosion_small_distant")
- S = pick('sound/effects/explosion/small_far1.ogg','sound/effects/explosion/small_far2.ogg','sound/effects/explosion/small_far3.ogg','sound/effects/explosion/small_far4.ogg')
- if("explosion_large_distant")
- S = pick('sound/effects/explosion/far1.ogg','sound/effects/explosion/far2.ogg','sound/effects/explosion/far3.ogg','sound/effects/explosion/far4.ogg','sound/effects/explosion/far5.ogg')
- if("explosion_creak")
- S = pick('sound/effects/creak1.ogg','sound/effects/creak2.ogg')
- if("sparks")
- S = pick('sound/effects/sparks1.ogg','sound/effects/sparks2.ogg','sound/effects/sparks3.ogg','sound/effects/sparks4.ogg')
- if("rustle")
- S = pick('sound/effects/rustle1.ogg','sound/effects/rustle2.ogg','sound/effects/rustle3.ogg','sound/effects/rustle4.ogg','sound/effects/rustle5.ogg')
- if("punch")
- S = pick('sound/weapons/punch1.ogg','sound/weapons/punch2.ogg','sound/weapons/punch3.ogg','sound/weapons/punch4.ogg')
- if("bone_break")
- S = pick('sound/effects/bone_break1.ogg','sound/effects/bone_break2.ogg','sound/effects/bone_break3.ogg','sound/effects/bone_break4.ogg','sound/effects/bone_break5.ogg','sound/effects/bone_break6.ogg','sound/effects/bone_break7.ogg')
- if("clownstep")
- S = pick('sound/effects/clownstep1.ogg','sound/effects/clownstep2.ogg')
- if("swing_hit")
- S = pick('sound/weapons/genhit1.ogg', 'sound/weapons/genhit2.ogg', 'sound/weapons/genhit3.ogg')
- if("pageturn")
- S = pick('sound/effects/pageturn1.ogg', 'sound/effects/pageturn2.ogg','sound/effects/pageturn3.ogg')
- if("gasbreath")
- S = pick('sound/effects/gasmaskbreath.ogg', 'sound/effects/gasmaskbreath2.ogg')
- if("terminal_type")
- S = pick('sound/machines/terminal_button01.ogg', 'sound/machines/terminal_button02.ogg', 'sound/machines/terminal_button03.ogg', \
+ if(SFX_SHATTER)
+ soundin = pick('sound/effects/glassbr1.ogg','sound/effects/glassbr2.ogg','sound/effects/glassbr3.ogg')
+ if(SFX_EXPLOSION_LARGE)
+ soundin = pick('sound/effects/explosion/large1.ogg','sound/effects/explosion/large2.ogg','sound/effects/explosion/large3.ogg','sound/effects/explosion/large4.ogg','sound/effects/explosion/large5.ogg','sound/effects/explosion/large6.ogg')
+ if(SFX_EXPLOSION_MICRO)
+ soundin = pick('sound/effects/explosion/micro1.ogg','sound/effects/explosion/micro2.ogg','sound/effects/explosion/micro3.ogg')
+ if(SFX_EXPLOSION_SMALL)
+ soundin = pick('sound/effects/explosion/small1.ogg','sound/effects/explosion/small2.ogg','sound/effects/explosion/small3.ogg','sound/effects/explosion/small4.ogg')
+ if(SFX_EXPLOSION_MED)
+ soundin = pick('sound/effects/explosion/medium1.ogg','sound/effects/explosion/medium2.ogg','sound/effects/explosion/medium3.ogg','sound/effects/explosion/medium4.ogg','sound/effects/explosion/medium5.ogg','sound/effects/explosion/medium6.ogg')
+ if(SFX_EXPLOSION_SMALL_DISTANT)
+ soundin = pick('sound/effects/explosion/small_far1.ogg','sound/effects/explosion/small_far2.ogg','sound/effects/explosion/small_far3.ogg','sound/effects/explosion/small_far4.ogg')
+ if(SFX_EXPLOSION_LARGE_DISTANT)
+ soundin = pick('sound/effects/explosion/far1.ogg','sound/effects/explosion/far2.ogg','sound/effects/explosion/far3.ogg','sound/effects/explosion/far4.ogg','sound/effects/explosion/far5.ogg')
+ if(SFX_EXPLOSION_CREAK)
+ soundin = pick('sound/effects/creak1.ogg','sound/effects/creak2.ogg')
+ if(SFX_SPARKS)
+ soundin = pick('sound/effects/sparks1.ogg','sound/effects/sparks2.ogg','sound/effects/sparks3.ogg','sound/effects/sparks4.ogg')
+ if(SFX_RUSTLE)
+ soundin = pick('sound/effects/rustle1.ogg','sound/effects/rustle2.ogg','sound/effects/rustle3.ogg','sound/effects/rustle4.ogg','sound/effects/rustle5.ogg')
+ if(SFX_PUNCH)
+ soundin = pick('sound/weapons/punch1.ogg','sound/weapons/punch2.ogg','sound/weapons/punch3.ogg','sound/weapons/punch4.ogg')
+ if(SFX_BONE_BREAK)
+ soundin = pick('sound/effects/bone_break1.ogg','sound/effects/bone_break2.ogg','sound/effects/bone_break3.ogg','sound/effects/bone_break4.ogg','sound/effects/bone_break5.ogg','sound/effects/bone_break6.ogg','sound/effects/bone_break7.ogg')
+ if(SFX_CLOWNSTEP)
+ soundin = pick('sound/effects/clownstep1.ogg','sound/effects/clownstep2.ogg')
+ if(SFX_SWING_HIT)
+ soundin = pick('sound/weapons/genhit1.ogg', 'sound/weapons/genhit2.ogg', 'sound/weapons/genhit3.ogg')
+ if(SFX_PAGE_TURN)
+ soundin = pick('sound/effects/pageturn1.ogg', 'sound/effects/pageturn2.ogg','sound/effects/pageturn3.ogg')
+ if(SFX_GASBREATH)
+ soundin = pick('sound/effects/gasmaskbreath.ogg', 'sound/effects/gasmaskbreath2.ogg')
+ if(SFX_TERMINAL_TYPE)
+ soundin = pick('sound/machines/terminal_button01.ogg', 'sound/machines/terminal_button02.ogg', 'sound/machines/terminal_button03.ogg', \
'sound/machines/terminal_button04.ogg', 'sound/machines/terminal_button05.ogg', 'sound/machines/terminal_button06.ogg', \
'sound/machines/terminal_button07.ogg', 'sound/machines/terminal_button08.ogg')
- if("vending")
- S = pick('sound/machines/vending_cans.ogg', 'sound/machines/vending_drop.ogg')
- if("incendiary_explosion")
- S = pick('sound/effects/explosion/incendiary1.ogg', 'sound/effects/explosion/incendiary2.ogg', 'sound/effects/explosion/incendiary3.ogg')
- if("molotov")
- S = pick('sound/effects/molotov_detonate_1.ogg', 'sound/effects/molotov_detonate_2.ogg', 'sound/effects/molotov_detonate_3.ogg')
- if("flashbang")
- S = pick('sound/effects/flashbang_explode_1.ogg', 'sound/effects/flashbang_explode_2.ogg')
+ if(SFX_VENDING)
+ soundin = pick('sound/machines/vending_cans.ogg', 'sound/machines/vending_drop.ogg')
+ if(SFX_INCENDIARY_EXPLOSION)
+ soundin = pick('sound/effects/explosion/incendiary1.ogg', 'sound/effects/explosion/incendiary2.ogg', 'sound/effects/explosion/incendiary3.ogg')
+ if(SFX_MOLOTOV)
+ soundin = pick('sound/effects/molotov_detonate_1.ogg', 'sound/effects/molotov_detonate_2.ogg', 'sound/effects/molotov_detonate_3.ogg')
+ if(SFX_FLASHBANG)
+ soundin = pick('sound/effects/flashbang_explode_1.ogg', 'sound/effects/flashbang_explode_2.ogg')
// Weapons/bullets
- if("ballistic_hit")
- S = pick('sound/bullets/bullet_impact1.ogg','sound/bullets/bullet_impact2.ogg','sound/bullets/bullet_impact3.ogg')
- if("ballistic hitmarker")
- S = pick('sound/bullets/bullet_impact4.ogg','sound/bullets/bullet_impact5.ogg','sound/bullets/bullet_impact6.ogg','sound/bullets/bullet_impact7.ogg')
- if("ballistic_armor")
- S = pick('sound/bullets/bullet_armor1.ogg','sound/bullets/bullet_armor2.ogg','sound/bullets/bullet_armor3.ogg','sound/bullets/bullet_armor4.ogg')
- if("ballistic_miss")
- S = pick('sound/bullets/bullet_miss1.ogg','sound/bullets/bullet_miss2.ogg','sound/bullets/bullet_miss3.ogg','sound/bullets/bullet_miss4.ogg')
- if("ballistic_bounce")
- S = pick('sound/bullets/bullet_ricochet1.ogg','sound/bullets/bullet_ricochet2.ogg','sound/bullets/bullet_ricochet3.ogg','sound/bullets/bullet_ricochet4.ogg','sound/bullets/bullet_ricochet5.ogg','sound/bullets/bullet_ricochet6.ogg','sound/bullets/bullet_ricochet7.ogg','sound/bullets/bullet_ricochet8.ogg')
- if("rocket_bounce")
- S = pick('sound/bullets/rocket_ricochet1.ogg','sound/bullets/rocket_ricochet2.ogg','sound/bullets/rocket_ricochet3.ogg')
- if("energy_hit")
- S = pick('sound/bullets/energy_impact1.ogg')
- if("alloy_hit")
- S = pick('sound/bullets/spear_impact1.ogg')
- if("alloy_armor")
- S = pick('sound/bullets/spear_armor1.ogg')
- if("alloy_bounce")
- S = pick('sound/bullets/spear_ricochet1.ogg','sound/bullets/spear_ricochet2.ogg')
- if("gun_silenced")
- S = pick('sound/weapons/guns/fire/silenced_shot1.ogg','sound/weapons/guns/fire/silenced_shot2.ogg')
- if("gun_smartgun")
- S = pick('sound/weapons/guns/fire/smartgun1.ogg', 'sound/weapons/guns/fire/smartgun2.ogg', 'sound/weapons/guns/fire/smartgun3.ogg')
- if("gun_flamethrower")
- S = pick('sound/weapons/guns/fire/flamethrower1.ogg', 'sound/weapons/guns/fire/flamethrower2.ogg', 'sound/weapons/guns/fire/flamethrower3.ogg')
- if("gun_ar12")
- S = pick('sound/weapons/guns/fire/tgmc/kinetic/gun_ar12_1.ogg','sound/weapons/guns/fire/tgmc/kinetic/gun_ar12_2.ogg','sound/weapons/guns/fire/tgmc/kinetic/gun_ar12_3.ogg')
- if("gun_fb12") // idk why i called it "fb-12", ah too late now
- S = pick('sound/weapons/guns/fire/tgmc/kinetic/gun_fb12_1.ogg','sound/weapons/guns/fire/tgmc/kinetic/gun_fb12_2.ogg','sound/weapons/guns/fire/tgmc/kinetic/gun_fb12_3.ogg')
- if("shotgun_som")
- S = pick('sound/weapons/guns/fire/v51_1.ogg','sound/weapons/guns/fire/v51_2.ogg','sound/weapons/guns/fire/v51_3.ogg','sound/weapons/guns/fire/v51_4.ogg')
- if("gun_pulse")
- S = pick('sound/weapons/guns/fire/m41a_1.ogg','sound/weapons/guns/fire/m41a_2.ogg','sound/weapons/guns/fire/m41a_3.ogg','sound/weapons/guns/fire/m41a_4.ogg','sound/weapons/guns/fire/m41a_5.ogg','sound/weapons/guns/fire/m41a_6.ogg')
- if("rpg_fire")
- S = pick('sound/weapons/guns/fire/rpg_1.ogg', 'sound/weapons/guns/fire/rpg_2.ogg', 'sound/weapons/guns/fire/rpg_3.ogg')
- if("ac_fire")
- S = pick('sound/weapons/guns/fire/autocannon_1.ogg', 'sound/weapons/guns/fire/autocannon_2.ogg', 'sound/weapons/guns/fire/autocannon_3.ogg')
- if("svd_fire")
- S = pick('sound/weapons/guns/fire/svd1.ogg', 'sound/weapons/guns/fire/svd2.ogg', 'sound/weapons/guns/fire/svd3.ogg')
- if("fal_fire")
- S = pick('sound/weapons/guns/fire/fal1.ogg', 'sound/weapons/guns/fire/fal2.ogg')
- if("mp38_fire")
- S = pick('sound/weapons/guns/fire/mp38_1.ogg', 'sound/weapons/guns/fire/mp38_2.ogg')
+ if(SFX_BALLISTIC_HIT)
+ soundin = pick('sound/bullets/bullet_impact1.ogg','sound/bullets/bullet_impact2.ogg','sound/bullets/bullet_impact3.ogg')
+ if(SFX_BALLISTIC_HITMARKER)
+ soundin = pick('sound/bullets/bullet_impact4.ogg','sound/bullets/bullet_impact5.ogg','sound/bullets/bullet_impact6.ogg','sound/bullets/bullet_impact7.ogg')
+ if(SFX_BALLISTIC_ARMOR)
+ soundin = pick('sound/bullets/bullet_armor1.ogg','sound/bullets/bullet_armor2.ogg','sound/bullets/bullet_armor3.ogg','sound/bullets/bullet_armor4.ogg')
+ if(SFX_BALLISTIC_MISS)
+ soundin = pick('sound/bullets/bullet_miss1.ogg','sound/bullets/bullet_miss2.ogg','sound/bullets/bullet_miss3.ogg','sound/bullets/bullet_miss4.ogg')
+ if(SFX_BALLISTIC_BOUNCE)
+ soundin = pick('sound/bullets/bullet_ricochet1.ogg','sound/bullets/bullet_ricochet2.ogg','sound/bullets/bullet_ricochet3.ogg','sound/bullets/bullet_ricochet4.ogg','sound/bullets/bullet_ricochet5.ogg','sound/bullets/bullet_ricochet6.ogg','sound/bullets/bullet_ricochet7.ogg','sound/bullets/bullet_ricochet8.ogg')
+ if(SFX_ROCKET_BOUNCE)
+ soundin = pick('sound/bullets/rocket_ricochet1.ogg','sound/bullets/rocket_ricochet2.ogg','sound/bullets/rocket_ricochet3.ogg')
+ if(SFX_ENERGY_HIT)
+ soundin = pick('sound/bullets/energy_impact1.ogg')
+ if(SFX_ALLOY_HIT)
+ soundin = pick('sound/bullets/spear_impact1.ogg')
+ if(SFX_ALLOY_ARMOR)
+ soundin = pick('sound/bullets/spear_armor1.ogg')
+ if(SFX_ALLOY_BOUNCE)
+ soundin = pick('sound/bullets/spear_ricochet1.ogg','sound/bullets/spear_ricochet2.ogg')
+ if(SFX_GUN_SILENCED)
+ soundin = pick('sound/weapons/guns/fire/silenced_shot1.ogg','sound/weapons/guns/fire/silenced_shot2.ogg')
+ if(SFX_GUN_SMARTGUN)
+ soundin = pick('sound/weapons/guns/fire/smartgun1.ogg', 'sound/weapons/guns/fire/smartgun2.ogg', 'sound/weapons/guns/fire/smartgun3.ogg')
+ if(SFX_GUN_FLAMETHROWER)
+ soundin = pick('sound/weapons/guns/fire/flamethrower1.ogg', 'sound/weapons/guns/fire/flamethrower2.ogg', 'sound/weapons/guns/fire/flamethrower3.ogg')
+ if(SFX_GUN_AR12)
+ soundin = pick('sound/weapons/guns/fire/tgmc/kinetic/gun_ar12_1.ogg','sound/weapons/guns/fire/tgmc/kinetic/gun_ar12_2.ogg','sound/weapons/guns/fire/tgmc/kinetic/gun_ar12_3.ogg')
+ if(SFX_GUN_FB12) // idk why i called it "fb-12", ah too late now
+ soundin = pick('sound/weapons/guns/fire/tgmc/kinetic/gun_fb12_1.ogg','sound/weapons/guns/fire/tgmc/kinetic/gun_fb12_2.ogg','sound/weapons/guns/fire/tgmc/kinetic/gun_fb12_3.ogg')
+ if(SFX_SHOTGUN_SOM)
+ soundin = pick('sound/weapons/guns/fire/v51_1.ogg','sound/weapons/guns/fire/v51_2.ogg','sound/weapons/guns/fire/v51_3.ogg','sound/weapons/guns/fire/v51_4.ogg')
+ if(SFX_GUN_PULSE)
+ soundin = pick('sound/weapons/guns/fire/m41a_1.ogg','sound/weapons/guns/fire/m41a_2.ogg','sound/weapons/guns/fire/m41a_3.ogg','sound/weapons/guns/fire/m41a_4.ogg','sound/weapons/guns/fire/m41a_5.ogg','sound/weapons/guns/fire/m41a_6.ogg')
+ if(SFX_RPG_FIRE)
+ soundin = pick('sound/weapons/guns/fire/rpg_1.ogg', 'sound/weapons/guns/fire/rpg_2.ogg', 'sound/weapons/guns/fire/rpg_3.ogg')
+ if(SFX_AC_FIRE)
+ soundin = pick('sound/weapons/guns/fire/autocannon_1.ogg', 'sound/weapons/guns/fire/autocannon_2.ogg', 'sound/weapons/guns/fire/autocannon_3.ogg')
+ if(SFX_SVD_FIRE)
+ soundin = pick('sound/weapons/guns/fire/svd1.ogg', 'sound/weapons/guns/fire/svd2.ogg', 'sound/weapons/guns/fire/svd3.ogg')
+ if(SFX_FAL_FIRE)
+ soundin = pick('sound/weapons/guns/fire/fal1.ogg', 'sound/weapons/guns/fire/fal2.ogg')
+ if(SFX_MP38_FIRE)
+ soundin = pick('sound/weapons/guns/fire/mp38_1.ogg', 'sound/weapons/guns/fire/mp38_2.ogg')
// Xeno
- if("acid_hit")
- S = pick('sound/bullets/acid_impact1.ogg')
- if("acid_bounce")
- S = pick('sound/bullets/acid_impact1.ogg')
- if("alien_claw_flesh")
- S = pick('sound/weapons/alien_claw_flesh1.ogg','sound/weapons/alien_claw_flesh2.ogg','sound/weapons/alien_claw_flesh3.ogg')
- if("alien_claw_metal")
- S = pick('sound/weapons/alien_claw_metal1.ogg','sound/weapons/alien_claw_metal2.ogg','sound/weapons/alien_claw_metal3.ogg')
- if("alien_bite")
- S = pick('sound/weapons/alien_bite1.ogg','sound/weapons/alien_bite2.ogg')
- if("alien_tail_attack")
- S = 'sound/weapons/alien_tail_attack.ogg'
- if("alien_footstep_large")
- S = pick('sound/effects/footstep/alien/large1.ogg','sound/effects/footstep/alien/large2.ogg','sound/effects/footstep/alien/large3.ogg')
- if("alien_charge")
- S = pick('sound/effects/footstep/alien/charge1.ogg','sound/effects/footstep/alien/charge2.ogg','sound/effects/footstep/alien/charge3.ogg')
- if("alien_resin_build")
- S = pick('sound/effects/alien/resin_build1.ogg','sound/effects/alien/resin_build2.ogg','sound/effects/alien/resin_build3.ogg')
- if("alien_resin_break")
- S = pick('sound/effects/alien/resin_break1.ogg','sound/effects/alien/resin_break2.ogg')
- if("alien_resin_move") // be aware, this isn't a footstep, footsteps are located elsewhere
- S = pick('sound/effects/alien/resin_move1.ogg', 'sound/effects/alien/resin_move2.ogg')
- if("alien_talk")
- S = pick('sound/voice/alien/talk.ogg','sound/voice/alien/talk2.ogg','sound/voice/alien/talk3.ogg')
- if("larva_talk")
- S = pick('sound/voice/alien/larva/talk1.ogg','sound/voice/alien/larva/talk2.ogg','sound/voice/alien/larva/talk3.ogg', 'sound/voice/alien/larva/talk4.ogg')
- if("predalien_talk")
- S = pick('sound/voice/alien/predalien/click1.ogg','sound/voice/alien/predalien/click2.ogg','sound/voice/alien/predalien/click3.ogg')
- if("alien_growl")
- S = pick('sound/voice/alien/growl1.ogg','sound/voice/alien/growl2.ogg','sound/voice/alien/growl3.ogg','sound/voice/alien/growl4.ogg')
- if("alien_hiss")
- S = pick('sound/voice/alien/hiss1.ogg','sound/voice/alien/hiss2.ogg','sound/voice/alien/hiss3.ogg')
- if("alien_tail_swipe")
- S = pick('sound/effects/alien/tail_swipe1.ogg','sound/effects/alien/tail_swipe2.ogg','sound/effects/alien/tail_swipe3.ogg')
- if("alien_help")
- S = pick('sound/voice/alien/help1.ogg','sound/voice/alien/help2.ogg')
- if("alien_drool")
- S = pick('sound/voice/alien/drool1.ogg','sound/voice/alien/drool2.ogg')
- if("alien_roar")
- S = pick('sound/voice/alien/roar1.ogg','sound/voice/alien/roar2.ogg','sound/voice/alien/roar3.ogg','sound/voice/alien/roar4.ogg','sound/voice/alien/roar5.ogg','sound/voice/alien/roar6.ogg','sound/voice/alien/roar7.ogg','sound/voice/alien/roar8.ogg','sound/voice/alien/roar9.ogg','sound/voice/alien/roar10.ogg','sound/voice/alien/roar11.ogg','sound/voice/alien/roar12.ogg')
- if("alien_roar_larva")
- S = pick('sound/voice/alien/larva/roar1.ogg','sound/voice/alien/larva/roar2.ogg','sound/voice/alien/larva/roar3.ogg','sound/voice/alien/larva/roar4.ogg')
- if("queen")
- S = pick('sound/voice/alien/queen/command.ogg','sound/voice/alien/queen/command2.ogg','sound/voice/alien/queen/command3.ogg')
- if("alien_ventpass")
- S = pick('sound/effects/alien/ventpass1.ogg', 'sound/effects/alien/ventpass2.ogg')
- if("behemoth_step_sounds")
- S = pick('sound/effects/footstep/alien/large1.ogg', 'sound/effects/footstep/alien/large2.ogg', 'sound/effects/footstep/alien/large3.ogg')
- if("behemoth_rolling")
- S = 'sound/effects/alien/behemoth/roll.ogg'
- if("behemoth_earth_pillar_hit")
- S = pick('sound/effects/alien/behemoth/earth_pillar_hit_1.ogg', 'sound/effects/alien/behemoth/earth_pillar_hit_2.ogg', 'sound/effects/alien/behemoth/earth_pillar_hit_3.ogg', 'sound/effects/alien/behemoth/earth_pillar_hit_4.ogg', 'sound/effects/alien/behemoth/earth_pillar_hit_5.ogg', 'sound/effects/alien/behemoth/earth_pillar_hit_6.ogg')
+ if(SFX_ACID_HIT)
+ soundin = pick('sound/bullets/acid_impact1.ogg')
+ if(SFX_ACID_BOUNCE)
+ soundin = pick('sound/bullets/acid_impact1.ogg')
+ if(SFX_ALIEN_CLAW_FLESH)
+ soundin = pick('sound/weapons/alien_claw_flesh1.ogg','sound/weapons/alien_claw_flesh2.ogg','sound/weapons/alien_claw_flesh3.ogg')
+ if(SFX_ALIEN_CLAW_METAL)
+ soundin = pick('sound/weapons/alien_claw_metal1.ogg','sound/weapons/alien_claw_metal2.ogg','sound/weapons/alien_claw_metal3.ogg')
+ if(SFX_ALIEN_BITE)
+ soundin = pick('sound/weapons/alien_bite1.ogg','sound/weapons/alien_bite2.ogg')
+ if(SFX_ALIEN_TAIL_ATTACK)
+ soundin = 'sound/weapons/alien_tail_attack.ogg'
+ if(SFX_ALIEN_FOOTSTEP_LARGE)
+ soundin = pick('sound/effects/footstep/alien/large1.ogg','sound/effects/footstep/alien/large2.ogg','sound/effects/footstep/alien/large3.ogg')
+ if(SFX_ALIEN_CHARGE)
+ soundin = pick('sound/effects/footstep/alien/charge1.ogg','sound/effects/footstep/alien/charge2.ogg','sound/effects/footstep/alien/charge3.ogg')
+ if(SFX_ALIEN_RESIN_BUILD)
+ soundin = pick('sound/effects/alien/resin_build1.ogg','sound/effects/alien/resin_build2.ogg','sound/effects/alien/resin_build3.ogg')
+ if(SFX_ALIEN_RESIN_BREAK)
+ soundin = pick('sound/effects/alien/resin_break1.ogg','sound/effects/alien/resin_break2.ogg')
+ if(SFX_ALIEN_RESIN_MOVE) // be aware, this isn't a footstep, footsteps are located elsewhere
+ soundin = pick('sound/effects/alien/resin_move1.ogg', 'sound/effects/alien/resin_move2.ogg')
+ if(SFX_ALIEN_TALK)
+ soundin = pick('sound/voice/alien/talk.ogg','sound/voice/alien/talk2.ogg','sound/voice/alien/talk3.ogg')
+ if(SFX_LARVA_TALK)
+ soundin = pick('sound/voice/alien/larva/talk1.ogg','sound/voice/alien/larva/talk2.ogg','sound/voice/alien/larva/talk3.ogg', 'sound/voice/alien/larva/talk4.ogg')
+ if(SFX_PREDALIEN_TALK)
+ soundin = pick('sound/voice/alien/predalien/click1.ogg','sound/voice/alien/predalien/click2.ogg','sound/voice/alien/predalien/click3.ogg')
+ if(SFX_ALIEN_GROWL)
+ soundin = pick('sound/voice/alien/growl1.ogg','sound/voice/alien/growl2.ogg','sound/voice/alien/growl3.ogg','sound/voice/alien/growl4.ogg')
+ if(SFX_ALIEN_HISS)
+ soundin = pick('sound/voice/alien/hiss1.ogg','sound/voice/alien/hiss2.ogg','sound/voice/alien/hiss3.ogg')
+ if(SFX_ALIEN_TAIL_SWIPE)
+ soundin = pick('sound/effects/alien/tail_swipe1.ogg','sound/effects/alien/tail_swipe2.ogg','sound/effects/alien/tail_swipe3.ogg')
+ if(SFX_ALIEN_HELP)
+ soundin = pick('sound/voice/alien/help1.ogg','sound/voice/alien/help2.ogg')
+ if(SFX_ALIEN_DROOL)
+ soundin = pick('sound/voice/alien/drool1.ogg','sound/voice/alien/drool2.ogg')
+ if(SFX_ALIEN_ROAR)
+ soundin = pick('sound/voice/alien/roar1.ogg','sound/voice/alien/roar2.ogg','sound/voice/alien/roar3.ogg','sound/voice/alien/roar4.ogg','sound/voice/alien/roar5.ogg','sound/voice/alien/roar6.ogg','sound/voice/alien/roar7.ogg','sound/voice/alien/roar8.ogg','sound/voice/alien/roar9.ogg','sound/voice/alien/roar10.ogg','sound/voice/alien/roar11.ogg','sound/voice/alien/roar12.ogg')
+ if(SFX_ALIEN_ROAR_LARVA)
+ soundin = pick('sound/voice/alien/larva/roar1.ogg','sound/voice/alien/larva/roar2.ogg','sound/voice/alien/larva/roar3.ogg','sound/voice/alien/larva/roar4.ogg')
+ if(SFX_QUEEN)
+ soundin = pick('sound/voice/alien/queen/command.ogg','sound/voice/alien/queen/command2.ogg','sound/voice/alien/queen/command3.ogg')
+ if(SFX_ALIEN_VENTPASS)
+ soundin = pick('sound/effects/alien/ventpass1.ogg', 'sound/effects/alien/ventpass2.ogg')
+ if(SFX_BEHEMOTH_STEP_SOUNDS)
+ soundin = pick('sound/effects/footstep/alien/large1.ogg', 'sound/effects/footstep/alien/large2.ogg', 'sound/effects/footstep/alien/large3.ogg')
+ if(SFX_BEHEMOTH_ROLLING)
+ soundin = 'sound/effects/alien/behemoth/roll.ogg'
+ if(SFX_BEHEMOTH_EARTH_PILLAR_HIT)
+ soundin = pick('sound/effects/alien/behemoth/earth_pillar_hit_1.ogg', 'sound/effects/alien/behemoth/earth_pillar_hit_2.ogg', 'sound/effects/alien/behemoth/earth_pillar_hit_3.ogg', 'sound/effects/alien/behemoth/earth_pillar_hit_4.ogg', 'sound/effects/alien/behemoth/earth_pillar_hit_5.ogg', 'sound/effects/alien/behemoth/earth_pillar_hit_6.ogg')
// Human
- if("male_scream")
- S = pick('sound/voice/human/male/scream_1.ogg','sound/voice/human/male/scream_2.ogg','sound/voice/human/male/scream_3.ogg','sound/voice/human/male/scream_4.ogg','sound/voice/human/male/scream_5.ogg','sound/voice/human/male/scream_6.ogg', 'sound/voice/human/male/scream_7.ogg')
- if("male_pain")
- S = pick('sound/voice/human/male/pain_1.ogg','sound/voice/human/male/pain_2.ogg','sound/voice/human/male/pain_3.ogg','sound/voice/human/male/pain_4.ogg','sound/voice/human/male/pain_5.ogg','sound/voice/human/male/pain_6.ogg','sound/voice/human/male/pain_7.ogg','sound/voice/human/male/pain_8.ogg', 'sound/voice/human/male/pain_9.ogg', 'sound/voice/human/male/pain_10.ogg', 'sound/voice/human/male/pain_11.ogg')
- if("male_gored")
- S = pick('sound/voice/human/male/gored_1.ogg','sound/voice/human/male/gored_2.ogg', 'sound/voice/human/male/gored3.ogg')
- if("male_fragout")
- S = pick('sound/voice/human/male/grenadethrow_1.ogg', 'sound/voice/human/male/grenadethrow_2.ogg', 'sound/voice/human/male/grenadethrow_3.ogg')
- if("male_warcry")
- S = pick('sound/voice/human/male/warcry_1.ogg','sound/voice/human/male/warcry_2.ogg','sound/voice/human/male/warcry_3.ogg','sound/voice/human/male/warcry_4.ogg','sound/voice/human/male/warcry_5.ogg','sound/voice/human/male/warcry_6.ogg','sound/voice/human/male/warcry_7.ogg','sound/voice/human/male/warcry_8.ogg','sound/voice/human/male/warcry_9.ogg','sound/voice/human/male/warcry_10.ogg','sound/voice/human/male/warcry_11.ogg','sound/voice/human/male/warcry_12.ogg','sound/voice/human/male/warcry_13.ogg','sound/voice/human/male/warcry_14.ogg','sound/voice/human/male/warcry_15.ogg','sound/voice/human/male/warcry_16.ogg','sound/voice/human/male/warcry_17.ogg','sound/voice/human/male/warcry_18.ogg','sound/voice/human/male/warcry_19.ogg','sound/voice/human/male/warcry_20.ogg','sound/voice/human/male/warcry_21.ogg','sound/voice/human/male/warcry_22.ogg','sound/voice/human/male/warcry_23.ogg','sound/voice/human/male/warcry_24.ogg','sound/voice/human/male/warcry_25.ogg','sound/voice/human/male/warcry_26.ogg','sound/voice/human/male/warcry_27.ogg','sound/voice/human/male/warcry_28.ogg','sound/voice/human/male/warcry_29.ogg')
- if("female_scream")
- S = pick('sound/voice/human/female/scream_1.ogg','sound/voice/human/female/scream_2.ogg','sound/voice/human/female/scream_3.ogg','sound/voice/human/female/scream_4.ogg','sound/voice/human/female/scream_5.ogg')
- if("female_pain")
- S = pick('sound/voice/human/female/pain_1.ogg','sound/voice/human/female/pain_2.ogg','sound/voice/human/female/pain_3.ogg')
- if("female_gored")
- S = pick('sound/voice/human/female/gored_1.ogg','sound/voice/human/female/gored_2.ogg')
- if("female_fragout")
- S = pick("sound/voice/human/female/grenadethrow_1.ogg", 'sound/voice/human/female/grenadethrow_2.ogg', 'sound/voice/human/female/grenadethrow_3.ogg')
- if("female_warcry")
- S = pick('sound/voice/human/female/warcry_1.ogg','sound/voice/human/female/warcry_2.ogg','sound/voice/human/female/warcry_3.ogg','sound/voice/human/female/warcry_4.ogg','sound/voice/human/female/warcry_5.ogg','sound/voice/human/female/warcry_6.ogg','sound/voice/human/female/warcry_7.ogg','sound/voice/human/female/warcry_8.ogg','sound/voice/human/female/warcry_9.ogg','sound/voice/human/female/warcry_10.ogg','sound/voice/human/female/warcry_11.ogg','sound/voice/human/female/warcry_12.ogg','sound/voice/human/female/warcry_13.ogg','sound/voice/human/female/warcry_14.ogg','sound/voice/human/female/warcry_15.ogg','sound/voice/human/female/warcry_16.ogg','sound/voice/human/female/warcry_17.ogg','sound/voice/human/female/warcry_18.ogg','sound/voice/human/female/warcry_19.ogg')
- if("male_hugged")
- S = pick("sound/voice/human/male/facehugged1.ogg", 'sound/voice/human/male/facehugged2.ogg', 'sound/voice/human/male/facehugged3.ogg')
- if("female_hugged")
- S = pick("sound/voice/human/female/facehugged1.ogg", 'sound/voice/human/female/facehugged2.ogg')
- if("male_gasp")
- S = pick("sound/voice/human/male/gasp1.ogg", 'sound/voice/human/male/gasp2.ogg', 'sound/voice/human/male/gasp3.ogg')
- if("female_gasp")
- S = pick("sound/voice/human/female/gasp1.ogg", 'sound/voice/human/female/gasp2.ogg')
- if("male_cough")
- S = pick("sound/voice/human/male/cough1.ogg", 'sound/voice/human/male/cough2.ogg')
- if("female_cough")
- S = pick("sound/voice/human/female/cough1.ogg", 'sound/voice/human/female/cough2.ogg')
- if("male_preburst")
- S = pick("sound/voice/human/male/preburst1.ogg", 'sound/voice/human/male/preburst2.ogg', 'sound/voice/human/male/preburst3.ogg', 'sound/voice/human/male/preburst4.ogg', 'sound/voice/human/male/preburst5.ogg', 'sound/voice/human/male/preburst6.ogg', 'sound/voice/human/male/preburst7.ogg', 'sound/voice/human/male/preburst8.ogg', 'sound/voice/human/male/preburst9.ogg', 'sound/voice/human/male/preburst10.ogg')
- if("female_preburst")
- S = pick("sound/voice/human/female/preburst1.ogg", 'sound/voice/human/female/preburst2.ogg', 'sound/voice/human/female/preburst3.ogg')
- if("male_laugh")
- S = pick('sound/voice/human/male/laugh_1.ogg', 'sound/voice/human/male/laugh_2.ogg', 'sound/voice/human/male/laugh_3.ogg', 'sound/voice/human/male/laugh_4.ogg', 'sound/voice/human/male/laugh_5.ogg', 'sound/voice/human/male/laugh_6.ogg', 'sound/voice/human/male/laugh_7.ogg', 'sound/voice/human/male/laugh_8.ogg', 'sound/voice/human/male/laugh_9.ogg')
- if("female_laugh")
- S = pick('sound/voice/human/female/laugh_1.ogg', 'sound/voice/human/female/laugh_2.ogg', 'sound/voice/human/female/laugh_3.ogg', 'sound/voice/human/female/laugh_4.ogg', 'sound/voice/human/female/laugh_5.ogg', 'sound/voice/human/female/laugh_6.ogg', 'sound/voice/human/female/laugh_7.ogg')
- if("jump")
- S = pick('sound/effects/bounce_1.ogg','sound/effects/bounce_2.ogg','sound/effects/bounce_3.ogg','sound/effects/bounce_4.ogg')
+ if(SFX_MALE_SCREAM)
+ soundin = pick('sound/voice/human/male/scream_1.ogg','sound/voice/human/male/scream_2.ogg','sound/voice/human/male/scream_3.ogg','sound/voice/human/male/scream_4.ogg','sound/voice/human/male/scream_5.ogg','sound/voice/human/male/scream_6.ogg', 'sound/voice/human/male/scream_7.ogg')
+ if(SFX_MALE_PAIN)
+ soundin = pick('sound/voice/human/male/pain_1.ogg','sound/voice/human/male/pain_2.ogg','sound/voice/human/male/pain_3.ogg','sound/voice/human/male/pain_4.ogg','sound/voice/human/male/pain_5.ogg','sound/voice/human/male/pain_6.ogg','sound/voice/human/male/pain_7.ogg','sound/voice/human/male/pain_8.ogg', 'sound/voice/human/male/pain_9.ogg', 'sound/voice/human/male/pain_10.ogg', 'sound/voice/human/male/pain_11.ogg')
+ if(SFX_MALE_GORED)
+ soundin = pick('sound/voice/human/male/gored_1.ogg','sound/voice/human/male/gored_2.ogg', 'sound/voice/human/male/gored3.ogg')
+ if(SFX_MALE_FRAGOUT)
+ soundin = pick('sound/voice/human/male/grenadethrow_1.ogg', 'sound/voice/human/male/grenadethrow_2.ogg', 'sound/voice/human/male/grenadethrow_3.ogg')
+ if(SFX_MALE_WARCRY)
+ soundin = pick('sound/voice/human/male/warcry_1.ogg','sound/voice/human/male/warcry_2.ogg','sound/voice/human/male/warcry_3.ogg','sound/voice/human/male/warcry_4.ogg','sound/voice/human/male/warcry_5.ogg','sound/voice/human/male/warcry_6.ogg','sound/voice/human/male/warcry_7.ogg','sound/voice/human/male/warcry_8.ogg','sound/voice/human/male/warcry_9.ogg','sound/voice/human/male/warcry_10.ogg','sound/voice/human/male/warcry_11.ogg','sound/voice/human/male/warcry_12.ogg','sound/voice/human/male/warcry_13.ogg','sound/voice/human/male/warcry_14.ogg','sound/voice/human/male/warcry_15.ogg','sound/voice/human/male/warcry_16.ogg','sound/voice/human/male/warcry_17.ogg','sound/voice/human/male/warcry_18.ogg','sound/voice/human/male/warcry_19.ogg','sound/voice/human/male/warcry_20.ogg','sound/voice/human/male/warcry_21.ogg','sound/voice/human/male/warcry_22.ogg','sound/voice/human/male/warcry_23.ogg','sound/voice/human/male/warcry_24.ogg','sound/voice/human/male/warcry_25.ogg','sound/voice/human/male/warcry_26.ogg','sound/voice/human/male/warcry_27.ogg','sound/voice/human/male/warcry_28.ogg','sound/voice/human/male/warcry_29.ogg')
+ if(SFX_FEMALE_SCREAM)
+ soundin = pick('sound/voice/human/female/scream_1.ogg','sound/voice/human/female/scream_2.ogg','sound/voice/human/female/scream_3.ogg','sound/voice/human/female/scream_4.ogg','sound/voice/human/female/scream_5.ogg')
+ if(SFX_FEMALE_PAIN)
+ soundin = pick('sound/voice/human/female/pain_1.ogg','sound/voice/human/female/pain_2.ogg','sound/voice/human/female/pain_3.ogg')
+ if(SFX_FEMALE_GORED)
+ soundin = pick('sound/voice/human/female/gored_1.ogg','sound/voice/human/female/gored_2.ogg')
+ if(SFX_FEMALE_FRAGOUT)
+ soundin = pick("sound/voice/human/female/grenadethrow_1.ogg", 'sound/voice/human/female/grenadethrow_2.ogg', 'sound/voice/human/female/grenadethrow_3.ogg')
+ if(SFX_FEMALE_WARCRY)
+ soundin = pick('sound/voice/human/female/warcry_1.ogg','sound/voice/human/female/warcry_2.ogg','sound/voice/human/female/warcry_3.ogg','sound/voice/human/female/warcry_4.ogg','sound/voice/human/female/warcry_5.ogg','sound/voice/human/female/warcry_6.ogg','sound/voice/human/female/warcry_7.ogg','sound/voice/human/female/warcry_8.ogg','sound/voice/human/female/warcry_9.ogg','sound/voice/human/female/warcry_10.ogg','sound/voice/human/female/warcry_11.ogg','sound/voice/human/female/warcry_12.ogg','sound/voice/human/female/warcry_13.ogg','sound/voice/human/female/warcry_14.ogg','sound/voice/human/female/warcry_15.ogg','sound/voice/human/female/warcry_16.ogg','sound/voice/human/female/warcry_17.ogg','sound/voice/human/female/warcry_18.ogg','sound/voice/human/female/warcry_19.ogg')
+ if(SFX_MALE_HUGGED)
+ soundin = pick("sound/voice/human/male/facehugged1.ogg", 'sound/voice/human/male/facehugged2.ogg', 'sound/voice/human/male/facehugged3.ogg')
+ if(SFX_FEMALE_HUGGED)
+ soundin = pick("sound/voice/human/female/facehugged1.ogg", 'sound/voice/human/female/facehugged2.ogg')
+ if(SFX_MALE_GASP)
+ soundin = pick("sound/voice/human/male/gasp1.ogg", 'sound/voice/human/male/gasp2.ogg', 'sound/voice/human/male/gasp3.ogg')
+ if(SFX_FEMALE_GASP)
+ soundin = pick("sound/voice/human/female/gasp1.ogg", 'sound/voice/human/female/gasp2.ogg')
+ if(SFX_MALE_COUGH)
+ soundin = pick("sound/voice/human/male/cough1.ogg", 'sound/voice/human/male/cough2.ogg')
+ if(SFX_FEMALE_COUGH)
+ soundin = pick("sound/voice/human/female/cough1.ogg", 'sound/voice/human/female/cough2.ogg')
+ if(SFX_MALE_PREBURST)
+ soundin = pick("sound/voice/human/male/preburst1.ogg", 'sound/voice/human/male/preburst2.ogg', 'sound/voice/human/male/preburst3.ogg', 'sound/voice/human/male/preburst4.ogg', 'sound/voice/human/male/preburst5.ogg', 'sound/voice/human/male/preburst6.ogg', 'sound/voice/human/male/preburst7.ogg', 'sound/voice/human/male/preburst8.ogg', 'sound/voice/human/male/preburst9.ogg', 'sound/voice/human/male/preburst10.ogg')
+ if(SFX_FEMALE_PREBURST)
+ soundin = pick("sound/voice/human/female/preburst1.ogg", 'sound/voice/human/female/preburst2.ogg', 'sound/voice/human/female/preburst3.ogg')
+ if(SFX_MALE_LAUGH)
+ soundin = pick('sound/voice/human/male/laugh_1.ogg', 'sound/voice/human/male/laugh_2.ogg', 'sound/voice/human/male/laugh_3.ogg', 'sound/voice/human/male/laugh_4.ogg', 'sound/voice/human/male/laugh_5.ogg', 'sound/voice/human/male/laugh_6.ogg', 'sound/voice/human/male/laugh_7.ogg', 'sound/voice/human/male/laugh_8.ogg', 'sound/voice/human/male/laugh_9.ogg')
+ if(SFX_FEMALE_LAUGH)
+ soundin = pick('sound/voice/human/female/laugh_1.ogg', 'sound/voice/human/female/laugh_2.ogg', 'sound/voice/human/female/laugh_3.ogg', 'sound/voice/human/female/laugh_4.ogg', 'sound/voice/human/female/laugh_5.ogg', 'sound/voice/human/female/laugh_6.ogg', 'sound/voice/human/female/laugh_7.ogg')
+ if(SFX_JUMP)
+ soundin = pick('sound/effects/bounce_1.ogg','sound/effects/bounce_2.ogg','sound/effects/bounce_3.ogg','sound/effects/bounce_4.ogg')
//robot race
- if("robot_scream")
- S = pick('sound/voice/robot/robot_scream1.ogg', 'sound/voice/robot/robot_scream2.ogg', 'sound/voice/robot/robot_scream2.ogg')
- if("robot_pain")
- S = pick('sound/voice/robot/robot_pain1.ogg', 'sound/voice/robot/robot_pain2.ogg', 'sound/voice/robot/robot_pain3.ogg')
- if("robot_warcry")
- S = pick('sound/voice/robot/robot_warcry1.ogg', 'sound/voice/robot/robot_warcry2.ogg', 'sound/voice/robot/robot_warcry3.ogg')
- if("robot_male_laugh")
- S = pick('sound/voice/robotic/male_laugh1.ogg', 'sound/voice/robotic/male_laugh2.ogg', 'sound/voice/robotic/male_laugh3.ogg', 'sound/voice/robotic/male_laugh4.ogg', 'sound/voice/robotic/male_laugh5.ogg', 'sound/voice/robotic/male_laugh6.ogg', 'sound/voice/robotic/male_laugh7.ogg', 'sound/voice/robotic/male_laugh8.ogg', 'sound/voice/robotic/male_laugh9.ogg', )
- if("robot_female_laugh")
- S = pick('sound/voice/robotic/female_laugh1.ogg', 'sound/voice/robotic/female_laugh2.ogg', 'sound/voice/robotic/female_laugh3.ogg', 'sound/voice/robotic/female_laugh4.ogg', 'sound/voice/robotic/female_laugh5.ogg', 'sound/voice/robotic/female_laugh6.ogg', 'sound/voice/robotic/female_laugh7.ogg', )
+ if(SFX_ROBOT_SCREAM)
+ soundin = pick('sound/voice/robot/robot_scream1.ogg', 'sound/voice/robot/robot_scream2.ogg', 'sound/voice/robot/robot_scream2.ogg')
+ if(SFX_ROBOT_PAIN)
+ soundin = pick('sound/voice/robot/robot_pain1.ogg', 'sound/voice/robot/robot_pain2.ogg', 'sound/voice/robot/robot_pain3.ogg')
+ if(SFX_ROBOT_WARCRY)
+ soundin = pick('sound/voice/robot/robot_warcry1.ogg', 'sound/voice/robot/robot_warcry2.ogg', 'sound/voice/robot/robot_warcry3.ogg')
+ if(SFX_ROBOT_MALE_LAUGH)
+ soundin = pick('sound/voice/robotic/male_laugh1.ogg', 'sound/voice/robotic/male_laugh2.ogg', 'sound/voice/robotic/male_laugh3.ogg', 'sound/voice/robotic/male_laugh4.ogg', 'sound/voice/robotic/male_laugh5.ogg', 'sound/voice/robotic/male_laugh6.ogg', 'sound/voice/robotic/male_laugh7.ogg', 'sound/voice/robotic/male_laugh8.ogg', 'sound/voice/robotic/male_laugh9.ogg', )
+ if(SFX_ROBOT_FEMALE_LAUGH)
+ soundin = pick('sound/voice/robotic/female_laugh1.ogg', 'sound/voice/robotic/female_laugh2.ogg', 'sound/voice/robotic/female_laugh3.ogg', 'sound/voice/robotic/female_laugh4.ogg', 'sound/voice/robotic/female_laugh5.ogg', 'sound/voice/robotic/female_laugh6.ogg', 'sound/voice/robotic/female_laugh7.ogg', )
//yautja race
- if("pred_scream")
- S = pick('sound/voice/predator/roar1.ogg','sound/voice/predator/roar2.ogg','sound/voice/predator/roar3.ogg','sound/voice/predator/roar4.ogg','sound/voice/predator/roar5.ogg')
- if("pred_pain")
- S = pick('sound/voice/predator/pain1.ogg','sound/voice/predator/pain2.ogg','sound/voice/predator/pain3.ogg','sound/voice/predator/pain4.ogg','sound/voice/predator/pain5.ogg')
- if("pred_hugged")
- S = pick('sound/voice/predator/facehugged.ogg')
- if("pred_preburst")
- S = pick('sound/voice/predator/pain_rare1.ogg')
- if("pred_warcry")
- S = pick('sound/voice/predator/warcry.ogg')
- if("pred_laugh")
- S = pick('sound/voice/predator/laugh1.ogg', 'sound/voice/predator/laugh2.ogg', 'sound/voice/predator/laugh3.ogg', 'sound/voice/predator/laugh4.ogg')
+ if(SFX_PRED_SCREAM)
+ soundin = pick('sound/voice/predator/roar1.ogg','sound/voice/predator/roar2.ogg','sound/voice/predator/roar3.ogg','sound/voice/predator/roar4.ogg','sound/voice/predator/roar5.ogg')
+ if(SFX_PRED_PAIN)
+ soundin = pick('sound/voice/predator/pain1.ogg','sound/voice/predator/pain2.ogg','sound/voice/predator/pain3.ogg','sound/voice/predator/pain4.ogg','sound/voice/predator/pain5.ogg')
+ if(SFX_PRED_HUGGED)
+ soundin = pick('sound/voice/predator/facehugged.ogg')
+ if(SFX_PRED_PREBURST)
+ soundin = pick('sound/voice/predator/pain_rare1.ogg')
+ if(SFX_PRED_WARCRY)
+ soundin = pick('sound/voice/predator/warcry.ogg')
+ if(SFX_PRED_LAUGH)
+ soundin = pick('sound/voice/predator/laugh1.ogg', 'sound/voice/predator/laugh2.ogg', 'sound/voice/predator/laugh3.ogg', 'sound/voice/predator/laugh4.ogg')
//pred items
- if("clan_sword_hit")
- S = pick('sound/weapons/clan_sword_hit_1.ogg', 'sound/weapons/clan_sword_hit_2.ogg')
- if("chain_swing")
- S = pick('sound/items/chain_swing1.ogg', 'sound/items/chain_swing2.ogg', 'sound/items/chain_swing3.ogg')
- return S
+ if(SFX_CLAN_SWORD_HIT)
+ soundin = pick('sound/weapons/clan_sword_hit_1.ogg', 'sound/weapons/clan_sword_hit_2.ogg')
+ if(SFX_CHAIN_SWING)
+ soundin = pick('sound/items/chain_swing1.ogg', 'sound/items/chain_swing2.ogg', 'sound/items/chain_swing3.ogg')
+ return soundin
diff --git a/code/game/turfs/space/transit.dm b/code/game/turfs/space/transit.dm
index 800165223d2..58549aa82e4 100644
--- a/code/game/turfs/space/transit.dm
+++ b/code/game/turfs/space/transit.dm
@@ -132,7 +132,7 @@
drop_sound = 'sound/effects/lead_pipe_drop.ogg'
playsound(target_turf, drop_sound, 75, TRUE)
- playsound(target_turf, "bone_break", 75, TRUE)
+ playsound(target_turf, SFX_BONE_BREAK, 75, TRUE)
Knockdown(10 SECONDS)
Stun(3 SECONDS)
diff --git a/code/game/turfs/walls/resin.dm b/code/game/turfs/walls/resin.dm
index d12a9cf6649..70d7edaea04 100644
--- a/code/game/turfs/walls/resin.dm
+++ b/code/game/turfs/walls/resin.dm
@@ -82,7 +82,7 @@
xeno_attacker.do_attack_animation(src, ATTACK_EFFECT_CLAW)
xeno_attacker.visible_message(span_xenonotice("\The [xeno_attacker] tears down \the [src]!"), \
span_xenonotice("We tear down \the [src]."))
- playsound(src, "alien_resin_break", 25)
+ playsound(src, SFX_ALIEN_RESIN_BREAK, 25)
dismantle_wall()
/turf/closed/wall/resin/attack_hand(mob/living/user)
@@ -109,7 +109,7 @@
damage *= max(0, multiplier)
take_damage(damage, BRUTE, MELEE)
- playsound(src, "alien_resin_break", 25)
+ playsound(src, SFX_ALIEN_RESIN_BREAK, 25)
/turf/closed/wall/resin/dismantle_wall()
ScrapeAway()
diff --git a/code/modules/admin/fun_verbs.dm b/code/modules/admin/fun_verbs.dm
index 2b5b8a6f09e..5a3b7eb02fd 100644
--- a/code/modules/admin/fun_verbs.dm
+++ b/code/modules/admin/fun_verbs.dm
@@ -1186,11 +1186,11 @@
if("John Woo")
to_chat(GLOB.mob_living_list, span_highdanger("You feel gravity grow weak, and the urge to fly."))
for(var/mob/living/living_mob AS in GLOB.mob_living_list)
- living_mob.set_jump_component(duration = 1 SECONDS, cooldown = 1.5 SECONDS, cost = 2, height = 48, sound = "jump", flags = JUMP_SPIN, flags_pass = HOVERING|PASS_PROJECTILE|PASS_TANK)
+ living_mob.set_jump_component(duration = 1 SECONDS, cooldown = 1.5 SECONDS, cost = 2, height = 48, sound = SFX_JUMP, flags = JUMP_SPIN, flags_pass = HOVERING|PASS_PROJECTILE|PASS_TANK)
if("Exceeding orbital velocity")
to_chat(GLOB.mob_living_list, span_highdanger("You feel gravity fade to nothing. Will you even come back down?"))
for(var/mob/living/living_mob AS in GLOB.mob_living_list)
- living_mob.set_jump_component(duration = 4 SECONDS, cooldown = 6 SECONDS, cost = 0, height = 128, sound = "jump", flags = JUMP_SPIN, flags_pass = HOVERING|PASS_PROJECTILE|PASS_TANK)
+ living_mob.set_jump_component(duration = 4 SECONDS, cooldown = 6 SECONDS, cost = 0, height = 128, sound = SFX_JUMP, flags = JUMP_SPIN, flags_pass = HOVERING|PASS_PROJECTILE|PASS_TANK)
else
return
diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm
index ab5ec796610..8af35668097 100644
--- a/code/modules/admin/topic.dm
+++ b/code/modules/admin/topic.dm
@@ -2179,6 +2179,6 @@ Status: [status ? status : "Unknown"] | Damage: [health ? health : "None"]
var/reason = stripped_input(src.owner, "Provide a reason for unbunish this xenomorph, [target]", default = "I will not allow meaningless death in my hive!")
REMOVE_TRAIT(target, TRAIT_BANISHED, TRAIT_BANISHED)
target.hud_set_banished()
- xeno_message("QUEEN MOTHER BANISHMENT", "xenobanishtitleannonce", 5, target.hivenumber, sound= sound(get_sfx("queen"), channel = CHANNEL_ANNOUNCEMENTS))
+ xeno_message("QUEEN MOTHER BANISHMENT", "xenobanishtitleannonce", 5, target.hivenumber, sound= sound(SFX_QUEEN, channel = CHANNEL_ANNOUNCEMENTS))
xeno_message("By Queen Mother's will, [target] has been unbanished!\n[reason]", "xenobanishannonce", 5, target.hivenumber)
message_admins("[src.owner] has unbanish [ADMIN_TPMONTY(target)]. Reason: [reason ? "[reason]" : "no reason"]")
diff --git a/code/modules/ai/ai_behaviors/xeno/xeno_illusion.dm b/code/modules/ai/ai_behaviors/xeno/xeno_illusion.dm
index ee4c86ea5c2..e44b05ef9a8 100644
--- a/code/modules/ai/ai_behaviors/xeno/xeno_illusion.dm
+++ b/code/modules/ai/ai_behaviors/xeno/xeno_illusion.dm
@@ -34,7 +34,7 @@
illusion_parent.face_atom(attacked)
if(ismob(attacked))
illusion_parent.do_attack_animation(attacked, ATTACK_EFFECT_REDSLASH)
- playsound(illusion_parent.loc, "alien_claw_flesh", 25, 1)
+ playsound(illusion_parent.loc, SFX_ALIEN_CLAW_FLESH, 25, 1)
return
illusion_parent.do_attack_animation(attacked, ATTACK_EFFECT_CLAW)
- playsound(illusion_parent.loc, "alien_claw_metal", 25, 1)
+ playsound(illusion_parent.loc, SFX_ALIEN_CLAW_METAL, 25, 1)
diff --git a/code/modules/atmospherics/machinery/atmosmachinery.dm b/code/modules/atmospherics/machinery/atmosmachinery.dm
index 8a4a1c2081f..2376a4b0f1c 100644
--- a/code/modules/atmospherics/machinery/atmosmachinery.dm
+++ b/code/modules/atmospherics/machinery/atmosmachinery.dm
@@ -281,7 +281,7 @@
user.visible_message(span_warning("[user] climbs out of the ventilation ducts."), \
span_notice("You climb out of the ventilation ducts."))
if(!silent_crawl)
- playsound(src, get_sfx("alien_ventpass"), 35, TRUE)
+ playsound(src, SFX_ALIEN_VENTPASS, 35, TRUE)
/obj/machinery/atmospherics/relaymove(mob/living/user, direction)
direction &= initialize_directions
diff --git a/code/modules/clothing/head/hardhat.dm b/code/modules/clothing/head/hardhat.dm
index cb626f31b65..b4ca0fc39b8 100644
--- a/code/modules/clothing/head/hardhat.dm
+++ b/code/modules/clothing/head/hardhat.dm
@@ -40,7 +40,7 @@
/obj/item/clothing/head/hardhat/attack_alien(mob/living/carbon/xenomorph/xeno_attacker, isrightclick = FALSE)
if(turn_light(xeno_attacker, FALSE) != CHECKS_PASSED)
return
- playsound(loc, "alien_claw_metal", 25, 1)
+ playsound(loc, SFX_ALIEN_CLAW_METAL, 25, 1)
xeno_attacker.do_attack_animation(src, ATTACK_EFFECT_CLAW)
to_chat(xeno_attacker, span_warning("We disable the metal thing's lights.") )
diff --git a/code/modules/clothing/masks/gasmask.dm b/code/modules/clothing/masks/gasmask.dm
index c7bfef122e6..0035dfbc7fc 100644
--- a/code/modules/clothing/masks/gasmask.dm
+++ b/code/modules/clothing/masks/gasmask.dm
@@ -31,7 +31,7 @@
var/mob/HM = M
if(HM?.client?.prefs?.toggles_sound & SOUND_GAS_MASK)
continue
- HM.playsound_local(user, "gasbreath", 20, 1)
+ HM.playsound_local(user, SFX_GASBREATH, 20, 1)
TIMER_COOLDOWN_START(src, COOLDOWN_GAS_BREATH, 10 SECONDS)
/obj/item/clothing/mask/gas/tactical
diff --git a/code/modules/events/hive_threat.dm b/code/modules/events/hive_threat.dm
index 729805d71be..c77ce067e12 100644
--- a/code/modules/events/hive_threat.dm
+++ b/code/modules/events/hive_threat.dm
@@ -32,7 +32,7 @@
RegisterSignal(SSdcs, COMSIG_GLOB_HIVE_TARGET_DRAINED, PROC_REF(handle_reward))
xeno_message("The Queen Mother senses that [hive_target] is a deadly threat to the hive. Psydrain them for the Queen Mother's blessing!", force = TRUE)
for(var/mob/living/carbon/xenomorph/xeno_sound_reciever in GLOB.alive_xeno_list_hive[XENO_HIVE_NORMAL])
- SEND_SOUND(xeno_sound_reciever, sound(get_sfx("queen"), channel = CHANNEL_ANNOUNCEMENTS, volume = 50))
+ SEND_SOUND(xeno_sound_reciever, sound(SFX_QUEEN, channel = CHANNEL_ANNOUNCEMENTS, volume = 50))
//manages the hive reward and clean up
/datum/round_event/hive_threat/proc/handle_reward(datum/source, mob/living/carbon/xenomorph/drainer)
@@ -55,7 +55,7 @@
receiving_xeno.upgrade = XENO_UPGRADE_PRIMO
//receiving_xeno.upgrade_stored += 1000 // RUTGMC DELETION
for(var/mob/living/carbon/xenomorph/xeno_sound_reciever in GLOB.alive_xeno_list_hive[XENO_HIVE_NORMAL])
- SEND_SOUND(xeno_sound_reciever, sound(get_sfx("queen"), channel = CHANNEL_ANNOUNCEMENTS, volume = 50))
+ SEND_SOUND(xeno_sound_reciever, sound(SFX_QUEEN, channel = CHANNEL_ANNOUNCEMENTS, volume = 50))
addtimer(CALLBACK(src, PROC_REF(remove_blessing)), 2 MINUTES)
///debuffs the hive when the blessing expires
diff --git a/code/modules/flufftext/Hallucination.dm b/code/modules/flufftext/Hallucination.dm
index 260e00396ef..e027dda7c52 100644
--- a/code/modules/flufftext/Hallucination.dm
+++ b/code/modules/flufftext/Hallucination.dm
@@ -155,7 +155,7 @@ GLOBAL_LIST_INIT(hallucination_list, list(
break
if(pump)
xeno = new(pump.loc, target)
- playsound(src, get_sfx("alien_ventpass"), 35, 1)
+ playsound(src, SFX_ALIEN_VENTPASS, 35, 1)
sleep(1 SECONDS)
xeno.throw_at(target, 7, 1, xeno, FALSE, TRUE)
sleep(1 SECONDS)
@@ -164,7 +164,7 @@ GLOBAL_LIST_INIT(hallucination_list, list(
to_chat(target, span_notice("[xeno.name] begins climbing into the ventilation system..."))
sleep(1.5 SECONDS)
to_chat(target, span_notice("[xeno.name] scrambles into the ventilation ducts!"))
- playsound(src, get_sfx("alien_ventpass"), 35, 1)
+ playsound(src, SFX_ALIEN_VENTPASS, 35, 1)
qdel(xeno)
qdel(src)
@@ -180,10 +180,10 @@ GLOBAL_LIST_INIT(hallucination_list, list(
if("xeno")
var/hits = 0
for(var/i in 1 to rand(5, 10))
- target.playsound_local(source, get_sfx("alien_claw_flesh"), 25, TRUE)
+ target.playsound_local(source, SFX_ALIEN_CLAW_FLESH, 25, TRUE)
sleep(rand(CLICK_CD_RANGE, CLICK_CD_RANGE + 6))
if(hits >= 4 && prob(70))
- target.playsound_local(source, get_sfx(pick("male_scream", "female_scream")), 35, TRUE)
+ target.playsound_local(source, pick(SFX_MALE_SCREAM, SFX_FEMALE_SCREAM), 35, TRUE)
break
qdel(src)
@@ -280,17 +280,17 @@ GLOBAL_LIST_INIT(hallucination_list, list(
target.playsound_local(source,'sound/effects/grillehit.ogg', 35, TRUE)
sleep(rand(CLICK_CD_RANGE, CLICK_CD_RANGE + 6))
if("apc sparks")
- target.playsound_local(source, get_sfx("sparks"), 35, TRUE)
+ target.playsound_local(source, SFX_SPARKS, 35, TRUE)
if("hugged")
target.playsound_local(source, 'sound/effects/alien/egg_move.ogg', 35, TRUE)
sleep(1 SECONDS)
- target.playsound_local(source, get_sfx("[pick("male", "female")]_hugged"), 35, TRUE)
+ target.playsound_local(source, pick(SFX_MALE_HUGGED, SFX_FEMALE_HUGGED), 35, TRUE)
if("weed placed")
- target.playsound_local(source, get_sfx("alien_resin_build"), 35, TRUE)
+ target.playsound_local(source, SFX_ALIEN_RESIN_BUILD, 35, TRUE)
if("gunshots")
- target.playsound_local(source, get_sfx("alien_resin_build"), 35, TRUE)
+ target.playsound_local(source, SFX_ALIEN_RESIN_BUILD, 35, TRUE)
for(var/i in 1 to rand(5, 10))
- target.playsound_local(source, get_sfx("ballistic_hit"), 35, TRUE)
+ target.playsound_local(source, SFX_BALLISTIC_HIT, 35, TRUE)
sleep(rand(CLICK_CD_RANGE, CLICK_CD_RANGE + 6))
qdel(src)
diff --git a/code/modules/instruments/items.dm b/code/modules/instruments/items.dm
index c842d2eda66..8ac26dca33c 100644
--- a/code/modules/instruments/items.dm
+++ b/code/modules/instruments/items.dm
@@ -49,7 +49,7 @@
desc = "A wooden musical instrument with four strings and a bow. \"The devil went down to space, he was looking for an assistant to grief.\""
icon_state = "violin"
item_state = "violin"
- hitsound = "swing_hit"
+ hitsound = SFX_SWING_HIT
allowed_instrument_ids = "violin"
/obj/item/instrument/violin/golden
diff --git a/code/modules/instruments/songs/play_legacy.dm b/code/modules/instruments/songs/play_legacy.dm
index 69069713f66..e5eb8e2bd60 100644
--- a/code/modules/instruments/songs/play_legacy.dm
+++ b/code/modules/instruments/songs/play_legacy.dm
@@ -84,5 +84,5 @@
var/mob/M = i
if(M?.client?.prefs?.toggles_sound & SOUND_INSTRUMENTS_OFF)
continue
- M.playsound_local(source, null, volume * using_instrument.volume_multiplier, S = music_played)
+ M.playsound_local(source, null, volume * using_instrument.volume_multiplier, sound_to_use = music_played)
// Could do environment and echo later but not for now
diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm
index d7a3b2fa053..d1cf923526a 100644
--- a/code/modules/mob/living/carbon/carbon.dm
+++ b/code/modules/mob/living/carbon/carbon.dm
@@ -38,7 +38,7 @@
apply_damage(shock_damage, BURN, def_zone, updating_health = TRUE)
- playsound(loc, "sparks", 25, TRUE)
+ playsound(loc, SFX_SPARKS, 25, TRUE)
if (shock_damage > 10)
src.visible_message(
span_warning(" [src] was shocked by the [source]!"), \
diff --git a/code/modules/mob/living/carbon/human/species/early_synthetic.dm b/code/modules/mob/living/carbon/human/species/early_synthetic.dm
index ae3f7adba84..f324e6835bc 100644
--- a/code/modules/mob/living/carbon/human/species/early_synthetic.dm
+++ b/code/modules/mob/living/carbon/human/species/early_synthetic.dm
@@ -30,11 +30,11 @@
lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_INVISIBLE
see_in_dark = 8
- screams = list(MALE = "male_scream", FEMALE = "female_scream")
- paincries = list(MALE = "male_pain", FEMALE = "female_pain")
- goredcries = list(MALE = "male_gored", FEMALE = "female_gored")
- warcries = list(MALE = "male_warcry", FEMALE = "female_warcry")
- laughs = list(MALE = "male_laugh", FEMALE = "female_laugh")
+ screams = list(MALE = SFX_MALE_SCREAM, FEMALE = SFX_FEMALE_SCREAM)
+ paincries = list(MALE = SFX_MALE_PAIN, FEMALE = SFX_FEMALE_PAIN)
+ goredcries = list(MALE = SFX_MALE_GORED, FEMALE = SFX_FEMALE_GORED)
+ warcries = list(MALE = SFX_MALE_WARCRY, FEMALE = SFX_FEMALE_WARCRY)
+ laughs = list(MALE = SFX_MALE_LAUGH, FEMALE = SFX_FEMALE_LAUGH)
special_death_message = "You have been shut down.
But it is not the end of you yet... if you still have your body, wait until somebody can resurrect you..."
/datum/species/early_synthetic/on_species_gain(mob/living/carbon/human/H, datum/species/old_species)
diff --git a/code/modules/mob/living/carbon/human/species/human.dm b/code/modules/mob/living/carbon/human/species/human.dm
index 0a4927524e2..f815473e54f 100644
--- a/code/modules/mob/living/carbon/human/species/human.dm
+++ b/code/modules/mob/living/carbon/human/species/human.dm
@@ -5,14 +5,14 @@
species_flags = HAS_SKIN_TONE|HAS_LIPS|HAS_UNDERWEAR
count_human = TRUE
- screams = list(MALE = "male_scream", FEMALE = "female_scream")
- paincries = list(MALE = "male_pain", FEMALE = "female_pain")
- goredcries = list(MALE = "male_gored", FEMALE = "female_gored")
- gasps = list(MALE = "male_gasp", FEMALE = "female_gasp")
- coughs = list(MALE = "male_cough", FEMALE = "female_cough")
- burstscreams = list(MALE = "male_preburst", FEMALE = "female_preburst")
- warcries = list(MALE = "male_warcry", FEMALE = "female_warcry")
- laughs = list(MALE = "male_laugh", FEMALE = "female_laugh")
+ screams = list(MALE = SFX_MALE_SCREAM, FEMALE = SFX_FEMALE_SCREAM)
+ paincries = list(MALE = SFX_MALE_PAIN, FEMALE = SFX_FEMALE_PAIN)
+ goredcries = list(MALE = SFX_MALE_GORED, FEMALE = SFX_FEMALE_GORED)
+ gasps = list(MALE = SFX_MALE_GASP, FEMALE = SFX_FEMALE_GASP)
+ coughs = list(MALE = SFX_MALE_COUGH, FEMALE = SFX_FEMALE_COUGH)
+ burstscreams = list(MALE = SFX_MALE_PREBURST, FEMALE = SFX_FEMALE_PREBURST)
+ warcries = list(MALE = SFX_MALE_WARCRY, FEMALE = SFX_FEMALE_WARCRY)
+ laughs = list(MALE = SFX_MALE_LAUGH, FEMALE = SFX_FEMALE_LAUGH)
special_death_message = "You have perished.
But it is not the end of you yet... if you still have your body with your head still attached, wait until somebody can resurrect you..."
joinable_roundstart = TRUE
diff --git a/code/modules/mob/living/carbon/human/species/robot.dm b/code/modules/mob/living/carbon/human/species/robot.dm
index fd304392c2d..173808a3d71 100644
--- a/code/modules/mob/living/carbon/human/species/robot.dm
+++ b/code/modules/mob/living/carbon/human/species/robot.dm
@@ -42,11 +42,11 @@
has_organ = list()
- screams = list(MALE = "robot_scream", FEMALE = "robot_scream", PLURAL = "robot_scream", NEUTER = "robot_scream")
- paincries = list(MALE = "robot_pain", FEMALE = "robot_pain", PLURAL = "robot_pain", NEUTER = "robot_pain")
- goredcries = list(MALE = "robot_scream", FEMALE = "robot_scream", PLURAL = "robot_scream", NEUTER = "robot_scream")
- warcries = list(MALE = "robot_warcry", FEMALE = "robot_warcry", PLURAL = "robot_warcry", NEUTER = "robot_warcry")
- laughs = list(MALE = "robot_male_laugh", FEMALE = "robot_female_laugh", PLURAL = "robot_male_laugh", NEUTER = "robot_female_laugh")
+ screams = list(MALE = SFX_ROBOT_SCREAM, FEMALE = SFX_ROBOT_SCREAM, PLURAL = SFX_ROBOT_SCREAM, NEUTER = SFX_ROBOT_SCREAM)
+ paincries = list(MALE = SFX_ROBOT_PAIN, FEMALE = SFX_ROBOT_PAIN, PLURAL = SFX_ROBOT_PAIN, NEUTER = SFX_ROBOT_PAIN)
+ goredcries = list(MALE = SFX_ROBOT_SCREAM, FEMALE = SFX_ROBOT_SCREAM, PLURAL = SFX_ROBOT_SCREAM, NEUTER = SFX_ROBOT_SCREAM)
+ warcries = list(MALE = SFX_ROBOT_WARCRY, FEMALE = SFX_ROBOT_WARCRY, PLURAL = SFX_ROBOT_WARCRY, NEUTER = SFX_ROBOT_WARCRY)
+ laughs = list(MALE = SFX_ROBOT_MALE_LAUGH, FEMALE = SFX_ROBOT_FEMALE_LAUGH, PLURAL = SFX_ROBOT_MALE_LAUGH, NEUTER = SFX_ROBOT_FEMALE_LAUGH)
death_message = "shudders violently whilst spitting out error text before collapsing, their visual sensor darkening..."
special_death_message = "You have been shut down.
But it is not the end of you yet... if you still have your body, wait until somebody can resurrect you..."
joinable_roundstart = FALSE
diff --git a/code/modules/mob/living/carbon/human/species/synthetic.dm b/code/modules/mob/living/carbon/human/species/synthetic.dm
index 159d42dc09e..5d79428d086 100644
--- a/code/modules/mob/living/carbon/human/species/synthetic.dm
+++ b/code/modules/mob/living/carbon/human/species/synthetic.dm
@@ -30,11 +30,11 @@
lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_INVISIBLE
see_in_dark = 8
- screams = list(MALE = "male_scream", FEMALE = "female_scream")
- paincries = list(MALE = "male_pain", FEMALE = "female_pain")
- goredcries = list(MALE = "male_gored", FEMALE = "female_gored")
- warcries = list(MALE = "male_warcry", FEMALE = "female_warcry")
- laughs = list(MALE = "male_laugh", FEMALE = "female_laugh")
+ screams = list(MALE = SFX_MALE_SCREAM, FEMALE = SFX_FEMALE_SCREAM)
+ paincries = list(MALE = SFX_MALE_PAIN, FEMALE = SFX_FEMALE_PAIN)
+ goredcries = list(MALE = SFX_MALE_GORED, FEMALE = SFX_FEMALE_GORED)
+ warcries = list(MALE = SFX_MALE_WARCRY, FEMALE = SFX_FEMALE_WARCRY)
+ laughs = list(MALE = SFX_MALE_LAUGH, FEMALE = SFX_FEMALE_LAUGH)
special_death_message = "You have been shut down.
But it is not the end of you yet... if you still have your body, wait until somebody can resurrect you..."
/datum/species/synthetic/on_species_gain(mob/living/carbon/human/H, datum/species/old_species)
diff --git a/code/modules/mob/living/carbon/human/species/yautja.dm b/code/modules/mob/living/carbon/human/species/yautja.dm
index 349e42234ca..39b7f0b331b 100644
--- a/code/modules/mob/living/carbon/human/species/yautja.dm
+++ b/code/modules/mob/living/carbon/human/species/yautja.dm
@@ -15,12 +15,12 @@
/datum/action/predator_action/mark_panel,
)
- screams = list(MALE = "pred_scream", FEMALE = "pred_scream")
- paincries = list(MALE = "pred_pain", FEMALE = "pred_pain")
- goredcries = list(MALE = "pred_pain", FEMALE = "pred_pain")
- burstscreams = list(MALE = "pred_preburst", FEMALE = "pred_preburst")
- warcries = list(MALE = "pred_warcry", FEMALE = "pred_warcry")
- laughs = list(MALE = "pred_laugh", FEMALE = "pred_laugh")
+ screams = list(MALE = SFX_PRED_SCREAM, FEMALE = SFX_PRED_SCREAM)
+ paincries = list(MALE = SFX_PRED_PAIN, FEMALE = SFX_PRED_PAIN)
+ goredcries = list(MALE = SFX_PRED_PAIN, FEMALE = SFX_PRED_PAIN)
+ burstscreams = list(MALE = SFX_PRED_PREBURST, FEMALE = SFX_PRED_PREBURST)
+ warcries = list(MALE = SFX_PRED_WARCRY, FEMALE = SFX_PRED_WARCRY)
+ laughs = list(MALE = SFX_PRED_LAUGH, FEMALE = SFX_PRED_LAUGH)
unarmed_type = /datum/unarmed_attack/punch/strong
secondary_unarmed_type = /datum/unarmed_attack/bite/strong
diff --git a/code/modules/mob/living/carbon/xenomorph/abilities.dm b/code/modules/mob/living/carbon/xenomorph/abilities.dm
index ba5cc47514a..c7553151022 100644
--- a/code/modules/mob/living/carbon/xenomorph/abilities.dm
+++ b/code/modules/mob/living/carbon/xenomorph/abilities.dm
@@ -80,7 +80,7 @@
span_xenonotice("We regurgitate a pulsating node and plant it on the ground!"), null, 5)
new weed_type(T)
last_weeded_turf = T
- playsound(T, "alien_resin_build", 25)
+ playsound(T, SFX_ALIEN_RESIN_BUILD, 25)
GLOB.round_statistics.weeds_planted++
SSblackbox.record_feedback(FEEDBACK_TALLY, "round_statistics", 1, "weeds_planted")
if(owner.client)
@@ -457,7 +457,7 @@
var/atom/AM = X.selected_resin
X.visible_message(span_xenowarning("\The [X] regurgitates a thick substance and shapes it into \a [initial(AM.name)]!"), \
span_xenonotice("We regurgitate some resin and shape it into \a [initial(AM.name)]."), null, 5)
- playsound(owner.loc, "alien_resin_build", 25)
+ playsound(owner.loc, SFX_ALIEN_RESIN_BUILD, 25)
var/atom/new_resin
if(ispath(X.selected_resin, /turf)) // We should change turfs, not spawn them in directly
var/list/baseturfs = islist(T.baseturfs) ? T.baseturfs : list(T.baseturfs)
@@ -495,7 +495,7 @@
QDEL_NULL(X.current_aura)
X.current_aura = SSaura.add_emitter(X, phero_choice, 6 + X.xeno_caste.aura_strength * 2, X.xeno_caste.aura_strength, -1, X.faction, X.hivenumber)
X.balloon_alert(X, "[phero_choice]")
- playsound(X.loc, "alien_drool", 25)
+ playsound(X.loc, SFX_ALIEN_DROOL, 25)
if(isxenoqueen(X))
X.hive?.update_leader_pheromones()
@@ -584,7 +584,7 @@
to_chat(X, span_notice("We start focusing our plasma towards [target]."))
new /obj/effect/temp_visual/transfer_plasma(get_turf(X)) //Cool SFX that confirms our source and our target
new /obj/effect/temp_visual/transfer_plasma(get_turf(target)) //Cool SFX that confirms our source and our target
- playsound(X, "alien_drool", 25)
+ playsound(X, SFX_ALIEN_DROOL, 25)
X.face_atom(target) //Face our target so we don't look silly
@@ -609,7 +609,7 @@
target.gain_plasma(amount)
to_chat(target, span_xenodanger("[X] has transfered [amount] units of plasma to us. We now have [target.plasma_stored]/[target.xeno_caste.plasma_max]."))
to_chat(X, span_xenodanger("We have transferred [amount] units of plasma to [target]. We now have [X.plasma_stored]/[X.xeno_caste.plasma_max]."))
- playsound(X, "alien_drool", 25)
+ playsound(X, SFX_ALIEN_DROOL, 25)
// ***************************************
diff --git a/code/modules/mob/living/carbon/xenomorph/attack_alien.dm b/code/modules/mob/living/carbon/xenomorph/attack_alien.dm
index b2cce84e21f..ad7a07720fa 100644
--- a/code/modules/mob/living/carbon/xenomorph/attack_alien.dm
+++ b/code/modules/mob/living/carbon/xenomorph/attack_alien.dm
@@ -92,7 +92,7 @@
span_danger("Our slash is blocked by [src]'s shield!"), null, COMBAT_MESSAGE_RANGE)
return FALSE
- var/attack_sound = "alien_claw_flesh"
+ var/attack_sound = SFX_ALIEN_CLAW_FLESH
var/attack_message1 = span_danger("\The [X] slashes [src]!")
var/attack_message2 = span_danger("We slash [src]!")
var/log = "slashed"
@@ -135,7 +135,7 @@
spark_system.set_up(5, 0, src)
spark_system.attach(src)
spark_system.start(src)
- playsound(loc, "alien_claw_metal", 25, TRUE)
+ playsound(loc, SFX_ALIEN_CLAW_METAL, 25, TRUE)
/mob/living/silicon/attack_alien_harm(mob/living/carbon/xenomorph/X, dam_bonus, set_location = FALSE, random_location = FALSE, no_head = FALSE, no_crit = FALSE, force_intent = null)
@@ -149,7 +149,7 @@
spark_system.set_up(5, 0, src)
spark_system.attach(src)
spark_system.start(src)
- playsound(loc, "alien_claw_metal", 25, TRUE)
+ playsound(loc, SFX_ALIEN_CLAW_METAL, 25, TRUE)
/mob/living/carbon/xenomorph/attack_alien_harm(mob/living/carbon/xenomorph/X, dam_bonus, set_location = FALSE, random_location = FALSE, no_head = FALSE, no_crit = FALSE, force_intent = null)
if(issamexenohive(X))
@@ -169,13 +169,13 @@
var/obj/item/radio/headset/mainship/cam_headset = wear_ear
if(cam_headset.camera.status)
cam_headset.camera.toggle_cam(null, FALSE)
- playsound(loc, "alien_claw_metal", 25, 1)
+ playsound(loc, SFX_ALIEN_CLAW_METAL, 25, 1)
X.do_attack_animation(src, ATTACK_EFFECT_CLAW)
to_chat(X, span_warning("We disable the creatures hivemind sight apparatus."))
return FALSE
if(length(static_light_sources) || length(hybrid_light_sources) || length(affected_movable_lights))
- playsound(loc, "alien_claw_metal", 25, 1)
+ playsound(loc, SFX_ALIEN_CLAW_METAL, 25, 1)
X.do_attack_animation(src, ATTACK_EFFECT_CLAW)
disable_lights(sparks = TRUE)
to_chat(X, span_warning("We disable whatever annoying lights the dead creature possesses."))
@@ -189,7 +189,7 @@
SEND_SIGNAL(X, COMSIG_XENOMORPH_ATTACK_HUMAN, src)
if(wear_mask && X.zone_selected == "head" && istype(wear_mask, /obj/item/clothing/mask/gas/yautja) && prob(5))
- playsound(loc, "alien_claw_metal", 25, 1)
+ playsound(loc, SFX_ALIEN_CLAW_METAL, 25, 1)
X.visible_message(span_danger("The [X] smashes off [src]'s [wear_mask.name]!"), \
span_danger("You smash off [src]'s [wear_mask.name]!"), null, 5)
dropItemToGround(wear_mask)
diff --git a/code/modules/mob/living/carbon/xenomorph/castes/behemoth/abilities_behemoth.dm b/code/modules/mob/living/carbon/xenomorph/castes/behemoth/abilities_behemoth.dm
index 766f348870f..b907b189a6c 100644
--- a/code/modules/mob/living/carbon/xenomorph/castes/behemoth/abilities_behemoth.dm
+++ b/code/modules/mob/living/carbon/xenomorph/castes/behemoth/abilities_behemoth.dm
@@ -412,7 +412,7 @@
return
which_step = !which_step
step(xeno_owner, direction, 1)
- playsound(owner_turf, "behemoth_step_sounds", 40)
+ playsound(owner_turf, SFX_BEHEMOTH_STEP_SOUNDS, 40)
new /obj/effect/temp_visual/behemoth/crack/landslide(owner_turf, direction, which_step)
new /obj/effect/temp_visual/behemoth/landslide/dust/charge(owner_turf, direction)
addtimer(CALLBACK(src, PROC_REF(do_charge), get_turf(xeno_owner), direction, damage, which_step), LANDSLIDE_STEP_DELAY)
@@ -876,7 +876,7 @@ RU TGMC EDIT */
else if(isearthpillar(affected_atom) || ismecha(affected_atom) || istype(affected_atom, /obj/structure/reagent_dispensers/fueltank))
affected_atom.do_jitter_animation()
new /obj/effect/temp_visual/behemoth/landslide/hit(affected_atom.loc)
- playsound(affected_atom.loc, get_sfx("behemoth_earth_pillar_hit"), 40)
+ playsound(affected_atom.loc, SFX_BEHEMOTH_EARTH_PILLAR_HIT, 40)
if(isearthpillar(affected_atom))
var/obj/structure/earth_pillar/affected_pillar = affected_atom
if(affected_pillar.warning_flashes < initial(affected_pillar.warning_flashes))
@@ -1322,7 +1322,7 @@ RU TGMC EDIT */
/obj/structure/earth_pillar/attacked_by(obj/item/I, mob/living/user, def_zone)
. = ..()
- playsound(src, get_sfx("behemoth_earth_pillar_hit"), 40)
+ playsound(src, SFX_BEHEMOTH_EARTH_PILLAR_HIT, 40)
new /obj/effect/temp_visual/behemoth/landslide/hit(get_turf(src))
// Attacking an Earth Pillar as a xeno has a few possible interactions, based on intent:
@@ -1341,7 +1341,7 @@ RU TGMC EDIT */
attacks_to_destroy--
xeno_user.do_attack_animation(src)
do_jitter_animation(jitter_loops = 1)
- playsound(src, get_sfx("behemoth_earth_pillar_hit"), 40)
+ playsound(src, SFX_BEHEMOTH_EARTH_PILLAR_HIT, 40)
xeno_user.balloon_alert(xeno_user, "Attack [attacks_to_destroy] more time(s) to destroy")
new /obj/effect/temp_visual/behemoth/landslide/hit(current_turf)
return TRUE
@@ -1384,7 +1384,7 @@ RU TGMC EDIT */
if(!isxeno(usr) || !in_range(src, usr) || target_atom == src || warning_flashes < initial(warning_flashes))
return
var/source_turf = get_turf(src)
- playsound(source_turf, get_sfx("behemoth_earth_pillar_hit"), 40)
+ playsound(source_turf, SFX_BEHEMOTH_EARTH_PILLAR_HIT, 40)
new /obj/effect/temp_visual/behemoth/landslide/hit(source_turf)
var/datum/action/ability/activable/xeno/earth_riser/earth_riser_action = xeno_owner?.actions_by_path[/datum/action/ability/activable/xeno/earth_riser]
earth_riser_action?.add_cooldown()
@@ -1506,7 +1506,7 @@ RU TGMC EDIT */
else if(isearthpillar(affected_atom) || isvehicle(affected_atom) || ishitbox(affected_atom) || istype(affected_atom, /obj/structure/reagent_dispensers/fueltank))
affected_atom.do_jitter_animation()
new /obj/effect/temp_visual/behemoth/landslide/hit(affected_atom.loc)
- playsound(affected_atom.loc, get_sfx("behemoth_earth_pillar_hit"), 40)
+ playsound(affected_atom.loc, SFX_BEHEMOTH_EARTH_PILLAR_HIT, 40)
if(isearthpillar(affected_atom))
var/obj/structure/earth_pillar/affected_pillar = affected_atom
if(affected_pillar.warning_flashes < initial(affected_pillar.warning_flashes))
diff --git a/code/modules/mob/living/carbon/xenomorph/castes/bull/abilities_bull.dm b/code/modules/mob/living/carbon/xenomorph/castes/bull/abilities_bull.dm
index 86bee309a8e..0d0b5ff15b0 100644
--- a/code/modules/mob/living/carbon/xenomorph/castes/bull/abilities_bull.dm
+++ b/code/modules/mob/living/carbon/xenomorph/castes/bull/abilities_bull.dm
@@ -5,13 +5,13 @@
new /obj/effect/xenomorph/spray(get_turf(X), 5 SECONDS, XENO_ACID_CHARGE_DAMAGE)
for(var/obj/O in get_turf(X))
O.acid_spray_act(X)
- playsound(X, "alien_footstep_large", 50)
+ playsound(X, SFX_ALIEN_FOOTSTEP_LARGE, 50)
/datum/action/ability/xeno_action/proc/afterimage(atom/A, atom/OldLoc, Dir, Forced)
SIGNAL_HANDLER
var/mob/living/carbon/xenomorph/X = owner
new/obj/effect/temp_visual/xenomorph/afterimage(get_turf(X), X)
- playsound(X, "alien_footstep_large", 50)
+ playsound(X, SFX_ALIEN_FOOTSTEP_LARGE, 50)
// ***************************************
// *********** Acid Charge
diff --git a/code/modules/mob/living/carbon/xenomorph/castes/carrier/abilities_carrier.dm b/code/modules/mob/living/carbon/xenomorph/castes/carrier/abilities_carrier.dm
index b319513d4c4..5bf0d81ba11 100644
--- a/code/modules/mob/living/carbon/xenomorph/castes/carrier/abilities_carrier.dm
+++ b/code/modules/mob/living/carbon/xenomorph/castes/carrier/abilities_carrier.dm
@@ -135,7 +135,7 @@ GLOBAL_LIST_INIT(hugger_images_list, list(
succeed_activate()
- playsound(T, "alien_resin_build", 25)
+ playsound(T, SFX_ALIEN_RESIN_BUILD, 25)
GLOB.round_statistics.trap_holes++
SSblackbox.record_feedback(FEEDBACK_TALLY, "round_statistics", 1, "carrier_traps")
owner.record_traps_created()
@@ -506,6 +506,6 @@ GLOBAL_LIST_INIT(hugger_images_list, list(
return FALSE
new /obj/structure/bed/nest(T)
- playsound(T, "alien_resin_build", 25)
+ playsound(T, SFX_ALIEN_RESIN_BUILD, 25)
succeed_activate()
add_cooldown()
diff --git a/code/modules/mob/living/carbon/xenomorph/castes/drone/abilities_drone.dm b/code/modules/mob/living/carbon/xenomorph/castes/drone/abilities_drone.dm
index f0929e9bab1..e433b932b47 100644
--- a/code/modules/mob/living/carbon/xenomorph/castes/drone/abilities_drone.dm
+++ b/code/modules/mob/living/carbon/xenomorph/castes/drone/abilities_drone.dm
@@ -121,7 +121,7 @@
target.apply_status_effect(STATUS_EFFECT_XENO_SALVE_REGEN)
if(essence_link_action.existing_link.stacks > 0 && remaining_health <= health_threshold)
heal_multiplier = 3
- playsound(target, "alien_drool", 25)
+ playsound(target, SFX_ALIEN_DROOL, 25)
new /obj/effect/temp_visual/telekinesis(get_turf(target))
var/heal_amount = (DRONE_BASE_SALVE_HEAL + target.recovery_aura * target.maxHealth * 0.01) * heal_multiplier
target.adjustFireLoss(-max(0, heal_amount - target.getBruteLoss()), TRUE)
diff --git a/code/modules/mob/living/carbon/xenomorph/castes/gorger/abilities_gorger.dm b/code/modules/mob/living/carbon/xenomorph/castes/gorger/abilities_gorger.dm
index a7a30e4927a..cfe0fe18e9a 100644
--- a/code/modules/mob/living/carbon/xenomorph/castes/gorger/abilities_gorger.dm
+++ b/code/modules/mob/living/carbon/xenomorph/castes/gorger/abilities_gorger.dm
@@ -146,7 +146,7 @@
owner_xeno.do_attack_animation(target_human, ATTACK_EFFECT_REDSTAB)
owner_xeno.visible_message(target_human, span_danger("[owner_xeno] stabs its tail into [target_human]!"))
- playsound(target_human, "alien_claw_flesh", 25, TRUE)
+ playsound(target_human, SFX_ALIEN_CLAW_FLESH, 25, TRUE)
target_human.emote("scream")
target_human.apply_damage(damage = 4, damagetype = BRUTE, def_zone = BODY_ZONE_HEAD, blocked = 0, sharp = TRUE, edge = FALSE, updating_health = TRUE)
diff --git a/code/modules/mob/living/carbon/xenomorph/castes/hivelord/abilities_hivelord.dm b/code/modules/mob/living/carbon/xenomorph/castes/hivelord/abilities_hivelord.dm
index 5be701ca018..22ac600726f 100644
--- a/code/modules/mob/living/carbon/xenomorph/castes/hivelord/abilities_hivelord.dm
+++ b/code/modules/mob/living/carbon/xenomorph/castes/hivelord/abilities_hivelord.dm
@@ -277,7 +277,7 @@
succeed_activate()
- playsound(owner, "alien_resin_build", 25)
+ playsound(owner, SFX_ALIEN_RESIN_BUILD, 25)
var/obj/structure/xeno/resin_jelly_pod/pod = new(T, owner.get_xeno_hivenumber())
to_chat(owner, span_xenonotice("We shape some resin into \a [pod]."))
add_cooldown()
@@ -422,7 +422,7 @@
if(!X.selected_plant)
return FALSE
- playsound(src, "alien_resin_build", 25)
+ playsound(src, SFX_ALIEN_RESIN_BUILD, 25)
new X.selected_plant(get_turf(owner))
add_cooldown()
return succeed_activate()
diff --git a/code/modules/mob/living/carbon/xenomorph/castes/hivemind/hivemind.dm b/code/modules/mob/living/carbon/xenomorph/castes/hivemind/hivemind.dm
index f58770375fe..5c774ad3af6 100644
--- a/code/modules/mob/living/carbon/xenomorph/castes/hivemind/hivemind.dm
+++ b/code/modules/mob/living/carbon/xenomorph/castes/hivemind/hivemind.dm
@@ -332,7 +332,7 @@
var/mob/living/carbon/xenomorph/hivemind/our_parent = get_parent()
if(isnull(our_parent))
return ..()
- our_parent.playsound_local(our_parent, get_sfx("alien_help"), 30, TRUE)
+ our_parent.playsound_local(our_parent, SFX_ALIEN_HELP, 30, TRUE)
to_chat(our_parent, span_xenohighdanger("Your core has been destroyed!"))
xeno_message("A sudden tremor ripples through the hive... \the [our_parent] has been slain!", "xenoannounce", 5, our_parent.hivenumber)
GLOB.key_to_time_of_role_death[our_parent.key] = world.time
diff --git a/code/modules/mob/living/carbon/xenomorph/castes/larva/larva.dm b/code/modules/mob/living/carbon/xenomorph/castes/larva/larva.dm
index 8ab84dd1a33..e366c34f66d 100644
--- a/code/modules/mob/living/carbon/xenomorph/castes/larva/larva.dm
+++ b/code/modules/mob/living/carbon/xenomorph/castes/larva/larva.dm
@@ -17,7 +17,7 @@
hud_type = /datum/hud/larva
hud_possible = list(HEALTH_HUD_XENO, PHEROMONE_HUD, QUEEN_OVERWATCH_HUD, ARMOR_SUNDER_HUD, XENO_DEBUFF_HUD, XENO_FIRE_HUD, XENO_BANISHED_HUD, XENO_BLESSING_HUD, XENO_EVASION_HUD, HUNTER_CLAN, HUNTER_HUD)
- talk_sound = "larva_talk"
+ talk_sound = SFX_LARVA_TALK
life_value = 0
default_honor_value = 0
inherent_verbs = list(
diff --git a/code/modules/mob/living/carbon/xenomorph/castes/predalien/predalien.dm b/code/modules/mob/living/carbon/xenomorph/castes/predalien/predalien.dm
index 400be7dff47..1fc41934011 100644
--- a/code/modules/mob/living/carbon/xenomorph/castes/predalien/predalien.dm
+++ b/code/modules/mob/living/carbon/xenomorph/castes/predalien/predalien.dm
@@ -9,7 +9,7 @@
pixel_x = -16
old_x = -16
bubble_icon = "alienroyal"
- talk_sound = "predalien_talk"
+ talk_sound = SFX_PREDALIEN_TALK
mob_size = MOB_SIZE_BIG
tier = XENO_TIER_FOUR
diff --git a/code/modules/mob/living/carbon/xenomorph/castes/queen/abilities_queen.dm b/code/modules/mob/living/carbon/xenomorph/castes/queen/abilities_queen.dm
index 7c6f8fc5f37..1ad6a860bb2 100644
--- a/code/modules/mob/living/carbon/xenomorph/castes/queen/abilities_queen.dm
+++ b/code/modules/mob/living/carbon/xenomorph/castes/queen/abilities_queen.dm
@@ -36,7 +36,7 @@
deadchat_broadcast(" has messaged the hive: \"[input]\"", Q, Q)
var/queens_word = "ПРИКАЗ УЛЬЮ:
" + input
- var/sound/queen_sound = sound(get_sfx("queen"), channel = CHANNEL_ANNOUNCEMENTS)
+ var/sound/queen_sound = sound(SFX_QUEEN, channel = CHANNEL_ANNOUNCEMENTS)
var/sound/king_sound = sound('sound/voice/alien/xenos_roaring.ogg', channel = CHANNEL_ANNOUNCEMENTS)
for(var/mob/living/carbon/xenomorph/X AS in Q.hive.get_all_xenos())
to_chat(X, assemble_alert(
@@ -440,7 +440,7 @@
if(!do_after(owner, 1 SECONDS, NONE, target, BUSY_ICON_FRIENDLY, BUSY_ICON_MEDICAL))
return FALSE
target.visible_message(span_xenowarning("\the [owner] vomits acid over [target], mending their wounds!"))
- playsound(target, "alien_drool", 25)
+ playsound(target, SFX_ALIEN_DROOL, 25)
new /obj/effect/temp_visual/telekinesis(get_turf(target))
var/mob/living/carbon/xenomorph/patient = target
patient.salve_healing()
diff --git a/code/modules/mob/living/carbon/xenomorph/castes/shrike/abilities_shrike.dm b/code/modules/mob/living/carbon/xenomorph/castes/shrike/abilities_shrike.dm
index 287586e48d3..9ff6a8d24a6 100644
--- a/code/modules/mob/living/carbon/xenomorph/castes/shrike/abilities_shrike.dm
+++ b/code/modules/mob/living/carbon/xenomorph/castes/shrike/abilities_shrike.dm
@@ -251,7 +251,7 @@
span_xenowarning("We send out a huge blast of psychic energy!"))
playsound(owner,'sound/effects/bamf.ogg', 75, TRUE)
- playsound(owner, "alien_roar", 50)
+ playsound(owner, SFX_ALIEN_ROAR, 50)
// ***************************************
// *********** Psychic Cure
@@ -384,7 +384,7 @@
if(!do_after(owner, 0.5 SECONDS, NONE, T, BUSY_ICON_BUILD))
return
- playsound(T, "alien_resin_build", 25)
+ playsound(T, SFX_ALIEN_RESIN_BUILD, 25)
new /obj/structure/xeno/acidwell(T, owner)
succeed_activate()
diff --git a/code/modules/mob/living/carbon/xenomorph/castes/spitter/abilities_spitter.dm b/code/modules/mob/living/carbon/xenomorph/castes/spitter/abilities_spitter.dm
index 2d235079b67..a47a563ef6a 100644
--- a/code/modules/mob/living/carbon/xenomorph/castes/spitter/abilities_spitter.dm
+++ b/code/modules/mob/living/carbon/xenomorph/castes/spitter/abilities_spitter.dm
@@ -173,7 +173,7 @@
for(var/turf/acid_tile AS in RANGE_TURFS(1, loc))
new /obj/effect/temp_visual/acid_splatter(acid_tile) //SFX
new /obj/effect/xenomorph/spray(acid_tile, 5 SECONDS, acid_spray_damage)
- playsound(loc, "acid_bounce", 35)
+ playsound(loc, SFX_ACID_BOUNCE, 35)
if(stuck_to)
clean_refs()
qdel(src)
diff --git a/code/modules/mob/living/carbon/xenomorph/charge_crush.dm b/code/modules/mob/living/carbon/xenomorph/charge_crush.dm
index 64846e2c795..13e861f8840 100644
--- a/code/modules/mob/living/carbon/xenomorph/charge_crush.dm
+++ b/code/modules/mob/living/carbon/xenomorph/charge_crush.dm
@@ -190,7 +190,7 @@
switch(charge_type)
if(CHARGE_CRUSH) //Xeno Crusher
if(MODULUS(valid_steps_taken, 4) == 0)
- playsound(charger, "alien_charge", 50)
+ playsound(charger, SFX_ALIEN_CHARGE, 50)
var/shake_dist = min(round(CHARGE_SPEED(src) * 5), 8)
for(var/mob/living/carbon/human/victim in range(shake_dist, charger))
if(victim.stat == DEAD)
@@ -207,10 +207,10 @@
animation_flash_color(victim)
if(CHARGE_BULL, CHARGE_BULL_HEADBUTT, CHARGE_BULL_GORE) //Xeno Bull
if(MODULUS(valid_steps_taken, 4) == 0)
- playsound(charger, "alien_footstep_large", 50)
+ playsound(charger, SFX_ALIEN_FOOTSTEP_LARGE, 50)
if(CHARGE_BEHEMOTH)
if(MODULUS(valid_steps_taken, 2) == 0)
- playsound(charger, "behemoth_rolling", 30)
+ playsound(charger, SFX_BEHEMOTH_ROLLING, 30)
lastturf = charger.loc
@@ -347,7 +347,7 @@
to_chat(owner, span_notice("Now headbutting on impact."))
if(CHARGE_BULL_GORE)
charge_type = CHARGE_BULL_GORE
- crush_sound = "alien_tail_attack"
+ crush_sound = SFX_ALIEN_TAIL_ATTACK
to_chat(owner, span_notice("Now goring on impact."))
/datum/action/ability/xeno_action/ready_charge/bull_charge/on_xeno_upgrade()
diff --git a/code/modules/mob/living/carbon/xenomorph/egg.dm b/code/modules/mob/living/carbon/xenomorph/egg.dm
index 3dee9bacf95..0ccad56aac0 100644
--- a/code/modules/mob/living/carbon/xenomorph/egg.dm
+++ b/code/modules/mob/living/carbon/xenomorph/egg.dm
@@ -193,7 +193,7 @@
if(3, 4)
xenomorph.visible_message(span_xenonotice("\The [xenomorph] clears the hatched egg."), \
span_xenonotice("We clear the hatched egg."))
- playsound(loc, "alien_resin_break", 25)
+ playsound(loc, SFX_ALIEN_RESIN_BREAK, 25)
qdel(src)
/obj/alien/egg/hugger/attackby(obj/item/I, mob/user, params)
@@ -290,7 +290,7 @@
if(maturity_stage > stage_ready_to_burst)
xenomorph.visible_message(span_xenonotice("\The [xenomorph] clears the hatched egg."), \
span_xenonotice("We clear the broken egg."))
- playsound(loc, "alien_resin_break", 25)
+ playsound(loc, SFX_ALIEN_RESIN_BREAK, 25)
qdel(src)
if(!issamexenohive(xenomorph) || xenomorph.a_intent != INTENT_HELP)
diff --git a/code/modules/mob/living/carbon/xenomorph/emote.dm b/code/modules/mob/living/carbon/xenomorph/emote.dm
index 33927f20f1d..2cef658328d 100644
--- a/code/modules/mob/living/carbon/xenomorph/emote.dm
+++ b/code/modules/mob/living/carbon/xenomorph/emote.dm
@@ -140,6 +140,6 @@
/datum/emote/living/carbon/xenomorph/run_emote(mob/user, params, type_override, intentional = FALSE, prefix)
if(istype(user, /mob/living/carbon/xenomorph/larva))
- playsound(user.loc, "alien_roar_larva", 15)
+ playsound(user.loc, SFX_ALIEN_ROAR_LARVA, 15)
else
return ..()
diff --git a/code/modules/mob/living/carbon/xenomorph/facehuggers.dm b/code/modules/mob/living/carbon/xenomorph/facehuggers.dm
index a5d19a964ac..9c5a2d6e5dd 100644
--- a/code/modules/mob/living/carbon/xenomorph/facehuggers.dm
+++ b/code/modules/mob/living/carbon/xenomorph/facehuggers.dm
@@ -560,9 +560,9 @@
if(ishuman(user))
var/hugsound
if(isyautja(user))
- hugsound = get_sfx("pred_hugged")
+ hugsound = SFX_PRED_HUGGED
else
- hugsound = user.gender == FEMALE ? get_sfx("female_hugged") : get_sfx("male_hugged")
+ hugsound = user.gender == FEMALE ? SFX_FEMALE_HUGGED : SFX_MALE_HUGGED
playsound(loc, hugsound, 25, 0)
if(!sterile && !issynth(user))
var/stamina_dmg = user.maxHealth + user.max_stamina
@@ -778,7 +778,7 @@
return FALSE
visible_message(span_danger("[src] explodes into a mess of viscous resin!"))
- playsound(loc, get_sfx("alien_resin_build"), 50, 1)
+ playsound(loc, SFX_ALIEN_RESIN_BUILD, 50, 1)
do_attack_animation(M)
if(have_resin)
@@ -816,7 +816,7 @@
var/mob/living/victim = M
do_attack_animation(M, ATTACK_EFFECT_REDSLASH)
- playsound(loc, "alien_claw_flesh", 25, 1)
+ playsound(loc, SFX_ALIEN_CLAW_FLESH, 25, 1)
var/affecting = ran_zone(null, 0)
if(!affecting) //Still nothing??
affecting = BODY_ZONE_CHEST //Gotta have a torso?!
diff --git a/code/modules/mob/living/carbon/xenomorph/hive_datum.dm b/code/modules/mob/living/carbon/xenomorph/hive_datum.dm
index 598a4e647a2..cd380a7fad2 100644
--- a/code/modules/mob/living/carbon/xenomorph/hive_datum.dm
+++ b/code/modules/mob/living/carbon/xenomorph/hive_datum.dm
@@ -771,7 +771,7 @@
ADD_TRAIT(target, TRAIT_BANISHED, TRAIT_BANISHED)
target.hud_set_banished()
- xeno_message("BANISHMENT", "xenobanishtitleannonce", 5, target.hivenumber, sound= sound(get_sfx("queen"), channel = CHANNEL_ANNOUNCEMENTS))
+ xeno_message("BANISHMENT", "xenobanishtitleannonce", 5, target.hivenumber, sound= sound(SFX_QUEEN, channel = CHANNEL_ANNOUNCEMENTS))
xeno_message("By [user]'s will, [target] has been banished from the hive!\n[reason]", "xenobanishannonce", 5, target.hivenumber)
to_chat(target, span_xenohighdanger("The [user] has banished you from the hive! Other xenomorphs may now attack you freely, but your link to the hivemind remains, preventing you from harming other sisters."))
log_game("[key_name(user)] has banish [key_name(target)]. Reason: [reason]")
@@ -781,7 +781,7 @@
REMOVE_TRAIT(target, TRAIT_BANISHED, TRAIT_BANISHED)
target.hud_set_banished()
- xeno_message("By [user]'s will, [target] has been readmitted into the Hive!\n[reason]", "xenoannounce", 5, user.hivenumber, sound= sound(get_sfx("queen"), channel = CHANNEL_ANNOUNCEMENTS))
+ xeno_message("By [user]'s will, [target] has been readmitted into the Hive!\n[reason]", "xenoannounce", 5, user.hivenumber, sound= sound(SFX_QUEEN, channel = CHANNEL_ANNOUNCEMENTS))
log_game("[key_name(user)] has returned [key_name(target)]. Reason: [reason]")
message_admins("[ADMIN_TPMONTY(user)] has returned [ADMIN_TPMONTY(target)]. Reason: [reason]")
return
diff --git a/code/modules/mob/living/carbon/xenomorph/xeno_defines.dm b/code/modules/mob/living/carbon/xenomorph/xeno_defines.dm
index eb0b5f97959..bdce4595fa8 100644
--- a/code/modules/mob/living/carbon/xenomorph/xeno_defines.dm
+++ b/code/modules/mob/living/carbon/xenomorph/xeno_defines.dm
@@ -436,7 +436,7 @@ GLOBAL_LIST_INIT(strain_list, init_glob_strain_list())
var/footstep_type = FOOTSTEP_XENO_MEDIUM
var/interference = 0 // Stagger for predator weapons. Prevents hivemind usage, queen overwatching, etc.
- var/talk_sound = "alien_talk" // sound when talking
+ var/talk_sound = SFX_ALIEN_TALK // sound when talking
COOLDOWN_DECLARE(xeno_health_alert_cooldown)
diff --git a/code/modules/mob/living/carbon/xenomorph/xenoprocs.dm b/code/modules/mob/living/carbon/xenomorph/xenoprocs.dm
index 90e971d031b..60ebf5a4e94 100644
--- a/code/modules/mob/living/carbon/xenomorph/xenoprocs.dm
+++ b/code/modules/mob/living/carbon/xenomorph/xenoprocs.dm
@@ -550,7 +550,7 @@
to_chat(C, span_danger("You feel a tiny prick."))
to_chat(src, span_xenowarning("Our stinger injects our victim with [initial(toxin.name)]!"))
playsound(C, 'sound/effects/spray3.ogg', 15, TRUE)
- playsound(C, "alien_drool", 15, TRUE)
+ playsound(C, SFX_ALIEN_DROOL, 15, TRUE)
do
face_atom(C)
if(IsStaggered())
diff --git a/code/modules/mob/living/silicon/ai/freelook/eye.dm b/code/modules/mob/living/silicon/ai/freelook/eye.dm
index 0891d79024d..b424fda7a77 100644
--- a/code/modules/mob/living/silicon/ai/freelook/eye.dm
+++ b/code/modules/mob/living/silicon/ai/freelook/eye.dm
@@ -199,7 +199,7 @@
/mob/camera/aiEye/proc/unregister_facedir_signals(mob/user)
UnregisterSignal(user, list(COMSIG_KB_MOB_FACENORTH_DOWN, COMSIG_KB_MOB_FACEEAST_DOWN, COMSIG_KB_MOB_FACESOUTH_DOWN, COMSIG_KB_MOB_FACEWEST_DOWN))
-/mob/camera/aiEye/playsound_local(turf/turf_source, soundin, vol, vary, frequency, falloff, is_global, channel, sound/S, distance_multiplier, mob/sound_reciever)
+/mob/camera/aiEye/playsound_local(turf/turf_source, soundin, vol, vary, frequency, falloff, is_global, channel, sound/sound_to_use, distance_multiplier, mob/sound_reciever)
if(istype(parent_cameranet) && !parent_cameranet.checkTurfVis(get_turf(src)))
return
- return ..(turf_source, soundin, vol, vary, frequency, falloff, is_global, channel, S, distance_multiplier, ai)
+ return ..(turf_source, soundin, vol, vary, frequency, falloff, is_global, channel, sound_to_use, distance_multiplier, ai)
diff --git a/code/modules/organs/limbs.dm b/code/modules/organs/limbs.dm
index b01a19f1f29..c697456ae98 100644
--- a/code/modules/organs/limbs.dm
+++ b/code/modules/organs/limbs.dm
@@ -850,7 +850,7 @@ Note that amputating the affected organ does in fact remove the infection from t
span_warning("You hear a loud cracking sound coming from [owner]!"),
span_highdanger("Something feels like it shattered in your [display_name]!"),
span_warning("You hear a sickening crack!"))
- playsound(owner, "bone_break", 45, 1)
+ playsound(owner, SFX_BONE_BREAK, 45, 1)
if(owner.species && !(owner.species.species_flags & NO_PAIN))
owner.emote("scream")
diff --git a/code/modules/paperwork/paper_bundle.dm b/code/modules/paperwork/paper_bundle.dm
index 58ed494b9fb..14ec566acf6 100644
--- a/code/modules/paperwork/paper_bundle.dm
+++ b/code/modules/paperwork/paper_bundle.dm
@@ -143,7 +143,7 @@
else if(page == amount)
return
page++
- playsound(src.loc, "pageturn", 15, 1)
+ playsound(src.loc, SFX_PAGE_TURN, 15, 1)
if(href_list["prev_page"])
if(page == 1)
return
@@ -152,7 +152,7 @@
else if(page == amount)
screen = 1
page--
- playsound(src.loc, "pageturn", 15, 1)
+ playsound(src.loc, SFX_PAGE_TURN, 15, 1)
if(href_list["remove"])
var/obj/item/W = contents[page]
usr.put_in_hands(W)
diff --git a/code/modules/power/apc/apc_attack.dm b/code/modules/power/apc/apc_attack.dm
index 3680b543ad6..d8f1d3d8410 100644
--- a/code/modules/power/apc/apc_attack.dm
+++ b/code/modules/power/apc/apc_attack.dm
@@ -6,7 +6,7 @@
X.do_attack_animation(src, ATTACK_EFFECT_CLAW)
X.visible_message(span_danger("[X] slashes \the [src]!"), \
span_danger("We slash \the [src]!"), null, 5)
- playsound(loc, "alien_claw_metal", 25, 1)
+ playsound(loc, SFX_ALIEN_CLAW_METAL, 25, 1)
var/allcut = wires.is_all_cut()
diff --git a/code/modules/predator/yautja/bracers.dm b/code/modules/predator/yautja/bracers.dm
index 376e9b344c0..72778460c37 100644
--- a/code/modules/predator/yautja/bracers.dm
+++ b/code/modules/predator/yautja/bracers.dm
@@ -222,12 +222,12 @@
if(!drain_power(caller, 70)) //We should only drain power if we actually yank the chain back. Failed attempts can quickly drain the charge away.
return TRUE
caller.visible_message(span_warning("[caller] yanks [combistick]'s chain back!"), span_warning("You yank [combistick]'s chain back!"))
- playsound(caller, "chain_swing", 25)
+ playsound(caller, SFX_CHAIN_SWING, 25)
else if(caller.put_in_inactive_hand(combistick))///...Try putting it in our inactive hand.
if(!drain_power(caller, 70)) //We should only drain power if we actually yank the chain back. Failed attempts can quickly drain the charge away.
return TRUE
caller.visible_message(span_warning("[caller] yanks [combistick]'s chain back!"), span_warning("You yank [combistick]'s chain back!"))
- playsound(caller, "chain_swing", 25)
+ playsound(caller, SFX_CHAIN_SWING, 25)
else //If neither hand can hold it, you must not have a free hand.
to_chat(caller, span_warning("You need a free hand to do this!"))
diff --git a/code/modules/predator/yautja/weapons/one_handed.dm b/code/modules/predator/yautja/weapons/one_handed.dm
index d46aa07784a..d612070fe14 100644
--- a/code/modules/predator/yautja/weapons/one_handed.dm
+++ b/code/modules/predator/yautja/weapons/one_handed.dm
@@ -81,7 +81,7 @@
sharp = IS_SHARP_ITEM_ACCURATE
edge = TRUE
w_class = WEIGHT_CLASS_HUGE
- hitsound = "clan_sword_hit"
+ hitsound = SFX_CLAN_SWORD_HIT
attack_verb = list("slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut")
attack_speed = 1 SECONDS
resistance_flags = UNACIDABLE
diff --git a/code/modules/projectiles/ammo_datums/_ammo_datums.dm b/code/modules/projectiles/ammo_datums/_ammo_datums.dm
index f1710db05e2..9883933415f 100644
--- a/code/modules/projectiles/ammo_datums/_ammo_datums.dm
+++ b/code/modules/projectiles/ammo_datums/_ammo_datums.dm
@@ -202,7 +202,7 @@
var/deflagrate_chance = victim.modify_by_armor(proj.damage - (proj.distance_travelled * proj.damage_falloff), FIRE, proj.penetration) * deflagrate_multiplier
if(prob(deflagrate_chance))
new /obj/effect/temp_visual/shockwave(get_turf(victim), 2)
- playsound(target, "incendiary_explosion", 40)
+ playsound(target, SFX_INCENDIARY_EXPLOSION, 40)
fire_burst(target, proj)
///the actual fireblast triggered by deflagrate
diff --git a/code/modules/projectiles/ammo_datums/artillery.dm b/code/modules/projectiles/ammo_datums/artillery.dm
index b48419c23dc..471807d18d0 100644
--- a/code/modules/projectiles/ammo_datums/artillery.dm
+++ b/code/modules/projectiles/ammo_datums/artillery.dm
@@ -181,7 +181,7 @@
handful_icon_state = "40mm_grenade"
handful_amount = 1
ping = null //no bounce off.
- sound_bounce = "rocket_bounce"
+ sound_bounce = SFX_ROCKET_BOUNCE
flags_ammo_behavior = AMMO_TARGET_TURF|AMMO_SNIPER|AMMO_IFF
armor_type = BOMB
damage_falloff = 0.5
@@ -195,19 +195,19 @@
var/bonus_projectile_quantity = 15
/datum/ammo/ags_shrapnel/on_hit_mob(mob/M, obj/projectile/proj)
- playsound(proj, sound(get_sfx("explosion_micro")), 30, falloff = 5)
+ playsound(proj, SFX_EXPLOSION_MICRO, 30, falloff = 5)
fire_directionalburst(proj, proj.firer, proj.shot_from, bonus_projectile_quantity, 2, 3, Get_Angle(proj.firer, M) )
/datum/ammo/ags_shrapnel/on_hit_obj(obj/O, obj/projectile/proj)
- playsound(proj, sound(get_sfx("explosion_micro")), 30, falloff = 5)
+ playsound(proj, SFX_EXPLOSION_MICRO, 30, falloff = 5)
fire_directionalburst(proj, proj.firer, proj.shot_from, bonus_projectile_quantity, 2, 3, Get_Angle(proj.firer, O) )
/datum/ammo/ags_shrapnel/on_hit_turf(turf/T, obj/projectile/proj)
- playsound(proj, sound(get_sfx("explosion_micro")), 30, falloff = 5)
+ playsound(proj, SFX_EXPLOSION_MICRO, 30, falloff = 5)
fire_directionalburst(proj, proj.firer, proj.shot_from, bonus_projectile_quantity, 2, 3, Get_Angle(proj.firer, T) )
/datum/ammo/ags_shrapnel/do_at_max_range(turf/T, obj/projectile/proj)
- playsound(proj, sound(get_sfx("explosion_micro")), 30, falloff = 5)
+ playsound(proj, SFX_EXPLOSION_MICRO, 30, falloff = 5)
fire_directionalburst(proj, proj.firer, proj.shot_from, bonus_projectile_quantity, 2, 3, Get_Angle(proj.firer, get_turf(proj)) )
/datum/ammo/ags_shrapnel/incendiary
diff --git a/code/modules/projectiles/ammo_datums/bullet/_bullet.dm b/code/modules/projectiles/ammo_datums/bullet/_bullet.dm
index 2db7435b7ca..0ae966aac82 100644
--- a/code/modules/projectiles/ammo_datums/bullet/_bullet.dm
+++ b/code/modules/projectiles/ammo_datums/bullet/_bullet.dm
@@ -3,10 +3,10 @@
name = "default bullet"
icon_state = "bullet"
flags_ammo_behavior = AMMO_BALLISTIC
- sound_hit = "ballistic_hit"
- sound_armor = "ballistic_armor"
- sound_miss = "ballistic_miss"
- sound_bounce = "ballistic_bounce"
+ sound_hit = SFX_BALLISTIC_HIT
+ sound_armor = SFX_BALLISTIC_ARMOR
+ sound_miss = SFX_BALLISTIC_MISS
+ sound_bounce = SFX_BALLISTIC_BOUNCE
point_blank_range = 2
accurate_range_min = 0
shell_speed = 3
diff --git a/code/modules/projectiles/ammo_datums/energy.dm b/code/modules/projectiles/ammo_datums/energy.dm
index cc780acb9f8..2175b9425a7 100644
--- a/code/modules/projectiles/ammo_datums/energy.dm
+++ b/code/modules/projectiles/ammo_datums/energy.dm
@@ -1,9 +1,9 @@
/datum/ammo/energy
ping = "ping_s"
- sound_hit = "energy_hit"
- sound_armor = "ballistic_armor"
- sound_miss = "ballistic_miss"
- sound_bounce = "ballistic_bounce"
+ sound_hit = SFX_ENERGY_HIT
+ sound_armor = SFX_BALLISTIC_ARMOR
+ sound_miss = SFX_BALLISTIC_MISS
+ sound_bounce = SFX_BALLISTIC_BOUNCE
damage_type = BURN
flags_ammo_behavior = AMMO_ENERGY|AMMO_SOUND_PITCH
@@ -678,10 +678,10 @@
//inherited, could use some changes
ping = "ping_s"
- sound_hit = "energy_hit"
- sound_armor = "ballistic_armor"
- sound_miss = "ballistic_miss"
- sound_bounce = "ballistic_bounce"
+ sound_hit = SFX_ENERGY_HIT
+ sound_armor = SFX_BALLISTIC_ARMOR
+ sound_miss = SFX_BALLISTIC_MISS
+ sound_bounce = SFX_BALLISTIC_BOUNCE
/datum/ammo/energy/volkite/on_hit_mob(mob/M,obj/projectile/P)
deflagrate(M, P)
diff --git a/code/modules/projectiles/ammo_datums/misc.dm b/code/modules/projectiles/ammo_datums/misc.dm
index fa0252efb79..ccf9f3442a0 100644
--- a/code/modules/projectiles/ammo_datums/misc.dm
+++ b/code/modules/projectiles/ammo_datums/misc.dm
@@ -84,7 +84,7 @@
handful_icon_state = "20mm_airburst"
handful_amount = 3
ping = null //no bounce off.
- sound_bounce = "rocket_bounce"
+ sound_bounce = SFX_ROCKET_BOUNCE
flags_ammo_behavior = AMMO_TARGET_TURF|AMMO_SNIPER
armor_type = BOMB
damage_falloff = 0.5
@@ -108,19 +108,19 @@
/datum/ammo/tx54/on_hit_mob(mob/M, obj/projectile/proj)
staggerstun(M, proj, slowdown = 0.5, knockback = 1)
- playsound(proj, sound(get_sfx("explosion_micro")), 30, falloff = 5)
+ playsound(proj, SFX_EXPLOSION_MICRO, 30, falloff = 5)
fire_directionalburst(proj, proj.firer, proj.shot_from, bonus_projectile_quantity, 4, 3, Get_Angle(proj.firer, M) )
/datum/ammo/tx54/on_hit_obj(obj/O, obj/projectile/proj)
- playsound(proj, sound(get_sfx("explosion_micro")), 30, falloff = 5)
+ playsound(proj, SFX_EXPLOSION_MICRO, 30, falloff = 5)
fire_directionalburst(proj, proj.firer, proj.shot_from, bonus_projectile_quantity, 4, 3, Get_Angle(proj.firer, O) )
/datum/ammo/tx54/on_hit_turf(turf/T, obj/projectile/proj)
- playsound(proj, sound(get_sfx("explosion_micro")), 30, falloff = 5)
+ playsound(proj, SFX_EXPLOSION_MICRO, 30, falloff = 5)
fire_directionalburst(proj, proj.firer, proj.shot_from, bonus_projectile_quantity, 4, 3, Get_Angle(proj.firer, T) )
/datum/ammo/tx54/do_at_max_range(turf/T, obj/projectile/proj)
- playsound(proj, sound(get_sfx("explosion_micro")), 30, falloff = 5)
+ playsound(proj, SFX_EXPLOSION_MICRO, 30, falloff = 5)
fire_directionalburst(proj, proj.firer, proj.shot_from, bonus_projectile_quantity, 4, 3, Get_Angle(proj.firer, get_turf(proj)) )
/datum/ammo/tx54/incendiary
@@ -301,7 +301,7 @@
var/bonus_projectile_speed = 3
/datum/ammo/bullet/micro_rail/do_at_max_range(turf/T, obj/projectile/proj)
- playsound(proj, sound(get_sfx("explosion_micro")), 30, falloff = 5)
+ playsound(proj, SFX_EXPLOSION_MICRO, 30, falloff = 5)
var/datum/effect_system/smoke_spread/smoke = new
smoke.set_up(0, get_turf(proj), 1)
smoke.start()
@@ -382,10 +382,10 @@
name = "bomblet"
icon_state = "bullet"
flags_ammo_behavior = AMMO_BALLISTIC|AMMO_LEAVE_TURF
- sound_hit = "ballistic_hit"
- sound_armor = "ballistic_armor"
- sound_miss = "ballistic_miss"
- sound_bounce = "ballistic_bounce"
+ sound_hit = SFX_BALLISTIC_HIT
+ sound_armor = SFX_BALLISTIC_ARMOR
+ sound_miss = SFX_BALLISTIC_MISS
+ sound_bounce = SFX_BALLISTIC_BOUNCE
shell_speed = 2
damage = 5
accuracy = -60 //stop you from just emptying all the bomblets into one guys face for big damage
@@ -405,7 +405,7 @@
///handles the actual bomblet detonation
/datum/ammo/micro_rail_cluster/proc/detonate(turf/T, obj/projectile/P)
- playsound(T, sound(get_sfx("explosion_micro")), 30, falloff = 5)
+ playsound(T, SFX_EXPLOSION_MICRO, 30, falloff = 5)
var/datum/effect_system/smoke_spread/smoke = new smoketype()
smoke.set_up(0, T, rand(1,2))
smoke.start()
@@ -445,10 +445,10 @@
name = "micro smoke canister"
icon_state = "bullet"
flags_ammo_behavior = AMMO_BALLISTIC
- sound_hit = "ballistic_hit"
- sound_armor = "ballistic_armor"
- sound_miss = "ballistic_miss"
- sound_bounce = "ballistic_bounce"
+ sound_hit = SFX_BALLISTIC_HIT
+ sound_armor = SFX_BALLISTIC_ARMOR
+ sound_miss = SFX_BALLISTIC_MISS
+ sound_bounce = SFX_BALLISTIC_BOUNCE
shell_speed = 2
damage = 5
shrapnel_chance = 0
diff --git a/code/modules/projectiles/ammo_datums/rocket.dm b/code/modules/projectiles/ammo_datums/rocket.dm
index cf7bff58d2b..4357d206525 100644
--- a/code/modules/projectiles/ammo_datums/rocket.dm
+++ b/code/modules/projectiles/ammo_datums/rocket.dm
@@ -4,7 +4,7 @@
hud_state = "rocket_he"
hud_state_empty = "rocket_empty"
ping = null //no bounce off.
- sound_bounce = "rocket_bounce"
+ sound_bounce = SFX_ROCKET_BOUNCE
flags_ammo_behavior = AMMO_TARGET_TURF|AMMO_SNIPER
armor_type = BOMB
damage_falloff = 0
@@ -197,7 +197,7 @@
/datum/ammo/rocket/wp/quad/som
name = "white phosphorous RPG"
- hud_state = "rpg_fire"
+ hud_state = SFX_RPG_FIRE
icon_state = "rpg_incendiary"
flags_ammo_behavior = AMMO_SNIPER
effect_radius = 5
@@ -493,19 +493,19 @@
/datum/ammo/rocket/atgun_shell/beehive/on_hit_mob(mob/M, obj/projectile/proj)
staggerstun(M, proj, slowdown = 0.2, knockback = 1)
drop_nade(get_turf(M))
- playsound(proj, sound(get_sfx("explosion_micro")), 30, falloff = 5)
+ playsound(proj, SFX_EXPLOSION_MICRO, 30, falloff = 5)
fire_directionalburst(proj, proj.firer, proj.shot_from, bonus_projectile_quantity, 5, 3, Get_Angle(proj.firer, M) )
/datum/ammo/rocket/atgun_shell/beehive/on_hit_obj(obj/O, obj/projectile/proj)
- playsound(proj, sound(get_sfx("explosion_micro")), 30, falloff = 5)
+ playsound(proj, SFX_EXPLOSION_MICRO, 30, falloff = 5)
fire_directionalburst(proj, proj.firer, proj.shot_from, bonus_projectile_quantity, 5, 3, Get_Angle(proj.firer, O) )
/datum/ammo/rocket/atgun_shell/beehive/on_hit_turf(turf/T, obj/projectile/proj)
- playsound(proj, sound(get_sfx("explosion_micro")), 30, falloff = 5)
+ playsound(proj, SFX_EXPLOSION_MICRO, 30, falloff = 5)
fire_directionalburst(proj, proj.firer, proj.shot_from, bonus_projectile_quantity, 5, 3, Get_Angle(proj.firer, T) )
/datum/ammo/rocket/atgun_shell/beehive/do_at_max_range(turf/T, obj/projectile/proj)
- playsound(proj, sound(get_sfx("explosion_micro")), 30, falloff = 5)
+ playsound(proj, SFX_EXPLOSION_MICRO, 30, falloff = 5)
fire_directionalburst(proj, proj.firer, proj.shot_from, bonus_projectile_quantity, 5, 3, Get_Angle(proj.firer, get_turf(proj)) )
/datum/ammo/rocket/atgun_shell/beehive/incend
diff --git a/code/modules/projectiles/ammo_datums/xeno.dm b/code/modules/projectiles/ammo_datums/xeno.dm
index 99e73c285ff..f75e578e0fd 100644
--- a/code/modules/projectiles/ammo_datums/xeno.dm
+++ b/code/modules/projectiles/ammo_datums/xeno.dm
@@ -241,8 +241,8 @@ GLOBAL_LIST_INIT(no_sticky_resin, typecacheof(list(/obj/item/clothing/mask/faceh
/datum/ammo/xeno/acid
name = "acid spit"
icon_state = "xeno_acid_weak"
- sound_hit = "acid_hit"
- sound_bounce = "acid_bounce"
+ sound_hit = SFX_ACID_HIT
+ sound_bounce = SFX_ACID_BOUNCE
damage_type = BURN
added_spit_delay = 5
spit_cost = 50
@@ -491,8 +491,8 @@ GLOBAL_LIST_INIT(no_sticky_resin, typecacheof(list(/obj/item/clothing/mask/faceh
/datum/ammo/xeno/boiler_gas/corrosive
name = "glob of acid"
icon_state = "boiler_gas"
- sound_hit = "acid_hit"
- sound_bounce = "acid_bounce"
+ sound_hit = SFX_ACID_HIT
+ sound_bounce = SFX_ACID_BOUNCE
icon_key = BOILER_GLOB_ACID
select_text = "We will now fire corrosive acid. This is lethal!"
flags_ammo_behavior = AMMO_XENO|AMMO_SKIPS_ALIENS|AMMO_TARGET_TURF
@@ -641,7 +641,7 @@ GLOBAL_LIST_INIT(no_sticky_resin, typecacheof(list(/obj/item/clothing/mask/faceh
/datum/ammo/xeno/web_projectile
icon_state = "web_spit"
- sound_hit = "snap"
+ sound_hit = SFX_SNAP
sound_bounce = "alien_resin_build3"
damage_type = STAMINA
bullet_color = COLOR_PURPLE
@@ -657,7 +657,7 @@ GLOBAL_LIST_INIT(no_sticky_resin, typecacheof(list(/obj/item/clothing/mask/faceh
. = ..()
if(!ishuman(target_mob))
return
- playsound(get_turf(target_mob), sound(get_sfx("snap")), 30, falloff = 5)
+ playsound(get_turf(target_mob), SFX_SNAP, 30, falloff = 5)
var/mob/living/carbon/human/human_victim = target_mob
human_victim.apply_effect(hit_weaken, WEAKEN)
diff --git a/code/modules/projectiles/ammo_datums/yautja.dm b/code/modules/projectiles/ammo_datums/yautja.dm
index c21c4da9f02..7d351fe0113 100644
--- a/code/modules/projectiles/ammo_datums/yautja.dm
+++ b/code/modules/projectiles/ammo_datums/yautja.dm
@@ -13,9 +13,9 @@
ping = "ping_s"
icon_state = "MSpearFlight"
hud_state = "alloy_spike"
- sound_hit = "alloy_hit"
- sound_armor = "alloy_armor"
- sound_bounce = "alloy_bounce"
+ sound_hit = SFX_ALLOY_HIT
+ sound_armor = SFX_ALLOY_ARMOR
+ sound_bounce = SFX_ALLOY_BOUNCE
bullet_color = COLOR_MAGENTA
armor_type = BULLET
accuracy = 20
diff --git a/code/modules/projectiles/gun_system.dm b/code/modules/projectiles/gun_system.dm
index 722749767d0..47d050c03ed 100644
--- a/code/modules/projectiles/gun_system.dm
+++ b/code/modules/projectiles/gun_system.dm
@@ -1835,6 +1835,6 @@
if(!istype(lit_flashlight))
continue
lit_flashlight.turn_light(null, FALSE)
- playsound(loc, "alien_claw_metal", 25, 1)
+ playsound(loc, SFX_ALIEN_CLAW_METAL, 25, 1)
xeno_attacker.do_attack_animation(src, ATTACK_EFFECT_CLAW)
to_chat(xeno_attacker, span_warning("We disable the metal thing's lights.") )
diff --git a/code/modules/projectiles/guns/flamer.dm b/code/modules/projectiles/guns/flamer.dm
index 9c243f824dd..aaa620f3d1c 100644
--- a/code/modules/projectiles/guns/flamer.dm
+++ b/code/modules/projectiles/guns/flamer.dm
@@ -8,7 +8,7 @@
flags_equip_slot = ITEM_SLOT_BACK
w_class = WEIGHT_CLASS_BULKY
force = 15
- fire_sound = "gun_flamethrower"
+ fire_sound = SFX_GUN_FLAMETHROWER
dry_fire_sound = 'sound/weapons/guns/fire/flamethrower_empty.ogg'
unload_sound = 'sound/weapons/guns/interact/flamethrower_unload.ogg'
reload_sound = 'sound/weapons/guns/interact/flamethrower_reload.ogg'
diff --git a/code/modules/projectiles/guns/mounted.dm b/code/modules/projectiles/guns/mounted.dm
index 1b13d0d5659..b1c0264513a 100644
--- a/code/modules/projectiles/guns/mounted.dm
+++ b/code/modules/projectiles/guns/mounted.dm
@@ -158,7 +158,7 @@
flags_equip_slot = ITEM_SLOT_BACK
icon = 'icons/Marine/marine-ac.dmi'
icon_state = "autocannon"
- fire_sound = "ac_fire"
+ fire_sound = SFX_AC_FIRE
reload_sound = 'sound/weapons/guns/interact/minigun_cocked.ogg'
default_ammo_type = /obj/item/ammo_magazine/atr22
diff --git a/code/modules/projectiles/guns/rifles.dm b/code/modules/projectiles/guns/rifles.dm
index 1c4567109c0..4d5cbd8ce0c 100644
--- a/code/modules/projectiles/guns/rifles.dm
+++ b/code/modules/projectiles/guns/rifles.dm
@@ -129,7 +129,7 @@
desc = "The Keckler and Hoch AR-12 assault rifle used to be the TerraGov Marine Corps standard issue rifle before the AR-18 carbine replaced it. It is, however, still used widely despite that. The gun itself is very good at being used in most situations however it suffers in engagements at close quarters and is relatively hard to shoulder than some others. It uses 10x24mm caseless ammunition."
icon_state = "t12"
item_state = "t12"
- fire_sound = "gun_ar12"
+ fire_sound = SFX_GUN_AR12
dry_fire_sound = 'sound/weapons/guns/fire/m41a_empty.ogg'
unload_sound = 'sound/weapons/guns/rifles/AR-12/AR12_clipout.ogg'
reload_sound = 'sound/weapons/guns/rifles/AR-12/AR12_clipin.ogg'
@@ -504,7 +504,7 @@
icon = 'icons/Marine/gun64.dmi'
icon_state = "m41a"
item_state = "m41a"
- fire_sound = "gun_pulse"
+ fire_sound = SFX_GUN_PULSE
dry_fire_sound = 'sound/weapons/guns/fire/m41a_empty.ogg'
unload_sound = 'sound/weapons/guns/interact/m41a_unload.ogg'
reload_sound = 'sound/weapons/guns/interact/m41a_reload.ogg'
@@ -730,7 +730,7 @@
item_state = "dp27"
max_shells = 47 //codex
caliber = CALIBER_762X39 //codex
- fire_sound = "svd_fire"
+ fire_sound = SFX_SVD_FIRE
dry_fire_sound = 'sound/weapons/guns/fire/dpm.ogg'
unload_sound = 'sound/weapons/guns/interact/dpm_unload.ogg'
reload_sound = 'sound/weapons/guns/interact/dpm_reload.ogg'
@@ -1321,7 +1321,7 @@
force = 30
aim_slowdown = 0.95
wield_delay = 1.3 SECONDS
- fire_sound = "gun_smartgun"
+ fire_sound = SFX_GUN_SMARTGUN
dry_fire_sound = 'sound/weapons/guns/fire/m41a_empty.ogg'
unload_sound = 'sound/weapons/guns/interact/T42_unload.ogg'
reload_sound = 'sound/weapons/guns/interact/T42_reload.ogg'
@@ -1962,7 +1962,7 @@
desc = "Officially designated an Objective Individual Combat Weapon, the AR-55 features an upper bullpup 20mm grenade launcher designed to fire a variety of specialised rounds, and an underslung assault rifle using 10x24mm caseless ammunition. Somewhat cumbersome to use due to its size and weight. Requires a T49 scope for precision aiming."
icon_state = "tx55"
item_state = "tx55"
- fire_sound = "gun_ar12"
+ fire_sound = SFX_GUN_AR12
dry_fire_sound = 'sound/weapons/guns/fire/m41a_empty.ogg'
unload_sound = 'sound/weapons/guns/interact/t18_unload.ogg'
reload_sound = 'sound/weapons/guns/interact/t18_reload.ogg'
@@ -2357,7 +2357,7 @@
inhand_y_dimension = 32
muzzleflash_iconstate = "muzzle_flash_medium"
- fire_sound = "fal_fire"
+ fire_sound = SFX_FAL_FIRE
dry_fire_sound = 'sound/weapons/guns/fire/m41a_empty.ogg'
unload_sound = 'sound/weapons/guns/interact/fal_unload.ogg'
reload_sound = 'sound/weapons/guns/interact/fal_reload.ogg'
@@ -2678,7 +2678,7 @@
force = 20
aim_slowdown = 0.5
wield_delay = 0.9 SECONDS
- fire_sound = "gun_smartgun"
+ fire_sound = SFX_GUN_SMARTGUN
dry_fire_sound = 'sound/weapons/guns/fire/m41a_empty.ogg'
unload_sound = 'sound/weapons/guns/interact/T42_unload.ogg'
reload_sound = 'sound/weapons/guns/interact/T42_reload.ogg'
diff --git a/code/modules/projectiles/guns/shotguns.dm b/code/modules/projectiles/guns/shotguns.dm
index 1750e204f03..6998dd422ee 100644
--- a/code/modules/projectiles/guns/shotguns.dm
+++ b/code/modules/projectiles/guns/shotguns.dm
@@ -806,7 +806,7 @@ RU TGMC EDIT */
icon_state = "v51"
icon = 'icons/Marine/gun64.dmi'
item_state = "v51"
- fire_sound = "shotgun_som"
+ fire_sound = SFX_SHOTGUN_SOM
dry_fire_sound = 'sound/weapons/guns/fire/v51_empty.ogg'
reload_sound = 'sound/weapons/guns/interact/v51_load.ogg'
hand_reload_sound = 'sound/weapons/guns/interact/v51_load.ogg'
diff --git a/code/modules/projectiles/guns/smgs.dm b/code/modules/projectiles/guns/smgs.dm
index 9760f395c55..8f63426a76e 100644
--- a/code/modules/projectiles/guns/smgs.dm
+++ b/code/modules/projectiles/guns/smgs.dm
@@ -556,7 +556,7 @@
type_of_casings = null
default_ammo_type = /obj/item/ammo_magazine/smg/icc_machinepistol
allowed_ammo_types = list(/obj/item/ammo_magazine/smg/icc_machinepistol, /obj/item/ammo_magazine/smg/icc_machinepistol/hp)
- fire_sound = "mp38_fire"
+ fire_sound = SFX_MP38_FIRE
unload_sound = 'sound/weapons/guns/interact/mp38_unload.ogg'
reload_sound = 'sound/weapons/guns/interact/mp38_reload.ogg'
diff --git a/code/modules/projectiles/guns/specialist.dm b/code/modules/projectiles/guns/specialist.dm
index 49bbbc24c07..f0ddf6a4e37 100644
--- a/code/modules/projectiles/guns/specialist.dm
+++ b/code/modules/projectiles/guns/specialist.dm
@@ -259,7 +259,7 @@ Note that this means that snipers will have a slowdown of 3, due to the scope
max_shells = 10 //codex
caliber = CALIBER_762X54 //codex
- fire_sound = "svd_fire"
+ fire_sound = SFX_SVD_FIRE
dry_fire_sound = 'sound/weapons/guns/fire/sniper_empty.ogg'
unload_sound = 'sound/weapons/guns/interact/svd_unload.ogg'
reload_sound = 'sound/weapons/guns/interact/svd_reload.ogg'
@@ -461,7 +461,7 @@ Note that this means that snipers will have a slowdown of 3, due to the scope
flags_equip_slot = ITEM_SLOT_BACK|ITEM_SLOT_BELT
max_shells = 100 //codex
caliber = CALIBER_PEPPERBALL
- fire_sound = "gun_fb12" // idk why i called it "fb-12", ah too late now
+ fire_sound = SFX_GUN_FB12 // idk why i called it "fb-12", ah too late now
default_ammo_type = /obj/item/ammo_magazine/rifle/pepperball
allowed_ammo_types = list(/obj/item/ammo_magazine/rifle/pepperball)
force = 30 // two shots weeds as it has no bayonet
@@ -872,7 +872,7 @@ Note that this means that snipers will have a slowdown of 3, due to the scope
attachable_allowed = list()
reload_sound = 'sound/weapons/guns/interact/rpg_load.ogg'
unload_sound = 'sound/weapons/guns/interact/rpg_load.ogg'
- fire_sound = "rpg_fire"
+ fire_sound = SFX_RPG_FIRE
attachable_offset = list("muzzle_x" = 33, "muzzle_y" = 18,"rail_x" = 6, "rail_y" = 19, "under_x" = 19, "under_y" = 14, "stock_x" = 19, "stock_y" = 14)
@@ -916,7 +916,7 @@ Note that this means that snipers will have a slowdown of 3, due to the scope
attachable_allowed = list()
reload_sound = 'sound/weapons/guns/interact/rpg_load.ogg'
unload_sound = 'sound/weapons/guns/interact/rpg_load.ogg'
- fire_sound = "rpg_fire"
+ fire_sound = SFX_RPG_FIRE
attachable_offset = list("muzzle_x" = 33, "muzzle_y" = 18,"rail_x" = 6, "rail_y" = 19, "under_x" = 19, "under_y" = 14, "stock_x" = 19, "stock_y" = 14)
diff --git a/code/modules/shuttle/marine_dropship.dm b/code/modules/shuttle/marine_dropship.dm
index e47e4026de6..8c430ae5cba 100644
--- a/code/modules/shuttle/marine_dropship.dm
+++ b/code/modules/shuttle/marine_dropship.dm
@@ -436,7 +436,7 @@
to_chat(user, span_warning("Мы не можем помешать птице улететь, так как она уже взлетает."))
D.silicon_lock_airlocks(TRUE)
to_chat(user, span_warning("Мы отменили блокировку шаттла!"))
- playsound(user, "alien_roar", 50)
+ playsound(user, SFX_ALIEN_ROAR, 50)
priority_announce("Протокол блокировки Нормандии скомпрометирован. Постороннее вмешательство блокирует попытки удалённого управления.", "Шаттл Заблокирован", type = ANNOUNCEMENT_PRIORITY, color_override = "red", sound = 'sound/AI/dropship_block.ogg')
return FALSE
if(D.mode != SHUTTLE_IDLE && D.mode != SHUTTLE_RECHARGING)
diff --git a/code/modules/shuttle/navigation_computer.dm b/code/modules/shuttle/navigation_computer.dm
index 1b659ea65cd..ebee1225d79 100644
--- a/code/modules/shuttle/navigation_computer.dm
+++ b/code/modules/shuttle/navigation_computer.dm
@@ -435,7 +435,7 @@
var/selected = input("Choose location to jump to", "Locations", null) as null|anything in sortList(L)
if(QDELETED(src) || QDELETED(target) || !isliving(target))
return
- playsound(src, "terminal_type", 25, FALSE)
+ playsound(src, SFX_TERMINAL_TYPE, 25, FALSE)
if(selected)
var/turf/T = get_turf(L[selected])
if(T)
diff --git a/code/modules/vehicles/armored/armored_weapons.dm b/code/modules/vehicles/armored/armored_weapons.dm
index 5a49f31dc08..641edb7f883 100644
--- a/code/modules/vehicles/armored/armored_weapons.dm
+++ b/code/modules/vehicles/armored/armored_weapons.dm
@@ -349,7 +349,7 @@
name = "\improper OMR Mk.3 secondary flamer"
desc = "A large, vehicle mounted flamer. This one is capable of spraying it's payload due to a less solid mix."
icon_state = "sflamer"
- fire_sound = "gun_flamethrower"
+ fire_sound = SFX_GUN_FLAMETHROWER
ammo = /obj/item/ammo_magazine/tank/secondary_flamer_tank
weapon_slot = MODULE_SECONDARY
fire_mode = GUN_FIREMODE_AUTOMATIC
diff --git a/code/modules/vehicles/unmanned/unmanned_vehicle.dm b/code/modules/vehicles/unmanned/unmanned_vehicle.dm
index 5ce23784cfa..76879900a4b 100644
--- a/code/modules/vehicles/unmanned/unmanned_vehicle.dm
+++ b/code/modules/vehicles/unmanned/unmanned_vehicle.dm
@@ -36,7 +36,7 @@
///The currently loaded and ready to fire projectile
var/obj/projectile/in_chamber = null
///Sound file or string type for playing the shooting sound
- var/gunnoise = "gun_smartgun"
+ var/gunnoise = SFX_GUN_SMARTGUN
/// Serial number of the vehicle
var/static/serial = 1
/// If the vehicle should spawn with a weapon allready installed
diff --git a/code/modules/xenomorph/_xeno_structure.dm b/code/modules/xenomorph/_xeno_structure.dm
index d81fa729051..e7966558f84 100644
--- a/code/modules/xenomorph/_xeno_structure.dm
+++ b/code/modules/xenomorph/_xeno_structure.dm
@@ -1,5 +1,5 @@
/obj/structure/xeno
- hit_sound = "alien_resin_break"
+ hit_sound = SFX_ALIEN_RESIN_BREAK
layer = RESIN_STRUCTURE_LAYER
resistance_flags = UNACIDABLE
///Bitflags specific to xeno structures
@@ -61,5 +61,5 @@
return
xeno_attacker.do_attack_animation(src, ATTACK_EFFECT_CLAW)
balloon_alert_to_viewers("\The [xeno_attacker] tears down \the [src]!", "We tear down \the [src].")
- playsound(src, "alien_resin_break", 25)
+ playsound(src, SFX_ALIEN_RESIN_BREAK, 25)
take_damage(max_integrity) // Ensure its destroyed
diff --git a/code/modules/xenomorph/acidwell.dm b/code/modules/xenomorph/acidwell.dm
index 2f2778df295..519687dca3f 100644
--- a/code/modules/xenomorph/acidwell.dm
+++ b/code/modules/xenomorph/acidwell.dm
@@ -9,8 +9,8 @@
anchored = TRUE
max_integrity = 5
- hit_sound = "alien_resin_move"
- destroy_sound = "alien_resin_move"
+ hit_sound = SFX_ALIEN_RESIN_MOVE
+ destroy_sound = SFX_ALIEN_RESIN_MOVE
///How many charges of acid this well contains
var/charges = 1
///If a xeno is charging this well
@@ -118,7 +118,7 @@
if(!do_after(xeno_attacker, XENO_ACID_WELL_FILL_TIME, IGNORE_HELD_ITEM, src, BUSY_ICON_HOSTILE))
balloon_alert(xeno_attacker, "Stopped removing")
return
- playsound(src, "alien_resin_break", 25)
+ playsound(src, SFX_ALIEN_RESIN_BREAK, 25)
deconstruct(TRUE, xeno_attacker)
return
diff --git a/code/modules/xenomorph/jellypod.dm b/code/modules/xenomorph/jellypod.dm
index 96c34be0088..8b9c1fba26e 100644
--- a/code/modules/xenomorph/jellypod.dm
+++ b/code/modules/xenomorph/jellypod.dm
@@ -12,8 +12,8 @@
pixel_y = -16
xeno_structure_flags = IGNORE_WEED_REMOVAL
- hit_sound = "alien_resin_move"
- destroy_sound = "alien_resin_move"
+ hit_sound = SFX_ALIEN_RESIN_MOVE
+ destroy_sound = SFX_ALIEN_RESIN_MOVE
///How many actual jellies the pod has stored
var/chargesleft = 0
///Max amount of jellies the pod can hold
diff --git a/code/modules/xenomorph/plant.dm b/code/modules/xenomorph/plant.dm
index f3621f42daf..86e917260d7 100644
--- a/code/modules/xenomorph/plant.dm
+++ b/code/modules/xenomorph/plant.dm
@@ -36,7 +36,7 @@
///Called when the plant reaches maturity
/obj/structure/xeno/plant/proc/on_mature(mob/user)
- playsound(src, "alien_resin_build", 25)
+ playsound(src, SFX_ALIEN_RESIN_BUILD, 25)
mature = TRUE
update_icon()
@@ -83,7 +83,7 @@
var/mob/living/carbon/xenomorph/X = user
var/heal_amount = max(healing_amount_min, healing_amount_max_health_scaling * X.xeno_caste.max_health)
HEAL_XENO_DAMAGE(X, heal_amount, FALSE)
- playsound(user, "alien_drool", 25)
+ playsound(user, SFX_ALIEN_DROOL, 25)
balloon_alert(X, "Health restored")
to_chat(X, span_xenowarning("We feel a sudden soothing chill as [src] tends to our wounds."))
@@ -122,7 +122,7 @@
to_chat(user, span_xenowarning("We shed our shattered scales as new ones grow to replace them!"))
var/mob/living/carbon/xenomorph/X = user
X.adjust_sunder(-sunder_removal)
- playsound(user, "alien_drool", 25)
+ playsound(user, SFX_ALIEN_DROOL, 25)
return ..()
/obj/structure/xeno/plant/plasma_fruit
@@ -163,7 +163,7 @@
X.apply_status_effect(/datum/status_effect/plasma_surge, X.xeno_caste.plasma_max, bonus_regen, duration)
balloon_alert(X, "Plasma restored")
to_chat(X, span_xenowarning("[src] Restores our plasma reserves, our organism is on overdrive!"))
- playsound(user, "alien_drool", 25)
+ playsound(user, SFX_ALIEN_DROOL, 25)
return ..()
/obj/structure/xeno/plant/stealth_plant
diff --git a/code/modules/xenomorph/trap.dm b/code/modules/xenomorph/trap.dm
index c164d2d4c8e..1f1bf21f0e9 100644
--- a/code/modules/xenomorph/trap.dm
+++ b/code/modules/xenomorph/trap.dm
@@ -8,7 +8,7 @@
anchored = TRUE
max_integrity = 5
layer = RESIN_STRUCTURE_LAYER
- destroy_sound = "alien_resin_break"
+ destroy_sound = SFX_ALIEN_RESIN_BREAK
///defines for trap type to trigger on activation
var/trap_type
///The hugger inside our trap
@@ -97,7 +97,7 @@
return
if(AM && (hivenumber == AM.get_xeno_hivenumber()))
return
- playsound(src, "alien_resin_break", 25)
+ playsound(src, SFX_ALIEN_RESIN_BREAK, 25)
if(iscarbon(AM))
var/mob/living/carbon/crosser = AM
crosser.visible_message(span_warning("[crosser] trips on [src]!"), span_danger("You trip on [src]!"))
diff --git a/code/modules/xenomorph/turret.dm b/code/modules/xenomorph/turret.dm
index db8d94ca555..53c2496b380 100644
--- a/code/modules/xenomorph/turret.dm
+++ b/code/modules/xenomorph/turret.dm
@@ -125,7 +125,7 @@
damage *= max(0, multiplier)
take_damage(damage, BRUTE, MELEE)
- playsound(src, "alien_resin_break", 25)
+ playsound(src, SFX_ALIEN_RESIN_BREAK, 25)
///Signal handler for hard del of hostile
/obj/structure/xeno/turret/proc/unset_hostile()
diff --git a/code/modules/xenomorph/xeno_towers.dm b/code/modules/xenomorph/xeno_towers.dm
index 02e36cae797..483910ec978 100644
--- a/code/modules/xenomorph/xeno_towers.dm
+++ b/code/modules/xenomorph/xeno_towers.dm
@@ -72,7 +72,7 @@
//Pheromone towers start off with recovery.
current_aura = SSaura.add_emitter(src, AURA_XENO_RECOVERY, aura_radius, aura_strength, -1, FACTION_XENO, hivenumber)
- playsound(src, "alien_drool", 25)
+ playsound(src, SFX_ALIEN_DROOL, 25)
update_icon()
/obj/structure/xeno/pherotower/ex_act(severity)
@@ -92,7 +92,7 @@
QDEL_NULL(current_aura)
current_aura = SSaura.add_emitter(src, phero_choice, aura_radius, aura_strength, -1, FACTION_XENO, hivenumber)
balloon_alert(xeno_attacker, "[phero_choice]")
- playsound(src, "alien_drool", 25)
+ playsound(src, SFX_ALIEN_DROOL, 25)
update_icon()
/obj/structure/xeno/pherotower/update_icon_state()