Aimbot Rework
This commit is contained in:
parent
5a3d12c2da
commit
e2d160473a
File diff suppressed because it is too large
Load Diff
@ -50,12 +50,11 @@ bool ShouldAim();
|
||||
CachedEntity* RetrieveBestTarget(bool aimkey_state);
|
||||
bool IsTargetStateGood(CachedEntity* entity);
|
||||
void Aim(CachedEntity* entity);
|
||||
bool CanAutoShoot();
|
||||
void DoAutoshoot();
|
||||
int BestHitbox(CachedEntity* target);
|
||||
int ClosestHitbox(CachedEntity* target);
|
||||
void slowAim(Vector &inputAngle, Vector userAngle);
|
||||
void DoSlowAim(Vector &inputAngle);
|
||||
bool UpdateAimkey();
|
||||
bool GetCanAim(int mode);
|
||||
float EffectiveTargetingRange();
|
||||
|
||||
}}}
|
||||
|
@ -325,7 +325,7 @@ void CreateMove() {
|
||||
g_IEngine->GetViewAngles(cameraAngle);
|
||||
|
||||
// Set userAngle = camera angles
|
||||
g_pUserCmd->viewangles.y = cameraAngle[1];
|
||||
//g_pUserCmd->viewangles.y = cameraAngle[1];
|
||||
g_pLocalPlayer->v_OrigViewangles.y = cameraAngle[1];
|
||||
|
||||
// Use silent since we dont want to prevent the player from looking around
|
||||
@ -420,6 +420,7 @@ void DrawText() {
|
||||
AddSideString(format("Velocity2: ", vel.Length2D()));
|
||||
AddSideString(format("flSimTime: ", LOCAL_E->var<float>(netvar.m_flSimulationTime)));
|
||||
if (g_pUserCmd) AddSideString(format("command_number: ", last_cmd_number));
|
||||
AddSideString(format("clip: ", CE_INT(g_pLocalPlayer->weapon(), netvar.m_iClip1)));
|
||||
/*AddSideString(colors::white, "Weapon: %s [%i]", RAW_ENT(g_pLocalPlayer->weapon())->GetClientClass()->GetName(), g_pLocalPlayer->weapon()->m_iClassID);
|
||||
//AddSideString(colors::white, "flNextPrimaryAttack: %f", CE_FLOAT(g_pLocalPlayer->weapon(), netvar.flNextPrimaryAttack));
|
||||
//AddSideString(colors::white, "nTickBase: %f", (float)(CE_INT(g_pLocalPlayer->entity, netvar.nTickBase)) * gvars->interval_per_tick);
|
||||
|
@ -695,6 +695,7 @@ bool CanHeadshot() {
|
||||
}
|
||||
|
||||
bool CanShoot() {
|
||||
|
||||
float servertime, nextattack;
|
||||
|
||||
servertime = (float)(CE_INT(g_pLocalPlayer->entity, netvar.nTickBase)) * g_GlobalVars->interval_per_tick;
|
||||
|
Reference in New Issue
Block a user