Osiris icon indicating copy to clipboard operation
Osiris copied to clipboard

Thirdperson bug with antiaim (i think)

Open notaila opened this issue 7 years ago • 15 comments

I added some anti aims to osiris but the problem i'm getting is the anti aim isn't visible in thirdperson. bot_mimic 1 works

notaila avatar Jul 07 '19 20:07 notaila

and when i queue up with friends it works as well :)

notaila avatar Jul 07 '19 21:07 notaila

You probably need to draw antiaim position yourself.

danielkrupinski avatar Jul 07 '19 21:07 danielkrupinski

Prediction set local view angles to your real. Sorry I'm on my phone otherwise I would've posted code

synvy avatar Jul 08 '19 04:07 synvy

interfaces.engine->setViewAngles(realAngles);

NexSqaud avatar Jul 08 '19 05:07 NexSqaud

Its not defined tho i remember adding Vector realangles; in Interfaces.h but couldn't complete it so i commented it out

notaila avatar Jul 08 '19 05:07 notaila

You make AA in Interface.h?

NexSqaud avatar Jul 08 '19 06:07 NexSqaud

no i meant someone was helping me with third person but he had to go so i never finished he was trying to change the thirdperson. and as for anti aim i have aa.cpp and aa.h separately.

notaila avatar Jul 08 '19 06:07 notaila

my aa is something like

if (GetAsyncKeyState(config.hvh.manualleft))
		{
			config.hvh.manualaastate = 1;
		}
		else if (GetAsyncKeyState(config.hvh.manualright))
		{
			config.hvh.manualaastate = 2;
		}
		else if (GetAsyncKeyState(config.hvh.manualback))
		{
			config.hvh.manualaastate = 3;
		}
		if (config.hvh.manualaastate != 0)
		{
			switch (config.hvh.manualaastate)
			{
			case 1: //left
				cmd->viewangles.y -= 90.f;
				break;

			case 2: //right
				cmd->viewangles.y += 90.f;
				break;

			case 3:
				cmd->viewangles.y += 180.f;
				break;
			}
			return;
		}

notaila avatar Jul 08 '19 06:07 notaila

@NexSqaud i think i get what u meant now but how tdo you define real angles?

notaila avatar Jul 08 '19 08:07 notaila

i tried making a global vector in visuals.cpp if (config.visuals.thirdperson) if (memory.input->isCameraInThirdPerson = (!config.visuals.thirdpersonKey || isInThirdperson) && interfaces.entityList->getEntity(interfaces.engine->getLocalPlayer())->isAlive()) { memory.input->cameraOffset.z = static_cast<float>(config.visuals.thirdpersonDistance); interfaces.engine->setViewAngles(realangle); } in aa.cpp realangle = cmd->viewangles; but it just made me look at a certain direction

notaila avatar Jul 08 '19 08:07 notaila

float maxDesync = getMaxDesync();
if(config.hvh.yaw == 1){
    if(sendPacket)
        cmd->viewAngles.y += maxDesync / 2; // fake
    else cmd->viewAngles.y -= maxDesync / 2; // real
}

Simple balance desync(anti aim)

NexSqaud avatar Jul 08 '19 10:07 NexSqaud

well i got this

if (sendPacket) {
		cmd->viewangles.y = cmd->viewangles.y;
	}
	else {
		flip = !flip;
		cmd->viewangles.y += (flip ? 58 : -58);
	}

for my desync the problem is with thirdperson angles and movement as well

notaila avatar Jul 08 '19 10:07 notaila

class AntiAim{
static Vector realAngles;
static Vector fakeAngles;
/** calc real and fake angles **/
    if(sendPacket)
        cmd->viewangles.y = fakeAngles.y;
    else
        cmd->viewangles.y = realAngles.y;
void Visuals::thirdperson() noexcept
{
    static bool isInThirdperson{ true };
    static float lastTime{ 0.0f };

    if (GetAsyncKeyState(config.visuals.thirdpersonKey) && memory.globalVars->realtime - lastTime > 0.5f) {
        isInThirdperson = !isInThirdperson;
        lastTime = memory.globalVars->realtime;
    }

    if (config.visuals.thirdperson)
        if (memory.input->isCameraInThirdPerson = (!config.visuals.thirdpersonKey || isInThirdperson)
            && interfaces.entityList->getEntity(interfaces.engine->getLocalPlayer())->isAlive()){
                if(config.hvh.enable)
                    interfaces.engine->setViewAngles(AntiAim::realAngles);    
            memory.input->cameraOffset.z = static_cast<float>(config.visuals.thirdpersonDistance);
        }
}

Or you need to make customBoneToWorld matrix for chams.

NexSqaud avatar Jul 08 '19 11:07 NexSqaud

not really what i wanted but figured it out myself.

notaila avatar Jul 29 '19 23:07 notaila

not really what i wanted but figured it out myself.

How did you do it? I am having the same issue right now

eehhaa avatar May 10 '20 16:05 eehhaa