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

◆ QueueUpSecondarySymptomEx()

SymptomBase SymptomManager::QueueUpSecondarySymptomEx ( int symptom_id,
int uid = -1 )
inlineprivate

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

514 {
515 if ((GetSymptomCount(symptom_id) >= GetSymptomMaxCount(symptom_id)) && GetSymptomMaxCount(symptom_id) != -1)
516 return null;
517
518 if (m_AvailableSymptoms.Get(symptom_id).IsPrimary())
519 return null;
520
521 if (m_Player.IsUnconscious() && !m_AvailableSymptoms.Get(symptom_id).AllowInUnconscious())
522 return null;
523
524 SymptomBase Symptom = SpawnSymptom( symptom_id, uid);
525
526 m_SymptomQueueSecondary.Insert(Symptom);
527 return Symptom;
528 }
int GetSymptomCount(int symptom_id)
Определения StateManager.c:405
PlayerBase m_Player
Определения StateManager.c:49
int GetSymptomMaxCount(int symptom_id)
Определения StateManager.c:399
ref map< int, ref SymptomBase > m_AvailableSymptoms
Определения StateManager.c:50
ref array< ref SymptomBase > m_SymptomQueueSecondary
Определения StateManager.c:54
SymptomBase SpawnSymptom(int symptom_id, int uid=-1)
Определения StateManager.c:436

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

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