565 {
570
571 array<string> attachments_slots = new array<string>;
572 int i = 0;
573 for ( int s = 0; s < searching_in.Count(); ++s )
574 {
575 string cfg_name = searching_in.Get( s );
576 string path = cfg_name +
" " + e.GetType();
577
579 {
580 g_Game.ConfigGetTextArray(
path +
" attachments", attachments_slots );
581 if ( e.IsWeapon() && (!e.ConfigIsExisting("DisplayMagazine") || e.ConfigGetBool("DisplayMagazine")) )
582 {
583 attachments_slots.Insert( "magazine" );
584 }
585
586 return attachments_slots;
587 }
588 }
589 if ( e.IsWeapon() && (!e.ConfigIsExisting("DisplayMagazine") || e.ConfigGetBool("DisplayMagazine")) )
590 {
591 attachments_slots.Insert( "magazine" );
592 }
593
594 return attachments_slots;
595 }
proto int Insert(T value)
class array< Class T > TStringArray