6015 {
6016
6017 m_PlayerSelected = true;
6018
6020
6022
6023 PlayerIdentity identity = GetIdentity();
6024
6025#ifdef FEATURE_NETWORK_RECONCILIATION
6026 if (identity)
6027 {
6029 identity.Possess(this);
6030 }
6031#endif
6032
6034 {
6035 if (identity)
6036 {
6039 }
6040
6042 SetAITargetCallbacks(new AITargetCallbacksPlayer(this));
6043
6044 array<ref Param> params = new array<ref Param>;
6046 {
6048 Param1<int> paramCount = new Param1<int>(count);
6049 params.Insert(paramCount);
6050 for (int i = 0; i < count; i++)
6051 {
6054 }
6055
6056 if (count > 0 &&
g_Game.IsMultiplayer())
6057 {
6058 g_Game.RPC(
this,
ERPCs.RPC_INIT_SET_QUICKBAR, params,
true, identity);
6059 }
6061 }
6062
6065
6066 SetSynchDirty();
6067
6068 if (
g_Game.IsMultiplayer())
6069 {
6070
6072 {
6073 g_Game.RPCSingleParam(
this,
ERPCs.RPC_WARNING_ITEMDROP, null,
true, identity);
6075 }
6076
6077 g_Game.GetMission().SyncRespawnModeInfo(identity);
6078 }
6079 }
6080
6082 {
6085
6087 }
6089 {
6093
6094 }
6096 {
6098 }
6099
6101 {
6103 {
6104 g_Game.GetMission().ResetGUI();
6105
6107 }
6108
6113
6114 int characterCount =
g_Game.GetMenuData().GetCharactersCount() - 1;
6115 int idx =
g_Game.GetMenuData().GetLastPlayedCharacter();
6116 if (idx == GameConstants.DEFAULT_CHARACTER_MENU_ID || idx > characterCount)
6117 {
6119 }
6120
6121 g_Game.GetMission().EnableAllInputs(
true);
6122
6125 #ifdef DIAG_DEVELOPER
6126 m_TargetTemperatureDiag = PluginTargetTemperature.Cast(
GetPlugin(PluginTargetTemperature));
6127 m_TargetTemperatureDiag.Init(this);
6128 #endif
6130 }
6131
6132#ifdef BOT
6133 m_Bot = new Bot(this);
6134 m_Bot.Start(true, new MyBotTrigger(this));
6135#endif
6136 }
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()