class PlayerAgentPoolSource
Keeps track of agents and their simulation - adding/reducing of agents - autoinfection - temporary resistance for agents - reaction on drugs
Constructors 1
void PlayerAgentPool(PlayerBase player)Constants 1
const int STORAGE_VERSION = 137Members 8
int m_AgentMaskfloat m_LastTickedfloat m_TotalAgentCountPlayerBase m_PlayerShow 4 more
, GrowAgents(), PlayerAgentPool(), SetAgentCount(), and SpawnAgents()Show 7 more
, GetSingleAgentCount(), GetTotalAgentCount(), GrowAgents(), PlayerAgentPool(), PrintAgents(), RemoveAllAgents(), and SetAgentCount()Show 2 more
, ResetTemporaryResistance(), and SetTemporaryResistance()PluginTransmissionAgents m_PluginTransmissionAgents = PluginTransmissionAgents.Cast(GetPlugin(PluginTransmissionAgents))Show 7 more
, DrugsAttack(), GetDebugObject(), GrowAgents(), OnStoreLoad(), OnStoreSave(), RemoteGrowRequestDebug(), and SpawnAgents()Methods 25
int GetStorageVersion()Agent pool simulation entry point
value- Immunity value (deprecated, used in previous versions)
deltaT- tick
void GrowAgents(float deltaT)Agent's growth/death simulation - based on the potency, invasibility - takes into account the temporary resistance
deltaT- tick
Show 16 more
, PluginTransmissionAgents.GetAgentDieOffSpeedEx(), PluginTransmissionAgents.GetAgentInvasibilityEx(), PluginTransmissionAgents.GetAgentMaxCount(), PluginTransmissionAgents.GetAgentPotencyEx(), PlayerBase.GetImmunityLevel(), map.GetKey(), GetTemporaryResistance(), PluginTransmissionAgents.GrowDuringMedicalDrugsAttack(), PlayerBase.IsAntibioticsActive(), PlayerBase.IsChelationActive(), IsPluginManagerExists(), SetAgentCount(), m_Player, m_PluginTransmissionAgents, m_TotalAgentCount, and m_VirusPoolprotected void ProcessTemporaryResistance(float deltaTime)Temporary resistance simulation
void OnStoreSave(ParamsWriteContext ctx)Show 4 more
, GetSingleAgentCount(), GetTemporaryResistance(), Serializer.Write(), and m_PluginTransmissionAgentsbool OnStoreLoad(ParamsReadContext ctx, int version)Show 3 more
, SetAgentCount(), SetTemporaryResistance(), and m_PluginTransmissionAgentsDigest (add) agent from food/drink in PlayerStomach into Agent Pool
agent_id- Id of agent (see eAgents enum)
count- Amount of agents to add
Show 1 more
, m_PluginTransmissionAgentsAdd agent into Agent Pool
agent_id- Id of agent (see eAgents enum)
count- Amount of agents to add
Show 4 more
, GetTemporaryResistance(), SetAgentCount(), m_PluginTransmissionAgents, and m_VirusPoolvoid RemoveAgent(int agent_id)Remove agent from Agent Pool
agent_id- Id of agent (see eAgents enum)
void RemoveAllAgents()Remove all agents from Agent Pool
agent_id- Id of agent (see eAgents enum)
Show 1 more
, PlayerBase.ResetPlayer()Reduce count of specified agent by a given percentage from Agent Pool
agent_id- Id of agent (see eAgents enum)
percent- How many percents of the agents should be reduced
int GetAgents()Reduce bitmask of currently active agents
Number of agents of specified id
agent_id- Id of agent to add into pool (see eAgents)
Returns: Count of agents specified in param
float GetTotalAgentCount()Total number of agents active
Returns: Agents count
void SpawnAgents(float deltaT)Autoinfection mechanism for agents with that attribute enabled
deltaT- tick
Directly set the count of agents for give id in pool
agent_id- Id of agent to add into pool (see eAgents)
count- Number of agents to be set
Show 4 more
, m_AgentMask, PlayerBase.m_Agents, m_Player, and m_VirusPoolShow 5 more
, DrugsAttack(), GrowAgents(), OnStoreLoad(), ReduceAgent(), and RemoveAgent()void AntibioticsAttack(float attack_value)Antibiotics treatment agains agents which are not resistent to it (see agent attributes)
attack_value- Strength of the anitibiotics attack
void AntibioticsAttackEx(float attack_value, EMedicalDrugsType drugType)Show 5 more
, map.GetKey(), SetAgentCount(), m_Player, m_PluginTransmissionAgents, and m_VirusPoolvoid DrugsAttack(EMedicalDrugsType drugType, float attackValue)Drugs attack calculation
drugType- Type of drug used (see EMedicalDrugsType enum)
attackValue- Strength of the drug attack
Show 5 more
, map.GetKey(), SetAgentCount(), m_Player, m_PluginTransmissionAgents, and m_VirusPoolSets temporary resistance time against specified agent contraction
- @param agent_id Id of agent to add into pool (see eAgents)
time- Length of resistance in seconds
Show 1 more
, PlayerBase.SetTemporaryResistanceToAgent()Returns remaining temporary resistance time for specified agent
- @param agent_id Id of agent to add into pool (see eAgents)
Returns: time in seconds
private void ResetTemporaryResistance()Resets temporary resistance for all agents (internal usage only)
void RemoteGrowRequestDebug(ParamsReadContext ctx)Show 3 more
, Serializer.Read(), m_PluginTransmissionAgents, and CachedObjectsParams.PARAM1_INTvoid PrintAgents()