27 int m_DetailedInfoRequested = 0;
54 m_StatsUpdateStatus =
false;
55 m_LevelsUpdateStatus =
false;
56 m_ModsUpdateStatus =
false;
57 m_AgentsUpdateStatus =
false;
58 m_StomachUpdateStatus =
false;
85 case ERPCs.DEV_STATS_UPDATE:
91 case ERPCs.DEV_LEVELS_UPDATE:
97 case ERPCs.DEV_MODS_UPDATE:
103 case ERPCs.DEV_AGENTS_UPDATE:
109 case ERPCs.DEV_STOMACH_UPDATE:
114 case ERPCs.DEV_TEMP_UPDATE:
122 for (
int i = 0;
i < m_RegisteredPlayers.Count();
i++)
124 if (m_RegisteredPlayers.GetElement(
i).m_Bitmask == 0)
126 m_RegisteredPlayers.RemoveElement(
i);
134 if (m_RegisteredPlayers.Count() == 0)
146 for (
int i = 0;
i < m_RegisteredPlayers.Count();
i++)
151 m_RegisteredPlayers.RemoveElement(
i);
221 if (m_RegisteredPlayers.Contains(
player))
237 case ERPCs.DEV_STATS_UPDATE:
242 case ERPCs.DEV_LEVELS_UPDATE:
247 case ERPCs.DEV_MODS_UPDATE:
252 case ERPCs.DEV_AGENTS_UPDATE:
257 case ERPCs.DEV_STOMACH_UPDATE:
262 case ERPCs.DEV_RPC_STATS_DATA:
267 case ERPCs.DEV_RPC_LEVELS_DATA:
272 case ERPCs.DEV_RPC_MODS_DATA:
277 case ERPCs.DEV_RPC_MODS_DATA_DETAILED:
282 case ERPCs.DEV_RPC_AGENTS_DATA:
286 case ERPCs.DEV_RPC_STOMACH_DATA:
291 case ERPCs.DEV_RPC_MODS_ACTIVATE:
295 case ERPCs.DEV_RPC_MODS_DETAILED:
300 case ERPCs.DEV_RPC_MODS_DEACTIVATE:
305 case ERPCs.DEV_RPC_MODS_LOCK:
313 case ERPCs.DEV_RPC_MODS_RESET:
315 player.GetModifiersManager().DeactivateAllModifiers();
319 case ERPCs.DEV_RPC_STATS_RESET:
321 player.GetPlayerStats().ResetAllStats();
325 case ERPCs.DEV_RPC_STAT_SET:
330 case ERPCs.DEV_TEMP_UPDATE:
383 string label =
player.m_PlayerStats.GetPCO().Get().Get(
i).GetLabel();
401 m_PlayerStatsSynced.Clear();
417 m_PlayerStatsSynced.Insert(
new SyncedValue(
p.param1,
p.param2,
false,
p.param3));
427 m_PlayerStatsSynced.Clear();
432 string label =
player.m_PlayerStats.GetPCO().Get().Get(
i).GetLabel();
433 float value =
player.m_PlayerStats.GetPCO().Get().Get(
i).Get();
438 m_PlayerStatsSynced.Insert(
new SyncedValue(
"(NaS)Immunity",
player.GetImmunity(),
false, 0));
439 m_PlayerStatsSynced.Insert(
new SyncedValue(
"(NaS) BrokenLegs",
player.m_BrokenLegState,
false, 0));
449 string label =
player.m_PlayerStats.GetPCO().Get().Get(
i).GetLabel();
451 player.m_PlayerStats.GetPCO().Get().Get(
i).SetByFloatEx(
p.param2);
486 m_PlayerLevelsSynced.Clear();
548 int mod_id = m_RegisteredPlayers.Get(
player).m_DetailedModifierIndex;
560 m_PlayerModsSynced.Clear();
584 m_PlayerModsDetailedSynced =
p1.param1;
699 m_PlayerAgentsSynced.Clear();
738 m_PlayerStomachSynced.Clear();
752 m_PlayerStomachSynced.Insert(
p4);
757 m_PlayerStomachSynced.Insert(
p1b);
795 GetGame().GetInput().ChangeGameFocus(1);
796 GetGame().GetUIManager().ShowUICursor(
true);
801 GetGame().GetInput().ChangeGameFocus(-1);
802 GetGame().GetUIManager().ShowUICursor(
false);
809 GetGame().GetInput().ChangeGameFocus(1);
810 GetGame().GetUIManager().ShowUICursor(
true);
814 GetGame().GetInput().ResetGameFocus();
815 GetGame().GetUIManager().ShowUICursor(
false);
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
void ModifiersManager(PlayerBase player)
array< ref PlayerStatBase > Get()
void RegisterPlayerData()
enum PDS_SYSTEMS m_Bitmask
int m_DetailedModifierIndex
void SyncedValueAgent(string name, string value, int id)
void SyncedValueLevel(string name, float value, float value2)
static ref Param1< string > PARAM1_STRING
void OnRPCTemp(ParamsReadContext ctx, PlayerBase player)
ref array< ref SyncedValueAgent > m_PlayerAgentsSynced
ref map< PlayerBase, ref RegisterPlayerData > m_RegisteredPlayers
void SendRPCMods(PlayerBase player)
void OnRPCStomach(ParamsReadContext ctx)
int GetRPCModifierID(ParamsReadContext ctx)
void PluginDeveloperSync()
void SendRPCStats(PlayerBase player)
bool IsPlayerRegistered(PlayerBase player)
string m_PlayerModsDetailedSynced
bool m_StomachUpdateStatus
void OnRPCMods(ParamsReadContext ctx)
string m_EnvironmentDebugMessage
void OnRPCLevels(ParamsReadContext ctx)
bool m_AgentsUpdateStatus
void SendRPCLevels(PlayerBase player)
void DeactivateModifier(int id, PlayerBase player=NULL)
void OnRPCStats(ParamsReadContext ctx)
void SendRPCModsDetail(PlayerBase player)
void SendRPCStomach(PlayerBase player)
ref array< ref SyncedValue > m_PlayerStatsSynced
void SetSystemInBitmask(PlayerBase player, int system_bit, bool state)
void ActivateModifier(int id, PlayerBase player=NULL)
ref array< ref SyncedValueLevel > m_PlayerLevelsSynced
bool IsSetSystemInBitmask(PlayerBase player, int system_bit)
bool m_LevelsUpdateStatus
void RegisterPlayer(PlayerBase player)
void SendRPCAgents(PlayerBase player)
void OnRPCStatSet(ParamsReadContext ctx, PlayerBase player)
bool GetRPCUpdateState(ParamsReadContext ctx)
void OnRPC(PlayerBase player, int rpc_type, ParamsReadContext ctx)
ref array< ref SyncedValueModifier > m_PlayerModsSynced
void EnableUpdate(bool enable, int type, PlayerBase player)
void OnRPCAgents(ParamsReadContext ctx)
void LockModifier(int id, bool lock, PlayerBase player=NULL)
void RequestDetailedInfo(int id, notnull PlayerBase player)
void SendRPCTemp(PlayerBase player)
bool IsModifierLocked(int id, PlayerBase player=NULL)
ref array< ref Param > m_PlayerStomachSynced
void OnRPCModsDetailed(ParamsReadContext ctx)
void GetRPCModifierLock(ParamsReadContext ctx, out int id, out bool lock)
Serialization general interface. Serializer API works with:
proto native CGame GetGame()
static proto int AbsInt(int i)
Returns absolute value.