Most of us know about opacity and how blocking light can actually show what would be truly visible to a person if the world was three dimensional. This opacity system is almost exactly what I want to use for my shooting system because I want the player to only be able to shoot what is truly visible to them. However... I don't want to actually black out parts of the map just to make this work.
So, is there a way to use this true sight idea without blacking out areas by using opacity?
Thanks :D
ID:273737
Feb 19 2011, 9:59 pm
|
|
Feb 20 2011, 10:47 am
|
|
Raycasting :)
|
You can use the getline proc from AbyssDragon's BasicMath library to get the turfs along the line from the shooter to their target. Before shooting, check that all turfs along the line are clear.
|