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

◆ OnPlayerLoaded()

void ManBase::OnPlayerLoaded ( )
inlineprotected

initialize EnvironmentExposure data; waits for PlayerStats load

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

2265 {
2266 InitEditor();
2267
2269 if (m_Environment)
2270 m_Environment.Init();
2271
2272 if (GetGame().IsMultiplayer() || GetGame().IsServer())
2273 {
2274 if (m_ModuleLifespan)
2275 {
2277 }
2278 }
2279
2280 if (IsControlledPlayer())//true only on client for the controlled character
2281 {
2282 if (!m_VirtualHud)
2283 m_VirtualHud = new VirtualHud(this);
2284 if (m_Hud)
2285 {
2286 m_Hud.UpdateBloodName();
2287 PPEManagerStatic.GetPPEManager().StopAllEffects(PPERequesterCategory.GAMEPLAY_EFFECTS);
2291
2292 m_Hud.ShowQuickbarUI(true);
2293 m_Hud.UpdateQuickbarGlobalVisibility();
2294 m_Hud.InitHeatBufferUI(this);
2295 m_Hud.OnPlayerLoaded();
2296 }
2298 }
2299 if (!GetGame().IsDedicatedServer())
2300 {
2301 GetGame().GetCallQueue(CALL_CATEGORY_GUI).CallLater(UpdateCorpseStateVisual, 2000, false);//sometimes it takes a while to load in
2302 m_PlayerSoundEventHandler = new PlayerSoundEventHandler(this);
2303 m_ReplaceSoundEventHandler = new ReplaceSoundEventHandler(this);
2304 }
2305 int slotId = InventorySlots.GetSlotIdFromString("Head");
2306 m_CharactersHead = Head_Default.Cast(GetInventory().FindPlaceholderForSlot(slotId));
2310
2311 Weapon_Base wpn = Weapon_Base.Cast(GetItemInHands());
2312 if (wpn)
2313 {
2314 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_REMOTE)
2315 {
2316 wpn.DelayedValidateAndRepair();
2317 }
2318 else
2319 {
2320 wpn.ValidateAndRepair();
2321 }
2322 }
2323
2324 m_PlayerLoaded = true;
2325 }
void VirtualHud(PlayerBase player)
Определения DisplayStatus.c:36
PPERequesterCategory
Определения PPEConstants.c:29
void PlayerSoundEventHandler(PlayerBase player)
Определения PlayerSoundEventHandler.c:54
void ReplaceSoundEventHandler(PlayerBase player)
Определения ReplaceSoundEventHandler.c:25
proto native UIManager GetUIManager()
override ScriptCallQueue GetCallQueue(int call_category)
Определения DayZGame.c:1187
proto native Mission GetMission()
void UpdateHairSelectionVisibility(bool was_debug=false)
Определения PlayerBase.c:8662
int m_BloodType
Определения PlayerBase.c:7
void PreloadDecayTexture()
Определения PlayerBase.c:8977
ref Environment m_Environment
Определения PlayerBase.c:46
GameplayEffectWidgets_base m_EffectWidgets
effect widgets
Определения PlayerBase.c:291
bool m_HasBloodTypeVisible
Определения PlayerBase.c:8
Hud m_Hud
Определения PlayerBase.c:93
ref VirtualHud m_VirtualHud
Определения PlayerBase.c:49
void UpdateCorpseStateVisual()
Определения PlayerBase.c:8883
void InitEditor()
Определения PlayerBase.c:2251
int m_LifeSpanState
Определения PlayerBase.c:5
ItemBase GetItemInHands()
Определения PlayerBase.c:6210
bool m_PlayerLoaded
Определения PlayerBase.c:18
Head_Default m_CharactersHead
Определения PlayerBase.c:138
PluginLifespan m_ModuleLifespan
Определения PlayerBase.c:31
int m_HasBloodyHandsVisible
Определения PlayerBase.c:11
void CheckHairClippingOnCharacterLoad()
helper method for re-checking hairhiding on character load
Определения PlayerBase.c:8725
void SetPlayerRespawning(bool state)
void OnPlayerRespawned(Man player)
GameplayEffectWidgets_base GetEffectWidgets()
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
bool CloseAll()
Close all opened menus.
Определения UIManager.c:78
DayZPlayerInstanceType
defined in C++
Определения dayzplayer.c:1068
proto native DayZPlayerInstanceType GetInstanceType()
proto native CGame GetGame()
const int CALL_CATEGORY_GUI
Определения tools.c:9

Перекрестные ссылки CALL_CATEGORY_GUI, ScriptCallQueue::CallLater(), CheckHairClippingOnCharacterLoad(), UIManager::CloseAll(), CGame::GetCallQueue(), Mission::GetEffectWidgets(), GetGame(), GetInstanceType(), GetItemInHands(), CGame::GetMission(), PPEManagerStatic::GetPPEManager(), InventorySlots::GetSlotIdFromString(), CGame::GetUIManager(), InitEditor(), m_BloodType, m_CharactersHead, m_EffectWidgets, m_Environment, m_HasBloodTypeVisible, m_HasBloodyHandsVisible, m_Hud, m_LifeSpanState, m_ModuleLifespan, m_PlayerLoaded, m_VirtualHud, Mission::OnPlayerRespawned(), PlayerSoundEventHandler(), PreloadDecayTexture(), ReplaceSoundEventHandler(), Mission::SetPlayerRespawning(), UpdateCorpseStateVisual(), UpdateHairSelectionVisibility() и VirtualHud().

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