mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Alter playsound paradigm
This commit is contained in:
@@ -308,7 +308,7 @@
|
||||
var/obj/item/projectile/beam/LE = new (T)
|
||||
LE.icon = 'icons/effects/genetics.dmi'
|
||||
LE.icon_state = "eyelasers"
|
||||
playsound(usr.loc, 'sound/weapons/taser2.ogg', 75, 1)
|
||||
playsound(src, 'sound/weapons/taser2.ogg', 75, 1)
|
||||
LE.firer = src
|
||||
LE.preparePixelProjectile(A, src, params)
|
||||
LE.fire()
|
||||
|
||||
@@ -98,7 +98,7 @@ avoid code duplication. This includes items that may sometimes act as a standard
|
||||
/obj/item/proc/apply_hit_effect(mob/living/target, mob/living/user, var/hit_zone, var/attack_modifier)
|
||||
user.break_cloak()
|
||||
if(hitsound)
|
||||
playsound(loc, hitsound, 50, 1, -1)
|
||||
playsound(src, hitsound, 50, 1, -1)
|
||||
|
||||
var/power = force
|
||||
for(var/datum/modifier/M in user.modifiers)
|
||||
|
||||
Reference in New Issue
Block a user