Flare light runtime
Created by: gbasood
code/game/sound.dm:26:Assertion Failed: !isnull(turf_source) at sound.dm:26
proc name: playsound (/proc/playsound)
source file: sound.dm,26
usr: Sara Mitchell (/mob/living/carbon/human)
src: null
usr.loc: the floor (130,140,3) (/turf/simulated/floor)
call stack:
playsound(null, "sound/items/flare_on.ogg", 50, 1, null, null, 1, 0)
the flare (/obj/item/device/flashlight/flare): update brightness(null)
the flare (/obj/item/device/flashlight/flare): Light(null)
the flare (/obj/item/projectile/flare): Bump(Russian (/mob/living/simple_animal/hostile/humanoid/russian/ranged))
the flare (/obj/item/projectile/flare): Move(the floor (125,138,3) (/turf/simulated/floor), 0, 0, 0)
the flare (/obj/item/projectile/flare): bresenham step(5, 2, 8, 2)
the flare (/obj/item/projectile/flare): process step()
the flare (/obj/item/projectile/flare): process()
runtime error: code/game/sound.dm:26:Assertion Failed: !isnull(turf_source)
proc name: playsound (/proc/playsound)
source file: sound.dm,26
usr: Sara Mitchell (/mob/living/carbon/human)
src: null
usr.loc: the floor (130,140,3) (/turf/simulated/floor)
call stack:
playsound(null, "sound/items/flare_on.ogg", 50, 1, null, null, 1, 0)
the flare (/obj/item/device/flashlight/flare): update brightness(null)
the flare (/obj/item/device/flashlight/flare): Light(null)
the flare (/obj/item/projectile/flare): Bump(Russian (/mob/living/simple_animal/hostile/humanoid/russian/ranged))
the flare (/obj/item/projectile/flare): Move(the floor (125,138,3) (/turf/simulated/floor), 0, 0, 0)
the flare (/obj/item/projectile/flare): bresenham step(5, 2, 8, 2)
the flare (/obj/item/projectile/flare): process step()
Relevant code:
/obj/item/device/flashlight/proc/update_brightness(var/mob/user = null)
if(on)
icon_state = "[initial(icon_state)]-on"
set_light(brightness_on)
if(has_sound)
playsound(get_turf(src), sound_on, 50, 1)
else
icon_state = initial(icon_state)
set_light(0)
if(has_sound)
playsound(get_turf(src), sound_off, 50, 1)