DayZ
1.24
Loading...
Searching...
No Matches
AntiChemInjector.c
Go to the documentation of this file.
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
player
.m_AgentPool.SetAgentCount(
eAgents
.CHEMICAL_POISON, 0);
24
25
}
26
};
AddAction
void AddAction(typename actionName)
Definition
AdvancedCommunication.c:212
eAgents
eAgents
Definition
EAgents.c:3
ActionInjectSelf
Definition
ActionInjectSelf.c:2
ActionInjectTarget
Definition
ActionInjectTarget.c:2
AntiChemInjector
Definition
AntiChemInjector.c:2
AntiChemInjector::SetActions
override void SetActions()
Definition
AntiChemInjector.c:3
AntiChemInjector::OnApply
override void OnApply(PlayerBase player)
Definition
AntiChemInjector.c:11
ContaminationStage2Mdfr
Definition
Contamination2.c:2
ContaminationStage2Mdfr::AGENT_THRESHOLD_ACTIVATE
static const int AGENT_THRESHOLD_ACTIVATE
Definition
Contamination2.c:3
Inventory_Base
Definition
BarbedBaseballBat.c:2
Param3
Definition
EntityAI.c:95
PlayerBase
Definition
PlayerBaseClient.c:2
eModifiers
eModifiers
Definition
eModifiers.c:2
scripts
4_World
Entities
ItemBase
Gear
Medical
AntiChemInjector.c
Generated by
1.10.0