notgoodusename / OsirisAndExtra

Other
127 stars 64 forks source link

my resolver is retarded and making me retarded #492

Closed Smellon69 closed 1 year ago

Smellon69 commented 1 year ago
    Vector delta = {};
    delta.x = source.x - entityPos.x;
    delta.y = source.y - entityPos.y;
    delta.z = source.z - entityPos.z;
    Vector angles = {};
    Vector viewangles = command->viewangles;
    Vector viewangles = command->viewangles;
    Vector viewangles = command->viewangles;
    Vector viewangles = command->viewangles;
    Vector viewangles = command->viewangles;
    angles.x = Helpers::rad2deg(atan(delta.z / hypot(delta.x, delta.y))) - viewangles.x;
    angles.y = Helpers::rad2deg(atan(delta.y / delta.x)) - viewangles.y;
    angles.z = 0;
    if (delta.x >= 0.f)
        angles.y += 180;

    return angles;
}

image idk what is up. Kinda why I quit using this repo in the first place. If I could get these dumb command was nullptr things to go away life would be so amazing.

notgoodusename commented 1 year ago

You forgot to call Resolver::commandGrabber on createmove

Smellon69 commented 1 year ago

ok so first I know this image is cursed. I removed all of them but 1(why is there 5) and used UserCmd* cmd to change command to cmd and it's working now

Smellon69 commented 1 year ago

You forgot to call Resolver::commandGrabber on createmove

also thanks