danielkrupinski / Osiris

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

why dont standard desync methods work in osiris? #1092

Closed CantRememberMyself closed 11 months ago

CantRememberMyself commented 4 years ago

i have tried a few RECENT desync methods and they set my view to look like i should be desyncing and the one i am currently trying even makes me slide but when me and my friend were testing he could only see my real, there was no desync.

edit

void Misc::Desync(UserCmd* cmd, bool& sendPacket) noexcept
    {
        const auto localPlayer = interfaces.entityList->getEntity(interfaces.engine->getLocalPlayer());
        if (config.misc.testaa)
        {
            if (cmd->buttons & UserCmd::IN_ATTACK)
            {

            }
            else
            {
                if (!sendPacket) {
                    cmd->viewangles.y += 180.f;
                }
                else {
                    cmd->viewangles.y += 180.f + localPlayer->getMaxDesyncAngle();// - g_plocal->getmaxdesyncdelta(); works too
                }
                //while testing on hvh i noticed than you are slowwalking desync works perefectly, so lets do a little movement while standing
                if (localPlayer->flags() & 1 && cmd->sidemove < 3 && cmd->sidemove > -3) {
                    static bool switch_ = false;
                    if (switch_)
                        cmd->sidemove = 2;
                    else
                        cmd->sidemove = -2;
                    switch_ = !switch_;
                }
            }
        }
    }

this is the desync code i am currently testing

notgoodusename commented 4 years ago

bruh osiris already has the sidemove method

CantRememberMyself commented 4 years ago

bruh osiris already has the sidemove method

wait what, i didnt know that.

but still, why isn't it actually desyncing.

notgoodusename commented 4 years ago

if you cant see the angles is ok just do sv_showlagcompesation 1 and sv_lagcompensateself 1

CantRememberMyself commented 4 years ago

no me and my friend tested and i wasn't desyncing.

notgoodusename commented 4 years ago

dont do inattack there is already a check on hooks.cpp, sending your desynced angle is stupid do if(!sendpacket) desync angle else if(sendpacket) real angle and check for (cmd->viewangles.y == currentViewAngles.y)

CantRememberMyself commented 4 years ago

and check for (cmd->viewangles.y == currentViewAngles.y)

specify

notgoodusename commented 4 years ago

and check for (cmd->viewangles.y == currentViewAngles.y)

specify

if (cmd->viewangles.y == currentViewAngles.y){ do stuff }

CantRememberMyself commented 4 years ago

oh okay thank you

smartxd3 commented 4 years ago

so now its working? the anti aim working?

ghost commented 4 years ago

currentAngles is set at the start of CreateCreate move. if it currentAngles differed from cmd->angles then something modified the angle (like aimbot) and it is unwise to overwrite that.