mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 04:28:12 +01:00
Alter playsound paradigm
This commit is contained in:
@@ -25,14 +25,14 @@
|
||||
switch(state)
|
||||
if(CONSTRUCTION_UNANCHORED)
|
||||
state = CONSTRUCTION_WRENCHED
|
||||
playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
|
||||
playsound(src, 'sound/items/Ratchet.ogg', 75, 1)
|
||||
user.visible_message("\The [user] secures \the [src]'s reinforcing bolts.", \
|
||||
"You secure the reinforcing bolts.", \
|
||||
"You hear a ratchet")
|
||||
src.anchored = 1
|
||||
if(CONSTRUCTION_WRENCHED)
|
||||
state = CONSTRUCTION_UNANCHORED
|
||||
playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1)
|
||||
playsound(src, 'sound/items/Ratchet.ogg', 75, 1)
|
||||
user.visible_message("\The [user] unsecures \the [src]'s reinforcing bolts.", \
|
||||
"You undo the reinforcing bolts.", \
|
||||
"You hear a ratchet")
|
||||
@@ -48,7 +48,7 @@
|
||||
to_chat(user, "<span class='warning'>The refinforcing bolts need to be secured.</span>")
|
||||
if(CONSTRUCTION_WRENCHED)
|
||||
if(WT.remove_fuel(0, user))
|
||||
playsound(src.loc, 'sound/items/Welder2.ogg', 50, 1)
|
||||
playsound(src, 'sound/items/Welder2.ogg', 50, 1)
|
||||
user.visible_message("\The [user] starts to weld \the [src] to the floor.", \
|
||||
"You start to weld \the [src] to the floor.", \
|
||||
"You hear welding")
|
||||
@@ -61,7 +61,7 @@
|
||||
to_chat(user, "<span class='warning'>You need more welding fuel to complete this task.</span>")
|
||||
if(CONSTRUCTION_WELDED)
|
||||
if(WT.remove_fuel(0, user))
|
||||
playsound(src.loc, 'sound/items/Welder2.ogg', 50, 1)
|
||||
playsound(src, 'sound/items/Welder2.ogg', 50, 1)
|
||||
user.visible_message("\The [user] starts to cut \the [src] free from the floor.", \
|
||||
"You start to cut \the [src] free from the floor.", \
|
||||
"You hear welding")
|
||||
|
||||
@@ -492,7 +492,7 @@
|
||||
visible_message("<span class='warning'>\The [src] falls from above and slams into \the [landing]!</span>", \
|
||||
"<span class='danger'>You fall off and hit \the [landing]!</span>", \
|
||||
"You hear something slam into \the [landing].")
|
||||
playsound(loc, "punch", 25, 1, -1)
|
||||
playsound(src, "punch", 25, 1, -1)
|
||||
|
||||
// Because wounds heal rather quickly, 10 (the default for this proc) should be enough to discourage jumping off but not be enough to ruin you, at least for the first time.
|
||||
// Hits 10 times, because apparently targeting individual limbs lets certain species survive the fall from atmosphere
|
||||
@@ -589,7 +589,7 @@
|
||||
visible_message("<span class='warning'>\The [src] falls from above and slams into \the [landing]!</span>", \
|
||||
"<span class='danger'>You fall off and hit \the [landing]!</span>", \
|
||||
"You hear something slam into \the [landing].")
|
||||
playsound(loc, "punch", 25, 1, -1)
|
||||
playsound(src, "punch", 25, 1, -1)
|
||||
|
||||
// And now to hurt the mech.
|
||||
if(!planetary)
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
else if(prey.can_be_drop_pred && pred.can_be_drop_prey) //Is person being fallen onto pred & person falling prey
|
||||
pred.feed_grabbed_to_self_falling_nom(prey,pred) //oh, how the tables have turned.
|
||||
else
|
||||
playsound(loc, "punch", 25, 1, -1)
|
||||
playsound(src, "punch", 25, 1, -1)
|
||||
prey.Weaken(8) //Just fall onto them if neither of the above apply.
|
||||
var/tdamage
|
||||
for(var/i = 1 to 10)
|
||||
@@ -85,7 +85,7 @@
|
||||
else
|
||||
prey.Weaken(8)
|
||||
pred.loc = prey.loc
|
||||
playsound(loc, "punch", 25, 1, -1)
|
||||
playsound(src, "punch", 25, 1, -1)
|
||||
var/tdamage
|
||||
for(var/i = 1 to 10)
|
||||
tdamage = rand(0, 10)/2
|
||||
|
||||
@@ -79,7 +79,7 @@ obj/machinery/atmospherics/pipe/zpipe/check_pressure(pressure)
|
||||
|
||||
obj/machinery/atmospherics/pipe/zpipe/proc/burst()
|
||||
src.visible_message("<span class='warning'>\The [src] bursts!</span>");
|
||||
playsound(src.loc, 'sound/effects/bang.ogg', 25, 1)
|
||||
playsound(src, 'sound/effects/bang.ogg', 25, 1)
|
||||
var/datum/effect/effect/system/smoke_spread/smoke = new
|
||||
smoke.set_up(1,0, src.loc, 0)
|
||||
smoke.start()
|
||||
|
||||
Reference in New Issue
Block a user