DayZ 1.30
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 строка 789

790 {
791 //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)
792
794 return;
795 bool allow = false;
797 {
798 allow = true;
799 }
800 else if (trigger == m_CurrentEffectTrigger && forceUpdate)
801 {
802 allow = true;
803 //Print("ON Enabling effect FORCED " + trigger);
804 }
805 else if (trigger.GetEffectsPriority() > m_CurrentEffectTrigger.GetEffectsPriority())
806 {
808 allow = true;
809 }
810 if (allow)
811 {
812 /*
813 Print("--------------------------------------------------");
814 Print("ON Enabling effect " + trigger);
815 Print("------------> soundset " + soundset);
816 Print("--------------------------------------------------");
817 */
818 m_CurrentEffectTrigger = trigger;
819 SetContaminatedEffectEx( true, ppeIdx, aroundId, tinyId, soundset,partDynaUpdate, newBirthRate );
820 }
821 }
int GetEffectsPriority()
Определения EffectTrigger.c:55
void RemoveCurrentEffectTrigger()
Определения PlayerBase.c:824
EffectTrigger m_CurrentEffectTrigger
Определения PlayerBase.c:212
bool m_InsideEffectArea
Определения PlayerBase.c:210
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:6062

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