Lulz Gellin Vip Base
1. Why would you set iQuery to 0 by memset if it already is 0 because it hasnt been given a value?Code:bool __cdecl cEngine::IsVisible( D3DXVECTOR3 Point ) { IntersectQuery iQuery; IntersectInfo iInfo; memset( &iQuery, 0, sizeof(iQuery) ); iQuery.Start = esp->local.CameraPos; iQuery.End = Point; return !engine->GetLTBase()->IntersectSegment( iQuery, &iInfo ); }
2. What does the __cdecl mean when the function is declared?
Lulz Gellin Vip Base
I think there are a few default values or something for IntersectQuery you need to clear.
kibbles18 (03-30-2011)
Because
1. No, it's set to random garbage from the stack in non-debug builds.
2. __cdecl is the calling convention. Just has to do with how parameters are passed.
kibbles18 (03-30-2011)
yeah we all start learning to hack somehow. if i wasnt trying to learn then i wouldnt be asking this question now would i?