danielkrupinski / Osiris

Cross-platform game hack for Counter-Strike 2 with Panorama-based GUI.
MIT License
3.34k stars 965 forks source link

Aimbot shoot delay between shoots #2009

Closed Frouk3 closed 4 years ago

Frouk3 commented 4 years ago

When i toogle on autoshoot aimbot spent all ammo

RyDeem commented 4 years ago

Use "max aim inaccuracy" and "max shot inaccuracy", they work kind of like a timer but based on the current recoil. try a value of 0.02000 in both fields to see what im talking about. (when using AK-47 for example with autoshoot etc. enabled) (you can hold Control Key and press mouse1 on a field with a numeric value to edit it by text not slider)

notgoodusename commented 4 years ago

When i toogle on autoshoot aimbot spent all ammo

this is because autoshoot doesnt check if there is an entity infront of the crosshair

aljawary commented 4 years ago

an ugly code shotdelay for autoshot

in aimbot.cpp

        if (config->aimbot[weaponIndex].autoShot && activeWeapon->nextPrimaryAttack() <= memory->globalVars->serverTime() && !clamped && ((config->aimbot[weaponIndex].shotdelay > 0 && (lastTime + config->aimbot[weaponIndex].shotdelay / 1000.f) <= now) || !(config->aimbot[weaponIndex].shotdelay > 0)))

above void aimbot::run

static auto lastTime = 0.0f;

in config.cpp

    if (aimbotJson.isMember("Shot Delay")) aimbotConfig.shotdelay = aimbotJson["Shot Delay"].asInt();
    aimbotJson["Shot Delay"] = aimbotConfig.shotdelay;

config.h

int shotdelay {0};

gui.cpp

ImGui::InputInt("Shot Delay", &config->aimbot[currentWeapon].shotdelay);
dapaster commented 4 years ago

an ugly code shotdelay for autoshot

in aimbot.cpp

        if (config->aimbot[weaponIndex].autoShot && activeWeapon->nextPrimaryAttack() <= memory->globalVars->serverTime() && !clamped && ((config->aimbot[weaponIndex].shotdelay > 0 && (lastTime + config->aimbot[weaponIndex].shotdelay / 1000.f) <= now) || !(config->aimbot[weaponIndex].shotdelay > 0)))

above void aimbot::run

static auto lastTime = 0.0f;

in config.cpp

    if (aimbotJson.isMember("Shot Delay")) aimbotConfig.shotdelay = aimbotJson["Shot Delay"].asInt();
    aimbotJson["Shot Delay"] = aimbotConfig.shotdelay;

config.h

int shotdelay {0};

gui.cpp

ImGui::InputInt("Shot Delay", &config->aimbot[currentWeapon].shotdelay);
const auto now = memory->globalVars->realtime;