Raised This Month: $ Target: $400
 0% 

TraceLine


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 09-15-2004 , 20:09   TraceLine
Reply With Quote #1

Ok having a bit of difficulty in understanding traceline.
I need to get the user im looking at while firing and the hitzone im firing at.

Code:
register_forward(FM_TraceLine, "traceline",1)

Code:
public traceline(Float:v1[3], Float:v2[3], noMonsters, pentToSkip, Trace:ptr) {     new entity1 = pentToSkip;     new entity2 = get_tr(ptr,TR_pHit); // victim     new hitzone = (1<<get_tr(ptr,TR_iHitgroup));     if(is_user_alive(entity1) && pev(entity1,pev_button)&IN_ATTACK && is_user_alive(entity2) && hitzone > (1<<0) && entity1 != entity2)     {
Freecode 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 17:27.


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