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

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)

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

62 {
63 ExplosivesBase explosive = ExplosivesBase.Cast(action_data.m_Target.GetObject());
64 ToolBase tool = ToolBase.Cast(action_data.m_MainItem);
65
66 if (Math.RandomIntInclusive(0, 100) < tool.GetDisarmRate())
67 {
68 explosive.OnBeforeDisarm();
69 explosive.Disarm(true);
70 }
71 else
72 {
73 explosive.SetHealth("", "", 0.0);
74 }
75
76 MiscGameplayFunctions.DealAbsoluteDmg(action_data.m_MainItem, UADamageApplied.DEFUSE_TOOLS);
77 }
void ExplosivesBase()
Определения ExplosivesBase.c:45
ref ActionTarget m_Target
Определения ActionBase.c:39
ItemBase m_MainItem
Определения ActionBase.c:35
Определения EnMath.c:7
Определения Akinaka.c:2
const float DEFUSE_TOOLS
Определения ActionConstants.c:158
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
Определения EnMath.c:54

Перекрестные ссылки UADamageApplied::DEFUSE_TOOLS, ExplosivesBase(), ActionData::m_MainItem, ActionData::m_Target и Math::RandomIntInclusive().