State of Decay 2 fast weapon swap - switching weapon (AHK script - macro)

⭐ — (30 endorsements) 📥 821 downloads 📌 v1.0 📅 5/4/2021
⚪ Last updated 2021

By Lamer87 · Gameplay

⬇ Download Mod Source: Nexus Mods ↗ 📅 Updated: 5/4/2021 📅 Created: 5/4/2021

🔍 Analysis

  • 👍 3.7% endorsement rate — high engagement, a strong quality signal
  • 🏆 #256 of 351 Gameplay mods in this game by downloads

📋 About This Mod

Just a simple script to fast swap your fire weapon, if you are playing the game prior to version 25

### IMPORTANT notice: Update 25 solved this annoying problem, now you don't need this mod anymore.

I will leave it just for those who want to play an older version of the game (or maybe to take inspiration from it and create your own script).

Video demo of what you do with this script. ###

I just started playing this game, and it's amazing, but I miss too much a way to fast switch from crossbow to a more powered weapon.

So, i decided to create a simple macro that do the job for me, opening the inventory and automatically switching the weapon with the one in the first slot of my backpack, at the fastest speed possible.

I'm currently using Logitech G HUB for the macro, but I've created an AHK script that does the same thing.

1- If some of the keybind that you have to use for the macro is the same as your movement key, you have to stay still (or just don't press that key) for less than half a second while using the script/macro. You can change your inventory keys in the "UI" section in key mappings to avoid this.

2- The weapon that you want to switch must be in the first (upper left) slot of the backpack, but you can even edit the script to select every one of the slots in the backpack by adding more keystrokes to select the slot that you want (using keys that you have in the "UI" section in key mappings).

3- If you use AutoHotKey, you need to run the script as ADMIN, or (for me) the game doesn't recognize the macro (windows 10).

4- You can download AutoHotKey HERE. A list of the keys to use in the AHK script is HERE.

5- If the script does not work for you, try increasing all pauses to 10 milliseconds, instead of 5ms (or even more if your pc can't handle it). Sometimes, the macro seems not doing the job when starting up the game (you see the inventory opening and closing without a weapon change), but after few seconds the script start working as intended so, before increasing milliseconds, just wait a little when starting up the game to see if it works.

6- You can create a new AutoHotKey script just by right clicking on desktop and selecting "new file" -> "AutoHotKey Script", or just download my example in the FILE section.

7- You can even create multiple scripts for different slots in your backpack, so you can choose from multiple weapons.

To do this, keep in mind that the basic script shown below does exactly this:

-> opens inventory (=Send key1)

-> go down (=Send key2)

-> go down (=Send key2)

-> go down (=Send key2)

-> go down (=Send key2)

-> equip (=Send key3)

-> closes inventory (=Send key1)

This one is an AHK script SAMPLE with NO SPECIFIED COMMANDS, so yo

📊 Mod Details

Game
Stateofdecay2 Mods
Author
Lamer87
Version
1.0
Downloads
821
Endorsements
30
Category
Gameplay
Created
5/4/2021
Updated
5/4/2021

🔧 How to Install State of Decay 2 Mods

Download from Nexus Mods.

📖 Full step-by-step install guide for State of Decay 2 →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for State of Decay 2 commands, item IDs, and more.

Keep browsing — more State of Decay 2 mods await

📋 All State of Decay 2 Mods 🏆 Top 25 📂 More Gameplay 👤 More by Lamer87 🔎 Similar Mods 🌐 Best Gameplay (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods