Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
influenzaagent.c
Go to the documentation of this file.
1 class InfluenzaAgent extends AgentBase
2 {
3  const float INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC = PlayerConstants.THRESHOLD_HEAT_COMFORT_MINUS_WARNING;
4 
5  override void Init()
6  {
7  m_Type = eAgents.INFLUENZA;
8  m_Invasibility = 0.33;
9  m_TransferabilityIn = 1;
10  m_TransferabilityOut = 1;
11  m_MaxCount = 1000;
12  m_Digestibility = 0.1;
13  m_AntibioticsResistance = 0;
14  m_AutoinfectProbability = CalculateAutoinfectProbability( 0.40 );
15  m_TransferabilityAirOut = 1;
16  m_Potency = EStatLevels.MEDIUM;
17  m_DieOffSpeed = 0.66;
18  }
19 
20  override bool CanAutoinfectPlayer(PlayerBase player)
21  {
22  if ( player.GetStatHeatComfort().Get() < INFLUENZA_AGENT_AUTOINFECT_THRESHOLD_HC )
23  {
24  return true;
25  }
26  else
27  {
28  return false;
29  }
30  }
31 }
m_Type
eBleedingSourceType m_Type
Definition: bleedingsource.c:25
PlayerBase
Definition: playerbaseclient.c:1
eAgents
eAgents
Definition: eagents.c:2
PlayerConstants
Definition: playerconstants.c:1
Init
class InventoryGridController extends ScriptedWidgetEventHandler Init
Definition: uihintpanel.c:46
AgentBase
Definition: brainagent.c:1
EStatLevels
EStatLevels
Definition: estatlevels.c:1