Ludeon Forums

Ludeon Forums

  • August 05, 2021, 06:52:51 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: modifying turret weapon  (Read 3666 times)

Littlemule

  • Drifter
  • **
  • Posts: 21
  • Refugee
    • View Profile
modifying turret weapon
« 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]
Logged

why1do

  • Drifter
  • **
  • Posts: 28
  • Refugee
    • View Profile
Re: modifying turret weapon
« Reply #1 on: December 02, 2013, 09:39:40 PM »

Logged

Littlemule

  • Drifter
  • **
  • Posts: 21
  • Refugee
    • View Profile
Re: modifying turret weapon
« Reply #2 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....
Logged

why1do

  • Drifter
  • **
  • Posts: 28
  • Refugee
    • View Profile
Re: modifying turret weapon
« Reply #3 on: December 02, 2013, 11:33:48 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
Logged

Littlemule

  • Drifter
  • **
  • Posts: 21
  • Refugee
    • View Profile
Re: modifying turret weapon
« Reply #4 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
Logged

Motorkingpus

  • Drifter
  • **
  • Posts: 37
  • Eegufer
    • View Profile
Re: modifying turret weapon
« Reply #5 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.
Logged

why1do

  • Drifter
  • **
  • Posts: 28
  • Refugee
    • View Profile
Re: modifying turret weapon
« Reply #6 on: December 03, 2013, 03:56:40 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).
Logged