obj
projectile
Bump(atom/A)
if(isobj(A))
src.loc=A.loc
Which would work if there isn't alot of projectiles at a high rate, but my game has a team system and you can't be hurt by people on your own team. So i want to be able to pass through my team fire without it becoming sluggish which it did, so i scrapped the dense projectile idea.
Now i try to do a different method(seems odd even to me) where I check turf/Entered as my projectile moves along and do a loop through the the turf for mobs,objs, ect. Then del the projectile, apply damage, and ect. Now im in love eveything is working smooth as can be(team mates pass through smoothy). Then i decided to do a accuracy test where I take three guys have them shoot at one spot. Then take another guy(from the other team with inf Hp) then have him walk in the middle of the fire and disappointedly I noticed that some projectiles randomly passed through me.
Well if your still with me and not bored, what would be the best way to go about making a projectile system that has these features. Im not asking for a hand out just direction
or example thanks in advance
1 Pass through your own team mates smoothly
2 Pass through other projectiles smoothly
3 Your own teams able to pass through your fire without it becoming sluggish
4 Accuracy simply hitting the target without having lag or movement allowing it to pass through randomly