Raised This Month: $ Target: $400
 0% 

player is same team? [CS]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-04-2007 , 21:57   Re: player is same team? [CS]
Reply With Quote #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
XxAvalanchexX is offline
Reply



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 22:21.


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