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

◆ RequestTriggerEffect()

void ManBase::RequestTriggerEffect ( EffectTrigger trigger,
int ppeIdx = -1,
int aroundId = ParticleList.CONTAMINATED_AREA_GAS_AROUND,
int tinyId = ParticleList.CONTAMINATED_AREA_GAS_TINY,
string soundset = "",
bool partDynaUpdate = false,
int newBirthRate = 0,
bool forceUpdate = false )
inlineprivate

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

759 {
760 //do note multiple triggers can be calling this method within a single frame depending on the contaminated area setup and dynamic gameplay events(such as gas grenades being deployed)
761
763 return;
764 bool allow = false;
766 {
767 allow = true;
768 }
769 else if (trigger == m_CurrentEffectTrigger && forceUpdate)
770 {
771 allow = true;
772 //Print("ON Enabling effect FORCED " + trigger);
773 }
774 else if (trigger.GetEffectsPriority() > m_CurrentEffectTrigger.GetEffectsPriority())
775 {
777 allow = true;
778 }
779 if (allow)
780 {
781 /*
782 Print("--------------------------------------------------");
783 Print("ON Enabling effect " + trigger);
784 Print("------------> soundset " + soundset);
785 Print("--------------------------------------------------");
786 */
787 m_CurrentEffectTrigger = trigger;
788 SetContaminatedEffectEx( true, ppeIdx, aroundId, tinyId, soundset,partDynaUpdate, newBirthRate );
789 }
790 }
int GetEffectsPriority()
Определения EffectTrigger.c:55
void RemoveCurrentEffectTrigger()
Определения PlayerBase.c:793
EffectTrigger m_CurrentEffectTrigger
Определения PlayerBase.c:213
bool m_InsideEffectArea
Определения PlayerBase.c:211
void SetContaminatedEffectEx(bool enable, int ppeIdx=-1, int aroundId=ParticleList.CONTAMINATED_AREA_GAS_AROUND, int tinyId=ParticleList.CONTAMINATED_AREA_GAS_TINY, string soundset="", bool partDynaUpdate=false, int newBirthRate=0)
Определения PlayerBase.c:5778

Перекрестные ссылки EffectTrigger::GetEffectsPriority(), m_CurrentEffectTrigger, m_InsideEffectArea, RemoveCurrentEffectTrigger() и SetContaminatedEffectEx().