aimbot.cpp
find this: Code:
void OriginAimbot::CalcFovangleAndVisibility();
Code:
PlayerInfo& r = vPlayers[ax];
r.fovangle = (float)((1.0-GetAimingFov(ax))*360.0);
// visibility:
if(0) {}
else
if(!GetAimingTeam(ax))
{
r.visible = true;
}
add this: Code:
if(vPlayers[ax].getEnt()->curstate.sequence == 97 || vPlayers[ax].getEnt()->curstate.sequence == 98){
r.visible = false;
}
it should look like example: Code:
void OriginAimbot::CalcFovangleAndVisibility(int ax)
{
PlayerInfo& r = vPlayers[ax];
r.fovangle = (float)((1.0-GetAimingFov(ax))*360.0);
// visibility:
if(0) {}
else
if(!GetAimingTeam(ax))
{
r.visible = true;
}
if(vPlayers[ax].getEnt()->curstate.sequence == 97 || vPlayers[ax].getEnt()->curstate.sequence == 98){
r.visible = false;
}
else
if(r.fovangle>10)
{
r.visible = pathFree(vPlayers[ax].getEnt()->origin, me.pmEyePos);
}
else
{
r.visible = (TargetRegion(ax)!=NULL);
}
}
Credits: wav