DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс WoundAgent
+ Граф наследования:WoundAgent:

Закрытые члены

override void Init ()
 
override float GetAntibioticsResistanceEx (PlayerBase player)
 
override bool GrowDuringMedicalDrugsAttack (EMedicalDrugsType drugType, PlayerBase player)
 

Закрытые статические данные

static const float RESISTANCE_STAGE_1 = 1
 
static const float RESISTANCE_STAGE_2 = 0.5
 

Подробное описание

Методы

◆ GetAntibioticsResistanceEx()

override float GetAntibioticsResistanceEx ( PlayerBase player)
inlineprivate
19 {
20 if (player.GetModifiersManager().IsModifierActive(eModifiers.MDF_WOUND_INFECTION1))
21 return RESISTANCE_STAGE_1;
22 else
23 return RESISTANCE_STAGE_2;
24 }
Definition EntityAI.c:95
static const float RESISTANCE_STAGE_2
Definition WoundAgent.c:4
static const float RESISTANCE_STAGE_1
Definition WoundAgent.c:3
eModifiers
Definition eModifiers.c:2

Перекрестные ссылки RESISTANCE_STAGE_1 и RESISTANCE_STAGE_2.

◆ GrowDuringMedicalDrugsAttack()

override bool GrowDuringMedicalDrugsAttack ( EMedicalDrugsType drugType,
PlayerBase player )
inlineprivate
27 {
28 if (drugType == EMedicalDrugsType.ANTIBIOTICS)
29 {
30 if (player.GetModifiersManager().IsModifierActive(eModifiers.MDF_WOUND_INFECTION1))
31 return true;
32 else
33 return false;
34 }
35
36 return super.GrowDuringMedicalDrugsAttack(drugType, player);
37 }
EMedicalDrugsType
Definition EMedicalDrugsType.c:2

◆ Init()

override void Init ( )
inlineprivate
7 {
8 m_Type = eAgents.WOUND_AGENT;
9 m_Invasibility = 0.208;//to reach 250 in 20 mins
12 m_AntibioticsResistance = 0.5;//override in a func. GetAntiboticsResistance()
13 m_MaxCount = 500;
14 m_Potency = EStatLevels.GREAT;
15 m_DieOffSpeed = 1;
16 }
eAgents
Definition EAgents.c:3
EStatLevels
Definition EStatLevels.c:2
float m_TransferabilityOut
Definition AgentBase.c:6
float m_TransferabilityIn
Definition AgentBase.c:5
int m_MaxCount
Definition AgentBase.c:8
float m_DieOffSpeed
Definition AgentBase.c:15
float m_Type
Definition AgentBase.c:3
float m_Invasibility
Definition AgentBase.c:4
EStatLevels m_Potency
Definition AgentBase.c:14
float m_AntibioticsResistance
Definition AgentBase.c:12

Перекрестные ссылки AgentBase::m_AntibioticsResistance, AgentBase::m_DieOffSpeed, AgentBase::m_Invasibility, AgentBase::m_MaxCount, AgentBase::m_Potency, AgentBase::m_TransferabilityIn, AgentBase::m_TransferabilityOut и AgentBase::m_Type.

Поля

◆ RESISTANCE_STAGE_1

const float RESISTANCE_STAGE_1 = 1
staticprivate

Используется в GetAntibioticsResistanceEx().

◆ RESISTANCE_STAGE_2

const float RESISTANCE_STAGE_2 = 0.5
staticprivate

Используется в GetAntibioticsResistanceEx().


Объявления и описания членов класса находятся в файле: