Raised This Month: $ Target: $400
 0% 

EngFunc_TraceTexture


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-25-2009 , 08:44   Re: EngFunc_TraceTexture
Reply With Quote #10

I don't think, and I don't see anything wrong. Plus, it works fine if you do like my code above.

In CBaseEntity *pEntity = CBaseEntity::Instance(ptr->pHit);

Instance() returns pent->pvPrivateData; and as comment we can read :
Quote:
void* pvPrivateData; // Alloced and freed by engine, used by DLLs
get_tr2() will return -1 if not there is not hit. I'm not pro at all but I was wondering if the wall is not attributed with a specific index managed by the engine and ptr->pHit would not return 0 in this case. Anyway I really don't know why it crashes. :/
__________________

Last edited by Arkshine; 08-25-2009 at 08:50.
Arkshine 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 15:07.


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