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

◆ OnHealthLevelChanged()

void DestructionEffectBase::OnHealthLevelChanged ( notnull EntityAI entity,
int oldLevel,
int newLevel,
string zone )
inlineprivate

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

56 {
57 m_Entity = entity;
58 Init();
59
60 if (GetGame().IsServer())
61 {
62 entity.SetTakeable(m_EntityIsTakeable);
63
64 if (oldLevel != -1 || entity.m_Initialized)
65 {
67 {
69 }
71 {
73 }
74 OnEntityDestroyedOneTimeServer(entity, oldLevel, zone);
75 }
77 }
78 #ifndef SERVER//client OR single
79 {
80 if (oldLevel != -1 || entity.m_Initialized)//one time
81 {
83
84 if (m_POneTime)
85 {
86 m_POneTime.SetOwner(this);
87 }
88
89 OnEntityDestroyedOneTimeClient(entity, oldLevel, zone);
90
91 m_Entity.PlaySoundSet(m_SOneTime, m_SoundSetOneTime, 0, 0 );
92 m_Entity.PlaySoundSetLoop(m_SPersistent, m_SoundSetPersistent, 0, 0 );
93 }
94 else//Persistent
95 {
97 m_Entity.PlaySoundSetLoop(m_SPersistent, m_SoundSetPersistent, 0, 0 );
98 }
99
101
102 if (m_PPersistent)
103 {
104 m_PPersistent.SetOwner(this);
105 }
106 }
107 #endif
108 }
override ScriptCallQueue GetCallQueue(int call_category)
Определения DayZGame.c:1187
void ReplaceEntityServer()
Определения DestructionEffectBase.c:110
EffectSound m_SPersistent
Определения DestructionEffectBase.c:14
ParticleSource m_PPersistent
Определения DestructionEffectBase.c:8
void OnEntityDestroyedPersistentClient(EntityAI entity, string zone)
ParticleSource PlayParticle(int particleType, bool attach=false)
Определения DestructionEffectBase.c:121
int m_ParticlePersistent
Определения DestructionEffectBase.c:11
string m_SoundSetOneTime
Определения DestructionEffectBase.c:16
ParticleSource m_POneTime
Определения DestructionEffectBase.c:7
void DealExplosionDamage()
Определения DestructionEffectBase.c:50
string m_SoundSetPersistent
Определения DestructionEffectBase.c:17
int m_ParticleOneTime
Определения DestructionEffectBase.c:10
string m_ReplaceWithEntity
Определения DestructionEffectBase.c:20
void OnEntityDestroyedOneTimeServer(EntityAI entity, int oldLevel, string zone)
EffectSound m_SOneTime
Определения DestructionEffectBase.c:13
EntityAI m_Entity
Определения DestructionEffectBase.c:3
void OnEntityDestroyedOneTimeClient(EntityAI entity, int oldLevel, string zone)
bool HasExplosionDamage()
Определения DestructionEffectBase.c:45
bool m_EntityIsTakeable
Определения DestructionEffectBase.c:5
void OnEntityDestroyedPersistentServer(EntityAI entity, string zone)
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto native CGame GetGame()
const int CALL_CATEGORY_SYSTEM
Определения tools.c:8

Перекрестные ссылки CALL_CATEGORY_SYSTEM, ScriptCallQueue::CallLater(), DealExplosionDamage(), CGame::GetCallQueue(), GetGame(), HasExplosionDamage(), Init(), m_Entity, m_EntityIsTakeable, m_ParticleOneTime, m_ParticlePersistent, m_POneTime, m_PPersistent, m_ReplaceDelay, m_ReplaceWithEntity, m_SOneTime, m_SoundSetOneTime, m_SoundSetPersistent, m_SPersistent, OnEntityDestroyedOneTimeClient(), OnEntityDestroyedOneTimeServer(), OnEntityDestroyedPersistentClient(), OnEntityDestroyedPersistentServer(), PlayParticle() и ReplaceEntityServer().