|
@@ -25,26 +25,32 @@ modded class PlayerBase extends ManBase
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- string path = "cfgVehicles";
|
|
|
|
- int childcount = GetGame().ConfigGetChildrenCount( path );
|
|
|
|
-
|
|
|
|
FPrintln( file, "| ClassName | DisplayNmae |" );
|
|
FPrintln( file, "| ClassName | DisplayNmae |" );
|
|
FPrintln( file, "| ----------- | ----------- |" );
|
|
FPrintln( file, "| ----------- | ----------- |" );
|
|
- for(int i = 0; i < childcount; i++)
|
|
|
|
|
|
+
|
|
|
|
+ string paths = "cfgVehicles";
|
|
|
|
+ ref TStringArray paths = {
|
|
|
|
+ "cfgVehicles", "cfgWeapons"
|
|
|
|
+ };
|
|
|
|
+ foreach( string path : paths )
|
|
{
|
|
{
|
|
- string itemname;
|
|
|
|
- GetGame().ConfigGetChildName( path, i, itemname );
|
|
|
|
- string chilepath = path + " " + itemname;
|
|
|
|
- int scope = GetGame().ConfigGetInt( chilepath + " scope" );
|
|
|
|
- if ( scope == 0 || scope == 1 )
|
|
|
|
- continue;
|
|
|
|
-
|
|
|
|
- string displayname;
|
|
|
|
- GetGame().ConfigGetText( chilepath + " displayname", displayname );
|
|
|
|
- if ( !displayname || displayname == "" || displayname.Contains( "$UNT$" ) )
|
|
|
|
- continue;
|
|
|
|
|
|
+ int childcount = GetGame().ConfigGetChildrenCount( path );
|
|
|
|
+ for(int i = 0; i < childcount; i++)
|
|
|
|
+ {
|
|
|
|
+ string itemname;
|
|
|
|
+ GetGame().ConfigGetChildName( path, i, itemname );
|
|
|
|
+ string chilepath = path + " " + itemname;
|
|
|
|
+ int scope = GetGame().ConfigGetInt( chilepath + " scope" );
|
|
|
|
+ if ( scope == 0 || scope == 1 )
|
|
|
|
+ continue;
|
|
|
|
+
|
|
|
|
+ string displayname;
|
|
|
|
+ GetGame().ConfigGetText( chilepath + " displayname", displayname );
|
|
|
|
+ if ( !displayname || displayname == "" || displayname.Contains( "$UNT$" ) )
|
|
|
|
+ continue;
|
|
|
|
|
|
- FPrintln( file, "| " + itemname + " | " + Widget.TranslateString( displayname ) + " |" );
|
|
|
|
|
|
+ FPrintln( file, "| " + itemname + " | " + Widget.TranslateString( displayname ) + " |" );
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
CloseFile( file );
|
|
CloseFile( file );
|