Raised This Month: $ Target: $400
 0% 

Damage through players


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
KCE
Senior Member
Join Date: Jan 2005
Location: Los Angeles, CA
Old 04-10-2005 , 23:56   Damage through players
Reply With Quote #1

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]
KCE is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode