I am trying to add projectiles to my game, right now it works fairly good. But I have found one major bug, and have spent an hour so far without any luck on how to fix it. If you are moving while shooting the gun, you shoot yourself! I dont really have any idea on how to fix this, right now I have this:
obj
paintball
icon='ball.dmi'
density=1
Bump(mob/M)
//here is the effects
if(istype(M,/mob))//if it is a mob
M.DeathCheck()
I think it is something to do with (istype) ? I am not sure how to have it affect something besides yourself?
Thanks for any help on how to fix this!
What you haven't shown us is the code where the paintball is created and set in motion. (Ideally this should be handled in New(), not in the verb that fired.) The problem is there.
Lummox JR