Opened 6 years ago

Last modified 5 years ago

#47 new enhancement

Binding keys to help switching weapons

Reported by: Téquila Owned by:
Priority: normal Milestone:
Component: Client GUI and Experience Version: 1.1
Keywords: Cc:

Description

People requests better way to select weapons easily. Smokin'Guns is a fast-paced game and it is a pain then to select weapons from the in-game menu.

Related forum thread: Weapon Switching

Attachments (1)

instantWeaponSwitch.patch (2.3 KB) - added by ilag 5 years ago.
Implements a new client console command instaswap to help resolve the issue.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by ilag

Attachment: instantWeaponSwitch.patch added

Implements a new client console command instaswap to help resolve the issue.

comment:1 Changed 5 years ago by ilag

I just attached a patch which implements a system quite similar to what was suggested in the linked forum thread. A new cilent-side command "instaswap" can be called to instantly change what weapon is in the player's hand. Well, not instantly; the animations and everything still play, but the menu is bypassed.

The valid parameters for instaswap are:
knife
pistol1
pistol2
akimbo
longgun
dynamite
molotov

Inserting anything else or nothing should cause the function to catch an error and print to console.

This patch is considered a first draft. I doubt very much that it's ready to be pushed in mainland, and is here mainly as a request for comment. There is very likely a bug hiding in the code somewhere, and it needs proper testing.

Should I bump the forum thread with an announcement of this patch? Perhaps I'll also include a precompiled pk3 with the changes when I make that bump so that anyone can test and not just those setup for compiling code.

Also, it's good to be back. I've been gone from this community for way too long.

Last edited 5 years ago by ilag (previous) (diff)

comment:2 Changed 5 years ago by Téquila

Hi ilag, good to see your interest here and even with a patch. Thank you.

Oh, yes, you should post in the related thread with a backlink to here so possibly interested people would focus on your effort. Personaly I got alerted as I'm the admin here and the bug reporter. I coudl imagine I'm the only one at the moment to have seen your effort ;)

And thank you again to use this bug tracker ;) You're an example !! :D

Note: See TracTickets for help on using tickets.