Dayz Explorer
1.28.160049
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
{
24
player.m_AgentPool.SetAgentCount(
eAgents
.CHEMICAL_POISON, 0);
25
}
26
27
}
28
};
AddAction
void AddAction(typename actionName)
Definition
advancedcommunication.c:220
ActionInjectSelf
Definition
actioninjectself.c:2
ActionInjectTarget
Definition
actioninjecttarget.c:2
AntiChemInjector
Definition
anticheminjector.c:2
ContaminationStage2Mdfr
Definition
contamination2.c:2
Inventory_Base
Definition
barbedbaseballbat.c:2
PlayerBase
Definition
playerbaseclient.c:2
eAgents
eAgents
Definition
eagents.c:3
eModifiers
eModifiers
Definition
emodifiers.c:2
Daten
4_world
entities
itembase
gear
medical
anticheminjector.c
Generated by
1.12.0