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

◆ LoadParticleConfigOnOverheating()

void LoadParticleConfigOnOverheating ( int id)
private

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

383 {
386
387 if (!m_OnOverheatingEffect.Contains(id))
388 {
389 string config_to_search = "CfgVehicles";
390
391 if (IsInherited(Weapon))
392 config_to_search = "CfgWeapons";
393
394 string muzzle_owner_config = config_to_search + " " + GetType() + " ";
395 string config_OnOverheating_class = muzzle_owner_config + "Particles " + "OnOverheating ";
396
397 if (g_Game.ConfigIsExisting(config_OnOverheating_class))
398 {
399
400 m_ShotsToStartOverheating = g_Game.ConfigGetFloat(config_OnOverheating_class + "shotsToStartOverheating");
401
403 {
404 m_ShotsToStartOverheating = -1; // This prevents futher readings from config for future creations of this item
405 string error = "Error reading config " + GetType() + ">Particles>OnOverheating - Parameter shotsToStartOverheating is configured wrong or is missing! Its value must be 1 or higher!";
406 Error(error);
407 return;
408 }
409
410 m_OverheatingDecayInterval = g_Game.ConfigGetFloat(config_OnOverheating_class + "overheatingDecayInterval");
411 m_MaxOverheatingValue = g_Game.ConfigGetFloat(config_OnOverheating_class + "maxOverheatingValue");
412
413
414
415 int config_OnOverheating_subclass_count = g_Game.ConfigGetChildrenCount(config_OnOverheating_class);
417
418 for (int i = 0; i < config_OnOverheating_subclass_count; i++)
419 {
420 string particle_class = "";
421 g_Game.ConfigGetChildName(config_OnOverheating_class, i, particle_class);
422 string config_OnOverheating_entry = config_OnOverheating_class + particle_class;
423 int entry_type = g_Game.ConfigGetType(config_OnOverheating_entry);
424
425 if (entry_type == CT_CLASS)
426 {
427 WeaponParticlesOnOverheating WPOF = new WeaponParticlesOnOverheating(this, config_OnOverheating_entry);
428 WPOOH_array.Insert(WPOF);
429 }
430 }
431
432
433 m_OnOverheatingEffect.Insert(id, WPOOH_array);
434 }
435 }
436 }
eBleedingSourceType GetType()
DayZGame g_Game
Определения DayZGame.c:4074
int m_ShotsToStartOverheating
Определения ItemBase.c:101
int m_MaxOverheatingValue
Определения ItemBase.c:102
float m_OverheatingDecayInterval
Определения ItemBase.c:103
ref map< int, ref array< ref WeaponParticlesOnOverheating > > m_OnOverheatingEffect
Определения ItemBase.c:93
script counterpart to engine's class Weapon
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Определения Transport.c:70
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

Перекрестные ссылки Error(), g_Game, GetType(), m_MaxOverheatingValue, m_OnOverheatingEffect, m_OverheatingDecayInterval и m_ShotsToStartOverheating.

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