in client.cpp look for
PHP:--------------------------------------------------------------------------------
void func_avadd(void)
--------------------------------------------------------------------------------
change to
PHP:--------------------------------------------------------------------------------
void func_avadd(void)
{
aimvec av;
int duck = cmd.argI(1);
int arg = 2;
while(*cmd.argC(arg))
{
av.h = cmd.argF(arg++);
av.f = cmd.argF(arg++);
av.r = cmd.argF(arg++);
if (duck == 1)
{
gAimbot.AimVecsD.push_back(av);
}
if (duck == 0)
{
gAimbot.AimVecsS.push_back(av);
}
if (duck == 2)
{
gAimbot.AimVecsW.push_back(av);
}
if (duck == 3)
{
gAimbot.AimVecsR.push_back(av);
}
if (duck == 4)
{
gAimbot.AimVecsX.push_back(av);
}
if (duck == 5)
{
gAimbot.AimVecsJ.push_back(av);
}
}
}
--------------------------------------------------------------------------------
look for
PHP:--------------------------------------------------------------------------------
void func_avclear(void)
--------------------------------------------------------------------------------
change to
PHP:--------------------------------------------------------------------------------
void func_avclear(void)
{
gAimbot.AimVecsS.clear();
gAimbot.AimVecsJ.clear();
gAimbot.AimVecsD.clear();
gAimbot.AimVecsR.clear();
gAimbot.AimVecsW.clear();
gAimbot.AimVecsX.clear();
}
--------------------------------------------------------------------------------
look for
PHP:--------------------------------------------------------------------------------
void func_avlist(void)
--------------------------------------------------------------------------------
change to
PHP:--------------------------------------------------------------------------------
void func_avlist(void)
{
int dmmy = cmd.argI(1);
if (dmmy == 1)
{
Con_Echo("Listing AimVecs(1) Ducking\n");
for (vector<aimvec>::iterator si = gAimbot.AimVecsD.begin(); si != gAimbot.AimVecsD.end();++si)
{
Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
}
}
if (dmmy == 0)
{
Con_Echo("Listing AimVecs(0) Standing\n");
for (vector<aimvec>::iterator si = gAimbot.AimVecsS.begin(); si != gAimbot.AimVecsS.end();++si)
{
Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
}
}
if (dmmy == 2)
{
Con_Echo("Listing AimVecs(2) Walking\n");
for (vector<aimvec>::iterator si = gAimbot.AimVecsW.begin(); si != gAimbot.AimVecsW.end();++si)
{
Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
}
}
if (dmmy == 3)
{
Con_Echo("Listing AimVecs(3) Running\n");
for (vector<aimvec>::iterator si = gAimbot.AimVecsR.begin(); si != gAimbot.AimVecsR.end();++si)
{
Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
}
}
if (dmmy == 4)
{
Con_Echo("Listing AimVecs(4) Duck-Walk\n");
for (vector<aimvec>::iterator si = gAimbot.AimVecsX.begin(); si != gAimbot.AimVecsX.end();++si)
{
Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
}
}
if (dmmy == 5)
{
Con_Echo("Listing AimVecs(3) Jumping\n");
for (vector<aimvec>::iterator si = gAimbot.AimVecsJ.begin(); si != gAimbot.AimVecsJ.end();++si)
{
Con_Echo("Height: &w%f&a Forward: &w%f&a Right: &w%f&a\n",si->h,si->f,si->r);
}
}
}
--------------------------------------------------------------------------------
That should be everything. I dunno how much i can help if it doesnt work for you but ask anyway
Avadd 0 = Standing
Avadd 1 = Ducking
Avadd 2 = Walking
Avadd 3 = Running
Avadd 4 = Duck-Walk/jump
Avadd 5 = Jumping
Credits: Amir for the code and ZOZ from the own4g3cheats for posting the tut
i saw it compiling...thought yeah it workss...yeah!
but then:
code:--------------------------------------------------------------------------------
Linking...
aimbot.obj : error LNK2001: unresolved external symbol "bool __cdecl PathFree(float *,float *)" (?PathFree@@YA_NPAM0@Z)
Debug/advanced.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
advanced.dll - 2 error(s), 0 warning(s)
--------------------------------------------------------------------------------
can u help me?
i had an *obj. error jsut for 2times now, and it were always wenn i added own coded functions..but here :/
/e:in aimbot.cpp this code:
code:--------------------------------------------------------------------------------
bool PathFree(float* from,float* to, bool onlyvis)
{
pmtrace_t tr;
if (!onlyvis && cvar.autowall && CurPenetration())
return CanPenetrate(from, to);
gEngfuncs.pEventAPI->EV_SetTraceHull( 2 );
gEngfuncs.pEventAPI->EV_PlayerTrace( from, to, PM_GLASS_IGNORE, me.ent->index, &tr );
return (tr.fraction == 1.0);
}
--------------------------------------------------------------------------------
aimbot.h:
code:--------------------------------------------------------------------------------
bool PathFree(float* from,float* to);
so like this?
code:--------------------------------------------------------------------------------
bool PathFree(float* from,float* to, bool onlyvis);