464 {
467
469 {
470 string config_to_search = "CfgVehicles";
471
472 if (IsInherited(Weapon))
473 config_to_search = "CfgWeapons";
474
475 string muzzle_owner_config = config_to_search +
" " +
GetType() +
" ";
476 string config_OnOverheating_class = muzzle_owner_config + "Particles " + "OnOverheating ";
477
478 if (
GetGame().ConfigIsExisting(config_OnOverheating_class))
479 {
480
482
484 {
486 string error =
"Error reading config " +
GetType() +
">Particles>OnOverheating - Parameter shotsToStartOverheating is configured wrong or is missing! Its value must be 1 or higher!";
488 return;
489 }
490
493
494
495
497 array<ref WeaponParticlesOnOverheating> WPOOH_array = new array<ref WeaponParticlesOnOverheating>;
498
499 for (int i = 0; i < config_OnOverheating_subclass_count; i++)
500 {
501 string particle_class = "";
503 string config_OnOverheating_entry = config_OnOverheating_class + particle_class;
505
506 if (entry_type == CT_CLASS)
507 {
508 WeaponParticlesOnOverheating WPOF = new WeaponParticlesOnOverheating(this, config_OnOverheating_entry);
509 WPOOH_array.Insert(WPOF);
510 }
511 }
512
513
515 }
516 }
517 }
eBleedingSourceType GetType()
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
proto native float ConfigGetFloat(string path)
Get float value from config on path.
proto native int ConfigGetType(string path)
Returns type of config value.
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
int m_MaxOverheatingValue
int m_ShotsToStartOverheating
float m_OverheatingDecayInterval
ref map< int, ref array< ref WeaponParticlesOnOverheating > > m_OnOverheatingEffect
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.