ID:172017
 
I got a question is there a better way to make a projectile pass through a dense turf then just toggling its density it makes the projectile sluggish thanks in advance
First, punctuation is key. If you aren't willing to exert the effort required to form a proper sentence, why should people be willing to go through all the trouble of answering your questions? Don't give me any reason, I know there's no good one. Just use proper spelling and grammar. Type your posts in Word and use the spelling and grammar checker before posting, even.

Anyway, it's easy. One thing you have to understand first is how a turf (or area, obj, or mob) determines whether something can enter it: the Enter() proc. It returns 1 if the thing can enter, and 0 if it can't. It doesn't do anything else, and SHOULDN'T do anything else. It should almost never modify variables. It doesn't even call Bump(), Move() does that. Anyway, to modify it so that certain turfs let certain things through them, just do something like this:
atom/movable
var/flying = 0

turf
var/passable = 1
Enter(atom/movable/A)
if(!A.flying)
if(!src.passable)
return 0
return ..()
water
density = 0
passable = 0

obj
bullet
flying = 1
density = 1

The return ..() means "return whatever Enter() would normally return."

Now, you can define turfs as impassable by setting passable to 0. This is a way of saying "Nobody can walk on this, but you can fly over it." Because density is 0, you will never Bump() into water, which can be considered desireable.
In response to Garthor
Thanks that is a way better way to go about it i appreciate it as for the grammer lecture not needed.I am not a writer dont want to be a writer so i honestly dont care about grammer like the 99.9% that do on BYOND.
I realize your a smart person and are talented at writing spelling programming ect but not all of us care about the things that you do.I perfer working out doors doing anything number of things rather then dedicating my life to being the best writer/speller because its rather boring to me thanks for the help though.

In response to Brokenleg
If you aren't going to be using proper grammar, I refuse to help you any longer.
In response to Garthor
I have seen you help people with far worse grammar