CFourWheelVehiclePhysics::InitializePoseParameters
0x006ab030 · 2843 bytes · __thiscall
_ZN24CFourWheelVehiclePhysics24InitializePoseParametersEv
Decompiled
undefined (1 param)
/* CFourWheelVehiclePhysics::InitializePoseParameters() */
void __thiscall CFourWheelVehiclePhysics::InitializePoseParameters(CFourWheelVehiclePhysics *this)
{
uint uVar1;
undefined4 uVar2;
int iVar3;
int iVar4;
CStudioHdr *pCVar5;
undefined *puVar6;
CStudioHdr *pCVar7;
CBaseAnimating *pCVar8;
uVar1 = *(uint *)(this + 4);
if (((uVar1 == 0xffffffff) ||
(puVar6 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar6 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar6 + 8) != uVar1 >> 0xc)) {
pCVar8 = (CBaseAnimating *)0x0;
}
else {
pCVar8 = *(CBaseAnimating **)(puVar6 + 4);
}
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
if (pCVar5 == (CStudioHdr *)0x0) {
iVar3 = CBaseEntity::GetModel((CBaseEntity *)pCVar8);
if (iVar3 == 0) {
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
else {
CBaseAnimating::LockStudioHdr(pCVar8);
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
pCVar7 = (CStudioHdr *)0x0;
if (pCVar5 != (CStudioHdr *)0x0) goto LAB_006ab07a;
}
else {
LAB_006ab07a:
pCVar7 = (CStudioHdr *)0x0;
if (*(int *)pCVar5 != 0) {
pCVar7 = pCVar5;
}
}
uVar2 = CBaseAnimating::LookupPoseParameter(pCVar8,pCVar7,"vehicle_wheel_fl_height");
puVar6 = g_pEntityList;
*(undefined4 *)(this + 0xe4) = uVar2;
uVar1 = *(uint *)(this + 4);
if (((uVar1 == 0xffffffff) ||
(puVar6 = puVar6 + (uVar1 & 0xfff) * 0x10, puVar6 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar6 + 8) != uVar1 >> 0xc)) {
pCVar8 = (CBaseAnimating *)0x0;
}
else {
pCVar8 = *(CBaseAnimating **)(puVar6 + 4);
}
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
if (pCVar5 == (CStudioHdr *)0x0) {
iVar3 = CBaseEntity::GetModel((CBaseEntity *)pCVar8);
if (iVar3 == 0) {
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
else {
CBaseAnimating::LockStudioHdr(pCVar8);
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
pCVar7 = (CStudioHdr *)0x0;
if (pCVar5 != (CStudioHdr *)0x0) goto LAB_006ab0db;
}
else {
LAB_006ab0db:
pCVar7 = (CStudioHdr *)0x0;
if (*(int *)pCVar5 != 0) {
pCVar7 = pCVar5;
}
}
uVar2 = CBaseAnimating::LookupPoseParameter(pCVar8,pCVar7,"vehicle_wheel_fr_height");
puVar6 = g_pEntityList;
*(undefined4 *)(this + 0xe8) = uVar2;
uVar1 = *(uint *)(this + 4);
if (((uVar1 == 0xffffffff) ||
(puVar6 = puVar6 + (uVar1 & 0xfff) * 0x10, puVar6 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar6 + 8) != uVar1 >> 0xc)) {
pCVar8 = (CBaseAnimating *)0x0;
}
else {
pCVar8 = *(CBaseAnimating **)(puVar6 + 4);
}
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
if (pCVar5 == (CStudioHdr *)0x0) {
iVar3 = CBaseEntity::GetModel((CBaseEntity *)pCVar8);
if (iVar3 == 0) {
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
else {
CBaseAnimating::LockStudioHdr(pCVar8);
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
pCVar7 = (CStudioHdr *)0x0;
if (pCVar5 != (CStudioHdr *)0x0) goto LAB_006ab13c;
}
else {
LAB_006ab13c:
pCVar7 = (CStudioHdr *)0x0;
if (*(int *)pCVar5 != 0) {
pCVar7 = pCVar5;
}
}
uVar2 = CBaseAnimating::LookupPoseParameter(pCVar8,pCVar7,"vehicle_wheel_rl_height");
puVar6 = g_pEntityList;
*(undefined4 *)(this + 0xec) = uVar2;
uVar1 = *(uint *)(this + 4);
if (((uVar1 == 0xffffffff) ||
(puVar6 = puVar6 + (uVar1 & 0xfff) * 0x10, puVar6 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar6 + 8) != uVar1 >> 0xc)) {
pCVar8 = (CBaseAnimating *)0x0;
}
else {
pCVar8 = *(CBaseAnimating **)(puVar6 + 4);
}
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
if (pCVar5 == (CStudioHdr *)0x0) {
iVar3 = CBaseEntity::GetModel((CBaseEntity *)pCVar8);
if (iVar3 == 0) {
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
else {
CBaseAnimating::LockStudioHdr(pCVar8);
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
pCVar7 = (CStudioHdr *)0x0;
if (pCVar5 != (CStudioHdr *)0x0) goto LAB_006ab19d;
}
else {
LAB_006ab19d:
pCVar7 = (CStudioHdr *)0x0;
if (*(int *)pCVar5 != 0) {
pCVar7 = pCVar5;
}
}
uVar2 = CBaseAnimating::LookupPoseParameter(pCVar8,pCVar7,"vehicle_wheel_rr_height");
puVar6 = g_pEntityList;
*(undefined4 *)(this + 0xf0) = uVar2;
uVar1 = *(uint *)(this + 4);
if (((uVar1 == 0xffffffff) ||
(puVar6 = puVar6 + (uVar1 & 0xfff) * 0x10, puVar6 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar6 + 8) != uVar1 >> 0xc)) {
pCVar8 = (CBaseAnimating *)0x0;
}
else {
pCVar8 = *(CBaseAnimating **)(puVar6 + 4);
}
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
if (pCVar5 == (CStudioHdr *)0x0) {
iVar3 = CBaseEntity::GetModel((CBaseEntity *)pCVar8);
if (iVar3 == 0) {
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
else {
CBaseAnimating::LockStudioHdr(pCVar8);
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
pCVar7 = (CStudioHdr *)0x0;
if (pCVar5 != (CStudioHdr *)0x0) goto LAB_006ab1fe;
}
else {
LAB_006ab1fe:
pCVar7 = (CStudioHdr *)0x0;
if (*(int *)pCVar5 != 0) {
pCVar7 = pCVar5;
}
}
uVar2 = CBaseAnimating::LookupPoseParameter(pCVar8,pCVar7,"vehicle_wheel_fl_spin");
puVar6 = g_pEntityList;
*(undefined4 *)(this + 0xf4) = uVar2;
uVar1 = *(uint *)(this + 4);
if (((uVar1 == 0xffffffff) ||
(puVar6 = puVar6 + (uVar1 & 0xfff) * 0x10, puVar6 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar6 + 8) != uVar1 >> 0xc)) {
pCVar8 = (CBaseAnimating *)0x0;
}
else {
pCVar8 = *(CBaseAnimating **)(puVar6 + 4);
}
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
if (pCVar5 == (CStudioHdr *)0x0) {
iVar3 = CBaseEntity::GetModel((CBaseEntity *)pCVar8);
if (iVar3 == 0) {
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
else {
CBaseAnimating::LockStudioHdr(pCVar8);
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
pCVar7 = (CStudioHdr *)0x0;
if (pCVar5 != (CStudioHdr *)0x0) goto LAB_006ab25f;
}
else {
LAB_006ab25f:
pCVar7 = (CStudioHdr *)0x0;
if (*(int *)pCVar5 != 0) {
pCVar7 = pCVar5;
}
}
uVar2 = CBaseAnimating::LookupPoseParameter(pCVar8,pCVar7,"vehicle_wheel_fr_spin");
puVar6 = g_pEntityList;
*(undefined4 *)(this + 0xf8) = uVar2;
uVar1 = *(uint *)(this + 4);
if (((uVar1 == 0xffffffff) ||
(puVar6 = puVar6 + (uVar1 & 0xfff) * 0x10, puVar6 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar6 + 8) != uVar1 >> 0xc)) {
pCVar8 = (CBaseAnimating *)0x0;
}
else {
pCVar8 = *(CBaseAnimating **)(puVar6 + 4);
}
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
if (pCVar5 == (CStudioHdr *)0x0) {
iVar3 = CBaseEntity::GetModel((CBaseEntity *)pCVar8);
if (iVar3 == 0) {
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
else {
CBaseAnimating::LockStudioHdr(pCVar8);
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
pCVar7 = (CStudioHdr *)0x0;
if (pCVar5 != (CStudioHdr *)0x0) goto LAB_006ab2c0;
}
else {
LAB_006ab2c0:
pCVar7 = (CStudioHdr *)0x0;
if (*(int *)pCVar5 != 0) {
pCVar7 = pCVar5;
}
}
uVar2 = CBaseAnimating::LookupPoseParameter(pCVar8,pCVar7,"vehicle_wheel_rl_spin");
puVar6 = g_pEntityList;
*(undefined4 *)(this + 0xfc) = uVar2;
uVar1 = *(uint *)(this + 4);
if (((uVar1 == 0xffffffff) ||
(puVar6 = puVar6 + (uVar1 & 0xfff) * 0x10, puVar6 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar6 + 8) != uVar1 >> 0xc)) {
pCVar8 = (CBaseAnimating *)0x0;
}
else {
pCVar8 = *(CBaseAnimating **)(puVar6 + 4);
}
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
if (pCVar5 == (CStudioHdr *)0x0) {
iVar3 = CBaseEntity::GetModel((CBaseEntity *)pCVar8);
if (iVar3 == 0) {
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
else {
CBaseAnimating::LockStudioHdr(pCVar8);
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
pCVar7 = (CStudioHdr *)0x0;
if (pCVar5 != (CStudioHdr *)0x0) goto LAB_006ab321;
}
else {
LAB_006ab321:
pCVar7 = (CStudioHdr *)0x0;
if (*(int *)pCVar5 != 0) {
pCVar7 = pCVar5;
}
}
uVar2 = CBaseAnimating::LookupPoseParameter(pCVar8,pCVar7,"vehicle_wheel_rr_spin");
puVar6 = g_pEntityList;
*(undefined4 *)(this + 0x100) = uVar2;
uVar1 = *(uint *)(this + 4);
if (((uVar1 == 0xffffffff) ||
(puVar6 = puVar6 + (uVar1 & 0xfff) * 0x10, puVar6 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar6 + 8) != uVar1 >> 0xc)) {
pCVar8 = (CBaseAnimating *)0x0;
}
else {
pCVar8 = *(CBaseAnimating **)(puVar6 + 4);
}
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
if (pCVar5 == (CStudioHdr *)0x0) {
iVar3 = CBaseEntity::GetModel((CBaseEntity *)pCVar8);
if (iVar3 == 0) {
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
else {
CBaseAnimating::LockStudioHdr(pCVar8);
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
pCVar7 = (CStudioHdr *)0x0;
if (pCVar5 != (CStudioHdr *)0x0) goto LAB_006ab382;
}
else {
LAB_006ab382:
pCVar7 = (CStudioHdr *)0x0;
if (*(int *)pCVar5 != 0) {
pCVar7 = pCVar5;
}
}
uVar2 = CBaseAnimating::LookupPoseParameter(pCVar8,pCVar7,"vehicle_steer");
puVar6 = g_pEntityList;
*(undefined4 *)(this + 0x104) = uVar2;
uVar1 = *(uint *)(this + 4);
if (((uVar1 == 0xffffffff) ||
(puVar6 = puVar6 + (uVar1 & 0xfff) * 0x10, puVar6 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar6 + 8) != uVar1 >> 0xc)) {
pCVar8 = (CBaseAnimating *)0x0;
}
else {
pCVar8 = *(CBaseAnimating **)(puVar6 + 4);
}
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
if (pCVar5 == (CStudioHdr *)0x0) {
iVar3 = CBaseEntity::GetModel((CBaseEntity *)pCVar8);
if (iVar3 == 0) {
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
else {
CBaseAnimating::LockStudioHdr(pCVar8);
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
pCVar7 = (CStudioHdr *)0x0;
if (pCVar5 != (CStudioHdr *)0x0) goto LAB_006ab3e3;
}
else {
LAB_006ab3e3:
pCVar7 = (CStudioHdr *)0x0;
if (*(int *)pCVar5 != 0) {
pCVar7 = pCVar5;
}
}
uVar2 = CBaseAnimating::LookupPoseParameter(pCVar8,pCVar7,"vehicle_action");
puVar6 = g_pEntityList;
*(undefined4 *)(this + 0x108) = uVar2;
uVar1 = *(uint *)(this + 4);
if (((uVar1 == 0xffffffff) ||
(puVar6 = puVar6 + (uVar1 & 0xfff) * 0x10, puVar6 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar6 + 8) != uVar1 >> 0xc)) {
pCVar8 = (CBaseAnimating *)0x0;
}
else {
pCVar8 = *(CBaseAnimating **)(puVar6 + 4);
}
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
if (pCVar5 == (CStudioHdr *)0x0) {
iVar3 = CBaseEntity::GetModel((CBaseEntity *)pCVar8);
if (iVar3 == 0) {
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
else {
CBaseAnimating::LockStudioHdr(pCVar8);
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
pCVar7 = (CStudioHdr *)0x0;
if (pCVar5 != (CStudioHdr *)0x0) goto LAB_006ab444;
}
else {
LAB_006ab444:
pCVar7 = (CStudioHdr *)0x0;
if (*(int *)pCVar5 != 0) {
pCVar7 = pCVar5;
}
}
iVar3 = CBaseAnimating::LookupPoseParameter(pCVar8,pCVar7,"vehicle_guage");
uVar1 = *(uint *)(this + 4);
*(int *)(this + 0x10c) = iVar3;
if (((uVar1 == 0xffffffff) ||
(puVar6 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar6 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar6 + 8) != uVar1 >> 0xc)) {
pCVar8 = (CBaseAnimating *)0x0;
}
else {
pCVar8 = *(CBaseAnimating **)(puVar6 + 4);
}
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
if (pCVar5 == (CStudioHdr *)0x0) {
iVar4 = CBaseEntity::GetModel((CBaseEntity *)pCVar8);
if (iVar4 == 0) {
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
else {
CBaseAnimating::LockStudioHdr(pCVar8);
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
pCVar7 = (CStudioHdr *)0x0;
if (pCVar5 != (CStudioHdr *)0x0) goto LAB_006ab4a6;
}
else {
LAB_006ab4a6:
pCVar7 = (CStudioHdr *)0x0;
if (*(int *)pCVar5 != 0) {
pCVar7 = pCVar5;
}
}
CBaseAnimating::SetPoseParameter(pCVar8,pCVar7,iVar3,0.0);
uVar1 = *(uint *)(this + 4);
iVar3 = *(int *)(this + 0x104);
if (((uVar1 == 0xffffffff) ||
(puVar6 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar6 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar6 + 8) != uVar1 >> 0xc)) {
pCVar8 = (CBaseAnimating *)0x0;
}
else {
pCVar8 = *(CBaseAnimating **)(puVar6 + 4);
}
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
if (pCVar5 == (CStudioHdr *)0x0) {
iVar4 = CBaseEntity::GetModel((CBaseEntity *)pCVar8);
if (iVar4 == 0) {
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
else {
CBaseAnimating::LockStudioHdr(pCVar8);
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
pCVar7 = (CStudioHdr *)0x0;
if (pCVar5 != (CStudioHdr *)0x0) goto LAB_006ab50d;
}
else {
LAB_006ab50d:
pCVar7 = (CStudioHdr *)0x0;
if (*(int *)pCVar5 != 0) {
pCVar7 = pCVar5;
}
}
CBaseAnimating::SetPoseParameter(pCVar8,pCVar7,iVar3,0.0);
uVar1 = *(uint *)(this + 4);
iVar3 = *(int *)(this + 0xe4);
if (((uVar1 == 0xffffffff) ||
(puVar6 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar6 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar6 + 8) != uVar1 >> 0xc)) {
pCVar8 = (CBaseAnimating *)0x0;
}
else {
pCVar8 = *(CBaseAnimating **)(puVar6 + 4);
}
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
if (pCVar5 == (CStudioHdr *)0x0) {
iVar4 = CBaseEntity::GetModel((CBaseEntity *)pCVar8);
if (iVar4 == 0) {
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
else {
CBaseAnimating::LockStudioHdr(pCVar8);
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
pCVar7 = (CStudioHdr *)0x0;
if (pCVar5 != (CStudioHdr *)0x0) goto LAB_006ab574;
}
else {
LAB_006ab574:
pCVar7 = (CStudioHdr *)0x0;
if (*(int *)pCVar5 != 0) {
pCVar7 = pCVar5;
}
}
CBaseAnimating::SetPoseParameter(pCVar8,pCVar7,iVar3,0.0);
uVar1 = *(uint *)(this + 4);
iVar3 = *(int *)(this + 0xe8);
if (((uVar1 == 0xffffffff) ||
(puVar6 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar6 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar6 + 8) != uVar1 >> 0xc)) {
pCVar8 = (CBaseAnimating *)0x0;
}
else {
pCVar8 = *(CBaseAnimating **)(puVar6 + 4);
}
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
if (pCVar5 == (CStudioHdr *)0x0) {
iVar4 = CBaseEntity::GetModel((CBaseEntity *)pCVar8);
if (iVar4 == 0) {
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
else {
CBaseAnimating::LockStudioHdr(pCVar8);
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
pCVar7 = (CStudioHdr *)0x0;
if (pCVar5 != (CStudioHdr *)0x0) goto LAB_006ab5db;
}
else {
LAB_006ab5db:
pCVar7 = (CStudioHdr *)0x0;
if (*(int *)pCVar5 != 0) {
pCVar7 = pCVar5;
}
}
CBaseAnimating::SetPoseParameter(pCVar8,pCVar7,iVar3,0.0);
uVar1 = *(uint *)(this + 4);
iVar3 = *(int *)(this + 0xec);
if (((uVar1 == 0xffffffff) ||
(puVar6 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar6 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar6 + 8) != uVar1 >> 0xc)) {
pCVar8 = (CBaseAnimating *)0x0;
}
else {
pCVar8 = *(CBaseAnimating **)(puVar6 + 4);
}
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
if (pCVar5 == (CStudioHdr *)0x0) {
iVar4 = CBaseEntity::GetModel((CBaseEntity *)pCVar8);
if (iVar4 == 0) {
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
else {
CBaseAnimating::LockStudioHdr(pCVar8);
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
pCVar7 = (CStudioHdr *)0x0;
if (pCVar5 != (CStudioHdr *)0x0) goto LAB_006ab642;
}
else {
LAB_006ab642:
pCVar7 = (CStudioHdr *)0x0;
if (*(int *)pCVar5 != 0) {
pCVar7 = pCVar5;
}
}
CBaseAnimating::SetPoseParameter(pCVar8,pCVar7,iVar3,0.0);
uVar1 = *(uint *)(this + 4);
iVar3 = *(int *)(this + 0xf0);
if (((uVar1 == 0xffffffff) ||
(puVar6 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar6 == (undefined *)0xfffffffc)) ||
(*(uint *)(puVar6 + 8) != uVar1 >> 0xc)) {
pCVar8 = (CBaseAnimating *)0x0;
}
else {
pCVar8 = *(CBaseAnimating **)(puVar6 + 4);
}
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
if (pCVar5 == (CStudioHdr *)0x0) {
iVar4 = CBaseEntity::GetModel((CBaseEntity *)pCVar8);
if (iVar4 == 0) {
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
else {
CBaseAnimating::LockStudioHdr(pCVar8);
pCVar5 = *(CStudioHdr **)(pCVar8 + 0x13e0);
}
pCVar7 = (CStudioHdr *)0x0;
if (pCVar5 == (CStudioHdr *)0x0) goto LAB_006ab6b2;
}
pCVar7 = (CStudioHdr *)0x0;
if (*(int *)pCVar5 != 0) {
pCVar7 = pCVar5;
}
LAB_006ab6b2:
CBaseAnimating::SetPoseParameter(pCVar8,pCVar7,iVar3,0.0);
uVar1 = *(uint *)(this + 4);
if (((uVar1 != 0xffffffff) &&
(puVar6 = g_pEntityList + (uVar1 & 0xfff) * 0x10, puVar6 != (undefined *)0xfffffffc)) &&
(*(uint *)(puVar6 + 8) == uVar1 >> 0xc)) {
CBaseAnimating::InvalidateBoneCache(*(CBaseAnimating **)(puVar6 + 4));
return;
}
CBaseAnimating::InvalidateBoneCache((CBaseAnimating *)0x0);
return;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
used as the SourceMod key — change to fit your plugin's convention
SourceMod library name (server / engine / matchmaking)
Just a Signatures{} block, ready to drop into a gamedata
file. Wire it up in your plugin however you like - SDKCall, DHooks,
raw memory ops, or anything else.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Gamedata KeyValues
DHooks plugin example
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.