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

◆ QueueUpSecondarySymptomEx()

SymptomBase QueueUpSecondarySymptomEx ( int symptom_id,
int uid = -1 )

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

575 {
576 if ((GetSymptomCount(symptom_id) >= GetSymptomMaxCount(symptom_id)) && GetSymptomMaxCount(symptom_id) != -1)
577 return null;
578
579 if (m_AvailableSymptoms.Get(symptom_id).IsPrimary())
580 return null;
581
582 if (m_Player.IsUnconscious() && !m_AvailableSymptoms.Get(symptom_id).AllowInUnconscious())
583 return null;
584
585 SymptomBase symptom = SpawnSymptom(symptom_id, uid);
586
587 m_SymptomQueueSecondary.Insert(symptom);
588 return symptom;
589 }
DayZPlayer m_Player
Определения Hand_Events.c:42
ref array< ref SymptomBase > m_SymptomQueueSecondary
Определения StateManager.c:111
SymptomBase SpawnSymptom(int symptom_id, int uid=-1)
Определения StateManager.c:496
int GetSymptomCount(int symptom_id)
Определения StateManager.c:465
int GetSymptomMaxCount(int symptom_id)
Определения StateManager.c:459
ref map< int, ref SymptomBase > m_AvailableSymptoms
Определения StateManager.c:107
Определения StateBase.c:2

Перекрестные ссылки GetSymptomCount(), GetSymptomMaxCount(), m_AvailableSymptoms, m_Player, m_SymptomQueueSecondary и SpawnSymptom().

Используется в OnTick() и QueueUpSecondarySymptom().