Skip to content

Commit 608cf8f

Browse files
AlberykLohikar
authored andcommittedAug 27, 2017
Adds more sounds (#3327)
Adds sounds for opening lockers, going down ladders, turning on your internals, removing and placing extinguishers in the cabinet, sounds for bone breaking and sound to the bsa.
1 parent ad4fce7 commit 608cf8f

22 files changed

+19
-7
lines changed
 

‎code/_onclick/hud/screen_objects.dm

+1
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@
376376

377377
if(best)
378378
C << "<span class='notice'>You are now running on internals from [tankcheck[best]] [from] your [nicename[best]].</span>"
379+
playsound(usr, 'sound/effects/internals.ogg', 100, 1)
379380
C.internal = tankcheck[best]
380381

381382

‎code/game/objects/structures/crates_lockers/closets.dm

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
var/storage_capacity = 40 //Tying this to mob sizes was dumb
1616
//This is so that someone can't pack hundreds of items in a locker/crate
1717
//then open it in a populated area to crash clients.
18-
var/open_sound = 'sound/machines/click.ogg'
19-
var/close_sound = 'sound/machines/click.ogg'
18+
var/open_sound = 'sound/effects/locker_open.ogg'
19+
var/close_sound = 'sound/effects/locker_close.ogg'
2020

2121
var/store_misc = 1
2222
var/store_items = 1
@@ -135,7 +135,7 @@
135135
src.icon_state = src.icon_closed
136136
src.opened = 0
137137

138-
playsound(src.loc, close_sound, 15, 1, -3)
138+
playsound(src.loc, close_sound, 25, 0, -3)
139139
density = 1
140140
return 1
141141

‎code/game/objects/structures/extinguisher.dm

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
contents += O
2222
has_extinguisher = O
2323
user << "<span class='notice'>You place [O] in [src].</span>"
24+
playsound(src.loc, 'sound/effects/extin.ogg', 50, 0)
2425
else
2526
opened = !opened
2627
else
@@ -42,6 +43,7 @@
4243
if(has_extinguisher)
4344
user.put_in_hands(has_extinguisher)
4445
user << "<span class='notice'>You take [has_extinguisher] from [src].</span>"
46+
playsound(src.loc, 'sound/effects/extout.ogg', 50, 0)
4547
has_extinguisher = null
4648
opened = 1
4749
else

‎code/game/sound.dm

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ var/list/clown_sound = list('sound/effects/clownstep1.ogg','sound/effects/clowns
4545
var/list/swing_hit_sound = list('sound/weapons/genhit1.ogg', 'sound/weapons/genhit2.ogg', 'sound/weapons/genhit3.ogg')
4646
var/list/hiss_sound = list('sound/voice/hiss1.ogg','sound/voice/hiss2.ogg','sound/voice/hiss3.ogg','sound/voice/hiss4.ogg')
4747
var/list/page_sound = list('sound/effects/pageturn1.ogg', 'sound/effects/pageturn2.ogg','sound/effects/pageturn3.ogg')
48+
var/list/fracture_sound = list('sound/effects/bonebreak1.ogg','sound/effects/bonebreak2.ogg','sound/effects/bonebreak3.ogg','sound/effects/bonebreak4.ogg')
4849

4950
//FOOTSTEPS
5051
var/list/defaultfootsteps = list('sound/effects/footsteps/tile1.wav','sound/effects/footsteps/tile2.wav','sound/effects/footsteps/tile3.wav','sound/effects/footsteps/tile4.wav')
@@ -202,6 +203,7 @@ var/const/FALLOFF_SOUNDS = 0.5
202203
if ("swing_hit") soundin = pick(swing_hit_sound)
203204
if ("hiss") soundin = pick(hiss_sound)
204205
if ("pageturn") soundin = pick(page_sound)
206+
if ("fracture") soundin = pick(fracture_sound)
205207
//if ("gunshot") soundin = pick(gun_sound)
206208
if ("defaultstep") soundin = pick(defaultfootsteps)
207209
if ("concretestep") soundin = pick(concretefootsteps)

‎code/modules/admin/topic.dm

+2
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,8 @@
954954
if(prob(80)) T.break_tile_to_plating()
955955
else T.break_tile()
956956

957+
playsound(T, 'sound/effects/yamato_fire.ogg', 75, 1)
958+
957959
if(M.health == 1)
958960
M.gib()
959961
else

‎code/modules/awaymissions/bluespaceartillery.dm

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
dat += "Locked on<BR>"
2727
dat += "<B>Charge progress: [reload]/180:</B><BR>"
2828
dat += "<A href='byond://?src=\ref[src];fire=1'>Open Fire</A><BR>"
29-
dat += "Deployment of weapon authorized by <br>[company_name] Naval Command<br><br>Remember, friendly fire is grounds for termination of your contract and life.<HR>"
29+
dat += "Deployment of weapon authorized by <br>[company_name] Chief Naval Director<br><br>Remember, friendly fire is grounds for termination of your contract and life.<HR>"
3030
user << browse(dat, "window=scroll")
3131
onclose(user, "scroll")
3232
return
@@ -43,6 +43,7 @@
4343
if(src.reload < 180) return
4444
if ((usr.contents.Find(src) || (in_range(src, usr) && istype(src.loc, /turf))) || (istype(usr, /mob/living/silicon)))
4545
command_announcement.Announce("Bluespace artillery fire detected. Brace for impact.")
46+
world << sound('sound/effects/yamato_fire.ogg')
4647
message_admins("[key_name_admin(usr)] has launched an artillery strike.", 1)
4748
var/list/L = list()
4849
for(var/turf/T in get_area_turfs(thearea.type))

‎code/modules/multiz/structures.dm

+6-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
var/base_icon = "ladder"
1818

1919
var/const/climb_time = 2 SECONDS
20+
var/static/list/climbsounds = list('sound/effects/ladder.ogg','sound/effects/ladder2.ogg','sound/effects/ladder3.ogg','sound/effects/ladder4.ogg')
2021

2122
/obj/structure/ladder/Initialize()
2223
. = ..()
@@ -54,15 +55,15 @@
5455
var/obj/structure/ladder/target_ladder = getTargetLadder(M)
5556
if(!target_ladder)
5657
return
57-
58+
5859
var/obj/item/weapon/grab/G = M.l_hand
5960
if (!istype(G))
6061
G = M.r_hand
61-
62+
6263
if(!M.Move(get_turf(src)))
6364
to_chat(M, "<span class='notice'>You fail to reach \the [src].</span>")
6465
return
65-
66+
6667
if (istype(G))
6768
G.affecting.forceMove(get_turf(src))
6869

@@ -134,6 +135,8 @@
134135
if(!A.CanPass(M, M.loc, 1.5, 0))
135136
to_chat(M, "<span class='notice'>\The [A] is blocking \the [src].</span>")
136137
return FALSE
138+
playsound(src, pick(climbsounds), 50)
139+
playsound(target_ladder, pick(climbsounds), 50)
137140
var/obj/item/weapon/grab/G = M.l_hand
138141
if (!istype(G))
139142
G = M.r_hand

‎code/modules/organs/organ_external.dm

+1
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,7 @@ Note that amputating the affected organ does in fact remove the infection from t
896896
if(owner.species && !(owner.species.flags & NO_PAIN))
897897
owner.emote("scream")
898898

899+
playsound(src.loc, "fracture", 100, 1, -2)
899900
status |= ORGAN_BROKEN
900901
broken_description = pick("Broken","Fracture","Hairline fracture")
901902
perma_injury = brute_dam

‎sound/effects/bonebreak1.ogg

9.49 KB
Binary file not shown.

‎sound/effects/bonebreak2.ogg

7.96 KB
Binary file not shown.

‎sound/effects/bonebreak3.ogg

9.25 KB
Binary file not shown.

‎sound/effects/bonebreak4.ogg

10.6 KB
Binary file not shown.

‎sound/effects/extin.ogg

33.8 KB
Binary file not shown.

‎sound/effects/extout.ogg

41.5 KB
Binary file not shown.

‎sound/effects/internals.ogg

59.2 KB
Binary file not shown.

‎sound/effects/ladder.ogg

33.8 KB
Binary file not shown.

‎sound/effects/ladder2.ogg

38.2 KB
Binary file not shown.

‎sound/effects/ladder3.ogg

33.7 KB
Binary file not shown.

‎sound/effects/ladder4.ogg

38.3 KB
Binary file not shown.

‎sound/effects/locker_close.ogg

8.69 KB
Binary file not shown.

‎sound/effects/locker_open.ogg

10.7 KB
Binary file not shown.

‎sound/effects/yamato_fire.ogg

33.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)