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

◆ OnPlayerLoaded()

void ManBase::OnPlayerLoaded ( )
inlineprotected

initialize EnvironmentExposure data; waits for PlayerStats load

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

2389 {
2390 InitEditor();
2391
2393 if (m_Environment)
2394 m_Environment.Init();
2395
2396 if (g_Game.IsMultiplayer() || g_Game.IsServer())
2397 {
2398 if (m_ModuleLifespan)
2399 {
2401 }
2402 }
2403
2404 if (IsControlledPlayer())//true only on client for the controlled character
2405 {
2406 if (!m_VirtualHud)
2407 m_VirtualHud = new VirtualHud(this);
2408
2409 Mission mission = g_Game.GetMission();
2410 if (m_Hud)
2411 {
2412 m_Hud.UpdateBloodName();
2413 PPEManagerStatic.GetPPEManager().StopAllEffects(PPERequesterCategory.GAMEPLAY_EFFECTS);
2414 g_Game.GetUIManager().CloseAll();
2417
2418 m_Hud.ShowQuickbarUI(true);
2419 m_Hud.UpdateQuickbarGlobalVisibility();
2420 m_Hud.InitHeatBufferUI(this);
2421 m_Hud.OnPlayerLoaded();
2422 }
2424 }
2425 if (!g_Game.IsDedicatedServer())
2426 {
2427 g_Game.GetCallQueue(CALL_CATEGORY_GUI).CallLater(UpdateCorpseStateVisual, 2000, false);//sometimes it takes a while to load in
2428 m_PlayerSoundEventHandler = new PlayerSoundEventHandler(this);
2429 m_ReplaceSoundEventHandler = new ReplaceSoundEventHandler(this);
2430 }
2431 int slotId = InventorySlots.GetSlotIdFromString("Head");
2432 m_CharactersHead = Head_Default.Cast(GetInventory().FindPlaceholderForSlot(slotId));
2436
2437 Weapon_Base wpn = Weapon_Base.Cast(GetItemInHands());
2438 if (wpn)
2439 {
2440 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_REMOTE)
2441 {
2442 wpn.DelayedValidateAndRepair();
2443 }
2444 else
2445 {
2446 wpn.ValidateAndRepair();
2447 }
2448 }
2449
2450 m_PlayerLoaded = true;
2451 }
DayZGame g_Game
Определения DayZGame.c:3942
Mission mission
Определения DisplayStatus.c:28
void VirtualHud(PlayerBase player)
Определения DisplayStatus.c:36
PPERequesterCategory
Определения PPEConstants.c:29
void PlayerSoundEventHandler(PlayerBase player)
Определения PlayerSoundEventHandler.c:54
void ReplaceSoundEventHandler(PlayerBase player)
Определения ReplaceSoundEventHandler.c:27
void UpdateHairSelectionVisibility(bool was_debug=false)
Определения PlayerBase.c:9011
int m_BloodType
Определения PlayerBase.c:55
void PreloadDecayTexture()
Определения PlayerBase.c:9321
ref Environment m_Environment
Определения PlayerBase.c:93
GameplayEffectWidgets_base m_EffectWidgets
effect widgets
Определения PlayerBase.c:338
bool m_HasBloodTypeVisible
Определения PlayerBase.c:56
Hud m_Hud
Определения PlayerBase.c:140
ref VirtualHud m_VirtualHud
Определения PlayerBase.c:96
void UpdateCorpseStateVisual()
Определения PlayerBase.c:9225
void InitEditor()
Определения PlayerBase.c:2375
int m_LifeSpanState
Определения PlayerBase.c:53
ItemBase GetItemInHands()
Определения PlayerBase.c:6437
bool m_PlayerLoaded
Определения PlayerBase.c:66
Head_Default m_CharactersHead
Определения PlayerBase.c:185
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:9074
void SetPlayerRespawning(bool state)
void OnPlayerRespawned(Man player)
GameplayEffectWidgets_base GetEffectWidgets()
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1071
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(), 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() и VirtualHud().

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