JKGDevs / JediKnightGalaxies

Jedi Knight Galaxies (JKG) is a multiplayer shooter with role playing elements, played out in the Star Wars universe. The project is a full conversion game modification for Jedi Knight: Jedi Academy.
https://www.jkgalaxies.net/
GNU General Public License v2.0
34 stars 12 forks source link

Auto Equip equipment #289

Closed Silverfang22 closed 5 years ago

Silverfang22 commented 5 years ago

Auto equip items such as shields and jetpacks. If one is already equipped swap it for the new one automatically (possibly cvar this so players can turn off autoequipping behavior, possibly altogether as well as just swapping shield/jetpack behavior).

Discussion topic: Should these items that aren't usable from the ACI go to the last slot available as opposed to the first?

DarthFutuza commented 5 years ago

I'm going to set it so that jetpacks and shields will autoequip if its the first time you are buying one, but will not swap out if you already have one equipped - you will manually need to do this. They will equip to 0 first if the slot is not already in use. I'm also going to try and get the aci auto assign for weapons, etc to try to use 1 before they use 0 or other aci slots.

What other items might possibly need auto equip behavior. Bacta? Other consumables?

Silverfang22 commented 5 years ago

Funny enough I think consumables like bacta might already auto-equip

DarthFutuza commented 5 years ago

Partially fixed in f63218d I'm not going to address the 'use of slot 1 first, and then other slots with slot 0 being last' due to the way its been setup its more work than its worth imo. For now they'll just autoequip as long as you don't already have a shield or jetpack equipped. Consumables will now also autoequip if you don't already have an existing stack equipped.