Raised This Month: $ Target: $400
 0% 

Entity System v1.1


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xfusionlockx
AlliedModders Donor
Join Date: Aug 2014
Old 06-08-2019 , 04:42   Re: Entity System v1.1
Reply With Quote #6

Quote:
Originally Posted by Dragokas View Post
Missing CloseHandle

PHP Code:
    public void TeleportToCrosshair(int iClient)
    {
        
float fAngles[3], fFinalAngles[3], fFinalOrigin[3], fOrigin[3];
        
        
GetClientEyePosition(iClientfOrigin);
        
GetClientEyeAngles(iClientfAngles);
        
GetClientAbsAngles(iClientfFinalAngles);
        
        
Handle hTraceRay TR_TraceRayFilterEx(fOriginfAnglesMASK_SOLIDRayType_InfiniteOFilterPlayer);
        
        if (
TR_DidHit(hTraceRay))
        {
            
TR_GetEndPosition(fFinalOriginhTraceRay);
            
            
TeleportEntity(this.iEntityfFinalOriginfFinalAnglesNULL_VECTOR);
        }
    } 
Thank you, I've decided to re-build this from the ground up while developing a mod with it. The old version was rushed and not fully tested.
xfusionlockx 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 23:25.


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