-
21st November 2008 #1
- Join Date
- Nov 2008
- Posts
- 8
LNK Errors when using OB Base Hook
Hello guys,
Im done with some ESP stuff for CSS with its normal source sdk but when getting into the Orange Box SDK(using the public Base Hook from here) VS03 started to give me some annoying LNK errors.
First I only wanted to add distance esp.
Code:float GetDistance( Vector vOrigin ) { IClientEntity *pLocalEnt = pEntityList->GetClientEntity( pEngFuncs->GetLocalPlayer() ); if ( pLocalEnt == NULL ) { return 999999.0f; } Vector vDelta = vOrigin - pLocalEnt->GetAbsOrigin(); return sqrtf( vDelta.Length() ); }
proofens error LNK2019: unresolved external symbol "float (__cdecl* pfSqrt)(float)" (?pfSqrt@@3P6AMM@ZA) referenced in function "float __cdecl VectorLength(class Vector const &)" (?VectorLength@@YAMABVVector@@@Z)
Any idea what I can do ?
-
21st November 2008 #2
- Join Date
- Oct 2008
- Posts
- 64
I belive its because of this
"sqrtf"
get rid of it
could be wrong
-
21st November 2008 #3
- Join Date
- Dec 2007
- Posts
- 900
I believe it's because of this disease called "Down syndrome" causes include being born in an Austrian basement, buying EA VIP, beating off to ebony porn and being from The U.S.A. The only known cure is to crack open your own skull and eat the goo inside.
-
21st November 2008 #4
- Join Date
- Nov 2008
- Posts
- 8
Think Im wrong here askin for help...
-
21st November 2008 #5
- Join Date
- Aug 2007
- Posts
- 1,267
WOW GUYS
try this:
int Distance( Vector one, Vector two )
{
return( one.DistTo( two ) );
}
-
21st November 2008 #6
- Join Date
- Nov 2008
- Posts
- 8
Im wondering why I have to use another code ? My CSS hack works exactly like this. Do I miss some includes or libs ?
-
23rd November 2008 #7
- Join Date
- Nov 2008
- Posts
- 8
Idiot.