Irbyz / aftershock-xe

AfterShock XE is a fork of the AfterShock mod for OpenArena FPS game.
https://discord.gg/fd79Ktf
GNU General Public License v2.0
12 stars 8 forks source link

Default weapon binds around movement keys + displaying them on the default HUD #118

Open Irbyz opened 5 years ago

Irbyz commented 5 years ago

Right now the default weapon binds are on 0-9. You can also switch weapons using scroll wheel (weapprev and weapnext). Changing weapons with scroll wheel takes a lot of precious time, making a player who uses scroll wheel unable to compete with a player who uses a different bind for each weapon. If you use the default 0-9 binds you need to stretch your index finger (if you are right handed) or move your hand away from the movement WASD keys to reach the numbers that are further away. The best solution is to have your weapon binds on keys that are as close to the movement keys as possible. For example here are the binds that I used for years:

bind 1 "weapon 1" // Gauntlet
bind 2 "weapon 2" // Machinegun
bind c "weapon 3" // Shotgun
bind e "weapon 4" // Grenade Launcher
bind q "weapon 5" // Rocket Launcher
bind r "weapon 6" // Lightning Gun
bind SHIFT "weapon 7" // Railgun
bind f "weapon 8" // Plasma Gun
bind v "weapon 9" // BFG

I copied these from somebody else. Parhaps it makes sense to swap GL with LG, since LG is more frequently used.

I think it takes just around half an hour for someone who never used weapon binds before to get used to them. However for beginners it would be really handy to display the keys the weapons are bound to on the default HUD, next to the weapon icons. I think it will look better with horizontal weapon bar like on cg_hud hud/hud3.cfg. It would be nice if the binds in the config would change, the keys displayed on the HUD will change as well. I took this idea from the MOBA games like League of Legends. In League of Legends you have abilities and spells that are bound on Q W E R D F keys by default and these keys are displayed on the HUD: ojeg8ly