![]() |
Dayz Explorer 1.28.160049
|
Keeps track of agents and their simulation. More...
Protected Member Functions | |
| void | PlayerAgentPool (PlayerBase player) |
| int | GetStorageVersion () |
| void | ImmuneSystemTick (float value, float deltaT) |
| Agent pool simulation entry point. | |
| void | GrowAgents (float deltaT) |
| Agent's growth/death simulation. | |
| void | ProcessTemporaryResistance (float deltaTime) |
| Temporary resistance simulation. | |
| void | OnStoreSave (ParamsWriteContext ctx) |
| bool | OnStoreLoad (ParamsReadContext ctx, int version) |
| void | DigestAgent (int agent_id, float count) |
| Digest (add) agent from food/drink in PlayerStomach into Agent Pool. | |
| void | AddAgent (int agent_id, float count) |
| Add agent into Agent Pool. | |
| void | RemoveAgent (int agent_id) |
| Remove agent from Agent Pool. | |
| void | RemoveAllAgents () |
| Remove all agents from Agent Pool. | |
| void | ReduceAgent (int id, float percent) |
| Reduce count of specified agent by a given percentage from Agent Pool. | |
| int | GetAgents () |
| Reduce bitmask of currently active agents. | |
| int | GetSingleAgentCount (int agent_id) |
| Number of agents of specified id. | |
| float | GetTotalAgentCount () |
| Total number of agents active. | |
| void | SpawnAgents (float deltaT) |
| Autoinfection mechanism for agents with that attribute enabled. | |
| void | SetAgentCount (int agent_id, float count) |
| Directly set the count of agents for give id in pool. | |
| void | AntibioticsAttack (float attack_value) |
| Antibiotics treatment agains agents which are not resistent to it (see agent attributes) | |
| void | DrugsAttack (EMedicalDrugsType drugType, float attackValue) |
| Drugs treatment logic. | |
| void | SetTemporaryResistance (int agentId, float time) |
| Sets temporary resistance time against specified agent contraction. | |
| float | GetTemporaryResistance (int agentId) |
| Returns remaining temporary resistance time for specified agent. | |
Protected Attributes | |
| ref map< int, float > | m_AgentTemporaryResistance |
| PluginTransmissionAgents | m_PluginTransmissionAgents = PluginTransmissionAgents.Cast(GetPlugin(PluginTransmissionAgents)) |
Keeps track of agents and their simulation.
Definition at line 8 of file playeragentpool.c.
|
protected |
Definition at line 23 of file playeragentpool.c.
Add agent into Agent Pool.
| agent_id | Id of agent (see eAgents enum) |
| count | Amount of agents to add |
Definition at line 187 of file playeragentpool.c.
|
protected |
Antibiotics treatment agains agents which are not resistent to it (see agent attributes)
| attack_value | Strength of the anitibiotics attack |
Definition at line 323 of file playeragentpool.c.
Digest (add) agent from food/drink in PlayerStomach into Agent Pool.
| agent_id | Id of agent (see eAgents enum) |
| count | Amount of agents to add |
Definition at line 177 of file playeragentpool.c.
|
protected |
Drugs treatment logic.
| drugType | Type of drug used (see EMedicalDrugsType enum) |
| attack_value | Strength of the drug attack |
Definition at line 341 of file playeragentpool.c.
|
protected |
Reduce bitmask of currently active agents.
Definition at line 244 of file playeragentpool.c.
Number of agents of specified id.
| agent_id | Id of agent to add into pool (see eAgents) |
Definition at line 254 of file playeragentpool.c.
|
protected |
Definition at line 32 of file playeragentpool.c.
Returns remaining temporary resistance time for specified agent.
param agent_id Id of agent to add into pool (see eAgents)
Definition at line 374 of file playeragentpool.c.
|
protected |
Total number of agents active.
Definition at line 266 of file playeragentpool.c.
|
protected |
Agent's growth/death simulation.
| deltaT | tick |
Definition at line 55 of file playeragentpool.c.
Agent pool simulation entry point.
| value | Immunity value (deprecated, used in previous versions) |
| deltaT | tick |
Definition at line 42 of file playeragentpool.c.
|
protected |
Definition at line 133 of file playeragentpool.c.
|
protected |
Definition at line 121 of file playeragentpool.c.
|
protected |
Temporary resistance simulation.
Definition at line 105 of file playeragentpool.c.
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 |
Definition at line 231 of file playeragentpool.c.
|
protected |
Remove agent from Agent Pool.
| agent_id | Id of agent (see eAgents enum) |
Definition at line 209 of file playeragentpool.c.
|
protected |
Remove all agents from Agent Pool.
| agent_id | Id of agent (see eAgents enum) |
Definition at line 218 of file playeragentpool.c.
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 |
Definition at line 297 of file playeragentpool.c.
Sets 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 |
Definition at line 364 of file playeragentpool.c.
|
protected |
Autoinfection mechanism for agents with that attribute enabled.
| deltaT | tick |
Definition at line 279 of file playeragentpool.c.
Definition at line 19 of file playeragentpool.c.
|
protected |
Definition at line 21 of file playeragentpool.c.