Skip to content

Extended Biosculpter Pod

juanosarg edited this page Jun 4, 2026 · 1 revision

<- Back

CompProperties_ExtendedBiosculpterPod extends the properties of the biosculpter pod building. Inherits from base game CompProperties_BiosculpterPod

        public ThingDef copyCyclesFrom = null;

        public bool drawPawn = true;
        public Rot4? pawnFacingDirectionOverride = null;

        public Vector3 pawnOffsetNorth = Vector3.zero;
        public Vector3 pawnOffsetSouth = Vector3.zero;
        public Vector3 pawnOffsetEast = Vector3.zero;
        public Vector3 pawnOffsetWest = Vector3.zero;

        public bool drawBackground = true;
        public Vector3 backgroundOffsetNorth = Vector3.zero;
        public Vector3 backgroundOffsetSouth = Vector3.zero;
        public Vector3 backgroundOffsetEast = Vector3.zero;
        public Vector3 backgroundOffsetWest = Vector3.zero;
        public Vector3 backgroundSize = Vector3.zero;
        public string backgroundMaterialPath = null;
        [Unsaved]
        public Material backgroundMaterial = null;

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag. For example here is the compact biosculpter pod in Vanilla Gravship Expanded:

<comps>
      <li Class="VEF.Buildings.CompProperties_ExtendedBiosculpterPod">
        <enterSound>BiosculpterPod_Enter</enterSound>
        <exitSound>BiosculpterPod_Exit</exitSound>
        <operatingEffecter>VGE_CompactBiosculpterPod_Operating</operatingEffecter>
        <readyEffecter>VGE_CompactBiosculpterPod_Ready</readyEffecter>
        <selectCycleColor>(0.321, 1, 0.349)</selectCycleColor>
        <biotunedCycleSpeedFactor>1.25</biotunedCycleSpeedFactor>

        <!-- Copy all biosculpter cycles from vanill BiosculpterPod def that we don't already have here (as in - no duplicate keys) -->
        <copyCyclesFrom>BiosculpterPod</copyCyclesFrom>
        <!-- In vanilla, (0.8 * drawSizeX, 1, 0.8 * drawSizeZ) -->
        <backgroundSize>(0.8, 1, 1.5)</backgroundSize>
        <backgroundOffsetNorth>(0, 0, 0.4)</backgroundOffsetNorth>
        <backgroundOffsetEast>(0.45, 0, 0.2)</backgroundOffsetEast>
        <backgroundOffsetWest>(-0.45, 0, 0.2)</backgroundOffsetWest>
        <!-- Offset of the pawn in the biosculpter pod -->
        <pawnOffsetNorth>(0, 0, 0.5)</pawnOffsetNorth>
        <pawnOffsetSouth>(0, 0, -0.2)</pawnOffsetSouth>
        <pawnOffsetEast>(0.5, 0, 0.1)</pawnOffsetEast>
        <pawnOffsetWest>(-0.4, 0, 0.1)</pawnOffsetWest>
      </li>
    
 </comps>

Clone this wiki locally