protected void ReloadPlayerModelByLocalEquipSet() { SetLabelText(transRoot, UI.LBL_SET_NAME, localEquipSet.name); record.playerLoadInfo = PlayerLoadInfo.FromUserStatus(true, isVisualMode, selfCharaEquipSetNo); record.playerLoadInfo.SetupLoadInfo(localEquipSet, 0uL, 0uL, 0uL, 0uL, 0uL, localEquipSet.showHelm == 1); SetRenderPlayerModel(record.playerLoadInfo); }
protected override ModelLoaderBase LoadModel() { //IL_001d: Unknown result type (might be due to invalid IL or missing references) lastTargetNPCID = -1; sexType = MonoBehaviourSingleton <UserInfoManager> .I.userStatus.sex; PlayerLoader playerLoader = this.get_gameObject().AddComponent <PlayerLoader>(); playerLoader.StartLoad(PlayerLoadInfo.FromUserStatus(false, true, -1), 8, 99, false, false, true, true, false, false, false, false, SHADER_TYPE.NORMAL, null, true, -1); return(playerLoader); }
protected override void LoadModel() { if (record != null) { PlayerLoadInfo playerLoadInfo = record.playerLoadInfo; if (isSelfData) { if (reloadModel) { if (isQuestResult) { playerLoadInfo = PlayerLoadInfo.FromCharaInfo(record.charaInfo, true, true, true, isVisualMode); EquipItemTable.EquipItemData equipItemData = null; if (playerLoadInfo.weaponModelID == -1) { EquipSetInfo equipSet = MonoBehaviourSingleton <StatusManager> .I.GetEquipSet(selfCharaEquipSetNo); equipItemData = Singleton <EquipItemTable> .I.GetEquipItemData(equipSet.item[0].tableID); if (equipItemData != null) { playerLoadInfo.weaponModelID = equipItemData.GetModelID(MonoBehaviourSingleton <UserInfoManager> .I.userStatus.sex); playerLoadInfo.weaponColor0 = equipItemData.modelColor0; playerLoadInfo.weaponColor1 = equipItemData.modelColor1; playerLoadInfo.weaponColor2 = equipItemData.modelColor2; playerLoadInfo.weaponEffectID = equipItemData.effectID; playerLoadInfo.weaponEffectColor = equipItemData.effectColor; playerLoadInfo.weaponEffectParam = equipItemData.effectParam; playerLoadInfo.weaponSpAttackType = (uint)equipItemData.spAttackType; } } else { playerLoadInfo.weaponModelID = record.playerLoadInfo.weaponModelID; playerLoadInfo.weaponColor0 = record.playerLoadInfo.weaponColor0; playerLoadInfo.weaponColor1 = record.playerLoadInfo.weaponColor1; playerLoadInfo.weaponColor2 = record.playerLoadInfo.weaponColor2; playerLoadInfo.weaponEffectID = record.playerLoadInfo.weaponEffectID; playerLoadInfo.weaponEffectColor = record.playerLoadInfo.weaponEffectColor; playerLoadInfo.weaponEffectParam = record.playerLoadInfo.weaponEffectParam; playerLoadInfo.weaponSpAttackType = record.playerLoadInfo.weaponSpAttackType; } record.animID = -1; } else { playerLoadInfo = PlayerLoadInfo.FromUserStatus(true, isVisualMode, selfCharaEquipSetNo); } } else if (AlwaysNowStatusModel || record.playerLoadInfo.weaponModelID == -1) { record.playerLoadInfo = PlayerLoadInfo.FromUserStatus(true, isVisualMode, -1); record.animID = -1; playerLoadInfo = record.playerLoadInfo; } } else if (isVisualMode) { playerLoadInfo = record.playerLoadInfo; } else { playerLoadInfo = PlayerLoadInfo.FromCharaInfo(record.charaInfo, true, true, true, isVisualMode); playerLoadInfo.weaponModelID = record.playerLoadInfo.weaponModelID; playerLoadInfo.weaponColor0 = record.playerLoadInfo.weaponColor0; playerLoadInfo.weaponColor1 = record.playerLoadInfo.weaponColor1; playerLoadInfo.weaponColor2 = record.playerLoadInfo.weaponColor2; playerLoadInfo.weaponEffectID = record.playerLoadInfo.weaponEffectID; playerLoadInfo.weaponEffectColor = record.playerLoadInfo.weaponEffectColor; playerLoadInfo.weaponEffectParam = record.playerLoadInfo.weaponEffectParam; playerLoadInfo.weaponSpAttackType = record.playerLoadInfo.weaponSpAttackType; } SetRenderPlayerModel(playerLoadInfo); } }