Welcome to hackvshack.net Forum!
Download Free HvH CS2/CS:GO Cheats, CFG, LUA/JS Scripts, and More!
Register

C++ Setting up matrices for different entity feet yaw

viv.exe

Administrator
User ID:
1097
Messages:
148
Reactions:
213
Badges:
19
REP:
−0/0+
Level:
263
Very useful for safepoint, desync chams, resolving etc.

In the animationfix for players:
C:
Expand Collapse Copy
        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));
        }
 
anim update is wrong
entity->setupBones(dataArray.player[entityIndex].alternate_matrix, 128, 0x7FF00, csgo->globals->currenttime);
and no setupbones fixed
 
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.
 
  • Like
Reactions: trail

Who has read this thread (Total: 0) in last 1 hours View details