How do I make damage go through players?
For example, a grenade explodes. I use trace_line to see if any walls in between the players within the specified damage radius. Let's say I do a traceline for player 1 and it does damage because nothing is blocking it. Next I do a traceline for player 2 and it does not do damage because player 1 is blocking player 2.
Example : TOP-VIEW
o - player
x - grenade explosion
Code:
Player #2 o - this player is not damaged since #1 is blocking view
Player #1 o - nothing in view so do damage
| - traceline
x
__________________
My 3D Art: http://k-c-e.deviantart.com/
[img]http://img213.**************/img213/7132/userbar152416mp2.gif[/img]
[img]http://img65.**************/img65/5606/userbar152433ie5.gif[/img]
[img]http://img223.**************/img223/7576/userbar152440yk6.gif[/img]