DayZ 1.28
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:42
Определения EnMath.c:7
Определения BoneKnife.c:2
const float DEFUSE_TOOLS
Определения ActionConstants.c:155
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
Определения EnMath.c:54

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