RimWorld

RimWorld

Not enough ratings
Projectile Offset Framework
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3
File Size
Posted
Updated
332.435 KB
26 Jul, 2022 @ 4:05am
26 Jul, 2022 @ 11:59am
3 Change Notes ( view )

Subscribe to download
Projectile Offset Framework

Description
For use by modders.

Allows turrets to shoot projectiles from multiple different positions, as though they had several barrels.

To use, add the following node to your Turret ThingDef's comps node:
<li Class="ProjectileOffset.CompProperties_ProjectileOffset"> <offsets> <li>(-1,0,0.5)</li> <li>(0,0,1)</li> <li>(1,0,0.5)</li> </offsets> </li>
Where 'offsets' is a list of Vector3s that define the position of a barrel relative to the Turret itself.

(0, 0, 0) is the middle of the turret.
The x value defines the vertical offset, where a negative value pushes the offset upwards on the gun sprite, and a positive value downwards.
The z value defines the horizontal offset, where a positive value pushes the offset towards the right on the gun sprite, and a positive value towards the left.