3 const int LIFETIME = 100;
5 PluginTransmissionAgents m_PluginTransmissionAgents = PluginTransmissionAgents.Cast(
GetPlugin(PluginTransmissionAgents));
6 float m_WoundAgentInvasibility;
18 override bool ActivateCondition(
PlayerBase player)
28 override string GetDebugText()
33 override string GetDebugTextSimple()
41 player.IncreaseHealingsCount();
47 player.DecreaseHealingsCount();
49 if(player.GetModifiersManager().IsModifierActive(
eModifiers.MDF_WOUND_INFECTION1))
51 player.m_AgentPool.AddAgent(
eAgents.WOUND_AGENT, -10000);
56 override bool DeactivateCondition(
PlayerBase player)
70 override void OnTick(
PlayerBase player,
float deltaT)
72 if(player.GetModifiersManager().IsModifierActive(
eModifiers.MDF_WOUND_INFECTION2))
74 player.m_AgentPool.AddAgent(
eAgents.WOUND_AGENT, -m_PluginTransmissionAgents.GetAgentInvasibility(
eAgents.WOUND_AGENT) * deltaT);
78 player.m_AgentPool.AddAgent(
eAgents.WOUND_AGENT, -m_PluginTransmissionAgents.GetAgentInvasibility(
eAgents.WOUND_AGENT) * 2 * deltaT);