Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "main.h"
- #include "menu.h"
- #include "Security.h"
- #include "interfaces.h"
- #include "reportbot.h"
- #include "Autowall.h"
- #define EPS 1.2e-7
- #define IR 2836
- #define IQ 127773
- #define IM 2147483647
- #define IA 16807
- #define MAX_RANDOM_RANGE 0x7FFFFFFFUL
- #define NDIV (1+(IM-1)/NTAB)
- #define NTAB 32
- #define IR 2836
- #define AM (1.0/IM)
- #define RNMX (1.0-EPS)
- #define MakePtr( Type, dwBase, dwOffset ) ( ( Type )( DWORD( dwBase ) + (DWORD)( dwOffset ) ) )
- bool cOnce = false, twice = false, vcheck1 = false, vcheck2 = false;
- char * crypt(const char *key, const char *salt);
- // DEFINING SHIT ENDS HERE DU HURENSOHN !
- // -----------------------------------------------
- // AIMBOOTY BEGINNS HERE FAGGOT !
- void AngleVectorsx(const Vector angles, Vector* forward) {
- float sp, sy, cp, cy;
- sp = sin(DEG2RAD(angles.x));
- sy = sin(DEG2RAD(angles.y));
- cp = cos(DEG2RAD(angles.x));
- cy = cos(DEG2RAD(angles.y));
- forward->x = cp*cy;
- forward->y = cp*sy;
- forward->z = -sp;
- }
- float GetFOV(Vector CmdViewAngle, Vector LocalEyePos, Vector Destination) {
- Vector ang, aim;
- CalcAngle(LocalEyePos, Destination, ang);
- AngleVectorsx(CmdViewAngle, &aim);
- AngleVectorsx(ang, &ang);
- float mag_s = std::sqrt((aim[0] * aim[0]) + (aim[1] * aim[1]) + (aim[2] * aim[2]));
- float mag_d = mag_s;
- float u_dot_v = aim[0] * ang[0] + aim[1] * ang[1] + aim[2] * ang[2];
- float fov = std::acos(u_dot_v / (mag_s * mag_d)) * (180.f / M_PI_F);
- return fov;
- }
- void NormaliseViewAngle(Vector &angle)
- {
- while (angle.y <= -180) angle.y += 360;
- while (angle.y > 180) angle.y -= 360;
- while (angle.x <= -180) angle.x += 360;
- while (angle.x > 180) angle.x -= 360;
- if (angle.x > 89.0) angle.x = 89;
- if (angle.x < -89.0) angle.x = -89;
- if (angle.y < -180) angle.y = -179.999;
- if (angle.y > 180) angle.y = 179.999;
- angle.z = 0;
- }
- bool IsVisible(C_BaseEntity* pEntity, C_BaseEntity* pLocal)
- {
- trace_t tr;
- Ray_t ray;
- CTraceFilter filter;
- filter.pSkip = pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- ray.Init(pLocal->GetEyePos(), pEntity->GetEyePos());
- pEngineTrace->TraceRay(ray, 0x4600400B, &filter, &tr);
- return (tr.m_pEnt == pEntity || tr.fraction > 0.99f);
- }
- bool BoneTrace(C_BaseEntity* pLocalClientBaseEntity, Vector vecOrigin, Vector vecFinal, C_BaseEntity* pClientBaseEntity)
- {
- Ray_t ray;
- ray.Init(vecOrigin, vecFinal);
- CTraceFilter TraceFilter;
- trace_t trace;
- pEngineTrace->TraceRay(ray, CONTENTS_GRATE | CONTENTS_WINDOW | CONTENTS_SOLID | CONTENTS_MOVEABLE | CONTENTS_MONSTER | CONTENTS_DEBRIS | CONTENTS_HITBOX, &TraceFilter, &trace);
- return(trace.m_pEnt == pClientBaseEntity || trace.fraction > 0.99f);
- }
- bool BoneTraceWall(C_BaseEntity* pLocalClientBaseEntity, Vector vecOrigin, Vector vecFinal, C_BaseEntity* pClientBaseEntity)
- {
- Ray_t ray;
- ray.Init(vecOrigin, vecFinal);
- CTraceFilter TraceFilter;
- trace_t trace;
- pEngineTrace->TraceRay(ray, CONTENTS_SOLID, &TraceFilter, &trace);
- return(trace.m_pEnt == pClientBaseEntity || trace.fraction > 0.99f);
- }
- bool GetBonePosition(C_BaseEntity* pEntity, Vector &Hitbox, int Bone) {
- matrix3x4 MatrixArray[128];
- if (!pEntity->SetupBones(MatrixArray, 128, 0x100, 0)) {
- return false;
- }
- Hitbox = Vector(MatrixArray[Bone][0][3], MatrixArray[Bone][1][3], MatrixArray[Bone][2][3]);
- return true;
- }
- Vector Hitscans(C_BaseEntity* pEntity, C_BaseEntity* pLocal, Vector& Hitbox) {
- int hitboxarray[18] = { 6, 7, 8, 9, 10, 11, 1, 4, 2, 5, 3, 6, 12, 15, 13, 16, 14, 17 };
- for (int i = 0; i < 18; i++) {
- GetBonePosition(pEntity, Hitbox, hitboxarray[i]);
- if (BoneTrace(pLocal, pLocal->GetEyePos(), Hitbox, pEntity)) {
- return Hitbox;
- }
- }
- for (int i = 0; i < 18; i++) {
- GetBonePosition(pEntity, Hitbox, hitboxarray[i]);
- if (BoneTraceWall(pLocal, pLocal->GetEyePos(), Hitbox, pEntity)) {
- return Hitbox;
- }
- }
- GetBonePosition(pEntity, Hitbox, hitboxarray[0]);
- return Hitbox;
- }
- Vector Normalized(Vector& vec) {
- if (vec.x > 180) vec.x -= 360;
- if (vec.y > 180) vec.y -= 360;
- if (vec.x < -180) vec.x += 360;
- if (vec.y < -180) vec.y += 360;
- vec.z = 0;
- return vec;
- }
- void SetSmoothAngles(CUserCmd* pCmd, Vector& dst) {
- if (aimspeed.getValue()) {
- Vector delta = pCmd->viewangles - dst;
- Normalized(delta);
- int smoothx = aimspeed.getValue() * 3;
- dst = pCmd->viewangles - delta / smoothx;
- dst.z = 0, delta.z = 0;
- }
- }
- bool AutoWall(Vector vPos, C_BaseEntity* pLocal, C_BaseEntity* pEntity) {
- trace_t tr;
- Ray_t ray;
- Vector vStart, vEnd, vEndPos[3];
- vStart = pLocal->GetEyePos();
- vEnd = vPos;
- CTraceFilter filter;
- if (IsVisible(pEntity, pLocal))
- return true;
- filter.pSkip = pLocal;
- ray.Init(vStart, vEnd);
- pEngineTrace->TraceRay(ray, 0x4602400B, &filter, &tr);
- vEndPos[0] = tr.endpos;
- ray.Init(vEnd, vStart);
- filter.pSkip = pEntity;
- pEngineTrace->TraceRay(ray, 0x4602400B, &filter, &tr);
- vEndPos[1] = tr.endpos;
- VectorSubtract(vEndPos[0], vEndPos[1], vEndPos[2]);
- float flLength = VectorLength(vEndPos[2]);
- float limit = 37;
- float pen = pLocal->GetActive()->WallPenetration() / 10.f - 1;
- if (limit > pen)limit = pen;
- if (tr.fraction != 0)
- if (flLength < (limit))
- return true;
- return false;
- }
- /* BECOZ WE DEFINED OUR BONES IN OUR AUTOWALL DOT H IM DOIN A SHORT HITSCAN! */
- void LowHITSCAN(Vector &Bones)
- {
- int i;
- C_BaseEntity* Entity = pEntList->GetClientEntity(i);
- /* IF THEIR HEAD ISNT VISIBLE BZW WE CANT GET THE BONE POSITION! */
- if (!GetBonePosition(Entity, Bones, HEAD));
- {
- (GetBonePosition(Entity, Bones, CHEST));
- (GetBonePosition(Entity, Bones, STOMACH));
- (GetBonePosition(Entity, Bones, LEFTARM));
- (GetBonePosition(Entity, Bones, RIGHTARM));
- (GetBonePosition(Entity, Bones, LEFTLEG));
- (GetBonePosition(Entity, Bones, RIGHTLEG));
- }
- }
- std::chrono::time_point<std::chrono::system_clock> last_shoot = std::chrono::system_clock::now();
- void doAim(CUserCmd* pCmd, bool& bSendPacket) {
- Vector oldView = pCmd->viewangles;
- Vector Hitbox;
- const Vector vecAbsStart;
- Vector vecAbsEnd;
- float flDamage;
- float oldForwardmove = pCmd->forwardmove;
- float oldSidemove = pCmd->sidemove;
- if (aim_active.getValve() == 1) {
- C_BaseEntity* pLocal = pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- int BestID = 6; // -1
- int best_prior = 0;
- float maxDistance = 99999;
- for (int i = 1; i < pEntList->GetHighestEntityIndex(); i++) {
- C_BaseEntity* pEntity = pEntList->GetClientEntity(i);
- int tid = pEntity->Team();
- if (pEntity && pEntity->Health() > 0 && pLocal->Health() > 0 && !pEntity->IsDormant() && pEntity->Team() != pLocal->Team() && !pEntity->IsImmune()) {
- Vector BoneFrom, BoneTo;
- GetBonePosition(pEntity, BoneFrom, hitbox.getValue());
- if (hitscan.getValve() == 1)
- {
- Hitscans(pEntity, pLocal, Hitbox); // BoneFrom = Hitscans blaaa blaa usually
- //LowHITSCAN(BoneFrom);
- }
- CalcAngle(pLocal->GetEyePos(), BoneFrom, BoneTo);
- SetSmoothAngles(pCmd, BoneTo);
- ClampAngles(BoneTo);
- NormalizeVector(BoneTo);
- player_info_t pInfo;
- pEngine->GetPlayerInfo(i, &pInfo);
- char guid[32];
- int l = sprintf(guid, "%s", pInfo.guid);
- int prior = l == 0 ? 0 : 1;
- if (IsVisible(pEntity, pLocal) && !autowall.getValve())
- {
- if (pWeapon->isShootable())
- {
- if (GetFOV(pCmd->viewangles, pLocal->GetEyePos(), BoneFrom) < FOV.getValue()) {
- if ((GetFOV(pCmd->viewangles, pLocal->GetEyePos(), BoneFrom) < maxDistance || prior >= best_prior) && prior != 0) {
- maxDistance = GetFOV(pCmd->viewangles, pLocal->GetEyePos(), BoneFrom);
- BestID = i;
- best_prior = prior;
- }
- }
- }
- }
- //else if (Shoot(BoneFrom, data) && autowall.getValve()) {
- else if (AutoWall(BoneFrom, pLocal, pEntity) && autowall.getValve())
- {
- if (pWeapon->isShootable())
- {
- if (GetFOV(pCmd->viewangles, pLocal->GetEyePos(), BoneFrom) < FOV.getValue()) {
- if ((GetFOV(pCmd->viewangles, pLocal->GetEyePos(), BoneFrom) < maxDistance || prior >= best_prior) && prior != 0) {
- maxDistance = GetFOV(pCmd->viewangles, pLocal->GetEyePos(), BoneFrom);
- BestID = i;
- best_prior = prior;
- }
- }
- }
- }
- }
- }
- C_BaseEntity* pEntity = pEntList->GetClientEntity(BestID);
- if (pEntity && pEntity->Health() > 0 && pLocal->Health() > 0 && !pEntity->IsDormant() && pEntity->Team() != pLocal->Team() && !pEntity->IsImmune()) {
- Vector BoneFrom, BoneTo, BoneSilent;
- GetBonePosition(pEntity, BoneFrom, hitbox.getValue());
- if (hitscan.getValve() == 1)
- {
- Hitscans(pEntity, pLocal, Hitbox); // BoneFrom = Hitscans blaaa blaa usually
- //LowHITSCAN(BoneFrom);
- }
- CalcAngle(pLocal->GetEyePos(), BoneFrom, BoneTo);
- SetSmoothAngles(pCmd, BoneTo);
- ClampAngles(BoneTo);
- NormalizeVector(BoneTo);
- aimbotAngle = BoneTo;
- if (IsVisible(pEntity, pLocal) && !autowall.getValve())
- {
- if (pWeapon->isShootable())
- {
- if (GetFOV(pCmd->viewangles, pLocal->GetEyePos(), BoneFrom) < FOV.getValue()) {
- if (autoshoot.getValve() == 1 && pWeapon->ShootCooldown() > 0 && pWeapon->WeaponAmmo() > 0 && pWeapon->isPistol()) {
- std::chrono::duration<double> elapsed = std::chrono::system_clock::now() - last_shoot;
- double chdelay = pWeapon->ShootCooldown() / 2000.;
- if (elapsed.count() > chdelay) {
- pCmd->buttons |= IN_ATTACK;
- last_shoot = std::chrono::system_clock::now();
- }
- }
- else
- if (autoshoot.getValve() == 1 && pWeapon->WeaponAmmo() > 0) {
- pCmd->buttons |= IN_ATTACK;
- }
- if (autoduck.getValve() == 1)
- {
- pCmd->buttons |= IN_DUCK;
- pCmd->sidemove = 0.f;
- pCmd->forwardmove = 0.f;
- }
- if (pCmd->buttons & IN_ATTACK) {
- pCmd->viewangles = BoneTo;
- }
- if (!silentaim.getValve() == 1) {
- pEngine->SetViewAngles(BoneTo);
- }
- if (psilentaim.getValve() == 1)
- {
- Vector qOldView = pCmd->viewangles;
- Vector vMove(pCmd->forwardmove, pCmd->sidemove, pCmd->upmove);
- float flSpeed = sqrt(vMove.x * vMove.x + vMove.y * vMove.y), flYaw;
- Vector vMove2;
- Vector vRealView(pCmd->viewangles);
- VectorAngles3D(vMove, vMove2);
- // GAY SILENT BEGINNS HERE //
- if (pCmd->buttons & IN_ATTACK)
- {
- if (ChokedPackets < 3)
- {
- bSendPacket = false;
- pCmd->viewangles = BoneSilent;
- ChokedPackets++;
- }
- else
- {
- bSendPacket = true;
- pCmd->viewangles = oldView;
- ChokedPackets = 0; // usually 0
- }
- }
- // GAY SILENT STOPS HERE # ADDITIONAL //
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- float flServerTime = (float)(*(int*)((DWORD)pLocal + 0x3414) * pGlobals->interval_per_tick);
- float flAttacke = pWeapon->GetNextPrimaryAttack();
- //float flAttacke = (*(float*)((DWORD)pWeapon + 0x31C8));
- bool deinvadder = true;
- if (flAttacke > flServerTime)
- flAttacke = false;
- if (pCmd->buttons & IN_ATTACK && flAttacke)
- {
- ClampAngles(qOldView);
- pCmd->viewangles = qOldView;
- flYaw = DEG2RAD(pCmd->viewangles.y - vRealView.y + vMove2.y);
- pCmd->forwardmove = cos(flYaw) * flSpeed;
- pCmd->sidemove = sin(flYaw) * flSpeed;
- }
- }
- if (onetapmode.getValve() == 1) {
- }
- }
- }
- }
- //else if (Shoot(BoneFrom, data) && autowall.getValve()) {
- else if (AutoWall(BoneFrom, pLocal, pEntity) && autowall.getValve())
- {
- if (pWeapon->isShootable())
- {
- if (GetFOV(pCmd->viewangles, pLocal->GetEyePos(), BoneFrom) < FOV.getValue()) {
- if (autoshoot.getValve() == 1 && pWeapon->ShootCooldown() > 0 && pWeapon->WeaponAmmo() > 0 && pWeapon->isPistol()) {
- std::chrono::duration<double> elapsed = std::chrono::system_clock::now() - last_shoot;
- double chdelay = pWeapon->ShootCooldown() / 2000.;
- if (elapsed.count() > chdelay) {
- pCmd->buttons |= IN_ATTACK;
- last_shoot = std::chrono::system_clock::now();
- }
- }
- else
- if (autoshoot.getValve() == 1 && pWeapon->WeaponAmmo() > 0) {
- pCmd->buttons |= IN_ATTACK;
- }
- if (autoduck.getValve() == 1)
- {
- pCmd->buttons |= IN_DUCK;
- pCmd->sidemove = 0.f;
- pCmd->forwardmove = 0.f;
- }
- if (pCmd->buttons & IN_ATTACK) {
- pCmd->viewangles = BoneTo;
- }
- if (!silentaim.getValve() == 1) {
- pEngine->SetViewAngles(BoneTo);
- }
- if (psilentaim.getValve() == 1)
- {
- Vector qOldView = pCmd->viewangles;
- Vector vMove(pCmd->forwardmove, pCmd->sidemove, pCmd->upmove);
- float flSpeed = sqrt(vMove.x * vMove.x + vMove.y * vMove.y), flYaw;
- Vector vMove2;
- Vector vRealView(pCmd->viewangles);
- VectorAngles3D(vMove, vMove2);
- // GAY SILENT BEGINNS HERE //
- if (pCmd->buttons & IN_ATTACK)
- {
- if (ChokedPackets < 3)
- {
- bSendPacket = false;
- pCmd->viewangles = BoneSilent;
- ChokedPackets++;
- }
- else
- {
- bSendPacket = true;
- pCmd->viewangles = oldView;
- ChokedPackets = 0; // usually 0
- }
- }
- // GAY SILENT STOPS HERE # ADDITIONAL //
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- float flServerTime = (float)(*(int*)((DWORD)pLocal + 0x3414) * pGlobals->interval_per_tick);
- float flAttacke = pWeapon->GetNextPrimaryAttack();
- //float flAttacke = (*(float*)((DWORD)pWeapon + 0x31C8));
- bool deinvadder = true;
- if (flAttacke > flServerTime)
- flAttacke = false;
- if (pCmd->buttons & IN_ATTACK && flAttacke)
- {
- ClampAngles(qOldView);
- pCmd->viewangles = qOldView;
- flYaw = DEG2RAD(pCmd->viewangles.y - vRealView.y + vMove2.y);
- pCmd->forwardmove = cos(flYaw) * flSpeed;
- pCmd->sidemove = sin(flYaw) * flSpeed;
- }
- }
- if (onetapmode.getValve() == 1) {
- }
- }
- }
- }
- }
- }
- }
- // AIMBOAT ENDS HERE BLYAT
- //--------------------------------------------------------
- // SOME ANTIAIM RECOURCES HERE!
- void xBulletTime(CUserCmd * cmd)
- {
- C_BaseEntity* pLocal = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- float flServerTime = (float)(*(int*)((DWORD)pLocal + 0x3414) * pGlobals->interval_per_tick);
- float flAttacke = pWeapon->GetNextPrimaryAttack();
- //float flAttacke = (*(float*)((DWORD)pWeapon + 0x31C8));
- bool gBulletTime = true;
- if (flAttacke > flServerTime)
- flAttacke = false;
- if (cmd->buttons & IN_ATTACK && flAttacke)
- {
- }
- }
- int Multiplier()
- {
- static bool multi = false;
- if (multi)
- 1 * 2;
- else
- 1 * 4;
- multi = !multi;
- return true;
- }
- // ANTIAIM RECOURCES ENDS HERE LAL
- //--------------------------------------------------------
- // SOME ANTIAIM MEMES LOLOLOLOLOL
- void antimeme1ye(CUserCmd * cmd)
- {
- Vector qOldView = cmd->viewangles;
- Vector vMove(cmd->forwardmove, cmd->sidemove, cmd->upmove);
- float flSpeed = sqrt(vMove.x * vMove.x + vMove.y * vMove.y), flYaw;
- Vector vMove2;
- Vector vRealView(cmd->viewangles);
- VectorAngles3D(vMove, vMove2);
- C_BaseEntity* pLocal = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- //_______________________________________
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- bool yNightmare = false;
- if (yNightmare)
- {
- cmd->viewangles.x = 89;
- cmd->viewangles.y -= 180;
- }
- else
- {
- cmd->viewangles.x = 89;
- cmd->viewangles.y += 180;
- }
- yNightmare = !yNightmare;
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- //_______________________________________
- if (cmd->buttons & IN_ATTACK)
- {
- int random = rand() % 100;
- int random2 = rand() % 1000;
- static bool dir;
- static float current_y = cmd->viewangles.y;
- if (random == 1) dir = !dir;
- if (dir)
- current_y += 5;
- else
- current_y -= 5;
- cmd->viewangles.y = current_y;
- if (random == random2)
- cmd->viewangles.y += random;
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- }
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- float flServerTime = (float)(*(int*)((DWORD)pLocal + 0x3414) * pGlobals->interval_per_tick);
- float flAttacke = pWeapon->GetNextPrimaryAttack();
- //float flAttacke = (*(float*)((DWORD)pWeapon + 0x31C8));
- bool deinvadder = true;
- if (flAttacke > flServerTime)
- flAttacke = false;
- if (cmd->buttons & IN_ATTACK && flAttacke)
- {
- ClampAngles(qOldView);
- cmd->viewangles = qOldView;
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- }
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- }
- void bJitter(CUserCmd * cmd)
- {
- Vector qOldView = cmd->viewangles;
- Vector vMove(cmd->forwardmove, cmd->sidemove, cmd->upmove);
- float flSpeed = sqrt(vMove.x * vMove.x + vMove.y * vMove.y), flYaw;
- Vector vMove2;
- Vector vRealView(cmd->viewangles);
- VectorAngles3D(vMove, vMove2);
- C_BaseEntity* pLocal = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- //_______________________________________
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- bool bJitter = false;
- if (bJitter)
- {
- cmd->viewangles.x = 89;
- cmd->viewangles.y -= 170;
- }
- else
- {
- cmd->viewangles.x = 89;
- cmd->viewangles.y += 170;
- }
- bJitter = !bJitter;
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- //_______________________________________
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- float flServerTime = (float)(*(int*)((DWORD)pLocal + 0x3414) * pGlobals->interval_per_tick);
- float flAttacke = pWeapon->GetNextPrimaryAttack();
- //float flAttacke = (*(float*)((DWORD)pWeapon + 0x31C8));
- bool deinvadder = true;
- if (flAttacke > flServerTime)
- flAttacke = false;
- if (cmd->buttons & IN_ATTACK && flAttacke)
- {
- ClampAngles(qOldView);
- cmd->viewangles = qOldView;
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- }
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- }
- void antimeme2ye(CUserCmd * cmd)
- {
- Vector qOldView = cmd->viewangles;
- Vector vMove(cmd->forwardmove, cmd->sidemove, cmd->upmove);
- float flSpeed = sqrt(vMove.x * vMove.x + vMove.y * vMove.y), flYaw;
- Vector vMove2;
- Vector vRealView(cmd->viewangles);
- VectorAngles3D(vMove, vMove2);
- C_BaseEntity* pLocal = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- //_______________________________________
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- bool yNightmare = false;
- if (yNightmare)
- {
- cmd->viewangles.x = 66;
- cmd->viewangles.y -= 180;
- }
- else
- {
- cmd->viewangles.x = 66;
- cmd->viewangles.y += 180;
- }
- yNightmare = !yNightmare;
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- //_______________________________________
- /* if (cmd->buttons & IN_ATTACK)
- {
- cmd->viewangles.y = 140;
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- } */
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- float flServerTime = (float)(*(int*)((DWORD)pLocal + 0x3414) * pGlobals->interval_per_tick);
- float flAttacke = pWeapon->GetNextPrimaryAttack();
- //float flAttacke = (*(float*)((DWORD)pWeapon + 0x31C8));
- bool deinvadder = true;
- if (flAttacke > flServerTime)
- flAttacke = false;
- if (cmd->buttons & IN_ATTACK && flAttacke)
- {
- ClampAngles(qOldView);
- cmd->viewangles = qOldView;
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- }
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- }
- void casualaa(CUserCmd * cmd)
- {
- /* Some Casual antiaim no vac error coz no tickbase! */
- /* EDIT: did add tickbase, cuz we are calling it before everything! */
- Vector qOldView = cmd->viewangles;
- Vector vMove(cmd->forwardmove, cmd->sidemove, cmd->upmove);
- float flSpeed = sqrt(vMove.x * vMove.x + vMove.y * vMove.y), flYaw;
- Vector vMove2;
- Vector vRealView(cmd->viewangles);
- VectorAngles3D(vMove, vMove2);
- C_BaseEntity* pLocal = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- //_______________________________________
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- bool CASAA = false;
- if (CASAA)
- {
- cmd->viewangles.y -= 180;
- cmd->viewangles.x = 69;
- }
- else
- {
- cmd->viewangles.y += 180;
- cmd->viewangles.x = 69;
- }
- CASAA = !CASAA;
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- //_______________________________________
- float flServerTime = (float)(*(int*)((DWORD)pLocal + 0x3414) * pGlobals->interval_per_tick);
- float flAttacke = pWeapon->GetNextPrimaryAttack();
- //float flAttacke = (*(float*)((DWORD)pWeapon + 0x31C8));
- bool deinvadder = true;
- if (flAttacke > flServerTime)
- flAttacke = false;
- if (cmd->buttons & IN_ATTACK && flAttacke)
- {
- ClampAngles(qOldView);
- cmd->viewangles = qOldView;
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- }
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- }
- void antimeme3ye(CUserCmd * cmd)
- {
- Vector qOldView = cmd->viewangles;
- Vector vMove(cmd->forwardmove, cmd->sidemove, cmd->upmove);
- float flSpeed = sqrt(vMove.x * vMove.x + vMove.y * vMove.y), flYaw;
- Vector vMove2;
- Vector vRealView(cmd->viewangles);
- VectorAngles3D(vMove, vMove2);
- C_BaseEntity* pLocal = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- //_______________________________________
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- cmd->viewangles.x = 89;
- int random = 140 + rand() % 40;
- static float current_y = cmd->viewangles.y;
- current_y += random;
- cmd->viewangles.y = current_y;
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- //_______________________________________
- /* if (cmd->buttons & IN_ATTACK)
- {
- cmd->viewangles.y = 140;
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- } */
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- float flServerTime = (float)(*(int*)((DWORD)pLocal + 0x3414) * pGlobals->interval_per_tick);
- float flAttacke = pWeapon->GetNextPrimaryAttack();
- //float flAttacke = (*(float*)((DWORD)pWeapon + 0x31C8));
- bool deinvadder = true;
- if (flAttacke > flServerTime)
- flAttacke = false;
- if (cmd->buttons & IN_ATTACK && flAttacke)
- {
- ClampAngles(qOldView);
- cmd->viewangles = qOldView;
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- }
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- }
- void fakeedge(CUserCmd * cmd, bool &bSendPacket)
- {
- Vector qOldView = cmd->viewangles;
- Vector vMove(cmd->forwardmove, cmd->sidemove, cmd->upmove);
- float flSpeed = sqrt(vMove.x * vMove.x + vMove.y * vMove.y), flYaw;
- Vector vMove2;
- Vector vRealView(cmd->viewangles);
- VectorAngles3D(vMove, vMove2);
- C_BaseEntity* pLocal = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- //_______________________________________
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- if (fakeedgetick < 3)
- {
- cmd->viewangles.x = 89;
- cmd->viewangles.y = 90;
- bSendPacket = false;
- fakeedgetick++;
- }
- else
- {
- cmd->viewangles.x = 89;
- cmd->viewangles.y = 90;
- bSendPacket = true;
- fakeedgetick = 0;
- }
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- //_______________________________________
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- float flServerTime = (float)(*(int*)((DWORD)pLocal + 0x3414) * pGlobals->interval_per_tick);
- float flAttacke = pWeapon->GetNextPrimaryAttack();
- //float flAttacke = (*(float*)((DWORD)pWeapon + 0x31C8));
- bool deinvadder = true;
- if (flAttacke > flServerTime)
- flAttacke = false;
- if (cmd->buttons & IN_ATTACK && flAttacke)
- {
- ClampAngles(qOldView);
- cmd->viewangles = qOldView;
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- }
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- }
- void edge(CUserCmd * cmd, bool &bSendPacket)
- {
- Vector qOldView = cmd->viewangles;
- Vector vMove(cmd->forwardmove, cmd->sidemove, cmd->upmove);
- float flSpeed = sqrt(vMove.x * vMove.x + vMove.y * vMove.y), flYaw;
- Vector vMove2;
- Vector vRealView(cmd->viewangles);
- VectorAngles3D(vMove, vMove2);
- C_BaseEntity* pLocal = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- //_______________________________________
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- cmd->viewangles.x = 89;
- cmd->viewangles.y -= 90;
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- //_______________________________________
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- float flServerTime = (float)(*(int*)((DWORD)pLocal + 0x3414) * pGlobals->interval_per_tick);
- float flAttacke = pWeapon->GetNextPrimaryAttack();
- //float flAttacke = (*(float*)((DWORD)pWeapon + 0x31C8));
- bool deinvadder = true;
- if (flAttacke > flServerTime)
- flAttacke = false;
- if (cmd->buttons & IN_ATTACK && flAttacke)
- {
- ClampAngles(qOldView);
- cmd->viewangles = qOldView;
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- }
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- }
- void ANGLELAFF(CUserCmd * cmd, bool &bSendPacket)
- {
- Vector qOldView = cmd->viewangles;
- Vector vMove(cmd->forwardmove, cmd->sidemove, cmd->upmove);
- float flSpeed = sqrt(vMove.x * vMove.x + vMove.y * vMove.y), flYaw;
- Vector vMove2;
- Vector vRealView(cmd->viewangles);
- VectorAngles3D(vMove, vMove2);
- C_BaseEntity* pLocal = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- //_______________________________________
- int random = rand() % 100;
- int random2 = rand() % 1000;
- static bool dir;
- static bool staticpitch = false;
- static float current_y = cmd->viewangles.y;
- if (angeltick < 3)
- {
- cmd->viewangles.x = 36000088;
- if (random == 1) dir = !dir;
- if (dir)
- current_y += 180 * 10000000 * cmd->randomseed;
- else
- current_y -= 180 * 10000000 * cmd->randomseed;
- cmd->viewangles.y = current_y;
- if (random == random2)
- cmd->viewangles.y += random;
- bSendPacket = false;
- angeltick++;
- }
- else
- {
- cmd->viewangles.x = 36000088;
- if (random == 1) dir = !dir;
- if (dir)
- current_y += 180 * 10000000 * cmd->randomseed;
- else
- current_y -= 180 * 10000000 * cmd->randomseed;
- cmd->viewangles.y = current_y;
- if (random == random2)
- cmd->viewangles.y += random;
- bSendPacket = true;
- angeltick = -1;
- }
- //_______________________________________
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- float flServerTime = (float)(*(int*)((DWORD)pLocal + 0x3414) * pGlobals->interval_per_tick);
- float flAttacke = pWeapon->GetNextPrimaryAttack();
- //float flAttacke = (*(float*)((DWORD)pWeapon + 0x31C8));
- bool deinvadder = true;
- if (flAttacke > flServerTime)
- flAttacke = false;
- if (cmd->buttons & IN_ATTACK && flAttacke)
- {
- cmd->viewangles = qOldView;
- }
- }
- void mattiazangel(CUserCmd * cmd, bool &bSendPacket)
- {
- Vector qOldView = cmd->viewangles;
- Vector vMove(cmd->forwardmove, cmd->sidemove, cmd->upmove);
- float flSpeed = sqrt(vMove.x * vMove.x + vMove.y * vMove.y), flYaw;
- Vector vMove2;
- Vector vRealView(cmd->viewangles);
- VectorAngles3D(vMove, vMove2);
- C_BaseEntity* pLocal = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- //_______________________________________
- if (!pLocal->Team() == 1)
- {
- float xLisp = 36000088;
- float pLisp = 18000089;
- cmd->viewangles.y = pLisp * cmd->randomseed;
- cmd->viewangles.x = xLisp * cmd->randomseed;
- }
- else
- {
- float xLisp = 36000088;
- float pLisp = 18000089;
- cmd->viewangles.y = -pLisp * cmd->randomseed;
- cmd->viewangles.x = -xLisp * cmd->randomseed;
- }
- //_______________________________________
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- float flServerTime = (float)(*(int*)((DWORD)pLocal + 0x3414) * pGlobals->interval_per_tick);
- float flAttacke = pWeapon->GetNextPrimaryAttack();
- //float flAttacke = (*(float*)((DWORD)pWeapon + 0x31C8));
- bool deinvadder = true;
- if (flAttacke > flServerTime)
- flAttacke = false;
- if (cmd->buttons & IN_ATTACK && flAttacke)
- {
- cmd->viewangles = qOldView;
- }
- }
- void rekt1337(CUserCmd * cmd, bool &bSendPacket)
- {
- Vector qOldView = cmd->viewangles;
- Vector vMove(cmd->forwardmove, cmd->sidemove, cmd->upmove);
- float flSpeed = sqrt(vMove.x * vMove.x + vMove.y * vMove.y), flYaw;
- Vector vMove2;
- Vector vRealView(cmd->viewangles);
- VectorAngles3D(vMove, vMove2);
- C_BaseEntity* pLocal = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- //_______________________________________
- if (!pLocal->Team() == 1)
- {
- bSendPacket = false;
- }
- else
- {
- float xLisp = 3600008888;
- float pLisp = 1800008889;
- bSendPacket = true;
- cmd->viewangles.y = -pLisp * cmd->randomseed;
- cmd->viewangles.x = -xLisp * cmd->randomseed;
- }
- //_______________________________________
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- float flServerTime = (float)(*(int*)((DWORD)pLocal + 0x3414) * pGlobals->interval_per_tick);
- float flAttacke = pWeapon->GetNextPrimaryAttack();
- //float flAttacke = (*(float*)((DWORD)pWeapon + 0x31C8));
- bool deinvadder = true;
- if (flAttacke > flServerTime)
- flAttacke = false;
- if (cmd->buttons & IN_ATTACK && flAttacke)
- {
- cmd->viewangles = qOldView;
- }
- }
- // CREDITS TO FIXED COMES AFTER THIS SENTENCE
- //--------------------------------------------------------
- // OUR FAKE ANTIAIM SECTION
- void fBackwards(C_BaseEntity* pLocal, CUserCmd* cmd, bool &bSendPacket)
- {
- Vector qOldView = cmd->viewangles;
- Vector vMove(cmd->forwardmove, cmd->sidemove, cmd->upmove);
- float flSpeed = sqrt(vMove.x * vMove.x + vMove.y * vMove.y), flYaw;
- Vector vMove2;
- Vector vRealView(cmd->viewangles);
- VectorAngles3D(vMove, vMove2);
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- auto flServerTime = (float)(*(int*)((DWORD)pLocal + 0x3414) * pGlobals->interval_per_tick);
- auto flAttacke = pWeapon->GetNextPrimaryAttack();
- bool bBulletTime = true;
- if (flAttacke > flServerTime)
- bBulletTime = false;
- if (cmd->buttons & IN_ATTACK && bBulletTime)
- {
- bSendPacket = false;
- }
- else
- {
- bSendPacket = true;
- if (!pLocal->Team() == 1)
- {
- cmd->viewangles.x = 89;
- cmd->viewangles.y = -180;
- }
- else
- {
- cmd->viewangles.x = 89;
- cmd->viewangles.y = -180;
- }
- flYaw = DEG2RAD(cmd->viewangles.y - vRealView.y + vMove2.y);
- cmd->forwardmove = cos(flYaw) * flSpeed;
- cmd->sidemove = sin(flYaw) * flSpeed;
- ClampAngles(cmd->viewangles);
- NormalizeVector(cmd->viewangles);
- }
- }
- void fHead(C_BaseEntity* pLocal, CUserCmd* cmd, bool &bSendPacket)
- {
- Vector qOldView = cmd->viewangles;
- Vector vMove(cmd->forwardmove, cmd->sidemove, cmd->upmove);
- float flSpeed = sqrt(vMove.x * vMove.x + vMove.y * vMove.y), flYaw;
- Vector vMove2;
- Vector vRealView(cmd->viewangles);
- VectorAngles3D(vMove, vMove2);
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- auto flServerTime = (float)(*(int*)((DWORD)pLocal + 0x3414) * pGlobals->interval_per_tick);
- auto flAttacke = pWeapon->GetNextPrimaryAttack();
- bool bBulletTime = true;
- if (flAttacke > flServerTime)
- bBulletTime = false;
- if (cmd->buttons & IN_ATTACK && bBulletTime)
- {
- bSendPacket = false;
- }
- else
- {
- bSendPacket = true;
- static bool flip;
- int veloc = pLocal->GetVelocity().Length();
- cmd->viewangles.y += 1801188099 * veloc;
- if (flip)
- {
- cmd->viewangles.x = 1800000089;
- cmd->viewangles.y = 42000000120 * cmd->randomseed;
- flip = !flip;
- }
- else
- {
- cmd->viewangles.x = 1800000089;
- cmd->viewangles.y = 42000000210 * cmd->randomseed;
- flip = !flip;
- }
- }
- }
- void fLisp(C_BaseEntity* pLocal, CUserCmd* cmd, bool &bSendPacket)
- {
- Vector qOldView = cmd->viewangles;
- Vector vMove(cmd->forwardmove, cmd->sidemove, cmd->upmove);
- float flSpeed = sqrt(vMove.x * vMove.x + vMove.y * vMove.y), flYaw;
- Vector vMove2;
- Vector vRealView(cmd->viewangles);
- VectorAngles3D(vMove, vMove2);
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- auto flServerTime = (float)(*(int*)((DWORD)pLocal + 0x3414) * pGlobals->interval_per_tick);
- auto flAttacke = pWeapon->GetNextPrimaryAttack();
- bool bBulletTime = true;
- if (flAttacke > flServerTime)
- bBulletTime = false;
- if (cmd->buttons & IN_ATTACK && bBulletTime)
- {
- bSendPacket = false;
- }
- else
- {
- bSendPacket = true;
- static bool Switch = false;
- int veloc = pLocal->GetVelocity().Length();
- if (Switch)
- {
- cmd->viewangles.x = 1800000089;
- cmd->viewangles.y -= 1003004000 * veloc;
- }
- else
- {
- cmd->viewangles.x = 1800000089;
- cmd->viewangles.y += 1801188099 * veloc;
- }
- Switch = !Switch;
- }
- }
- // ANTI AIM ENDS HERE
- //--------------------------------------------------------
- // MUCH RESOLVER KOTENZ
- // RESOLVERS ENDS HERE
- //--------------------------------------------------------
- // MUCH VISUAL CODENZ BIG HARDKOTET BY REFLEXUS MASTIKUS
- void Watermarkyo()
- {
- if (watermark.getValve() == 1)
- {
- DrawString(8, 8, Color(150, 0, 30, 255), Watermarkfont, "zer0ine v1.0");
- DrawString(8, 24, Color(150, 0, 30, 255), Watermarkfont, "BY REFLEX");
- }
- }
- void UserMark()
- {
- if (hwid->hwidCheck(0x9C5FD31E))
- {
- DrawString(8, 40, Color(150, 0, 30, 255), Watermarkfont, "USER: REFLEX");
- }
- }
- void inEdge()
- {
- C_BaseEntity* Local = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- C_BaseCombatWeapon* pWeapon = Local->GetActive();
- if (!Local)
- return;
- if (!pWeapon)
- return;
- if (Local->GetVelocity().Length() < 5 && pWeapon->isSomething())
- {
- DrawString(8, 550, Color(150, 0, 30, 255), Watermarkfont, "IN EDGE: TRUE");
- }
- else if (Local->GetVelocity().Length() > 5 && pWeapon->isSomething())
- {
- DrawString(8, 550, Color(150, 0, 30, 255), Watermarkfont, "IN EDGE: FALSE");
- }
- }
- void AIMWAREESP()
- {
- C_BaseEntity* Local = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- if (!Local)
- return;
- for (int i = 1; i < pEntList->GetHighestEntityIndex(); i++) {
- C_BaseEntity* Entity = (C_BaseEntity*)pEntList->GetClientEntity(i);
- if (!Entity)
- continue;
- if (Entity->IsDormant())
- continue;
- if (Entity->Health() < 1)
- continue;
- if (Entity == Local)
- continue;
- Vector mon, nom;
- nom = Entity->GetAbsOrigin();
- if (Entity->Flags() & FL_DUCKING) {
- mon = nom + Vector(0, 0, 50.f);
- }
- else {
- mon = nom + Vector(0, 0, 70.f);
- }
- Vector bot, top;
- player_info_t pInfo;
- pEngine->GetPlayerInfo(i, &pInfo);
- if (WorldToScreen(nom, bot) && WorldToScreen(mon, top)) {
- float h = (bot.y - top.y);
- float w = h / 3.5f;
- int iMiddle = (bot.y - top.y) + 4;
- int iWidth = iMiddle / 3.5;
- if (Entity->Team() == 2) // T
- {
- DrawOutlinedRect(top.x - iWidth, top.y, iWidth * 2, iMiddle, Color(0,0,0));
- DrawOutlinedRect(top.x - iWidth + 1, top.y + 1, iWidth * 2 - 2, iMiddle - 2, Color(150, 0, 30, 255));
- }
- if (Entity->Team() == 3) // CT
- {
- DrawOutlinedRect(top.x - iWidth, top.y, iWidth * 2, iMiddle, Color(0,0,0));
- DrawOutlinedRect(top.x - iWidth + 1, top.y + 1, iWidth * 2 - 2, iMiddle - 2, Color(30, 150, 150, 255));
- }
- }
- }
- }
- void AIMWAREHEALTH()
- {
- C_BaseEntity* Local = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- if (!Local)
- return;
- for (int i = 1; i < pEntList->GetHighestEntityIndex(); i++) {
- C_BaseEntity* Entity = (C_BaseEntity*)pEntList->GetClientEntity(i);
- if (!Entity)
- continue;
- if (Entity->IsDormant())
- continue;
- if (Entity->Health() < 1)
- continue;
- if (Entity == Local)
- continue;
- Vector mon, nom;
- nom = Entity->GetAbsOrigin();
- if (Entity->Flags() & FL_DUCKING) {
- mon = nom + Vector(0, 0, 50.f);
- }
- else {
- mon = nom + Vector(0, 0, 70.f);
- }
- Vector bot, top;
- player_info_t pInfo;
- pEngine->GetPlayerInfo(i, &pInfo);
- if (WorldToScreen(nom, bot) && WorldToScreen(mon, top)) {
- float h = (bot.y - top.y);
- float w = h / 3.5f;
- int iMiddle = (bot.y - top.y) + 4;
- int iWidth = iMiddle / 3.5;
- if (Entity->Team() == 2)
- {
- int iClampedHealth = Entity->Health();
- if (iClampedHealth >= 101)
- iClampedHealth = 100;
- int iHealthG = iClampedHealth * 2.55;
- int iHealthR = 255 - iHealthG;
- Color colHealth = Color(iHealthR, iHealthG, 0, 255);
- DrawRect(top.x + iWidth + 3, top.y + 1, 3, iMiddle * 0.01 * iClampedHealth - 2, colHealth);
- DrawBox(top.x + iWidth + 2, top.y, 3 + 2, iMiddle, Color(0, 0, 0, 255));
- // FilledRGBOutlined(top.x - 6, top.y, 3, top.y, Color(14, 14, 14, 255));
- // FillRGB(top.x - 6, top.y + top.y - iWidth, 2, iMiddle, colHealth);
- }
- if (Entity->Team() == 3)
- {
- int iClampedHealth = Entity->Health();
- if (iClampedHealth >= 101)
- iClampedHealth = 100;
- int iHealthG = iClampedHealth * 2.55;
- int iHealthR = 255 - iHealthG;
- Color colHealth = Color(iHealthR, iHealthG, 0, 255);
- DrawRect(top.x + iWidth + 3, top.y + 1, 3, iMiddle * 0.01 * iClampedHealth - 2, colHealth);
- DrawBox(top.x + iWidth + 2, top.y, 3 + 2, iMiddle, Color(0, 0, 0, 255));
- // FilledRGBOutlined(top.x - 6, top.y, 3, top.y, Color(14, 14, 14, 255));
- // FillRGB(top.x - 6, top.y + top.y - iWidth, 2, iMiddle, colHealth);
- }
- }
- }
- }
- void TXTHEALTH()
- {
- C_BaseEntity* Local = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- if (!Local)
- return;
- for (int i = 1; i < pEntList->GetHighestEntityIndex(); i++) {
- C_BaseEntity* Entity = (C_BaseEntity*)pEntList->GetClientEntity(i);
- if (!Entity)
- continue;
- if (Entity->IsDormant())
- continue;
- if (Entity->Health() < 1)
- continue;
- if (Entity == Local)
- continue;
- Vector mon, nom;
- nom = Entity->GetAbsOrigin();
- if (Entity->Flags() & FL_DUCKING) {
- mon = nom + Vector(0, 0, 50.f);
- }
- else {
- mon = nom + Vector(0, 0, 70.f);
- }
- Vector bot, top;
- player_info_t pInfo;
- pEngine->GetPlayerInfo(i, &pInfo);
- if (WorldToScreen(nom, bot) && WorldToScreen(mon, top)) {
- float h = (bot.y - top.y);
- float w = h / 3.5f;
- int iMiddle = (bot.y - top.y) + 4;
- int iWidth = iMiddle / 3.5;
- if (Entity->Team() == 2)
- {
- drawText(pFont, top.x + iWidth + 3, top.y + 3, false, Color(240, 240, 240, 255), "HP: %i", Entity->Health());
- }
- if (Entity->Team() == 3)
- {
- drawText(pFont, top.x + iWidth + 3, top.y + 3, false, Color(240, 240, 240, 255), "HP: %i", Entity->Health());
- }
- }
- }
- }
- void TXTARMOR()
- {
- C_BaseEntity* Local = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- if (!Local)
- return;
- for (int i = 1; i < pEntList->GetHighestEntityIndex(); i++) {
- C_BaseEntity* Entity = (C_BaseEntity*)pEntList->GetClientEntity(i);
- if (!Entity)
- continue;
- if (Entity->IsDormant())
- continue;
- if (Entity->Health() < 1)
- continue;
- if (Entity == Local)
- continue;
- Vector mon, nom;
- nom = Entity->GetAbsOrigin();
- if (Entity->Flags() & FL_DUCKING) {
- mon = nom + Vector(0, 0, 50.f);
- }
- else {
- mon = nom + Vector(0, 0, 70.f);
- }
- Vector bot, top;
- player_info_t pInfo;
- pEngine->GetPlayerInfo(i, &pInfo);
- if (WorldToScreen(nom, bot) && WorldToScreen(mon, top)) {
- float h = (bot.y - top.y);
- float w = h / 3.5f;
- int iMiddle = (bot.y - top.y) + 4;
- int iWidth = iMiddle / 3.5;
- if (Entity->Team() == 2)
- {
- drawText(pFont, top.x + iWidth + 3, top.y + 11, false, Color(240, 240, 240, 255), "ARMOR: %i", Entity->Armor());
- }
- if (Entity->Team() == 3)
- {
- drawText(pFont, top.x + iWidth + 3, top.y + 11, false, Color(240, 240, 240, 255), "ARMOR: %i", Entity->Armor());
- }
- }
- }
- }
- void ISVISIBLE()
- {
- C_BaseEntity* Local = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- if (!Local)
- return;
- for (int i = 1; i < pEntList->GetHighestEntityIndex(); i++) {
- C_BaseEntity* Entity = (C_BaseEntity*)pEntList->GetClientEntity(i);
- if (!Entity)
- continue;
- if (Entity->IsDormant())
- continue;
- if (Entity->Health() < 1)
- continue;
- if (Entity == Local)
- continue;
- Vector mon, nom;
- nom = Entity->GetAbsOrigin();
- if (Entity->Flags() & FL_DUCKING) {
- mon = nom + Vector(0, 0, 50.f);
- }
- else {
- mon = nom + Vector(0, 0, 70.f);
- }
- Vector bot, top;
- player_info_t pInfo;
- pEngine->GetPlayerInfo(i, &pInfo);
- if (WorldToScreen(nom, bot) && WorldToScreen(mon, top)) {
- float h = (bot.y - top.y);
- float w = h / 3.5f;
- int iMiddle = (bot.y - top.y) + 4;
- int iWidth = iMiddle / 3.5;
- if (Entity->Team() == 2)
- {
- if (IsVisible(Entity, Local))
- {
- drawText(pFont, top.x + iWidth + 3, top.y + 19, false, Color(240, 240, 240, 255), "VISIBLE!");
- }
- }
- if (Entity->Team() == 3)
- {
- if (IsVisible(Entity, Local))
- {
- drawText(pFont, top.x + iWidth + 3, top.y + 19, false, Color(240, 240, 240, 255), "VISIBLE!");
- }
- }
- }
- }
- }
- void GLOWESP()
- {
- C_BaseEntity* Local = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- if (!Local)
- return;
- for (int i = 1; i < pEntList->GetHighestEntityIndex(); i++) {
- C_BaseEntity* Entity = (C_BaseEntity*)pEntList->GetClientEntity(i);
- if (!Entity)
- continue;
- if (Entity->IsDormant())
- continue;
- if (Entity->Health() < 1)
- continue;
- if (Entity == Local)
- continue;
- Vector mon, nom;
- nom = Entity->GetAbsOrigin();
- if (Entity->Flags() & FL_DUCKING) {
- mon = nom + Vector(0, 0, 50.f);
- }
- else {
- mon = nom + Vector(0, 0, 70.f);
- }
- Vector bot, top;
- player_info_t pInfo;
- pEngine->GetPlayerInfo(i, &pInfo);
- if (WorldToScreen2(nom, bot) && WorldToScreen2(mon, top)) {
- float h = (bot.y - top.y);
- float w = h / 3.5f;
- int iMiddle = (bot.y - top.y) + 4;
- int iWidth = iMiddle / 3.5;
- DWORD gGlowPointer = *reinterpret_cast<DWORD*>((DWORD)GetModuleHandleA("client.dll") + (DWORD)0x04F6691C);
- if (Entity->Team() == 2) {
- StartGlow(gGlowPointer, Entity->GlowIndex(), 150, 0, 30, 255);
- }
- if (Entity->Team() == 3) {
- StartGlow(gGlowPointer, Entity->GlowIndex(), 30, 150, 150, 255);
- }
- }
- }
- }
- void ESPNAME()
- {
- C_BaseEntity* Local = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- if (!Local)
- return;
- for (int i = 1; i < pEntList->GetHighestEntityIndex(); i++) {
- C_BaseEntity* Entity = (C_BaseEntity*)pEntList->GetClientEntity(i);
- if (!Entity)
- continue;
- if (Entity->IsDormant())
- continue;
- if (Entity->Health() < 1)
- continue;
- if (Entity == Local)
- continue;
- Vector mon, nom;
- nom = Entity->GetAbsOrigin();
- if (Entity->Flags() & FL_DUCKING) {
- mon = nom + Vector(0, 0, 50.f);
- }
- else {
- mon = nom + Vector(0, 0, 70.f);
- }
- Vector bot, top;
- player_info_t pInfo;
- pEngine->GetPlayerInfo(i, &pInfo);
- if (WorldToScreen(nom, bot) && WorldToScreen(mon, top)) {
- float h = (bot.y - top.y);
- float w = h / 3.5f;
- int iMiddle = (bot.y - top.y) + 4;
- int iWidth = iMiddle / 3.5;
- if (Entity->Team() == 2)
- {
- DrawStringMiddle(pFont, true, top.x, top.y - 5, Color(240, 240, 240, 255), pInfo.name);
- }
- if (Entity->Team() == 3)
- {
- DrawStringMiddle(pFont, true, top.x, top.y - 5, Color(240, 240, 240, 255), pInfo.name);
- }
- }
- }
- }
- void CORNERAAESP()
- {
- C_BaseEntity* Local = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- if (!Local)
- return;
- for (int i = 1; i < pEntList->GetHighestEntityIndex(); i++) {
- C_BaseEntity* Entity = (C_BaseEntity*)pEntList->GetClientEntity(i);
- if (!Entity)
- continue;
- if (Entity->IsDormant())
- continue;
- if (Entity->Health() < 1)
- continue;
- if (Entity == Local)
- continue;
- Vector mon, nom;
- nom = Entity->GetAbsOrigin();
- if (Entity->Flags() & FL_DUCKING) {
- mon = nom + Vector(0, 0, 50.f);
- }
- else {
- mon = nom + Vector(0, 0, 70.f);
- }
- Vector bot, top;
- player_info_t pInfo;
- pEngine->GetPlayerInfo(i, &pInfo);
- if (WorldToScreen(nom, bot) && WorldToScreen(mon, top)) {
- float h = (bot.y - top.y);
- float w = h / 3.5f;
- float radius;
- int iMiddle = (bot.y - top.y) + 4;
- int iWidth = iMiddle / 3.5;
- if (Entity->Team() == 2)
- {
- EdgedOutline(top.x - w, top.y, w * 2, h, Color(150, 0, 30, 255));
- }
- if (Entity->Team() == 3)
- {
- EdgedOutline(top.x - w, top.y, w * 2, h, Color(30, 150, 150, 255));
- }
- }
- }
- }
- void ESPWEAPON()
- {
- C_BaseEntity* Local = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- if (!Local)
- return;
- for (int i = 1; i < pEntList->GetHighestEntityIndex(); i++) {
- C_BaseEntity* Entity = (C_BaseEntity*)pEntList->GetClientEntity(i);
- if (!Entity)
- continue;
- if (Entity->IsDormant())
- continue;
- if (Entity->Health() < 1)
- continue;
- if (Entity == Local)
- continue;
- Vector mon, nom;
- nom = Entity->GetAbsOrigin();
- if (Entity->Flags() & FL_DUCKING) {
- mon = nom + Vector(0, 0, 50.f);
- }
- else {
- mon = nom + Vector(0, 0, 70.f);
- }
- Vector bot, top;
- player_info_t pInfo;
- pEngine->GetPlayerInfo(i, &pInfo);
- if (WorldToScreen(nom, bot) && WorldToScreen(mon, top)) {
- float h = (bot.y - top.y);
- float w = h / 3.5f;
- int iMiddle = (bot.y - top.y) + 4;
- int iWidth = iMiddle / 3.5;
- if (Entity->Team() == 2)
- {
- drawText(pFont, top.x + w * 0.5, top.y + h + 1, true, Color(255, 255, 255, 255), "WEAPON: %i", Entity->getActiveWeapon());
- }
- if (Entity->Team() == 3)
- {
- drawText(pFont, top.x + w * 0.5, top.y + h + 1, true, Color(255, 255, 255, 255), "WEAPON: %i", Entity->getActiveWeapon());
- }
- }
- }
- }
- void flashESP()
- {
- C_BaseEntity* Local = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- if (!Local)
- return;
- for (int i = 1; i < pEntList->GetHighestEntityIndex(); i++) {
- C_BaseEntity* Entity = (C_BaseEntity*)pEntList->GetClientEntity(i);
- if (!Entity)
- continue;
- if (Entity->IsDormant())
- continue;
- if (Entity->Health() < 1)
- continue;
- if (Entity == Local)
- continue;
- Vector mon, nom;
- nom = Entity->GetAbsOrigin();
- if (Entity->Flags() & FL_DUCKING) {
- mon = nom + Vector(0, 0, 50.f);
- }
- else {
- mon = nom + Vector(0, 0, 70.f);
- }
- Vector bot, top;
- player_info_t pInfo;
- pEngine->GetPlayerInfo(i, &pInfo);
- if (WorldToScreen(nom, bot) && WorldToScreen(mon, top)) {
- float h = (bot.y - top.y);
- float w = h / 3.5f;
- int iMiddle = (bot.y - top.y) + 4;
- int iWidth = iMiddle / 3.5;
- if (Entity->Team() == 2 && Entity->flashDuration() > 0)
- {
- drawText(pFont, top.x + iWidth + 3, top.y + 27, false, Color(240, 240, 240, 255), "FLASHED!");
- }
- if (Entity->Team() == 3 && Entity->flashDuration() > 0)
- {
- drawText(pFont, top.x + iWidth + 3, top.y + 27, false, Color(240, 240, 240, 255), "FLASHED!");
- }
- }
- }
- }
- void WALLBANGESPY()
- {
- C_BaseEntity* Local = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- if (!Local)
- return;
- for (int i = 1; i < pEntList->GetHighestEntityIndex(); i++) {
- C_BaseEntity* Entity = (C_BaseEntity*)pEntList->GetClientEntity(i);
- if (!Entity)
- continue;
- if (Entity->IsDormant())
- continue;
- if (Entity->Health() < 1)
- continue;
- if (Entity == Local)
- continue;
- Vector mon, nom;
- Vector vPos;
- nom = Entity->GetAbsOrigin();
- if (Entity->Flags() & FL_DUCKING) {
- mon = nom + Vector(0, 0, 50.f);
- }
- else {
- mon = nom + Vector(0, 0, 70.f);
- }
- Vector bot, top;
- player_info_t pInfo;
- pEngine->GetPlayerInfo(i, &pInfo);
- if (WorldToScreen(nom, bot) && WorldToScreen(mon, top)) {
- float h = (bot.y - top.y);
- float w = h / 3.5f;
- int iMiddle = (bot.y - top.y) + 4;
- int iWidth = iMiddle / 3.5;
- if (Entity->Team() == 2)
- {
- if (AutoWall(vPos, Local, Entity) && !IsVisible(Entity, Local))
- {
- drawText(pFont, top.x + iWidth + 3, top.y + 35, false, Color(240, 240, 240, 255), "WALLBANG!");
- }
- }
- if (Entity->Team() == 3)
- {
- if (AutoWall(vPos, Local, Entity) && !IsVisible(Entity, Local))
- {
- drawText(pFont, top.x + iWidth + 3, top.y + 35, false, Color(240, 240, 240, 255), "WALLBANG!");
- }
- }
- }
- }
- }
- void hashelmetESP()
- {
- IClientEntityList * pClasses;
- C_BaseEntity* Local = (C_BaseEntity*)pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- if (!Local)
- return;
- for (int i = 1; i < pEntList->GetHighestEntityIndex(); i++) {
- C_BaseEntity *ent = pEntList->GetClientEntity(i);
- C_BaseEntity* Entity = (C_BaseEntity*)pEntList->GetClientEntity(i);
- if (!Entity)
- continue;
- if (Entity->IsDormant())
- continue;
- if (Entity->Health() < 1)
- continue;
- if (Entity == Local)
- continue;
- Vector mon, nom;
- nom = Entity->GetAbsOrigin();
- if (Entity->Flags() & FL_DUCKING) {
- mon = nom + Vector(0, 0, 50.f);
- }
- else {
- mon = nom + Vector(0, 0, 70.f);
- }
- Vector bot, top;
- player_info_t pInfo;
- pEngine->GetPlayerInfo(i, &pInfo);
- if (WorldToScreen(nom, bot) && WorldToScreen(mon, top)) {
- float h = (bot.y - top.y);
- float w = h / 3.5f;
- int iMiddle = (bot.y - top.y) + 4;
- int iWidth = iMiddle / 3.5;
- if (Entity->Team() == 2 && Entity->hasHelmet())
- {
- drawText(pFont, top.x + iWidth + 3, top.y + 43, false, Color(240, 240, 240, 255), "HELMET: 1");
- }
- if (Entity->Team() == 3 && Entity->hasHelmet())
- {
- drawText(pFont, top.x + iWidth + 3, top.y + 43, false, Color(240, 240, 240, 255), "HELMET: 1");
- }
- }
- }
- }
- // ESP MEMES ENDS HERE BLYAT
- //-------------------------------------------------------------
- // MISC MEMES BEGINNS HERE
- void bhop(CUserCmd* pCmd, C_BaseEntity* Local)
- {
- if (pCmd->buttons & IN_JUMP)
- {
- if (!(Local->Flags() & FL_ONGROUND)) // pmeMes
- {
- pCmd->buttons &= ~IN_JUMP;
- }
- }
- }
- void namespammer()
- {
- static bool steal = false;
- ConVar* Name = pCvar->FindVar("name");
- *(int*)((DWORD)&Name->fnChangeCallback + 0xC) = 0;
- if (Name)
- {
- if (steal)
- {
- Name->SetValue("PROJECT: zer0ine");
- }
- else
- {
- Name->SetValue("PROJECT: zer0ine.");
- }
- steal = !steal; // more simple like a normal cactus.
- }
- }
- void fakelag1(C_BaseEntity * pLocal, bool &bSendPacket)
- {
- if (pLocal->GetLifeState() == 0)
- {
- float FakelagA = fakelagfac.getValue() * 3; // becoz we are donald trump.
- if (fakelag < fakelagfac.getValue()) {
- bSendPacket = false;
- fakelag++;
- }
- else
- {
- bSendPacket = true;
- fakelag = 0;
- }
- }
- }
- int fakesteps(C_BaseEntity * pLocal)
- {
- int step;
- int Chokeness;
- switch (step)
- {
- case 1:
- if (pLocal->GetVelocity().Length() < 50)
- Chokeness = 2;
- break;
- case 2:
- if (pLocal->GetVelocity().Length() < 100)
- Chokeness = 4;
- break;
- case 3:
- if (pLocal->GetVelocity().Length() < 200)
- Chokeness = 6;
- break;
- case 4:
- if (pLocal->GetVelocity().Length() < 300)
- Chokeness = 8;
- break;
- case 5:
- if (pLocal->GetVelocity().Length() < 400)
- Chokeness = 10;
- break;
- case 6:
- if (pLocal->GetVelocity().Length() < 500)
- Chokeness = 12;
- break;
- case 7:
- if (pLocal->GetVelocity().Length() > 500)
- Chokeness = 14;
- break;
- }
- return true;
- }
- void fakelagAdaptive(C_BaseEntity * pLocal, bool &bSendPacket)
- {
- static int adaptive = 0;
- float FakelagA = pLocal->GetVelocity().Length() * 3;
- if (pLocal->GetLifeState() == 0)
- {
- if (adaptive < fakesteps(pLocal)) {
- bSendPacket = false;
- adaptive++;
- }
- else
- {
- bSendPacket = true;
- adaptive = 0;
- }
- if (adaptive > 14)
- adaptive = 0;
- }
- }
- void fakelagRandom(C_BaseEntity * pLocal, bool &bSendPacket)
- {
- static int randd = 0;
- int random = rand() % 14;
- float FakelagA = random * 3;
- if (pLocal->GetLifeState() == 0)
- {
- if (randd < random) { // vorlдufig auf random weil velocity mir noch probleme bereitet!
- bSendPacket = false;
- randd++;
- }
- else
- {
- bSendPacket = true;
- randd = 0;
- }
- }
- }
- void Misc2(CUserCmd* pCmd, C_BaseEntity* Local)
- {
- C_BaseCombatWeapon* pWeapon = Local->GetActive();
- Vector pRecoil; // love it! sidechicks of a sidechick!
- if (pWeapon->isShootable())
- {
- pRecoil = Local->AimPunch() * 2.0; // Roll that angle Xer0000 :^)
- pCmd->viewangles -= pRecoil;
- ClampAngles(pCmd->viewangles);
- NormalizeVector(pCmd->viewangles);
- }
- }
- void autopistol(CUserCmd* pCmd)
- {
- if (pCmd->buttons & IN_ATTACK)
- {
- if (WasFiring)
- {
- pCmd->buttons &= ~IN_ATTACK;
- }
- }
- WasFiring = pCmd->buttons & IN_ATTACK ? true : false; // this it literally gay but i love it too! <3
- }
- void doRCS(CUserCmd* pCmd, C_BaseEntity* Local)
- {
- C_BaseCombatWeapon* pWeapon = Local->GetActive();
- if (!pWeapon)
- return;
- if (pWeapon->IsKnife())
- return;
- if (pWeapon->isShotgun())
- return;
- if (pWeapon->isGrenade())
- return;
- if (pWeapon->isPistol())
- return;
- if (pWeapon->isSniper())
- return;
- pEngine->GetViewAngles(VA);
- PA = Local->AimPunch() * 2.0f;
- float modifier = 100.0f - rcssmoothing.getValue();
- modifier /= 100.0f;
- VA.x -= (PA.x - oldPunchAngles.x) * modifier;
- VA.y -= (PA.y - oldPunchAngles.y) * modifier;
- oldPunchAngles = PA;
- NormalizeVector(VA);
- pCmd->viewangles = VA;
- pEngine->SetViewAngles(VA);
- ClampAngles(VA); // principally gay..
- }
- void pseudofovchanger()
- {
- ConVar * fov = pCvar->FindVar("viewmodel_fov");
- fov->SetValue(FOVCHANGER.getValue());
- }
- void fovchanger(C_BaseEntity * pLocal)
- {
- int Fov = *(int*)(pLocal + 0x31C8) = FOVCHANGER.getValue(); // FOV_Start is 0x31CC
- if (FOVCHANGER.getValue() == 90)
- {
- int Fov = *(int*)(pLocal + 0x31C8) = 90;
- }
- }
- void asusWalls()
- {
- }
- void noname()
- {
- ConVar * callback = pCvar->FindVar("name");
- *(int*)((DWORD)&callback->fnChangeCallback + 0xC) = NULL;
- pCvar->FindVar("name")->SetValue("\rPROJECT: zer0ine.");
- }
- void visCrosshair()
- {
- C_BaseEntity* pLocal = pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- if (!pWeapon)
- return;
- if (!pLocal)
- return;
- RECT View = GetViewport();
- int x = View.right / 2;
- int y = View.bottom / 2; // credits to shad0w for this math shit like viewport
- //if (pWeapon->isSniper())
- //{
- FillRGB(x - 3, y - 3, 6, 6, Color(150, 0, 30, 255));
- DrawBox(x - 4, y - 4, 7, 7, Color(155, 155, 155, 255));
- //}
- }
- void RecoilCrosshair()
- {
- C_BaseEntity* pLocal = pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- if (!pWeapon)
- return;
- if (!pLocal)
- return;
- Vector ViewAngles;
- pEngine->GetViewAngles(ViewAngles);
- ViewAngles += pLocal->AimPunch() * 2;
- Vector fowardVec;
- Vector up, right;
- AngleVectors(ViewAngles, &fowardVec, &up, &right);
- fowardVec *= 10000;
- Vector start = pLocal->GetAbsOrigin() + pLocal->LocalViewAngles();
- Vector end = start + fowardVec, endScreen;
- if (WorldToScreen(end, endScreen))
- {
- FillRGB(endScreen.x - 3, endScreen.y - 3, 6, 6, Color(150, 0, 30, 255));
- DrawBox(endScreen.x - 4, endScreen.y - 4, 7, 7, Color(155, 155, 155, 255));
- }
- }
- void namestealer()
- {
- static bool steal = false;
- ConVar *name = pCvar->FindVar("name");
- *(int*)((DWORD)&name->fnChangeCallback + 0xC) = NULL;
- player_info_t pInfo;
- char chCommand[256];
- if (steal)
- {
- name->SetSteal(chCommand, "name \"%s \"", pInfo.name);
- }
- else
- {
- name->SetSteal(chCommand, "name \"%s \"", pInfo.name);
- }
- steal = !steal;
- }
- void FakeDuck(CUserCmd* cmd, bool& bSendPacket)
- {
- static bool fDuck = false;
- static bool bFakeCrouch = true;
- if (fDuck)
- {
- fDuck = false;
- cmd->buttons &= ~IN_DUCK;
- bSendPacket = false;
- }
- else if (bFakeCrouch)
- {
- bSendPacket = true;
- cmd->buttons |= IN_DUCK;
- fDuck = true;
- }
- bFakeCrouch = !bFakeCrouch;
- }
- void commandExecute2(const char* str)
- {
- pEngine->ExecuteClientCmd(str); // why im doin this function? for sw4g!
- }
- void chatspamcounter()
- {
- static bool chatspamrecode = false;
- if (chatspamrecode)
- {
- commandExecute2("say im just laffing on you and rolling naked on my floor.");
- Sleep(50);
- }
- else
- {
- commandExecute2("say this cheat is made by reflex tbh.");
- Sleep(50);
- }
- chatspamrecode = !chatspamrecode; // its gay but i love it!
- }
- void servercrasher()
- {
- static bool crasher = false;
- if (crasher)
- {
- commandExecute2(""); // spamming nothing makin some errors
- }
- else
- {
- commandExecute2("status"); // spamming status crashin some shit
- }
- crasher = !crasher; // status spam works to crash? loololol this is the lucifer type of evilness ..
- }
- void AutoStrafe(CUserCmd *pCmd, C_BaseEntity * pLocal)
- {
- static bool bDirection = true;
- static bool jumpspammer = false;
- static float move = 450;
- float s_move = move * 0.5065f;
- if (GetAsyncKeyState(VK_F4))
- {
- commandExecute2("+right");
- commandExecute2("+forward");
- if (jumpspammer)
- {
- commandExecute2("+jump");
- Sleep(20);
- }
- jumpspammer = !jumpspammer; // for the memes
- }
- if (GetAsyncKeyState(VK_F6))
- {
- commandExecute2("-right");
- commandExecute2("-forward");
- commandExecute2("-jump");
- }
- if ((pCmd->buttons & IN_JUMP) || !(pLocal->Flags() & FL_ONGROUND)) // pChecks
- {
- pCmd->forwardmove = move * 0.015f;
- pCmd->sidemove += (float)(((pCmd->TickCount % 2) * 2) - 1) * s_move;
- if (pCmd->mousedX)
- pCmd->sidemove = (float)clamp(pCmd->mousedX, -1, 1) * s_move;
- static float strafe = pCmd->viewangles.y;
- float rt = pCmd->viewangles.y, rotation;
- rotation = strafe - rt;
- if (rotation < FloatNegate(pGlobals->interval_per_tick))
- pCmd->sidemove = -s_move;
- if (rotation > pGlobals->interval_per_tick)
- pCmd->sidemove = s_move;
- strafe = rt; // circlestrafer is gud i guess, but the math is pPaste ._.
- }
- }
- void bTelehop(CUserCmd * cmd, C_BaseEntity * Local)
- {
- static bool bDirection = true;
- static bool takethatshitoff = false;
- if ((cmd->buttons & IN_JUMP) && (Local->Flags() & FL_ONGROUND))
- {
- cmd->forwardmove = 450; // thx to xer0, gaining to speed while beeing on the ground
- }
- if ((cmd->buttons & IN_JUMP) || !(Local->Flags() & FL_ONGROUND)) // pChecks
- {
- if (bDirection)
- {
- cmd->sidemove = -450.f; // -650 & 650 is P!
- bDirection = false;
- }
- else
- {
- cmd->sidemove = +450.f; // -650 & 650 is P!
- bDirection = true;
- }
- }
- }
- void teleporty(CUserCmd * cmd)
- {
- if (GetAsyncKeyState(VK_F1))
- {
- cmd->viewangles.y = 22249223532141231232143.949962143f; // oversized values can teleport you! 13:37 never forget.
- cmd->viewangles.x = 22249223523413423454322345.9499621213f;
- }
- }
- void crapcode() {}
- void downvisualrecoil()
- {
- C_BaseEntity* Local = pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- C_BaseCombatWeapon* pWeapon = Local->GetActive();
- Vector *PunchVisualAngle;
- Vector viewangles;
- PunchVisualAngle = (Vector*)((DWORD)Local + 0x300C); // idk why im doin this! sw4g
- /* UNSERE SIMPLER RETURN CHECK */
- /*if (pWeapon->isSniper())
- return;
- if (pWeapon->isPistol())
- return;
- if (pWeapon->isShotgun())
- return;*/
- /* WE ARE GOING TO MINUS TO TAKE IT DOWN! */
- *PunchVisualAngle -= Local->AimPunch() * 2;
- /* CLAMPING AND NORMALISING OUR SHIT! */
- ClampAngles(*PunchVisualAngle);
- ClampAngles(viewangles); // clamping the full vector to be fully safe
- NormalizeVector(viewangles); // normalizing the full vector to be fully safe
- NormalizeVector(*PunchVisualAngle); // #creditstomyself
- }
- void sAirstuck(CUserCmd * cmd)
- {
- if (GetAsyncKeyState(VK_F1))
- {
- cmd->TickCount = 174522396;
- }
- }
- void noflashON(C_BaseEntity * Local)
- {
- int m_flFlashMaxAlpha = 0xA2F4;
- int m_flFlashDuration = 0xA2F8;
- *MakePtr(float*, Local, m_flFlashDuration) = 0.4f;
- *MakePtr(float*, Local, m_flFlashMaxAlpha) = 0.4f;
- }
- void noflashOFF(C_BaseEntity * Local)
- {
- int m_flFlashMaxAlpha = 0xA2F4;
- int m_flFlashDuration = 0xA2F8;
- *MakePtr(float*, Local, m_flFlashDuration) = 5100.0f;
- *MakePtr(float*, Local, m_flFlashMaxAlpha) = 255.0f;
- }
- // MISC MEMES ENDS HERE BLYAT YO
- //---------------------------------------------------------
- // HOOKING & CO BEGINNS HERE FOR THE PREMIUM MEMEZ
- void __stdcall FrameStageHook(ClientFrameStage_t curStage) {
- C_BaseEntity* gLocal = pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- if (pEngine->IsInGame() && pEngine->IsConnected() && gLocal)
- {
- Vector *PunchAngle, OldPunchAngle;
- Vector *PunchVisualAngle, OldVisualAngle;
- PunchAngle = (Vector*)((DWORD)gLocal + 0x3018);
- PunchVisualAngle = (Vector*)((DWORD)gLocal + 0x300C);
- if (misc_active.getValve() == 1)
- {
- if (curStage == FRAME_RENDER_START)
- {
- if (novisrecoil.getValve() == 1)
- {
- if (gLocal)
- {
- if (gLocal->Health() > 0)
- {
- if (gLocal->GetLifeState() == 0)
- {
- // if (!gWeapon->IsKnife() || gWeapon->IsBomb()) {
- {
- OldPunchAngle = *PunchAngle;
- OldVisualAngle = *PunchVisualAngle;
- *PunchAngle = Vector(0, 0, 0);
- *PunchVisualAngle = Vector(0, 0, 0);
- }
- }
- }
- }
- }
- }
- }
- if (misc_active.getValve() == 1)
- {
- if (curStage == FRAME_RENDER_START)
- {
- if (Visualrecoil.getValve() == 1)
- {
- if (gLocal)
- {
- if (gLocal->Health() > 0)
- {
- if (gLocal->GetLifeState() == 0)
- {
- // if (!gWeapon->IsKnife() || gWeapon->IsBomb()) {
- {
- downvisualrecoil();
- }
- }
- }
- }
- }
- }
- }
- ClientHooked->Function<FrameStageNotify_t>(36)(curStage);
- if (misc_active.getValve() == 1)
- {
- if (novisrecoil.getValve() == 1)
- {
- if (curStage == FRAME_RENDER_START)
- {
- if (gLocal)
- {
- if (gLocal->Health() > 0)
- {
- if (gLocal->GetLifeState() == 0)
- {
- if (PunchAngle->x == 0 || PunchAngle->y == 0 || PunchAngle->z == 0 || PunchVisualAngle->x == 0 || PunchVisualAngle->y == 0 || PunchVisualAngle->z == 0)
- {
- *PunchAngle = OldPunchAngle;
- *PunchVisualAngle = OldVisualAngle;
- }
- }
- }
- }
- }
- }
- if (fovactive.getValve() == 1)
- {
- fovchanger(gLocal);
- }
- }
- }
- }
- void ProxyHook()
- {
- ClientClass *pClass = gpClient->GetAllClasses();
- while (pClass)
- {
- const char *pszName = pClass->m_pRecvTable->m_pNetTableName;
- if (!strcmp(pszName, "DT_CSPlayer"))
- {
- for (int i = 0; i < pClass->m_pRecvTable->m_nProps; i++)
- {
- RecvProp *pProp = &(pClass->m_pRecvTable->m_pProps[i]);
- const char *name = pProp->m_pVarName;
- }
- }
- }
- }
- void __fastcall hkPaintTraverse(void* ecx, void* edx, unsigned int vguiPanel, bool forceRepaint, bool allowForce)
- {
- PanelHook->Function<tPaintTraverse>(41)(ecx, vguiPanel, forceRepaint, allowForce);
- const char* pszPanelName = pPanel->GetName(vguiPanel);
- bool isValidPanel = false;
- static bool xOnce = false;
- float radius;
- if (pszPanelName && pszPanelName[0] == 'M' && pszPanelName[3] == 'S' &&
- pszPanelName[9] == 'T' && pszPanelName[12] == 'P')
- isValidPanel = true;
- if (isValidPanel)
- {
- if (!cOnce)
- {
- pEngine->GetScreenSize(width, height);
- // FONTS
- Watermarkfont = pSurface->CreateFontA();
- pSurface->SetFontGlyphSet(Watermarkfont, "Geometeus_Rounded", 16, 800, 0, 0, FONTFLAG_OUTLINE);
- // FONTS
- pFont = pSurface->CreateFontA();
- pSurface->SetFontGlyphSet(pFont, "Animal_Silence", 10, 800, 0, 0, FONTFLAG_OUTLINE); // NORMAL 12
- // FONTS
- Rosso = pSurface->CreateFontA();
- pSurface->SetFontGlyphSet(Rosso, "Ferro_Rosso", 13, 800, 0, 0, FONTFLAG_OUTLINE);
- // FONTS
- Coture = pSurface->CreateFontA();
- pSurface->SetFontGlyphSet(Coture, "Couture", 15, 800, 0, 0, FONTFLAG_OUTLINE);
- // FONTS
- PRIMETIME = pSurface->CreateFontA();
- pSurface->SetFontGlyphSet(PRIMETIME, "Bebas_Neue", 30, 800, 0, 0, FONTFLAG_ANTIALIAS); // usual flag is outlined and timeline
- // FONTS
- blackfont = pSurface->CreateFontA();
- pSurface->SetFontGlyphSet(blackfont, "TheBlackFont", 30, 800, 0, 0, FONTFLAG_OUTLINE);
- // DO XMENU GRЦЯE
- initMenu();
- cOnce = true;
- }
- DrawMenu();
- UpdateMenu();
- GetCursorPos(&Cursor);
- if (pEngine->IsConnected() && pEngine->IsInGame())
- {
- if (vis_active.getValve() == 1)
- {
- if (visbox.getValve() == 1)
- {
- AIMWAREESP();
- }
- if (vishealthbar.getValve() == 1)
- {
- AIMWAREHEALTH();
- }
- if (visname.getValve() == 1)
- {
- ESPNAME();
- }
- if (glow.getValve() == 1)
- {
- GLOWESP();
- }
- if (legitesp.getValve() == 1)
- {
- CORNERAAESP();
- }
- if (txthealth.getValve() == 1)
- {
- TXTHEALTH();
- }
- if (Armoresp.getValve() == 1)
- {
- TXTARMOR();
- }
- if (visibleesp.getValve() == 1)
- {
- ISVISIBLE();
- }
- if (wallbangesp.getValve() == 1)
- {
- WALLBANGESPY();
- }
- if (weaponsesp.getValve() == 1)
- {
- ESPWEAPON();
- }
- if (helmesp.getValve() == 1)
- {
- hashelmetESP();
- }
- if (flashedESP.getValve() == 1)
- {
- flashESP();
- }
- if (crosshair.getValve() == 1)
- {
- if (!MenuOpend)
- {
- visCrosshair();
- }
- }
- if (recoilcrosshair.getValve() == 1)
- {
- if (!MenuOpend)
- {
- RecoilCrosshair();
- }
- }
- if (edgeaa.getValve() == 1)
- {
- inEdge();
- }
- }
- }
- if (MenuOpend)
- {
- if (pEngine->IsConnected() && pEngine->IsInGame())
- {
- DrawpCursor(Cursor.x, Cursor.y);
- }
- }
- if (GetAsyncKeyState(VK_LBUTTON) & 1)
- {
- onMouseClick();
- }
- if (GetAsyncKeyState(VK_LBUTTON))
- {
- onMouseHold();
- }
- if (vis_active.getValve() == 1)
- {
- if (watermark.getValve() == 1)
- {
- Watermarkyo();
- }
- }
- }
- }
- bool __stdcall HookedCreateMove(float SampleTime, CUserCmd* pCmd)
- {
- if (!pCmd->CommandNumber)
- return true;
- C_BaseEntity* pEntity = pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- C_BaseEntity* pLocal = pEntList->GetClientEntity(pEngine->GetLocalPlayer());
- C_BaseCombatWeapon* pWeapon = pLocal->GetActive();
- if (!pLocal)
- return false;
- if (pLocal->Health() < 0)
- return false;
- if (!pLocal->GetLifeState() == 0)
- return false;
- for (int i = 1; i < pEntList->GetHighestEntityIndex(); i++) {
- C_BaseEntity* Entity = (C_BaseEntity*)pEntList->GetClientEntity(i);
- if (pEngine->IsInGame() && pEngine->IsConnected())
- {
- // SENDPACKET //
- PVOID pebp;
- __asm mov pebp, ebp;
- bool* pbSendPacket = (bool*)(*(PDWORD)pebp - 0x1C);
- bool& bSendPacket = *pbSendPacket;
- // AUTOSTRAFER XCORRECTION //
- if (misc_active.getValve() == 1)
- {
- if (autostrafer.getValve() == 1)
- {
- // GetAutostrafeView();
- AutoStrafe(pCmd, pLocal);
- }
- if (antiuntrust.getValve() == 1 && telehop.getValve() == 1)
- {
- bTelehop(pCmd, pLocal);
- }
- if (antiaimactive.getValve() == 1)
- {
- if (antiaim.getValue() == 5 && pWeapon->isShootable2())
- {
- if (pCmd->buttons & IN_USE)
- return;
- casualaa(pCmd);
- }
- }
- ClampAngles(pCmd->viewangles);
- NormalizeVector(pCmd->viewangles);
- }
- // Aim goat memes //
- if (aim_active.getValve() == 1)
- {
- Vector vMove(pCmd->forwardmove, pCmd->sidemove, pCmd->upmove);
- float flSpeed = sqrt(vMove.x * vMove.x + vMove.y * vMove.y), flYaw;
- Vector vMove2;
- Vector vRealView(pCmd->viewangles);
- Vector Hitbox;
- VectorAngles3D(vMove, vMove2);
- /*if (pWeapon->WeaponAmmo() < 1)
- return;*/
- if (aim_active.getValve() == 1 && aimonshoot.getValve() == 1)
- {
- if (GetAsyncKeyState(VK_LBUTTON)) { doAim(pCmd, bSendPacket); }
- }
- if (aim_active.getValve() == 1 && aimonshoot.getValve() == 0)
- {
- doAim(pCmd, bSendPacket);
- }
- flYaw = DEG2RAD(pCmd->viewangles.y - vRealView.y + vMove2.y);
- pCmd->forwardmove = cos(flYaw) * flSpeed;
- pCmd->sidemove = sin(flYaw) * flSpeed;
- ClampAngles(pCmd->viewangles);
- NormalizeVector(pCmd->viewangles);
- }
- if (aim_active.getValve() == 1 && aimonshoot.getValve() == 0 && autoduck.getValve() == 1)
- {
- /*if (pWeapon->WeaponAmmo() < 1)
- return;*/
- doAim(pCmd, bSendPacket);
- }
- if (Legitactive.getValve() == 1)
- {
- if (Triggerenable.getValve() == 1)
- {
- }
- if (autopistolyo.getValve() == 1 && pWeapon->isPistol())
- {
- autopistol(pCmd);
- }
- }
- /* Misc memes */
- if (misc_active.getValve() == 1)
- {
- if (norecoil.getValve() == 1)
- {
- Misc2(pCmd, pLocal);
- }
- if (bunnyhop.getValve() == 1)
- {
- bhop(pCmd, pLocal);
- }
- if (namespam.getValve() == 1)
- {
- namespammer();
- }
- if (antiaimactive.getValve() == 1)
- {
- if (antiaim.getValue() == 1 && pWeapon->isShootable2())
- {
- if (pCmd->buttons & IN_USE)
- return;
- antimeme1ye(pCmd);
- }
- if (antiaim.getValue() == 2 && pWeapon->isShootable2())
- {
- if (pCmd->buttons & IN_USE)
- return;
- antimeme2ye(pCmd);
- }
- if (antiaim.getValue() == 3 && pWeapon->isShootable2())
- {
- if (pCmd->buttons & IN_USE)
- return;
- antimeme3ye(pCmd);
- }
- if (antiaim.getValue() == 4 && pWeapon->isShootable2())
- {
- if (pCmd->buttons & IN_USE)
- return;
- fakeedge(pCmd, bSendPacket);
- }
- if (edgeaa.getValve() == 1 && pLocal->GetVelocity().Length() < 5 && pWeapon->isShootable2())
- {
- if (pCmd->buttons & IN_USE)
- return;
- edge(pCmd, bSendPacket);
- }
- if (antiaim.getValue() == 6 && pWeapon->isShootable2())
- {
- if (pCmd->buttons & IN_USE)
- return;
- bJitter(pCmd);
- }
- if (antiaim.getValue() == 7 && pWeapon->isShootable2())
- {
- if (pCmd->buttons & IN_USE)
- return;
- fBackwards(pLocal, pCmd, bSendPacket);
- }
- }
- if (fakelagon.getValve() == 1)
- {
- fakelag1(pLocal, bSendPacket);
- }
- if (RCS.getValve() == 1)
- {
- doRCS(pCmd, pLocal);
- }
- if (chatspam.getValve() == 1)
- {
- chatspamcounter();
- }
- if (servercraxxer.getValve() == 1)
- {
- servercrasher();
- }
- if (nonameexploit.getValve() == 1)
- {
- noname();
- }
- if (namesteal.getValve() == 1)
- {
- namestealer();
- }
- if (adaptivefakelag.getValve() == 1)
- {
- fakelagAdaptive(pLocal, bSendPacket);
- }
- if (randomfakelag.getValve() == 1)
- {
- fakelagRandom(pLocal, bSendPacket);
- }
- if (airstuck.getValve() == 1)
- {
- sAirstuck(pCmd);
- }
- if (fakeduck.getValve() == 1)
- {
- FakeDuck(pCmd, bSendPacket);
- }
- if (noflash.getValve() == 1)
- {
- noflashON(pLocal);
- }
- else if (noflash.getValve() == 0)
- {
- noflashOFF(pLocal);
- }
- ClampAngles(pCmd->viewangles);
- NormalizeVector(pCmd->viewangles);
- }
- if (misc_active.getValve() == 1)
- {
- Vector origView = pCmd->viewangles;
- Vector viewforward, viewright, viewup, aimforward, aimright, aimup;
- Vector qAimAngles;
- qAimAngles.Init(0.0f, pCmd->viewangles.y, 0.0f);
- AngleVectors(qAimAngles, &viewforward, &viewright, &viewup);
- if (antiuntrust.getValve() == 1 && teleport.getValve() == 1)
- {
- teleporty(pCmd);
- }
- if (antiaimactive.getValve() == 1)
- {
- if (antiuntrust.getValve() == 1 && antiaim.getValue() == 8)
- {
- if (pWeapon->IsKnife()) // cuz we are crashing if no
- return;
- ANGLELAFF(pCmd, bSendPacket);
- }
- if (antiuntrust.getValve() == 1 && antiaim.getValue() == 9)
- {
- mattiazangel(pCmd, bSendPacket);
- }
- if (antiuntrust.getValve() == 1 && antiaim.getValue() == 10)
- {
- newtick++;
- if (newtick <= 6)
- {
- bSendPacket = false;
- }
- else
- {
- rekt1337(pCmd, bSendPacket);
- newtick = 0;
- }
- }
- if (antiuntrust.getValve() == 1 && antiaim.getValue() == 11)
- {
- fHead(pLocal, pCmd, bSendPacket);
- }
- if (antiuntrust.getValve() == 1 && antiaim.getValue() == 12)
- {
- fLisp(pLocal, pCmd, bSendPacket);
- }
- }
- qAimAngles.Init(0.0f, pCmd->viewangles.y, 0.0f);
- AngleVectors(qAimAngles, &aimforward, &aimright, &aimup);
- Vector vForwardNorm; Normalize(viewforward, vForwardNorm);
- Vector vRightNorm; Normalize(viewright, vRightNorm);
- Vector vUpNorm; Normalize(viewup, vUpNorm);
- float forward = pCmd->forwardmove;
- float right = pCmd->sidemove;
- float up = pCmd->upmove;
- if (forward > 450) forward = 450;
- if (right > 450) right = 450;
- if (up > 450) up = 450;
- if (forward < -450) forward = -450;
- if (right < -450) right = -450;
- if (up < -450) up = -450;
- pCmd->forwardmove = DotProduct(forward * vForwardNorm, aimforward) + DotProduct(right * vRightNorm, aimforward) + DotProduct(up * vUpNorm, aimforward);
- pCmd->sidemove = DotProduct(forward * vForwardNorm, aimright) + DotProduct(right * vRightNorm, aimright) + DotProduct(up * vUpNorm, aimright);
- pCmd->upmove = DotProduct(forward * vForwardNorm, aimup) + DotProduct(right * vRightNorm, aimup) + DotProduct(up * vUpNorm, aimup);
- }
- if (antiuntrust.getValve() == 0)
- {
- NormalizeVector(pCmd->viewangles);
- ClampAngles(pCmd->viewangles);
- }
- }
- return false;
- }
- }
- // HOOKING SHIT ENDS HERE
- //---------------------------------------------------------
- // HOOKING THE FEATS BEGINNS HERE
- void clientmode()
- {
- void** BaseClientDllVMT = *(void***)pClient;
- ClientMode = *(IClientMode***)((DWORD)BaseClientDllVMT[10] + 5);
- }
- void hookCM()
- {
- CreateMoveHook = new CVMTHook(*(DWORD***)ClientMode);
- _CreateMove = (CreateMove2)CreateMoveHook->Hook((DWORD)HookedCreateMove, 24);
- }
- void hookPT()
- {
- PanelHook = new CVMTHook((DWORD**)pPanel);
- PanelHook->Hook((DWORD)hkPaintTraverse, 41);
- }
- void hookFT()
- {
- ClientHooked = new CVMTHook((DWORD**)pClient);
- ClientHooked->Hook((DWORD)FrameStageHook, 36);
- }
- // HOOKING THE FEATS ENDS HERE
- //---------------------------------------------------------
- // SIMPLE MSG SHIT STARTS HERE!
- void __cdecl Msg(char const* msg, ...)
- {
- static MsgFn oMsg = (MsgFn)GetProcAddress(GetModuleHandleA("tier0.dll"), "Msg");
- char buffer[989];
- va_list list;
- va_start(list, msg);
- vsprintf(buffer, msg, list);
- va_end(list);
- oMsg(buffer, list);
- }
- void permaclean_console()
- {
- static bool permclean = false;
- if (permclean)
- {
- pEngine->ExecuteClientCmd("clear");
- }
- permclean = !permclean;
- }
- // SIMPLE MSGBOX FOR THE INGM CONSOLE ENDS HERE!
- //---------------------------------------------------------
- // HOOKING THE HOOKS WE MADE BEFORE HERE!
- DWORD WINAPI APPLYHooks(LPVOID lpArguments)
- {
- hwCSGO = FindWindowA(NULL, "Counter-Strike: Global Offensive");
- AllocConsole();
- freopen("CONOUT$", "w", stdout);
- INTERFACES();
- pEngine->ExecuteClientCmd("clear");
- Msg("zer0ine // BY RFX");
- Msg("\nzer0ine // LOADED!");
- hookPT();
- cout << " PANEL HOOK -> " << PanelHook << endl << " HOOKED PANEL -> " << PanelHook->Hook((DWORD)hkPaintTraverse, 41) << endl;
- hookFT();
- cout << " CLIENT -> FRAMESTAGE -> " << ClientHooked->Hook((DWORD)FrameStageHook, 36) << endl;
- clientmode();
- cout << " CLIENTMODE -> " << ClientMode << endl; // for the style :3
- hookCM();
- cout << " CREATEMOVE -> " << (CreateMove2)CreateMoveHook->Hook((DWORD)HookedCreateMove, 24) << endl; // for the style :3 aswell
- ProxyHook();
- cout << "" << endl;
- cout << " REFLEX'S PRIVATE HAKE LOADED BESTE! " << endl;
- cout << " For PSILENT only use FOV 1 it could shake! " << endl;
- cout << " Edge antiaim, is only working per Velocity! " << endl;
- cout << " If you wanna use RCS with fov > 1, use Norecoil + Visrecoil. " << endl;
- PDWORD pdwClient = (PDWORD)*(PDWORD)pClient;
- DWORD dwInitAddr = (DWORD)(pdwClient[0]);
- for (DWORD dwIter = 0; dwIter <= 0xFF; dwIter++) {
- if (*(PBYTE)(dwInitAddr + dwIter) == 0xA3) {
- pGlobals = (CGlobalVarsBase*)*(PDWORD)*(PDWORD)(dwInitAddr + dwIter + 1);
- break;
- }
- }
- return false;
- }
- // OUR APPLYHOOK SHIT ENDS HERE
- //---------------------------------------------------------
- // APPLYING OR HOOKS TO THE GAME BEGINNS HERE + SECURITY
- float DllMain(HINSTANCE hinst, DWORD dwReason, LPVOID lpReserved) {
- if (dwReason == DLL_PROCESS_ATTACH) {
- CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)ThreadHiding, NULL, NULL, NULL);
- CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)debuggkiller, NULL, NULL, NULL);
- AllocConsole();
- SetConsoleTitleA("zer0ine // Private Build");
- freopen("CONIN$", "r", stdin);
- freopen("CONOUT$", "w", stdout);
- freopen("CONOUT$", "w", stderr);
- const string USERNAME = "blaz3rin0";
- const string PASSWORD = "pr0coder";
- string username, password;
- cout << " ENTER USERNAME : ";
- cin >> username;
- if (username.length() < 4)
- {
- cout << " USERNAME MUST BE ATLEAST 4 CHARACTERS LONG.";
- ExitProcess(0);
- }
- else
- {
- cout << " ENTER PASSWORD : ";
- cin >> password;
- cout << "" << endl;
- if (password.length() < 6)
- {
- cout << "PASSWORD MUST BE ATLEAST 6 CHARACTERS LONG.";
- ExitProcess(0);
- }
- else
- {
- if (username == USERNAME && password == PASSWORD)
- {
- cout << " LOGIN SUCCESS!" << endl;
- cout << "____________________________________________" << endl;
- cout << "" << endl;
- if (hwid->hwidCheck(0x9C5FD31E)) {
- polymorph *pmorph;
- Rectangley rec(10, 7);
- Triangle tri(10, 5);
- pmorph = &rec;
- pmorph->area();
- pmorph = &tri;
- pmorph->area();
- Virtual_Holder * vh = new Definition_Holder();
- CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)APPLYHooks, NULL, NULL, NULL);
- cout << " UR HARDWAREID DOES MATCH! " << endl;
- cout << "____________________________________________" << endl;
- cout << "" << endl;
- }
- }
- else
- {
- cout << " IM SORRY! nice try :^)" << endl;
- cout << "____________________________________________" << endl;
- cout << "" << endl;
- ExitProcess(0);
- }
- }
- return true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement