mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-17 19:07:41 +01:00
Destination: improvement
This commit is contained in:
@@ -1289,4 +1289,25 @@ GLOBAL_LIST_INIT(hallucination_list, list(
|
||||
H.hal_target = target
|
||||
H.preparePixelProjectile(target, start)
|
||||
H.fire()
|
||||
qdel(src)
|
||||
qdel(src)
|
||||
|
||||
/datum/hallucination/stray_pistol_bullet //specifically for aurora_aquilae.dm event
|
||||
|
||||
/datum/hallucination/stray_pistol_bullet/New(mob/living/carbon/C, forced = TRUE)
|
||||
set waitfor = FALSE
|
||||
..()
|
||||
var/list/turf/startlocs = list()
|
||||
for(var/turf/open/T in view(world.view+1,target)-view(world.view,target))
|
||||
startlocs += T
|
||||
if(!startlocs.len)
|
||||
qdel(src)
|
||||
return
|
||||
var/turf/start = pick(startlocs)
|
||||
var/proj_type = /obj/item/projectile/hallucination/bullet
|
||||
feedback_details += "Type: [proj_type]"
|
||||
var/obj/item/projectile/hallucination/H = new proj_type(start)
|
||||
target.playsound_local(start, H.hal_fire_sound, 60, 1)
|
||||
H.hal_target = target
|
||||
H.preparePixelProjectile(target, start)
|
||||
H.fire()
|
||||
qdel(src)
|
||||
|
||||
Reference in New Issue
Block a user