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

◆ WeaponsInit()

void PluginDayzPlayerDebug_Weapons::WeaponsInit ( Weapon_Base w)
inlineprivate

select weapon abilities

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

295 {
296
297 m_Selector.ClearItems();
298
300 int abilityCount = w.GetAbilityCount();
301
302 for (int i = 0; i < abilityCount; ++i)
303 {
304 AbilityRecord rec = w.GetAbility(i);
305 int abConfigIndex = FindAbilityConfig(rec.m_action, rec.m_actionType);
306 if (abConfigIndex != -1)
307 {
309 }
310 }
311
312 m_Selector.AddItem("=========== All - not safe =========", NULL, 0);
313
314
315 // if (abilityCount == 0)
316 {
317 int l = m_AbilityConfig.Count();
318 for (int a = 0; a < l; a++)
319 {
321 }
322 }
323
324 m_CurrentWeapon = w;
325 }
int m_iAction
Определения PluginDayzPlayerDebug_Weapons.c:54
void PluginDayzPlayerWeaponsDebugUserData(int pAction, int pActionType)
Определения PluginDayzPlayerDebug_Weapons.c:36
string m_Name
Определения PluginDayzPlayerDebug_Weapons.c:42
int m_iActionT
Определения PluginDayzPlayerDebug_Weapons.c:55
int m_actionType
corresponds to Human::actions == RELOAD, MECHANISM, ...
Определения Weapon_Base.c:7
int m_action
Определения Weapon_Base.c:6
int FindAbilityConfig(int pAction, int pActionT)
ref array< ref PluginDayzPlayerDebug_AbilityConfig > m_AbilityConfig
Определения PluginDayzPlayerDebug_Weapons.c:86
TextListboxWidget m_Selector
Определения PluginDayzPlayerDebug_Weapons.c:56

Перекрестные ссылки FindAbilityConfig(), m_AbilityConfig, AbilityRecord::m_action, AbilityRecord::m_actionType, m_CurrentWeapon, m_iAction, m_iActionT, m_Name, m_Selector и PluginDayzPlayerWeaponsDebugUserData().

Используется в Tick().