Modifying Vanilla Asset to inherit other prototype
Posted: Sun Aug 27, 2023 6:49 am
So, first post, and this might be really poorly worded because I don't know what the exact question is, so let me go in a roundabout way and explain what I am trying to accomplish.
I am trying to make a local mod for my friend and I because I really *really* detest fluid logistics but I want flamethrower turrets for a defensive option. To that end, I would like to have the flamethrower turrets take flamethrower ammo (because in my mind, that is the most adjacent ammo type and just makes good sense, would also allow logistics to resupply the turrets, I hope).
My main question is this: how do I go about modifying the flamethrower turrets to behave like an ammo turret and take the flamethrower ammo?
I have tried using data:extend to specify the flamethrower turret from the base game, but I don't know if that is the easiest way for me to modify the vanilla interaction or if I'll need to do additional scripting. I don't know how (or if it's possible) to have the fluid-turret also inherit the ammo-turret prototype, but after reading documentation for hours and hours for what seems like a three-line code fix, I am coming to the forums to ask what I am missing in this.
Any and all help is appreciated.
I am trying to make a local mod for my friend and I because I really *really* detest fluid logistics but I want flamethrower turrets for a defensive option. To that end, I would like to have the flamethrower turrets take flamethrower ammo (because in my mind, that is the most adjacent ammo type and just makes good sense, would also allow logistics to resupply the turrets, I hope).
My main question is this: how do I go about modifying the flamethrower turrets to behave like an ammo turret and take the flamethrower ammo?
I have tried using data:extend to specify the flamethrower turret from the base game, but I don't know if that is the easiest way for me to modify the vanilla interaction or if I'll need to do additional scripting. I don't know how (or if it's possible) to have the fluid-turret also inherit the ammo-turret prototype, but after reading documentation for hours and hours for what seems like a three-line code fix, I am coming to the forums to ask what I am missing in this.
Any and all help is appreciated.