IntersectSegment crash

Posts 1–5 of 5 · Page 1 of 1
IntersectSegment crash
Code:
typedef bool(WINAPIV * pIntersectSegment)(IntersectQuery& iQuery, IntersectInfo* qInfo);
pIntersectSegment oIntersectSegment;

bool __cdecl IsVisible( D3DXVECTOR3 Point )
{
	oIntersectSegment = reinterpret_cast<pIntersectSegment>(0x691880); //address for CFAL
	static IntersectQuery iQuery;
	static IntersectInfo iInfo;

	memset( &iQuery, 0, sizeof( iQuery ));

	iQuery.Start  = local.Local_Player->Object->Body;
	iQuery.End    = Point; 
	bool result = !oIntersectSegment( iQuery, &iInfo );	
	return result;
}

it only takes about 2 players and the game crashes.
should I hook this function up to use it? or can i call her that?

Quote Originally Posted by Joaoemariana View Post
Code:
typedef bool(WINAPIV * pIntersectSegment)(IntersectQuery& iQuery, IntersectInfo* qInfo);
pIntersectSegment oIntersectSegment;

bool __cdecl IsVisible( D3DXVECTOR3 Point )
{
	oIntersectSegment = reinterpret_cast<pIntersectSegment>(0x691880); //address for CFAL
	static IntersectQuery iQuery;
	static IntersectInfo iInfo;

	memset( &iQuery, 0, sizeof( iQuery ));

	iQuery.Start  = local.Local_Player->Object->Body;
	iQuery.End    = Point; 
	bool result = !oIntersectSegment( iQuery, &iInfo );	
	return result;
}

it only takes about 2 players and the game crashes.
should I hook this function up to use it? or can i call her that?

maybe outdated classes or address?
Quote Originally Posted by vaisefud3 View Post
maybe outdated classes or address?
can the IntersectQuery class change?
i'm using like this

struct IntersectInfo
{
D3DXVECTOR3 vImpactPos; //0x0000
char unknown12[16];
int *hObjImpact; //0x001C
DWORD nSomething1; //0x0020
DWORD nSomething2; //0x0024
DWORD nSomething3; //0x0028
};

struct IntersectQuery
{
D3DXVECTOR3 Start; //0x0000
D3DXVECTOR3 End; //0x000C
char unknown24[12];
UINT Flags; //0x0024
ObjectFilterFn FilterFn; //0x0028
void *FilterIntersectParam; //0x002C
ObjectFilterFn FilterIntersectFn; //0x0030
void *FilterParam; //0x0034
void *PolyFilterParam; //0x0038
};
Quote Originally Posted by Joaoemariana View Post
can the IntersectQuery class change?
i'm using like this
I dunno, I'm not playing cf, but u can get it on the sdk instead of using random classes from the web with fields named 'nSomething'
how do apply codes in crossfire
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?