What's new

Welcome to HvH Forum!

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


SignUp Now!

Source Code Setting up matrices for different entity feet yaw

Administrator
User ID
1097
Messages
149
Reactions
232
Level
57
Very useful for safepoint, desync chams, resolving etc.

In the animationfix for players:
C:
        void setupAlternateYawMatrix(Entity* entity, int entityIndex, float alternateYaw){
            //backup our animstate before generating matrices
            playerBaseAnimState bState;
            playerBaseAnimState currentAnimstate = entity->getAnimstate();
            memcpy(&bState, currentAnimstate, sizeof(playerBaseAnimState));

            entity->getAnimstate()->GoalFeetYaw = entity->eyeAngles().y + alternateYaw; //pass alternateYaw as float
            entity->UpdateClientSideAnimation();
            //run our setupbones function for the alternate state in our data class
            entity->setupBones(dataArray.player[entityIndex].alternate_matrix, 128, 0x7FF00, csgo->globals->currenttime);

            //return the backup before continue
            memcpy(currentAnimstate, &bState, sizeof(playerBaseAnimState));
        }
 
Newbie HvHer
User ID
4455
Messages
4
Reactions
1
Level
0
anim update is wrong
entity->setupBones(dataArray.player[entityIndex].alternate_matrix, 128, 0x7FF00, csgo->globals->currenttime);
and no setupbones fixed
 
Administrator
User ID
1097
Messages
149
Reactions
232
Level
57
anim update is wrong
entity->setupBones(dataArray.player[entityIndex].alternate_matrix, 128, 0x7FF00, csgo->globals->currenttime);
and no setupbones fixed
The setupbones function im using is fixed, just because its not called setupbonesFixed doesnt mean its not fixed lmfao.

Now explain what exactly is wrong here.
 

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