

Log.Message( + " - PostSpawnSetup()" ) The MMS has just been moved or is spawned for the first time. SatelliteDishMatrix.SetTRS(base.DrawPos + Altitudes.AltIncVect, satelliteDishRotation.ToQuat(), satelliteDishScale) ScanRangeMatrix50.SetTRS(base.DrawPos + new Vector3(0f, 10f, 0f) + Altitudes.AltIncVect, (0f).ToQuat(), scanRangeScale50) ScanRangeMatrix40.SetTRS(base.DrawPos + new Vector3(0f, 10f, 0f) + Altitudes.AltIncVect, (0f).ToQuat(), scanRangeScale40) ScanRangeMatrix30.SetTRS(base.DrawPos + new Vector3(0f, 10f, 0f) + Altitudes.AltIncVect, (0f).ToQuat(), scanRangeScale30) ScanRangeMatrix20.SetTRS(base.DrawPos + new Vector3(0f, 10f, 0f) + Altitudes.AltIncVect, (0f).ToQuat(), scanRangeScale20) ScanRangeMatrix10.SetTRS(base.DrawPos + new Vector3(0f, 10f, 0f) + Altitudes.AltIncVect, (0f).ToQuat(), scanRangeScale10) The 10f offset on Y axis is mandatory to be over the fog of war. *foreach (ThingDef metallicDef in ((ThingDef_MobileMineralSonar)f).scannedThingDefs)

Disabled until I find a working example. Using custom ThingDef leads to "short hash" bug when loading a savegame. = Setup Work =ĭetectedDefList.Add(ThingDef.Named("MineableSteel")) ĭetectedDefList.Add(ThingDef.Named("MineableSilver")) ĭetectedDefList.Add(ThingDef.Named("MineableGold")) ĭetectedDefList.Add(ThingDef.Named("MineableUranium")) ĭetectedDefList.Add(ThingDef.Named("MineablePlasteel")) ĭetectedDefList.Add(ThingDef.Named("MineableComponents")) ĭetectedDefList.Add(ThingDef.Named("AncientCryptosleepCasket"))

Log.Error("Stargate definition not of type \"StargateThingDef\"") Log.Message("Setting FileLocationPrimary:" + FileLocationPrimary + " and FileLocationSecondary:" + FileLocationSecondary) Read in variables from the custom MyThingDefįileLocationPrimary = ((Enhanced_)def).FileLocationPrimary įileLocationSecondary = ((Enhanced_)def).FileLocationSecondary GraphicRequest requestInactive = new GraphicRequest(Type.GetType("Graphic_Single"), "Things/Buildings/Stargate",, new Vector2(3, 3), Color.white, Color.white) GraphicRequest requestActive = new GraphicRequest(Type.GetType("Graphic_Single"), "Things/Buildings/Stargate-Active",, new Vector2(3, 3), Color.white, Color.white) UI_POWER_DOWN = ContentFinder.Get("UI/PowerDown", true) UI_POWER_UP = ContentFinder.Get("UI/PowerUp", true) UI_GATE_OUT = ContentFinder.Get("UI/StargateGUI-Out", true)

UI_GATE_IN = ContentFinder.Get("UI/StargateGUI-In", true) UI_DROPPOD = ContentFinder.Get("UI/DEEP_STRIKE", true) UI_ADD_COLONIST = ContentFinder.Get("UI/ADD_COLONIST", true) UI_ADD_RESOURCES = ContentFinder.Get("UI/ADD_RESOURCES", true)
