testprojectile
icon = 'test.dmi'
density = 1
step_size = 16
Bump(atom/A)
if(istype(A,/mob))
var/mob/D = A
loc = D.loc //make it pierce
if(istype(D,/mob/combative))
//damage stuff here
if(istype(A,/turf))
var/turf/T = A
if(T.density)
object_pool(0)
if(istype(A,/obj))
var/obj/T = A
if(T.density)
ProjectileBump(T)
Problem description:
I'm using pixel movement.
I'm trying to make projectiles able to pierce and remain along their original trajectory. When I do loc=D.loc, it moves the projectile off it's original trajectory, but continues moving. Is there a way to keep it on it's same position relative to it's position on a tile and have it also pass through dense atoms?