边缘世界 RimWorld

边缘世界 RimWorld

评价数不足
Based Turrets
   
奖励
收藏
已收藏
取消收藏
Mod, 1.6
文件大小
发表于
更新日期
390.841 KB
7 月 11 日 上午 7:28
8 月 2 日 上午 7:04
8 项改动说明 ( 查看 )

订阅以下载
Based Turrets

描述
An alternative to Misc turret bases.

Platforms
Adds 2 constructable turret platforms that can be equipped with any ranged weapon!

Light platform
A variant of the mini-turret.
Currently platforms can mount guns equal or less to their mass.
  • 70 steel + 30 metallic
  • Base mass of 8 kg
  • 120% cooldown time

Heavy platform
A variant of the auto-cannon turret
  • 300 steel, 40 plasteel + 50 metallic
  • Base mass of 100 kg
  • 100% cooldown time

By default mounted guns will take damage when used by a turret until it is too damaged to continue shooting and will need replacement. However the amount of bursts a gun can shoot before needing replacement can be configured in

Options
  • Weapon degredation: As the gun is used, it degrades and will eventually need replacing.
  • Bursts to destroy: how many bursts a weapon can fire before it breaks.
  • Allow biocoded weapons: Should biocoded guns be allowed on turrets.

Extensibility
An example xml patch is included showing how to override the texture used for individual weapons when mounted.

Technical explanation (aka: How to add new platforms)
Because a turret in Rimworld cannot exist without a gun, each platform is defined by 2 TurretBaseDef, the Platform and the Turret version. ThingClass "Building_TurretBase" and "Building_MountedTurret" respectively.
Each part of this duo then further have a "relatedTurretDef" member referencing each other.

Only the platform is buildable, and when provided a weapon, it will replace itself with the turret def referenced by the "relatedTurretDef" member assigned the provided weapon. And then reverse happens when weapon is removed.

Credits
  • Madman666: Preview
29 条留言
GGKTH 9 月 13 日 上午 2:34 
oh wow
EXistenZ 9 月 11 日 上午 3:25 
Thanks. This mod makes runs with pacifist colonists more easy and fun. ( ͡°( ͡° ͜ʖ( ͡° ͜ʖ ͡°)ʖ ͡°) ͡°)
nickson50nic 8 月 12 日 上午 7:24 
epic mod
Zeracronius  [作者] 8 月 8 日 下午 2:23 
The fire rate should have been sorted?
There might be an issue with charge-up weapons right now that i need to look into however.
Andreas 8 月 8 日 下午 12:31 
Can the fire rate issue be resolved by simply setting the cooldown time sufficiently high?
L. Velociraptor 8 月 1 日 下午 6:24 
Yo, @Zeracronius & @Honey Badger, I'm the one what asked about wall turrets 2 compatibility. Really stoked to hear you're considering working on how other modders can make turrets like yours including wall ones, thanks so much for all the hard work and updates! :p2cube:
Zeracronius  [作者] 8 月 1 日 上午 3:28 
The salvos to break is completely configurable in mod options, and the default is 1000.
(Note a salvo can be multiple shots depending on weapon)
Aizuki 8 月 1 日 上午 1:42 
ah ok, glad you aware. i put beam graser on turret and it broke only few shot. kinda cost > kill
Zeracronius  [作者] 8 月 1 日 上午 1:10 
Currently there is not a platform bigger than 100 kg, however changing the mass is easy in the xml, and so is adding additional turrets.

For fire rate, it is something I have been trying to figure out how to handle.
The problem as far as I can tell is that many weapons are slowed down primarily by "aiming delay" Stat, which the game only ever takes into account if verb is cast by pawn.
Aizuki 7 月 31 日 下午 10:06 
got issue where the turret fire rate so faster than original one, even faster than vanilla