Ludeon Forums

RimWorld => Mods => Help => Topic started by: Littlemule on December 02, 2013, 09:24:46 PM

Title: modifying turret weapon
Post by: Littlemule on December 02, 2013, 09:24:46 PM
Can anyone help me with finding how to modify the turret weapon from LMG_15 to another type

I've got this far :

(//)

but this value doesn't change the turret type in game

Thanks

[attachment deleted by admin: too old]
Title: Re: modifying turret weapon
Post by: why1do on December 02, 2013, 09:39:40 PM

already got info.

http://ludeon.com/forums/index.php?topic=1303.0
Title: Re: modifying turret weapon
Post by: Littlemule on December 02, 2013, 10:55:04 PM
Yes but I'm still looking though so any help is appreciated :)

I've got no problem editing (already created an MP4 assault rifle hehe fun) just finding that this particular turret code is evading me annoying....
Title: Re: modifying turret weapon
Post by: why1do on December 02, 2013, 11:33:48 PM
Quote from: Littlemule on December 02, 2013, 10:55:04 PM
Yes but I'm still looking though so any help is appreciated :)

I've got no problem editing (already created an MP4 assault rifle hehe fun) just finding that this particular turret code is evading me annoying....
what are you looking for?

Search Building_Turret
you will see Building_Turret and Building_TurretGun
For health/power go to ThingDefsHardcoded, look for <Definitions_BuildingsSecurity>c__Iterator25
Title: Re: modifying turret weapon
Post by: Littlemule on December 02, 2013, 11:54:57 PM
How to change the weapon the turret uses, I've found the Building_Turret and Building_TurretGun. Inside building_turretgun is the line gunname : string and in the reflexil program is the tab : constant (Gun_M24Rifle) changing this doesn't change the gun the turret uses ingame though
Title: Re: modifying turret weapon
Post by: Motorkingpus on December 03, 2013, 01:41:19 AM
I'd imagine you'd have to change the DrawSelectedExtras() : Void to Gun_M-24Rifle aswell.
Just a thought, experimenting it myself.
Title: Re: modifying turret weapon
Post by: why1do on December 03, 2013, 03:56:40 PM
Quote from: Littlemule on December 02, 2013, 11:54:57 PM
How to change the weapon the turret uses, I've found the Building_Turret and Building_TurretGun. Inside building_turretgun is the line gunname : string and in the reflexil program is the tab : constant (Gun_M24Rifle) changing this doesn't change the gun the turret uses ingame though

the selected tab text is meaningless(has no effect on wepon... get some raders and see).