DayZ 1.24
Loading...
Searching...
No Matches
AntiChemInjector.c
Go to the documentation of this file.
2{
3 override void SetActions()
4 {
5 super.SetActions();
6
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
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};
void AddAction(typename actionName)
eAgents
Definition EAgents.c:3
override void SetActions()
override void OnApply(PlayerBase player)
static const int AGENT_THRESHOLD_ACTIVATE
eModifiers
Definition eModifiers.c:2