|
Author
|
Message
|
|
Veteran Member
Join Date: Oct 2004
Location: abort73.com
|

01-04-2007
, 21:57
Re: player is same team? [CS]
|
#1
|
Well, how much experience do you have?
In a nutshell, I'd hook traceline, use pentToSkip to identify the player who is aiming, and use get_tr and TR_pHit to identify the player being aimed at. Make sure both of the entities are really players. Then, compare teams, and display your hud message.
To optimize, you'll want to come up with a way to only display the hud message when necessary (when the hold time wears off), otherwise the client will get spammed and maybe overflow.
__________________
No longer around. Thanks your support, everyone! As always: THIS ONES FOR YOU
3000 PTS
|
|
|
|