Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
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
{
24
player.m_AgentPool.SetAgentCount(
eAgents
.CHEMICAL_POISON, 0);
25
}
26
27
}
28
};
AntiChemInjector
Definition:
anticheminjector.c:1
PlayerBase
Definition:
playerbaseclient.c:1
eAgents
eAgents
Definition:
eagents.c:2
AddAction
void AddAction(typename actionName)
Definition:
advancedcommunication.c:86
eModifiers
eModifiers
Definition:
emodifiers.c:1
ActionInjectSelf
Definition:
actioninjectself.c:1
ContaminationStage2Mdfr
Definition:
contamination2.c:1
ActionInjectTarget
Definition:
actioninjecttarget.c:1
Inventory_Base
Definition:
barbedbaseballbat.c:1
DAYZ
scripts_v1.24.157551
scripts
world
entities
itembase
gear
medical
anticheminjector.c
Generated by
1.8.17