Files
Bubberstation/code/modules/projectiles/projectile/special/wormhole.dm
SkyratBot 6f3b151bb8 [MIRROR] Fixes a bunch of harddels that are sourced from player action (#6252)
* Fixes a bunch of harddels that are sourced from player action

* Mirror!

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
Co-authored-by: Funce <funce.973@gmail.com>
2021-06-11 03:13:33 +01:00

32 lines
873 B
Plaintext

/obj/projectile/beam/wormhole
name = "bluespace beam"
icon_state = "spark"
hitsound = "sparks"
damage = 0
nodamage = TRUE
pass_flags = PASSGLASS | PASSTABLE | PASSGRILLE | PASSMOB
//Weakref to the thing that shot us
var/datum/weakref/gun
color = "#33CCFF"
tracer_type = /obj/effect/projectile/tracer/wormhole
impact_type = /obj/effect/projectile/impact/wormhole
muzzle_type = /obj/effect/projectile/muzzle/wormhole
hitscan = TRUE
/obj/projectile/beam/wormhole/orange
name = "orange bluespace beam"
color = "#FF6600"
/obj/projectile/beam/wormhole/Initialize(mapload, obj/item/ammo_casing/energy/wormhole/casing)
. = ..()
if(casing)
gun = casing.gun
/obj/projectile/beam/wormhole/on_hit(atom/target)
var/obj/item/gun/energy/wormhole_projector/projector = gun.resolve()
if(!projector)
qdel(src)
return
projector.create_portal(src, get_turf(src))