mob
verb
exploding_kunai(mob/M in oview(6))
set name = "kunai"
set category = "Ninja"
new/obj/projectile
var/FallDir = get_dir(src,M)
src.dir = FallDir
walk(M,FallDir)
switch(FallDir)
if(NORTH)M.dir = SOUTH
if(NORTHWEST)M.dir = SOUTHEAST
if(WEST)M.dir = EAST
if(SOUTHWEST)M.dir = NORTHEAST
if(SOUTH)M.dir = NORTH
if(SOUTHEAST)M.dir = NORTHWEST
if(EAST)M.dir = WEST
if(NORTHEAST)M.dir = SOUTHWEST
sleep(50)
explosion()
mob
proc
explosion()
new/obj/pushwave
layer=MOB_LAYER+1
obj
pushwave
icon='explosion2.dmi'
obj
projectile
icon = 'Ki Attack.dmi'
Hello everyone, I wanna start out with saying, that this code is flawed, duhh, that's why I am here right?
The thing is, that it doesn't make an project, it does something, but not what it's supposed to.
I would like it to fire the kunai, and when it hits, it displays the pushwave and pushes the target back a few steps. But I am unable to make it work, and I've been trying for 3 days now :P
Any help would be greatly appreciated!
(Untested but it gives a general idea of projectiles.)