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

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)

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

74 {
75 LandMineTrap targetMine;
76 Class.CastTo(targetMine, action_data.m_Target.GetObject());
77
78 ToolBase tool;
79 Class.CastTo(tool, action_data.m_MainItem);
80
81 if (Math.RandomIntInclusive(0, 100) < tool.GetDisarmRate())
82 {
83 targetMine.Disarm();
84 }
85 else
86 {
87 targetMine.OnSteppedOn(action_data.m_Player);
88 }
89
90 MiscGameplayFunctions.DealAbsoluteDmg(action_data.m_MainItem, 2);
91 }
void LandMineTrap()
Определения Trap_LandMine.c:17
Super root of all classes in Enforce script.
Определения EnScript.c:11
Определения EnMath.c:7
Определения BoneKnife.c:2
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
Определения EnMath.c:54

Перекрестные ссылки ActionData, Class::CastTo(), LandMineTrap() и Math::RandomIntInclusive().