What's new

Welcome to HvH Forum!

SignUp Now! Download Free HvH CS:GO Cheats, CFG, LUA/JS Scripts, And More!


SignUp Now!

Source Code Detecting if player is extending desync using animationlayers (+ resolver pseudocode)

Moderator
User ID
1097
Messages
81
Reactions
458
Level
54
Kinda useful for normal resolving and VERY useful for resolving onshot desync.

C++:
bool extend = Animations::data.player[entity->index()].networked_layers[3].cycle == 0.f && Animations::data.player[entity->index()].networked_layers[3].weight == 0.f;


Resolver pseudocode:
C-like:
function resolveYaw (entity){
//get if the play is extending their desync
bool extend = Animations::data.player[entity->index()].networked_layers[3].cycle == 0.f && Animations::data.player[entity->index()].networked_layers[3].weight == 0.f;

// if extending go for 58 otherwise for 29 delta
float resolveYaw = extend ? 58 : 29;

switch (misses % 3){
    case (0):
        entity->goalfeetYaw = eyeAngle + resolveYaw;
        break;
    case (1):
        entity->goalfeetYaw = eyeAngle - resolveYaw;
        break;
    case (2):
        entity->goalfeetYaw = eyeAngle;
        break;
    }
}
 
Last edited:
I'm not Plisskien
Administrator
User ID
1
Messages
754
Reactions
3,429
Level
99
Kinda useful for normal resolving and VERY useful for resolving onshot desync.

C++:
bool extend = Animations::data.player[entity->index()].networked_layers[3].cycle == 0.f && Animations::data.player[entity->index()].networked_layers[3].weight == 0.f;
I guess ur the only one person on this forum who know how to use it... xd
 
Moderator
User ID
1097
Messages
81
Reactions
458
Level
54
I guess ur the only one person on this forum who know how to use it... xd
True, but its still good info. When player is shooting on the tick, if extending shoot +/- 58 and if not +/- 29 from pseudoFireYaw
 
I'am not ur friend
Contributor
User ID
6
Messages
12
Reactions
602
Level
37
Great release
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Top