Initialize map of damage zone display names for more optimized retrieval.
407 {
408 string path_base;
410 string component_name;
411
412 if ( IsWeapon() )
413 {
415 }
416 else if ( IsMagazine() )
417 {
419 }
420 else
421 {
423 }
424
425 path_base =
string.
Format(
"%1 %2 DamageSystem DamageZones", path_base,
GetType() );
426
427 if ( !
g_Game.ConfigIsExisting(path_base) )
428 {
430 g_Game.FormatRawConfigStringKeys(component_name);
432 }
433 else
434 {
436 GetDamageZones( zone_names );
437
438 for ( int i = 0; i < zone_names.Count(); i++ )
439 {
440 path =
string.
Format(
"%1 %2 displayName", path_base, zone_names[i] );
441
443 {
444 g_Game.FormatRawConfigStringKeys(component_name);
446 }
447 }
448 }
449 }
eBleedingSourceType GetType()
static string GetDisplayName(int liquid_type)
ref map< int, string > m_DamageDisplayNameMap
array< string > 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.