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

◆ SetContaminatedEffectEx()

void ManBase::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 )
inlineprotected

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

6063 {
6064 if (enable) // enable
6065 {
6066 // We assume that if this is set to true the PPE is already active
6067 if (m_ContaminatedAreaEffectEnabled == enable)
6068 return;
6069
6070 if (aroundId !=0)
6071 {
6073 {
6074 m_ContaminatedAroundPlayer = ParticleManager.GetInstance().PlayInWorld(aroundId, GetPosition());
6075 }
6076 // First entry in an area with dynamic tweaks to particles
6077 if (partDynaUpdate)
6078 {
6079 m_ContaminatedAroundPlayer.SetParameter(0, EmitorParam.BIRTH_RATE, newBirthRate);
6080 }
6081 }
6082
6083 if (!m_ContaminatedAroundPlayerTiny && tinyId !=0)
6084 {
6085 m_ContaminatedAroundPlayerTiny = ParticleManager.GetInstance().PlayInWorld(tinyId, GetPosition());
6086 }
6087
6088 if (ppeIdx != -1)
6089 {
6090 PPERequesterBase ppeRequester;
6091 if (Class.CastTo(ppeRequester, PPERequesterBank.GetRequester(ppeIdx)))
6092 ppeRequester.Start();
6093 }
6094
6095 // We start playing the ambient sound
6096 if (!m_AmbientContamination && soundset != "")
6097 PlaySoundSetLoop(m_AmbientContamination, soundset, 0.1, 0.1);
6098
6099 SetSoundControllerOverride("contamination",1,SoundControllerAction.Overwrite);
6100 }
6101 else // disable
6102 {
6104 {
6107 }
6108
6110 {
6113 }
6114 if (ppeIdx != -1)
6115 PPERequesterBank.GetRequester(ppeIdx).Stop(new Param1<bool>(true)); //fade out
6116
6117 // We stop the ambient sound
6119 StopSoundSet(m_AmbientContamination);
6120
6121 SetSoundControllerOverride("contamination",0,SoundControllerAction.None);
6122 // We make sure to reset the state
6123 }
6125 }
void PPERequesterBase(int requester_IDX)
Определения PPERequestPlatformsBase.c:445
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Определения ParticleManager.c:88
static Particle m_ContaminatedAroundPlayerTiny
Определения PlayerBase.c:326
EffectSound m_AmbientContamination
Определения PlayerBase.c:207
bool m_ContaminatedAreaEffectEnabled
Определения PlayerBase.c:205
static Particle m_ContaminatedAroundPlayer
Определения PlayerBase.c:325
void Start(Param par=null)
Определения PPERequestPlatformsBase.c:38
EmitorParam
Определения EnVisual.c:114
SetSoundControllerOverride(string controllerName, float value, SoundControllerAction action)
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473

Перекрестные ссылки Class::CastTo(), GetPosition(), m_AmbientContamination, m_ContaminatedAreaEffectEnabled, m_ContaminatedAroundPlayer, m_ContaminatedAroundPlayerTiny, ParticleManager(), SetSoundControllerOverride() и PPERequesterBase::Start().

Используется в RemoveCurrentEffectTrigger(), RequestTriggerEffect(), SetContaminatedEffect() и ~PlayerBase().