So far I can't figure this out, I want the Scoreboard and a few other classes to access a config from my base mut so setup some things but so far I can only let it access the default values, and can't access values that are set via .ini
Here is a code example
Here is the var in the basemut
Here is the .ini file
Here is a code example
Code:
for(i=0;i<class'FMXBaseMut'.default.SteamIDs.Length;i++)
{
if( class'FMXBaseMut'.default.SteamIDs[i].ID == FPlayerRepInfo.SteamID )
V = Material(DynamicLoadObject(class'FMXBaseMut'.default.SteamIDs[i].MedalMaterial, class'Material', true));
}
Here is the var in the basemut
Code:
struct SteamIDStruct
{
var string ID;
var string MedalMaterial;
var Color VIPColor;
};
var globalconfig array<SteamIDStruct> SteamIDs;
Here is the .ini file
Code:
[TwistedSPerks.FMXBaseMut]
SteamIDs=(ID="76561197997881512",MedalMaterial="FMXBaseResources2.Icons.GeneralGrade4")
SteamIDs=(ID="76561198013017383",MedalMaterial="FMXBaseResources2.Icons.DeathCrest",VIPColor=(R=128,G=128,B=128))
SteamIDs=(ID="76561198001957275",MedalMaterial="FMXBaseResources2.Icons.KissSkye",VIPColor=(R=255,G=53,B=94))
SteamIDs=(ID="76561198042301766",MedalMaterial="FMXBaseResources2.Icons.Zeke")
SteamIDs=(ID="76561198054256896",MedalMaterial="FMXBaseResources2.Icons.VIPMedal",VIPColor=(R=136,G=0,B=137))
SteamIDs=(ID="76561198014930243",MedalMaterial="FMXBaseResources2.Icons.VIPMedal",VIPColor=(R=0,G=255,B=127))
SteamIDs=(ID="76561198067351667",MedalMaterial="FMXBaseResources2.Icons.VIPMedal",VIPColor=(R=255,G=111,B=255))
SteamIDs=(ID="76561198022550978",MedalMaterial="TwistedSPerks.Icons.PeeblesSniper",VIPColor=(R=0,G=99,B=213))