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

◆ OnAction()

override bool BroomBase::OnAction ( int action_id,
Man player,
ParamsReadContext ctx )
inlineprivate

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

105 {
106 if (super.OnAction(action_id, player, ctx))
107 return true;
108 if (GetGame().IsServer() || !GetGame().IsMultiplayer())
109 {
110 if (action_id == EActions.BROOM_BURN_VERY_SHORT)
111 {
113 OnIgnitedThis(null);
114 }
115 else if (action_id == EActions.BROOM_BURN_SHORT)
116 {
118 OnIgnitedThis(null);
119 }
120 else if (action_id == EActions.BROOM_BURN_MEDIUM)
121 {
123 OnIgnitedThis(null);
124 }
125 else if (action_id == EActions.BROOM_BURN_LONG)
126 {
127 DebugSetHealthAndEnergy(GetCompEM().GetEnergyMaxPristine());
128 OnIgnitedThis(null);
129 }
130 }
131 return false;
132 }
EActions
Определения EActions.c:2
void DebugSetHealthAndEnergy(float time)
Определения Broom.c:85
override void OnIgnitedThis(EntityAI fire_source)
Определения Torch.c:197
proto native CGame GetGame()

Перекрестные ссылки DebugSetHealthAndEnergy(), GetGame() и FlammableBase::OnIgnitedThis().