[Mod Request] Bring back forced target for turrets

Started by mussi, April 24, 2016, 05:19:43 PM

Previous topic - Next topic

mussi

Hello everybody! I would love to have back the "Set forced target" (manual targeting) option from previous alphas. If anyone could mod it back in alpha 13, it would be so wonderful. Thank you! :)

Grover_R

I'd be interested in this mod as well. I'm not sure why it was considered a good idea to take away use of turrets in certain situations. If I want to shoot animals with turrets, or even my own colonist, whose to tell me I can't?

Mithrawndo

This is probably something you can do yourself in the def files.

\Mods\Core\Defs\ThingDefs_Buildings\Buildings_Security.xml

If you compare the mortar turret to the the improvised turret, you'll see that the improvised turret is missing a few lines:

<hasInteractionCell>True</hasInteractionCell>
<interactionCellOffset>(0,0,-1)</interactionCellOffset>


I suspect these *may* have something to do with it, but I'm no expert.

The line I liked the look of that's present for the mortar, but not for the improvised turret (and am off to play with!):

<li Class="CompProperties_Mannable">

If I've understood the second part correctly, I'm off to add a new turret type!

Edit: Oh hello, by the way - I've been lurking for a while and posting on Reddit, but figured I should make my way over here if I'm going to start screwing around with defs!

25wes25

Quote from: Mithrawndo on April 25, 2016, 01:05:18 PM
Edit: Oh hello, by the way - I've been lurking for a while and posting on Reddit, but figured I should make my way over here if I'm going to start screwing around with defs!
Welcome to the forums man!

skullywag

Mannable would make it so it needs to be manned, this is unfortunately a c# mod, not a difficult one though. Need to readd the gizmo back to the ui which allowed this.

Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Mithrawndo

I'm not averse to learning a little C#, though the last time I wrote anything that needed compiled was C++ in high school nearly twenty years ago. Before I start googlin', any caveats you'd recommend avoiding before I choose an IDE and compiler?

skullywag

Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Kilroy232

#7
I have been trying to get this back for the next version of my turrets mod because I really did like that feature and I think I could integrate it well.

It must just be me though because I have the hardest time with the C# code for this game. I have taken courses in University on the language and yet when I look at decompiled code for this game I am left scratching my head