564 {
569
570 array<string> attachments_slots = new array<string>;
571 int i = 0;
572 for ( int s = 0; s < searching_in.Count(); ++s )
573 {
574 string cfg_name = searching_in.Get( s );
575 string path = cfg_name +
" " + e.GetType();
576
578 {
580 if ( e.IsWeapon() && (!e.ConfigIsExisting("DisplayMagazine") || e.ConfigGetBool("DisplayMagazine")) )
581 {
582 attachments_slots.Insert( "magazine" );
583 }
584
585 return attachments_slots;
586 }
587 }
588 if ( e.IsWeapon() && (!e.ConfigIsExisting("DisplayMagazine") || e.ConfigGetBool("DisplayMagazine")) )
589 {
590 attachments_slots.Insert( "magazine" );
591 }
592
593 return attachments_slots;
594 }
proto native void ConfigGetTextArray(string path, out TStringArray values)
Get array of strings from config on path.
proto native CGame GetGame()
array< string > TStringArray