Skip to content
This repository was archived by the owner on Nov 3, 2022. It is now read-only.

Pawn Overlay

erdelf edited this page Nov 23, 2021 · 3 revisions

CompPawnOverlay is a comp class that allows you to add graphical overlays to any pawn, providing an easy way to add very, VERY low lag animations and effects. The overlays move with the pawn and can be made to have different facings.

   public List<GraphicData> graphicElements;

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag. For example, this code adds the graphical overlays to the Svarog in Bastyon

<li Class="AnimalBehaviours.CompProperties_PawnOverlay">
      <graphicElements>
             <!--========== Layer One Graphics ==========-->
             <li>
                 <texPath>Things/Special/Svarog/Layer1/East/East</texPath>
                 <graphicClass>Graphic_Multi</graphicClass>
                 <shaderType>TransparentPlant</shaderType>
                 <drawOffset>(0.00, 0.00, 0.00)</drawOffset>
                 <drawSize>3.00</drawSize>
             </li>
             <li>
                 <texPath>Things/Special/Svarog/Layer1/West/West</texPath>
                 <graphicClass>Graphic_Multi</graphicClass>
                 <shaderType>TransparentPlant</shaderType>
                 <drawOffset>(0.00, 0.00, 0.00)</drawOffset>
                 <drawSize>3.00</drawSize>
             </li>
             <li>
                 <texPath>Things/Special/Svarog/Layer1/South/South</texPath>
                 <graphicClass>Graphic_Multi</graphicClass>
                 <shaderType>TransparentPlant</shaderType>
                 <drawOffset>(0.00, 0.00, 0.00)</drawOffset>
                 <drawSize>3.00</drawSize>
             </li>
             <li>
                 <texPath>Things/Special/Svarog/Layer1/North/North</texPath>
                 <graphicClass>Graphic_Multi</graphicClass>
                 <shaderType>TransparentPlant</shaderType>
                 <drawOffset>(0.00, 0.00, 0.00)</drawOffset>
                 <drawSize>3.00</drawSize>
             </li>
             <!--========== Layer Two Graphics ==========-->
             <li>
                 <texPath>Things/Special/Svarog/Layer2/East/East</texPath>
                 <graphicClass>Graphic_Multi</graphicClass>
                 <shaderType>TransparentPlant</shaderType>
                 <drawOffset>(0.00, 0.00, 0.00)</drawOffset>
                 <drawSize>3.00</drawSize>
             </li>
             <li>
                 <texPath>Things/Special/Svarog/Layer2/West/West</texPath>
                 <graphicClass>Graphic_Multi</graphicClass>
                 <shaderType>TransparentPlant</shaderType>
                 <drawOffset>(0.00, 0.00, 0.00)</drawOffset>
                 <drawSize>3.00</drawSize>
             </li>
             <li>
                 <texPath>Things/Special/Svarog/Layer2/South/South</texPath>
                 <graphicClass>Graphic_Multi</graphicClass>
                 <shaderType>TransparentPlant</shaderType>
                 <drawOffset>(0.00, 0.00, 0.00)</drawOffset>
                 <drawSize>3.00</drawSize>
             </li>
             <li>
                 <texPath>Things/Special/Svarog/Layer2/North/North</texPath>
                 <graphicClass>Graphic_Multi</graphicClass>
                 <shaderType>TransparentPlant</shaderType>
                 <drawOffset>(0.00, 0.00, 0.00)</drawOffset>
                 <drawSize>3.00</drawSize>
             </li>
         </graphicElements>
     </li>
</comps>

VFE Core

General Comp classes

General DefModExtensions

Item Processor

PipeSystem

Custom Structure Generation

Multi Verb Combat Framework - MVCF

Animal Behaviours

Apparel

Cuisine

Furniture

Plants

Clone this wiki locally