RimWorld

RimWorld

88 ratings
Defensive Positions - Forked
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.6
File Size
Posted
Updated
407.374 KB
16 Aug @ 4:08pm
12 Oct @ 9:10am
7 Change Notes ( view )

Subscribe to download
Defensive Positions - Forked

Description
Original Mod: Defensive Positions

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
  • Removed HugsLib dependency.
  • Changed graphics.
  • Positions are saved per map.
  • 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.

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
Set defensive positions for colonists
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.

Send colonists to saved positions
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.

Advanced mode
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.

Squad hotkeys
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.

Utility hotkeys
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 My Github Repository[github.com]
38 Comments
Alexander Zagirov 12 Oct @ 6:24pm 
@GonDragon thanks! :steamthumbsup:
GonDragon  [author] 12 Oct @ 9:11am 
@Alexander Zagirov: Fixed.
Alexander Zagirov 12 Oct @ 8:06am 
Every time gravship returns to my homebase defensive positions for all colonists (even those who stayed at base) are reset.
GonDragon  [author] 1 Oct @ 2:28pm 
New update: I added some basic integration with GearUpAndGo (forked). Details in the changelog.
GonDragon  [author] 27 Sep @ 11:15am 
Finally, some free time to dev u.u Updated with the requests, let me know if there is any error.

Changelog:
[*] Colony Mechs now repond to Shortcuts.
[*] Colony Ghouls now respond to Shortcuts.
[*] Draft sound now plays immediately upon using the shortcut, even when the game is paused.
GonDragon  [author] 18 Sep @ 7:55am 
I'll add those things to my check list. Sorry if I'm taking my time to update, I just want to use the little free time I have to actually play the game. And the incoming exams are not helping :rfacepalm:
泥头车 18 Sep @ 5:47am 
你能让殖民者在接受命令的那一帧播放被征召的声音吗?暂停时征召棋子却没有声音感觉不太好。
EAST 11 Sep @ 1:54am 
I also wanted to talk about the draft all issue with Mechanoid, which was mentioned below. Another thing I'd like to talk about is that the undraft all shortcut doesn't work with Mechanoid.
SlapAndSpit 10 Sep @ 5:50pm 
I love your mod. Is there Any way to just make a mod for pawns to stay drafted?
团长团子团 30 Aug @ 11:36am 
In the shortcut for selecting all colonists, ghouls cannot be selected. Is it possible to fix this?