Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

Based Turrets

An alternative to [url=https://steamcommunity.com/sharedfiles/filedetails/?id=727710731]Misc turret bases[/url]. 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. [list] [*] 70 steel + 30 metallic [*] Base mass of 8 kg [*] 120% cooldown time [/list] Heavy platform A variant of the auto-cannon turret [list] [*] 300 steel, 40 plasteel + 50 metallic [*] Base mass of 100 kg [*] 100% cooldown time [/list] 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 [list] [*] 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. [/list] 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 [list] [*] Madman666: Preview [/list]