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

◆ OnPlayerLoaded()

void ManBase::OnPlayerLoaded ( )
inlineprotected

initialize EnvironmentExposure data; waits for PlayerStats load

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

2256 {
2257 InitEditor();
2258
2260 if (m_Environment)
2261 m_Environment.Init();
2262
2263 if (GetGame().IsMultiplayer() || GetGame().IsServer())
2264 {
2265 if (m_ModuleLifespan)
2266 {
2268 }
2269 }
2270
2271 if (IsControlledPlayer())//true only on client for the controlled character
2272 {
2273 if (!m_VirtualHud)
2274 m_VirtualHud = new VirtualHud(this);
2275 if (m_Hud)
2276 {
2277 m_Hud.UpdateBloodName();
2278 PPEManagerStatic.GetPPEManager().StopAllEffects(PPERequesterCategory.GAMEPLAY_EFFECTS);
2282
2283 m_Hud.ShowQuickbarUI(true);
2284 m_Hud.UpdateQuickbarGlobalVisibility();
2285 m_Hud.InitHeatBufferUI(this);
2286 m_Hud.OnPlayerLoaded();
2287 }
2289 }
2290 if (!GetGame().IsDedicatedServer())
2291 {
2292 GetGame().GetCallQueue(CALL_CATEGORY_GUI).CallLater(UpdateCorpseStateVisual, 2000, false);//sometimes it takes a while to load in
2293 m_PlayerSoundEventHandler = new PlayerSoundEventHandler(this);
2294 m_ReplaceSoundEventHandler = new ReplaceSoundEventHandler(this);
2295 }
2296 int slotId = InventorySlots.GetSlotIdFromString("Head");
2297 m_CharactersHead = Head_Default.Cast(GetInventory().FindPlaceholderForSlot(slotId));
2301
2302 Weapon_Base wpn = Weapon_Base.Cast(GetItemInHands());
2303 if (wpn)
2304 {
2305 if (GetInstanceType() == DayZPlayerInstanceType.INSTANCETYPE_REMOTE)
2306 {
2307 wpn.DelayedValidateAndRepair();
2308 }
2309 else
2310 {
2311 wpn.ValidateAndRepair();
2312 }
2313 }
2314
2315 m_PlayerLoaded = true;
2316 }
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:8760
int m_BloodType
Определения PlayerBase.c:7
void PreloadDecayTexture()
Определения PlayerBase.c:9075
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:8981
void InitEditor()
Определения PlayerBase.c:2242
int m_LifeSpanState
Определения PlayerBase.c:5
ItemBase GetItemInHands()
Определения PlayerBase.c:6202
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:8823
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
Определения 3_Game/tools/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().