边缘世界 RimWorld

边缘世界 RimWorld

评价数不足
Projectile Offset Framework
   
奖励
收藏
已收藏
取消收藏
Mod, 1.3
文件大小
发表于
更新日期
332.435 KB
2022 年 7 月 26 日 上午 4:05
2022 年 7 月 26 日 上午 11:59
3 项改动说明 ( 查看 )

订阅以下载
Projectile Offset Framework

描述
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.