Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void __usercall AI_EntityHumanModel::Update(Thing *this@<ecx>, double a2@<st0>)
- {
- // [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND]
- v3 = this->dword758;
- v4 = 0;
- if ( v3 && AI_AdvancedWeaponPC::UpdateAsyncLoad(v3, 0) )
- {
- sub_10070770(this->dword758, a2);
- v5 = this->dword758;
- sub_1014BBC0(this);
- sub_1014C5B0(v5);
- if ( this->byte960 )
- sub_1014BF70(1);
- this->dword758 = 0;
- }
- if ( this->arm1.dword0 != -1 )
- {
- if ( cObjectManagerInstance )
- {
- v6 = sub_1003E370(this->arm1.dword8);
- this->arm1.dword4 = v6;
- if ( v6 != 0 )
- {
- if ( BYTE1(this->arm1.dwordC) )
- {
- if ( cObjectManagerInstance )
- {
- v7 = sub_1003E370(this->dword760);
- this->dword75C = v7;
- }
- else
- {
- v7 = 0;
- }
- v8 = AIDLL::ACT_AnimLayer_AIFlagActive(v7, 0x6Cu) == 0;
- if ( LOBYTE(this->arm1.dwordC) != v8 )
- {
- __asm
- {
- fld ds:flt_10278A40
- fstp [esp+484h+var_484]; float
- }
- v9 = &this->arm1;
- if ( v8 )
- cIkArm::On(v9, v44);
- else
- cIkArm::Off(v9, v44);
- }
- }
- }
- }
- }
- if ( this->arm2.dword0 != -1 )
- {
- if ( cObjectManagerInstance )
- {
- v10 = sub_1003E370(this->arm2.dword8);
- this->arm2.dword4 = v10;
- if ( v10 != 0 )
- {
- if ( BYTE1(this->arm2.dwordC) )
- {
- if ( cObjectManagerInstance )
- {
- v11 = sub_1003E370(this->dword760);
- this->dword75C = v11;
- }
- else
- {
- v11 = 0;
- }
- v12 = AIDLL::ACT_AnimLayer_AIFlagActive(v11, 0x6Du) == 0;
- if ( LOBYTE(this->arm2.dwordC) != v12 )
- {
- __asm
- {
- fld ds:flt_10278A40
- fstp [esp+484h+var_484]; float
- }
- v13 = &this->arm2;
- if ( v12 )
- cIkArm::On(v13, v45);
- else
- cIkArm::Off(v13, v45);
- }
- }
- }
- }
- }
- if ( this->byte95F )
- {
- if ( cObjectManagerInstance )
- {
- v14 = sub_1003E370(this->dword760);
- this->dword75C = v14;
- v4 = v14;
- }
- if ( cObjectManagerInstance )
- {
- v16 = sub_1003E370(this->dword760);
- this->dword75C = v16;
- v15 = v16;
- }
- else
- {
- v15 = 0;
- }
- v17 = AIDLL::VIS_uc_GetJointIndex(v4, 0x58988870);
- AIDLL::VIS_GetJoint_Pos(&v50, v15, v17, 0);
- if ( cObjectManagerInstance )
- {
- v19 = sub_1003E370(this->dword760);
- this->dword75C = v19;
- v18 = v19;
- }
- else
- {
- v18 = 0;
- }
- if ( cObjectManagerInstance )
- {
- v21 = sub_1003E370(this->dword760);
- this->dword75C = v21;
- v20 = v21;
- }
- else
- {
- v20 = 0;
- }
- v22 = AIDLL::VIS_uc_GetJointIndex(v18, 0x9B14362C);
- AIDLL::VIS_GetJoint_Pos(&v47, v20, v22, 0);
- __asm
- {
- fld [ebp+var_434]
- fadd [ebp+var_428]
- }
- v57 = v51;
- __asm
- {
- fstp [ebp+var_410]
- fld [ebp+var_40C]
- }
- v58 = v52;
- __asm
- {
- fadd [ebp+var_430]
- fstp [ebp+var_40C]
- fld [ebp+var_408]
- }
- v54 = v57;
- __asm
- {
- fadd [ebp+var_42C]
- fstp [ebp+var_408]
- fld [ebp+var_410]
- }
- v55 = v58;
- __asm
- {
- fld ds:dbl_102788D0
- fmul st(1), st
- fxch st(1)
- fstp [ebp+var_41C]
- fld [ebp+var_418]
- fmul st, st(1)
- fstp [ebp+var_418]
- fmul [ebp+var_414]
- fstp [ebp+var_414]
- }
- if ( cObjectManagerInstance )
- {
- v23 = sub_1003E370(this->dword760);
- this->dword75C = v23;
- }
- else
- {
- v23 = 0;
- }
- _EAX = AIDLL::OBJ_vGetPos(&v56, v23);
- __asm
- {
- fld dword ptr [eax+8]
- fstp [ebp+var_414]
- }
- if ( cObjectManagerInstance )
- {
- v25 = sub_1003E370(this->dword8E8);
- this->dword8E4 = v25;
- if ( v25 != 0 )
- {
- if ( cObjectManagerInstance )
- {
- v27 = sub_1003E370(this->dword760);
- this->dword75C = v27;
- v26 = v27;
- }
- else
- {
- v26 = 0;
- }
- if ( cObjectManagerInstance )
- {
- v29 = sub_1003E370(this->dword8E8);
- this->dword8E4 = v29;
- v28 = v29;
- }
- else
- {
- v28 = 0;
- }
- v30 = AIDLL::OBJ_mxGetMatrix(&v46, v26);
- AIDLL::OBJ_SetMatrix(v28, v30);
- if ( cObjectManagerInstance )
- {
- v31 = sub_1003E370(this->dword8E8);
- this->dword8E4 = v31;
- }
- else
- {
- v31 = 0;
- }
- AIDLL::OBJ_SetPos(v31, &v53);
- }
- }
- }
- if ( this->importantSwitch )
- {
- v57 = 0.0;
- v58 = 0.0;
- v32 = !this->dword758 && this->dword754;
- if ( cObjectManagerInstance )
- {
- v33 = sub_1003E370(this->dword760);
- this->dword75C = v33;
- }
- else
- {
- v33 = 0;
- }
- v35 = AI_CharacterVisualManager::Get();
- v36 = AI_CharacterVisualManager::LoadCharacterVisualsAsync(v35, a2, v33, &this->characterVisuals, &v57, 0);
- if ( v32 )
- {
- if ( v36 )
- {
- v37 = AI_CharacterVisualManager::Get();
- if ( AI_CharacterVisualManager::eTestParams(v37, a2, &this->characterVisuals) )
- {
- v38 = RDV::Proxy::pUserModel();
- v39 = RDV::Proxy::pUserModel();
- v40 = (v38->pVMT->pRDV_DLL_sub_10010055)(v38);
- playerID = (v39->pVMT->pRDV_DLL_sub_1000A14B_getPlayerID)(v39, *v40, this->dword958);
- sprintf(
- &v59,
- "Invalid visual params after loading character. PID = %d. UserName = %s. ClassID = %d",
- playerID,
- userName,
- classID);
- dword_1069A838 = rev_SendErrorMessage(
- dword_1069A838 != 1,
- "..\\SRC\\PCGUI\\3DRenderer\\AI_EntityHumanModel.cpp",
- "AI_EntityHumanModel::Update",
- 469,
- &v59);
- if ( dword_1069A838 == 3 )
- __debugbreak();
- }
- this->importantSwitch = 0;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement