Defensive Positions - Forked
Original Mod: [url=https://steamcommunity.com/sharedfiles/filedetails/?id=761219125]Defensive Positions[/url]
WARNING
This mod is not a hop-in replacement for the other one, there were mayor changes in how things are handled by code. If you started a colony with the original, you probably should finish your colony with it.
Changes
[list]
[*] Removed HugsLib dependency.
[*] Changed graphics.
[*] Removed Multiplayer Support (I deleted the class with most issues in multiplayer, so maybe it works on multiplayer right out of the bat, I don't know, I don't use that mod).
[*] Integrated with GearUpAndGo.
[*] Bugfixes.
[/list]
Description
Allows your colonists to remember their position during base defense. You can send off your colonists to their positions with a single click.
How to use
[b]Set defensive positions for colonists[/b]
1) Draft your defenders and place them where you want them.
2) With your defenders selected, right-click the Defensive position button and select "Save defensive position".
Done. The selected colonists will remember their held positions.
[b]Send colonists to saved positions[/b]
1) Select your defenders.
2) Click the Defensive position button (or press T).
Your defenders will be drafted and will run to their saved positions.
[b]Advanced mode[/b]
Hold the Alt key and click the Defensive position button to switch between basic and advanced mode.
Advanced mode works exactly like Basic, but you have 4 positions to work with. Save a position using the right-click menu, then click the slot to send the selected colonists to the position they have been assigned under that number.
Pressing T is the same as clicking the first slot.
[b]Squad hotkeys[/b]
Colonists can be assigned to squads for easier selection. To assign, hold the Ctrl key and press 1-9 on the numeric keypad to assign the squad to that key. Press the numeric key of a squad to select the squad members, press again to focus on the squad location.
[b]Utility hotkeys[/b]
There are three other keys on the keypad for quick colonist management: press period to select all colonists on the map, undraft everyone by pressing divide, and press zero to send all colonists to their assigned defensive position.
In the Options > Mod Options window you can switch the Shift key from saving positions to queuing movement orders.
Special Thanks
Symbolic (a.k.a. UnlimitedHugs) - For the original code.
Captain ♥♥♥♥♥♥♥♥ - For a fix in the code.
License
Equally to the original version, this is a free and unencumbered software release into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
You can check the source code on [url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2FGonDragon%2FRimworldDefensivePositions]My Github Repository[/url][github.com]