Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс Ammo_40mm_Smoke_ColorBase
+ Граф наследования:Ammo_40mm_Smoke_ColorBase:

Защищенные члены

void Ammo_40mm_Smoke_ColorBase ()
 
override void OnVariablesSynchronized ()
 
void Activate ()
 
override void EEKilled (Object killer)
 special behaviour - do not call super
 
override void EEDelete (EntityAI parent)
 
override bool CanPutInCargo (EntityAI parent)
 
override void OnActivatedByItem (notnull ItemBase item)
 

Защищенные данные

Particle m_ParticleSmoke
 
float m_ParticleLifetime
 
int m_ParticleId
 
bool m_Activated
 

Подробное описание

Конструктор(ы)

◆ Ammo_40mm_Smoke_ColorBase()

void Ammo_40mm_Smoke_ColorBase ( )
inlineprotected
261 {
262 RegisterNetSyncVariableBool("m_Activated");
263 }

Методы

◆ Activate()

void Activate ( )
inlineprotected
284 {
285 m_ParticleLifetime = GetGame().ConfigGetFloat(string.Format("CfgMagazines %1 particleLifeTime", GetType()));
286 m_Activated = true;
287 SetSynchDirty();
288
289 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(DeleteSafe, m_ParticleLifetime * 1000);
290 }
eBleedingSourceType GetType()
Definition BleedingSource.c:63
bool m_Activated
Definition AmmunitionPiles.c:258
float m_ParticleLifetime
Definition AmmunitionPiles.c:256
proto native CGame GetGame()
const int CALL_CATEGORY_SYSTEM
Definition tools.c:8

Перекрестные ссылки CALL_CATEGORY_SYSTEM, GetGame(), GetType(), m_Activated и m_ParticleLifetime.

Используется в OnActivatedByItem().

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI parent)
inlineprotected
312 {
313 return !m_Activated;
314 }

Перекрестные ссылки m_Activated.

◆ EEDelete()

override void EEDelete ( EntityAI parent)
inlineprotected
300 {
301 #ifndef SERVER
302 if (m_ParticleSmoke)
303 {
305 }
306 #endif
307
308 super.EEDelete(parent);
309 }
Particle m_ParticleSmoke
Definition AmmunitionPiles.c:255
Definition EntityAI.c:95
void Stop()
Legacy function for backwards compatibility with 1.14 and below.
Definition Particle.c:266

Перекрестные ссылки m_ParticleSmoke и Particle::Stop().

◆ EEKilled()

override void EEKilled ( Object killer)
inlineprotected

special behaviour - do not call super

294 {
295 //analytics (behaviour from EntityAI)
296 GetGame().GetAnalyticsServer().OnEntityKilled(killer, this);
297 }

Перекрестные ссылки GetGame().

◆ OnActivatedByItem()

override void OnActivatedByItem ( notnull ItemBase item)
inlineprotected
317 {
318 SetHealth("", "", 0.0);
319 Activate();
320 }
void Activate()
Definition AmmunitionPiles.c:283

Перекрестные ссылки Activate().

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
inlineprotected
266 {
267 super.OnVariablesSynchronized();
268
269 if (m_Activated)
270 {
271 #ifndef SERVER
272 string particleStrIdentifier = GetGame().ConfigGetTextOut(string.Format("CfgMagazines %1 particleStrIdentifier", GetType()));
274 if (m_ParticleId > 0)
275 {
276 m_ParticleSmoke = ParticleManager.GetInstance().PlayOnObject(m_ParticleId, this);
278 }
279 #endif
280 }
281 }
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Definition ParticleManager.c:84
int m_ParticleId
Definition AmmunitionPiles.c:257
void SetWiggle(float random_angle, float random_interval)
Makes the particle change direction by random_angle every random_interval seconds.
Definition Particle.c:765
Definition ParticleList.c:12
static int GetParticleIDByName(string name)
Returns particle's ID based on the filename (without .ptc suffix)
Definition ParticleList.c:415

Перекрестные ссылки GetGame(), ParticleList::GetParticleIDByName(), GetType(), m_Activated, m_ParticleId, m_ParticleSmoke, ParticleManager() и Particle::SetWiggle().

Поля

◆ m_Activated

bool m_Activated
protected

Используется в Activate(), CanPutInCargo() и OnVariablesSynchronized().

◆ m_ParticleId

int m_ParticleId
protected

Используется в OnVariablesSynchronized().

◆ m_ParticleLifetime

float m_ParticleLifetime
protected

Используется в Activate().

◆ m_ParticleSmoke

Particle m_ParticleSmoke
protected

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


Объявления и описания членов класса находятся в файле: