RimWorld

RimWorld

Simple Sidearms - Switch Weapon
197 Comments
Syrus  [author] 26 Aug @ 3:20pm 
Made the non-lethal icon look like what somehow reminded me of a flashbang. If anyone has a better idea, I'm open to suggestions. Making icons feels like it always takes the most time for me, never know what would be best...
Syrus  [author] 26 Aug @ 2:15pm 
Version 1.6.6
Added non-lethal button (can be enabled in settings)
Split next/previous skip dangerous/emp settings and added non-lethal as well
SalazarWindriver 24 Aug @ 4:31pm 
as long as my teams have the same weapon it is somewhat simple enough to switch to that weapon
Syrus  [author] 24 Aug @ 1:50pm 
Sounds useful to have a button for that. Wish it was vanilla, but I'll note it down and think about whether or not to add a button that only appears when that mod is active
SalazarWindriver 19 Aug @ 3:38pm 
They are from vanilla expanded non-lethal
Syrus  [author] 19 Aug @ 11:59am 
Hm...no, doesn't have a non-lethal weapon button (yet? I don't know whether non-lethal weapons are a thing in vanilla and how to sort them out)
SalazarWindriver 19 Aug @ 3:54am 
Will this work with allowing my colonists to have both lethal and non-lethal ranged weapons? I want to be able to defend against mechs and insects, but be able to stun and capture humans
Syrus  [author] 18 Aug @ 2:09pm 
Version 1.6.5
Fixed switch weapon buttons showing for mechs
VitaKaninen 13 Aug @ 4:29pm 
Thanks!
Syrus  [author] 13 Aug @ 4:18pm 
Oh, and with that setting, if multiple weapons of the same range are found, it will still fall back to "best DPS". If both are equal, chaos probably ensues, who knows?
Syrus  [author] 13 Aug @ 4:16pm 
Version 1.6.4
Added option to turn long/short range into longest/shortest range

---

Hope it works, and hope the old functionality also still works. Coding with headache may not be the best idea but I wanted it done today...
Sithgrim 11 Aug @ 2:44am 
@Syrus Ahh ok I did not think about pre-arming the pawns based on range I guess it would take time for them to auto switch and all.
Syrus  [author] 11 Aug @ 2:37am 
@Sithgrim
Pawns will switch to the best weapon automatically when using only Simple Sidearms, yes.
This mod adds buttons though which will let you force pawns to use weapons of different ranges amongst other options. For example when you know you are going to fight in closer quarters, you will want your pawns already on short range weapons etc
Sithgrim 10 Aug @ 5:26pm 
@VitaKanine @Syrus I thought pawns auto switching to the best weapon for the range they are at was part of base Simple Sidearms? Is something in this blocking that from happening or was that depreciated in Simple Sidearms as the mod description is not on steam but offsite.
VitaKaninen 7 Aug @ 2:16pm 
That would be perfect for me! Thanks!
Syrus  [author] 7 Aug @ 1:58pm 
An interesting idea.

The way I could see it realized is to change the functionality of the buttons as an option:
- Long range would pick the longest range weapon ("Long range" setting ignored)
- Medium range would pick a weapon that is closest to the set "Medium range" setting
- Short range would pick the shortest range weapon ("Short range" setting ignored)
Without taking DPS or such into consideration.

Would that be acceptable?
VitaKaninen 7 Aug @ 10:44am 
I have a problem with the switch weapons buttons. I would like to be able to force my pawns to switch weapons based on the 3 ranges. I have them all equipped with Assault Rifles, Charge Rifles, and Chain Shotguns. I want them to switch from Assault rifles to Charge rifles when I go from long range to medium range, since the charge rifles have higher armor penetration. The problem is that since the assault rifles have higher "DPS", it will not swap to them. I could use the "next weapon" button, but not all of my people have the charge rifles yet, so they swap to shotguns.

Can you add an option to ignore the DPS calculation when determining which weapon to use, and only go strictly off range? Or is there some other way I can force them to swap from Assault Rifles to Charge Rifles?
Syrus  [author] 19 Jul @ 10:08am 
Always felt it was missing when I was playing with the mod, so I made this addon, happy to see people appreciate it!
Futstub 19 Jul @ 8:51am 
Oh holy crap, I just checked and that *really* isn't a feature in main mod...

Well thanks for making this! :>
Syrus  [author] 19 Jul @ 2:57am 
It adds buttons that allows switching between several options - ranged, melee, unarmed, long, medium, short range, explosives and EMP - for a selected group of drafted pawns, without having to go through each and every one of them.
Futstub 18 Jul @ 9:53pm 
I really don't understand what this mod is supposed to do that the main mod doesn't...
Syrus  [author] 18 Jul @ 3:25pm 
Version 1.6.3
Issue with drones expiring immediatly fixed

---

I do not understand why this happened, but for some reason removing the comp-property from non-humanlike pawns caused totalPowerTicks to be set to 0, as in, the drones would start with 0% power and immediatly die. Yeah, no idea. Makes no sense to me.
Removed the part where the comp-property would be removed, should be fine, even if it is not used for anyone but humanlike colonists.
Deon 17 Jul @ 11:54am 
I have the same problem. Using this mod Hunter dornes die immediatly when they are released. No matter if my own or enmey ones. Their core is shattered the instance they are released.
And yes I tested it, I'm sure it's this mod. Using only side armes causes no problems
fhhfxdfh2 15 Jul @ 6:32pm 
Somehow I added pick up and haul fixed this problem. Thx for replying XD
Syrus  [author] 15 Jul @ 11:57am 
No, you need to disable "Switch Weapons" and try if the issue persists. Disable only Switch Weapons, keep everything else as is.
fhhfxdfh2 14 Jul @ 8:09pm 
Yes, I tested with only activating Simple Sidearms and Switch. Is happens when I using Switch.
Syrus  [author] 14 Jul @ 9:28am 
Don't own Odyssey, so I can't test it myself.
Are you sure this is related to Simple Sidearms - Switch Weapons?
Please test by deactivating this mod and checking if it continues to happen!

Sounds rather unlikely to be related to Switch Weapons, not sure about Simple Sidearms though, if it is related to the latter, post on their mod page please
fhhfxdfh2 13 Jul @ 6:22pm 
Found a bug that the hunter drone die immediately when released :(
Noma 13 Jul @ 7:07am 
Thank you for the update, love you.
polat.cal 12 Jul @ 2:59pm 
Thank you for update and removed Hugslib dependency!
Syrus  [author] 12 Jul @ 1:35pm 
Version 1.6.1
Fixed settings not being saved
VitaKaninen 12 Jul @ 12:07pm 
Thanks!
Syrus  [author] 12 Jul @ 10:44am 
Update to 1.6
Removed HugsLib dependency
Reworked settings accordingly
Luccy_wq2 11 Jul @ 10:48pm 
hiiiii, thannk you for the mod, i've just been using for the past few weeks, and it is amaing, thanks for the work and mod, can't wait for the 1.6 :D
I hope this finds you well. From you friendly rimworlder
Gerewoatle 5 Jul @ 6:32pm 
Stop spamming the entire fucking workshop, you mindless p-zombie.
Evono 5 Jul @ 5:29pm 
is 1.6 planned please?
thorman123456789 4 Jul @ 12:42pm 
1.6 please?
Syrus  [author] 21 May @ 11:21am 
@Kira
Make sure you have the longest range weapon set as Default for the pawn. You can do so by left clicking on the icon in the Simple Sidearms widget while a pawn is undrafted, the weapon icon will then show a white "D" in the corner.

Pawns will not switch to a long range weapon if they are not already engaging an enemy.

You may also need to activate "Use best ranged weapon" in Simple Sidearms.
Kira 21 May @ 5:44am 
Hi! I have bolt action rifle and chain shotgun equiped. My pawns using Shotgun regardless of distance. so they wont switch to rifle even if the distance for shotgun is too long (they just staying there and not shooting at all). I only have simple sidearms and simple sidearms switch weapons mod for combat installed. What settings should i tweak?
Vandow 17 May @ 12:40am 
【翻译】
模组描述:
本模组拓展了Simple Sidearms功能,使玩家能够快速切换已征召小人的武器配置。
功能特性:
通过四个简易按钮,可强制小人切换至远程武器(无论其偏好设置如何)或使用近战/徒手战斗
支持多选批量操作:一键切换所有选中小人的武器,无需逐一手动调整
彻底告别逐个选择、逐个更换武器的繁琐流程
依赖模组:
需要前置模组:Simple Sidearms
兼容性说明:
暂无已知兼容性问题
问题反馈:
请在提交问题时附上HugsLib日志(按CTRL+F12生成),这将极大帮助定位故障原因。
Syrus  [author] 11 May @ 3:58pm 
@RustyRhino
If I remember correctly - can't check right now - I use the functionality that Simple Sidearms provides to switch weapons etc. In that case, the bug is very unlikely to come from the addon mod, coming from the main mod instead.
You could try to reproduce the bug without using Switch Weapons to make sure?
RhinoSoFast 11 May @ 6:05am 
wondering if anyone has seen similar issue; not sure which mod is the culprit.
i had the pawn pickup a Legendary ranged weapon, and i clicked on it in the gizmo, three times to make it his primary and to equip it, and when i went into his inventory to look at it, the quality changed to from Legendary to Normal.
this isn't the first time i've seen this happen, and it's intermittent, so it's the worst kind of bug to try and track down lol
Syrus  [author] 25 Feb @ 12:05pm 
Nothing is compatible with CE.
VitaKaninen 25 Feb @ 2:20am 
It says no known incompatibilities.
A N O N 25 Feb @ 1:34am 
Is this Combat extended compatible?
TKO 2 Feb @ 2:46am 
@SwiSSchriS some weapons are too heavy to be sidearms
SwiSSchriS 24 Nov, 2024 @ 8:24pm 
thank you very much for the fast answer. So this is 100% on me and I am doing something wrong. I keep trying. Maybe a conflict with the dual Weal mod...? anyway. thx alot
Syrus  [author] 24 Nov, 2024 @ 4:06pm 
Iiirc that should already be an option for Simple Sidearms itself, check the settings, I definitely remember my snipers switching to auto pistols when enemies were close but not in melee range.
Though it may be that the sniper rifle is still "better" at that range than the shotgun?
SwiSSchriS 24 Nov, 2024 @ 6:06am 
I hope someone can help with my question. What I would like my pawns to do is automatically switch from a sniper rifle to a shotgun the moment a enemy come for example closer that 10 tiles. Is that possible?
Scorpio 10 Nov, 2024 @ 3:51am 
@ notable notepad that's not on this mod but original on the sidearms mod