DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnPlayerLoaded()

void ManBase::OnPlayerLoaded ( )
inlineprotected

initialize EnvironmentExposure data; waits for PlayerStats load

См. определение в файле PlayerBase.c строка 2569

2570 {
2571 InitEditor();
2572
2574 if (m_Environment)
2575 m_Environment.Init();
2576
2577 if (g_Game.IsMultiplayer() || g_Game.IsServer())
2578 {
2579 if (m_ModuleLifespan)
2580 {
2582 }
2583 }
2584
2585 if (IsControlledPlayer())//true only on client for the controlled character
2586 {
2588
2589 Mission mission = g_Game.GetMission();
2590 if (m_Hud)
2591 {
2592 m_Hud.UpdateBloodName();
2593 PPEManagerStatic.GetPPEManager().StopAllEffects(PPERequesterCategory.GAMEPLAY_EFFECTS);
2594 g_Game.GetUIManager().CloseAll();
2597
2598 m_Hud.ShowQuickbarUI(true);
2599 m_Hud.UpdateQuickbarGlobalVisibility();
2600 m_Hud.InitHeatBufferUI(this);
2601 m_Hud.OnPlayerLoaded();
2602 }
2604 }
2605 if (!g_Game.IsHeadlessOrDedicatedServer())
2606 {
2607 g_Game.GetCallQueue(CALL_CATEGORY_GUI).CallLater(UpdateCorpseStateVisual, 2000, false);//sometimes it takes a while to load in
2608 m_PlayerSoundEventHandler = new PlayerSoundEventHandler(this);
2609 m_ReplaceSoundEventHandler = new ReplaceSoundEventHandler(this);
2610 }
2611 int slotId = InventorySlots.GetSlotIdFromString("Head");
2612 m_CharactersHead = Head_Default.Cast(GetInventory().FindPlaceholderForSlot(slotId));
2616
2617 Weapon_Base wpn = Weapon_Base.Cast(GetItemInHands());
2618 if (wpn)
2619 {
2620 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_REMOTE)
2621 {
2622 wpn.DelayedValidateAndRepair();
2623 }
2624 else
2625 {
2626 wpn.ValidateAndRepair();
2627 }
2628 }
2629
2630 m_PlayerLoaded = true;
2631 }
DayZGame g_Game
Определения DayZGame.c:4074
Mission mission
Определения DisplayStatus.c:28
PPERequesterCategory
Определения PPEConstants.c:29
void PlayerSoundEventHandler(PlayerBase player)
Определения PlayerSoundEventHandler.c:55
void ReplaceSoundEventHandler(PlayerBase player)
Определения ReplaceSoundEventHandler.c:27
void UpdateHairSelectionVisibility(bool was_debug=false)
Определения PlayerBase.c:9363
int m_BloodType
Определения PlayerBase.c:55
void PreloadDecayTexture()
Определения PlayerBase.c:9696
VirtualHud GetVirtualHud()
Определения PlayerBase.c:2987
ref Environment m_Environment
Определения PlayerBase.c:93
GameplayEffectWidgets_base m_EffectWidgets
effect widgets
Определения PlayerBase.c:342
bool m_HasBloodTypeVisible
Определения PlayerBase.c:56
Hud m_Hud
Определения PlayerBase.c:139
ref VirtualHud m_VirtualHud
Определения PlayerBase.c:96
void UpdateCorpseStateVisual()
Определения PlayerBase.c:9596
void InitEditor()
Определения PlayerBase.c:2556
int m_LifeSpanState
Определения PlayerBase.c:53
ItemBase GetItemInHands()
Определения PlayerBase.c:6733
bool m_PlayerLoaded
Определения PlayerBase.c:66
Head_Default m_CharactersHead
Определения PlayerBase.c:184
PluginLifespan m_ModuleLifespan
Определения PlayerBase.c:79
int m_HasBloodyHandsVisible
Определения PlayerBase.c:59
void CheckHairClippingOnCharacterLoad()
helper method for re-checking hairhiding on character load
Определения PlayerBase.c:9426
void SetPlayerRespawning(bool state)
void OnPlayerRespawned(Man player)
GameplayEffectWidgets_base GetEffectWidgets()
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1084
proto native DayZPlayerInstanceType GetInstanceType()
const int CALL_CATEGORY_GUI
Определения 3_Game/DayZ/tools/tools.c:9

Перекрестные ссылки CALL_CATEGORY_GUI, CheckHairClippingOnCharacterLoad(), g_Game, GetInstanceType(), GetItemInHands(), PPEManagerStatic::GetPPEManager(), InventorySlots::GetSlotIdFromString(), GetVirtualHud(), InitEditor(), m_BloodType, m_CharactersHead, m_EffectWidgets, m_Environment, m_HasBloodTypeVisible, m_HasBloodyHandsVisible, m_Hud, m_LifeSpanState, m_ModuleLifespan, m_PlayerLoaded, m_VirtualHud, mission, PlayerSoundEventHandler(), PreloadDecayTexture(), ReplaceSoundEventHandler(), UpdateCorpseStateVisual() и UpdateHairSelectionVisibility().

Используется в Init().