DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
AntiChemInjector.c
См. документацию.
1
class
AntiChemInjector
:
Inventory_Base
2
{
3
override
void
SetActions
()
4
{
5
super.SetActions();
6
7
AddAction
(
ActionInjectTarget
);
8
AddAction
(
ActionInjectSelf
);
9
}
10
11
override
void
OnApply
(
PlayerBase
player)
12
{
13
if
(!player)
14
return
;
15
player.GiveShock(100);
16
bool
in_cont_stage3 = player.GetModifiersManager().IsModifierActive(
eModifiers
.MDF_CONTAMINATION3);
17
18
if
( in_cont_stage3 )
19
{
20
player.m_AgentPool.SetAgentCount(
eAgents
.CHEMICAL_POISON,
ContaminationStage2Mdfr
.
AGENT_THRESHOLD_ACTIVATE
);
//set the agent count to be the same as at the benigning of stage 2
21
}
22
else
23
{
24
player.m_AgentPool.SetAgentCount(
eAgents
.CHEMICAL_POISON, 0);
25
}
26
27
}
28
};
AddAction
void AddAction(typename actionName)
Определения
AdvancedCommunication.c:220
eAgents
eAgents
Определения
EAgents.c:3
ActionInjectSelf
Определения
ActionInjectSelf.c:2
ActionInjectTarget
Определения
ActionInjectTarget.c:2
AntiChemInjector::SetActions
override void SetActions()
Определения
AntiChemInjector.c:3
AntiChemInjector::OnApply
override void OnApply(PlayerBase player)
Определения
AntiChemInjector.c:11
AntiChemInjector
Определения
AntiChemInjector.c:2
ContaminationStage2Mdfr::AGENT_THRESHOLD_ACTIVATE
static const int AGENT_THRESHOLD_ACTIVATE
Определения
Contamination2.c:3
ContaminationStage2Mdfr
Определения
Contamination2.c:2
Inventory_Base
Определения
BarbedBaseballBat.c:2
PlayerBase
Определения
PlayerBaseClient.c:2
eModifiers
eModifiers
Определения
eModifiers.c:2
Ishodniki
scripts
4_World
Entities
ItemBase
Gear
Medical
AntiChemInjector.c
Создано системой
1.13.2