Initialize map of damage zone display names for more optimized retrieval.
393 {
394 string path_base;
396 string component_name;
397
398 if ( IsWeapon() )
399 {
401 }
402 else if ( IsMagazine() )
403 {
405 }
406 else
407 {
409 }
410
411 path_base =
string.
Format(
"%1 %2 DamageSystem DamageZones", path_base,
GetType() );
412
413 if ( !
g_Game.ConfigIsExisting(path_base) )
414 {
416 g_Game.FormatRawConfigStringKeys(component_name);
418 }
419 else
420 {
422 GetDamageZones( zone_names );
423
424 for ( int i = 0; i < zone_names.Count(); i++ )
425 {
426 path =
string.
Format(
"%1 %2 displayName", path_base, zone_names[i] );
427
429 {
430 g_Game.FormatRawConfigStringKeys(component_name);
432 }
433 }
434 }
435 }
eBleedingSourceType GetType()
static string GetDisplayName(int liquid_type)
ref map< int, string > m_DamageDisplayNameMap
class array< Class T > TStringArray
static proto string Format(string fmt, 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)
Gets n-th character from string.