6299 {
6300
6301 m_PlayerSelected = true;
6302
6304
6306
6307 PlayerIdentity identity = GetIdentity();
6308
6309#ifdef FEATURE_NETWORK_RECONCILIATION
6310 if (identity)
6311 {
6313 identity.Possess(this);
6314 }
6315#endif
6316
6318 {
6319 if (identity)
6320 {
6323 }
6324
6326 SetAITargetCallbacks(new AITargetCallbacksPlayer(this));
6327
6328 array<ref Param> params = new array<ref Param>;
6330 {
6332 Param1<int> paramCount = new Param1<int>(count);
6333 params.Insert(paramCount);
6334 for (int i = 0; i < count; i++)
6335 {
6338 }
6339
6340 if (count > 0 &&
g_Game.IsMultiplayer())
6341 {
6342 g_Game.RPC(
this,
ERPCs.RPC_INIT_SET_QUICKBAR, params,
true, identity);
6343 }
6345 }
6346
6349
6350 SetSynchDirty();
6351
6352 if (
g_Game.IsMultiplayer())
6353 {
6354
6356 {
6357 g_Game.RPCSingleParam(
this,
ERPCs.RPC_WARNING_ITEMDROP, null,
true, identity);
6359 }
6360
6361 g_Game.GetMission().SyncRespawnModeInfo(identity);
6362 }
6363 }
6364
6366 {
6369
6371 }
6373 {
6377 DustEffectManager.GetDustEffectManager().Init(this);
6378 }
6380 {
6382 }
6383
6385 {
6387 {
6388 g_Game.GetMission().ResetGUI();
6389
6391 }
6392
6397
6398 int characterCount =
g_Game.GetMenuData().GetCharactersCount() - 1;
6399 int idx =
g_Game.GetMenuData().GetLastPlayedCharacter();
6400 if (idx == GameConstants.DEFAULT_CHARACTER_MENU_ID || idx > characterCount)
6401 {
6403 }
6404
6405 g_Game.GetMission().EnableAllInputs(
true);
6406
6409 #ifdef DIAG_DEVELOPER
6410 m_TargetTemperatureDiag = PluginTargetTemperature.Cast(
GetPlugin(PluginTargetTemperature));
6411 m_TargetTemperatureDiag.Init(this);
6412 #endif
6414 }
6415
6416 GetCachedEquipment().UpdateParents();
6417 }
PluginBase GetPlugin(typename plugin_type)
void PluginPresenceNotifier()
PlayerStat< float > GetStatSpecialty()
ref CraftingManager m_CraftingManager
ModifiersManager GetModifiersManager()
string m_CachedPlayerName
SoftSkillsManager GetSoftSkillsManager()
override void OnGameplayDataHandlerSync()
PluginPresenceNotifier m_PresenceNotifier
ref array< ref Param2< EntityAI, int > > m_aQuickBarLoad
PluginRecipesManager m_ModuleRecipesManager
ref WeaponManager m_WeaponManager
ref ConstructionActionData m_ConstructionActionData
ref Timer m_DeathCheckTimer
QuickBarBase m_QuickBarBase
ActionManagerBase m_ActionManager
proto string GetName()
nick (short) name of player
proto string GetId()
unique id of player (hashed steamID, database Xbox id...) can be used in database or logs
void InitSpecialty(float specialty_level)
DayZPlayerInstanceType
defined in C++
proto native DayZPlayerInstanceType GetInstanceType()