ID:175795
 
I got a Window icon i whant to know how i can make it so i may not walk tho it But i can shoot thro it
Make it dense, but not opaque.

<code>turf/window density=1 opacity=0</code>

Then you can see through it, but not walk through it. I don't know how your shooting system works, so that's the best advice I can give. =)
Assuming your projectile is dense...
atom
var/cover = 0

turf
Enter(atom/movable/A)
if(ismob(A))
return ..()
else if(istype(A,/obj/projectile)) //Replace the type path with your projectile type path
var/cov = cover
for(var/atom/A in src)
cov += A.cover
if(prob(min(cov,100)))
return 1
else
return 0
window
icon = 'window.dmi'
density = 1
cover = 0
Pile_Of_Rubble
icon = 'rubble.dmi'
density = 1
cover = 50
Wall
icon = 'Wall.dmi'
density = 1
opacity = 1
cover = 100

obj
Magical_Shield
cover = 50


If you don't understand any of that, ask before just copying and pasting.