-
Автор темы
- #1
есть ли смысл в ребилде костей? или можно без ребилда?
мой код:
void CAnimationSystem::BuildMatrix(CBasePlayer* player, matrix3x4_t* boneToWorld, int maxBones, int mask, AnimationLayer* animlayers) {
memcpy(player->GetAnimlayers(), animlayers, sizeof(AnimationLayer) * 13);
static auto r_jiggle_bones = CVar->FindVar("r_jiggle_bones");
auto r_jiggle_bones_backup = r_jiggle_bones->GetInt();
bool backupMaintainSequenceTransitions = player->m_bMaintainSequenceTransitions();
int backupEffects = player->m_fEffects();
r_jiggle_bones->SetInt(0);
*(uint8_t*)((uintptr_t)this + 0x274) |= FL_ONGROUND;
player->m_fEffects() |= EF_NOINTERP;
player->m_bMaintainSequenceTransitions() = false;
hook_info.setup_bones = true;
player->SetupBones(boneToWorld, maxBones, mask, player->m_flSimulationTime());
hook_info.setup_bones = false;
player->m_fEffects() = backupEffects;
player->m_bMaintainSequenceTransitions() = backupMaintainSequenceTransitions;
r_jiggle_bones->SetInt(r_jiggle_bones_backup);
}