DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnApply()

override void AntiChemInjector::OnApply ( PlayerBase player)
inlineprivate

См. определение в файле AntiChemInjector.c строка 11

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 }
eAgents
Определения EAgents.c:3
eModifiers
Определения eModifiers.c:2

Перекрестные ссылки ContaminationStage2Mdfr::AGENT_THRESHOLD_ACTIVATE.