NQualityOfLife.Weapons.GunGraphic - Niilo007/RimWorld-NQoL GitHub Wiki

GunGraphic

Related:


XML

<ThingDef>
    <graphicData>
        <graphicClass>NQualityOfLife.Weapons.GunGraphic</graphicClass>
    </graphicData>
</ThingDef>

Usage


Errors

The below error is given if the bipodGraphic is given, but the weapon def doesn't have the NQualityOfLife.Weapons.GunGraphic graphicClass.

Config error in NMS_Gun_MG34_B: 'NQualityOfLife.Weapons.Comps.WeaponComp_Properties' - 'NMS_Gun_MG34_B' - 'bipodGraphic' requires the weapon to use: 'NQualityOfLife.Weapons.GunGraphic' currently has: 'Verse.Graphic_Single'


Examples

Used In Example:

<ThingDef Name="Base_NMS_Gun" ParentName="BaseHumanMakeableGun" Abstract="true">
    <graphicData>
        <graphicClass>NQualityOfLife.Weapons.GunGraphic</graphicClass>
    </graphicData>
    <soundInteract>Interact_Rifle</soundInteract>
    <weaponClasses>
        <li>Ranged</li>
    </weaponClasses>
    <tradeTags>
        <li>WeaponRanged</li>
    </tradeTags>
    <weaponTags>
        <li>Gun</li>
    </weaponTags>
</ThingDef>

⚠️ **GitHub.com Fallback** ⚠️