forked from RimWorld-CCL-Reborn/JecsTools
-
Notifications
You must be signed in to change notification settings - Fork 18
ProjectileExtension
Matthew Walls edited this page Oct 12, 2018
·
2 revisions
Allows for ranged weapons to be able to ignore walls or roofs when firing projectiles with this extension.
Modified gun on the left can shoot through walls.
Here is an XML example (parts have been removed with <...>s) of the Bats I use in the Rim of Madness - Vampire mod.
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<ThingDef ParentName="BaseBullet">
<defName>Test_Bullet</defName>
<label>magic bullet</label>
<graphicData>
<texPath>Things/Projectile/Bullet_Big</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<projectile>
<damageDef>Bullet</damageDef>
<damageAmountBase>25</damageAmountBase>
<stoppingPower>1.5</stoppingPower>
<speed>100</speed>
</projectile>
<modExtensions>
<li Class="JecsTools.ProjectileExtension">
<passesWalls>true</passesWalls>
</li>
</modExtensions>
</ThingDef>
</Defs>
Add Abilities to Characters
Add Abilities to Equipment
Add Genes to PawnKindDefs
Add Animations and Sounds
- CompAnimated
- CompAnimatedOver
- CompOverlays
- CompExtraSounds
- CompOversizedWeapon
- CompActivatableEffect
- CompLumbering
- CompDelayedSpawer
- CompToggleDef
Add Vehicles
Add Weapon / Armor / Health Effects
Add World Jobs
Misc