65 if( agent_potency <= immunity_level )
68 if (
m_Player.IsAntibioticsActive() && !grow_during_antibiotics)
71 grow_delta = invasibility * deltaT;
76 grow_delta = -dieoff_speed * deltaT;
83 float new_count = old_count + grow_delta;
84 new_count =
Math.
Clamp(new_count, 0,max_count);
115 for(
int i = 0; i < count;i++)
150 float new_value =
m_VirusPool.Get(agent_id) + count;
217 for(
int i = 0; i < count;i++)
220 int agent_id = agent.GetAgentType();
257 float delta = attack_value * antibiotics_resistance;
259 float new_count = old_count - delta;
287 for(
int i = 0; i < count;i++)
290 string agent_name = agent.GetName();
291 int agent_id = agent.GetAgentType();
294 object_out.Insert(
new Param3<string,string, int>(agent_name, amount, agent_id) );
296 object_out.InsertAt(
new Param1<int>(count) ,0);
PluginBase GetPlugin(typename plugin_type)
bool IsPluginManagerExists()
static ref Param1< int > PARAM1_INT
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
void SetAgentCount(int agent_id, float count)
void RemoveAgent(int agent_id)
const int STORAGE_VERSION
void SpawnAgents(float deltaT)
ref array< int > m_VirusPoolArray
void AddAgent(int agent_id, float count)
void ImmuneSystemTick(float value, float deltaT)
void RemoteGrowRequestDebug(ParamsReadContext ctx)
void DigestAgent(int agent_id, float count)
void AntibioticsAttack(float attack_value)
void GrowAgents(float deltaT)
bool OnStoreLoad(ParamsReadContext ctx, int version)
PluginTransmissionAgents m_PluginTransmissionAgents
void PlayerAgentPool(PlayerBase player)
void OnStoreSave(ParamsWriteContext ctx)
int GetSingleAgentCount(int agent_id)
void GetDebugObject(array< ref Param > object_out)
float GetTotalAgentCount()
ref map< int, float > m_VirusPool
Serialization general interface. Serializer API works with:
proto bool Write(void value_out)
proto bool Read(void value_in)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static proto int AbsInt(int i)
Returns absolute value.