Bug Tracker – Bug 969

"Best Weapon" bind

Last modified: 2016-09-12 09:50:01 CDT
Bug 969 - (ARRAY(0x5308b68)) "Best Weapon" bind
(ARRAY(0x5308b68))
"Best Weapon" bind
Status: NEW
Product: Odamex
Classification: Unclassified
Component: Server & Client
0.6.x
All All
: P1 enhancement
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2013-03-30 05:17:05 CDT by JKist3
Modified: 2016-09-12 09:50 CDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description JKist3 2013-03-30 05:17:05 CDT
There should be a "best weapon" feature where switching to the "best weapon" gives you the highest weapon in your pwo that you currently have.  This is not my idea, but the request of some other players.  Thanks.
Comment 1 HeX_Vulture 2016-09-07 16:39:19 CDT
How would this work if players have multiple weapons as highest priority?
Comment 2 JKist3 2016-09-07 20:44:25 CDT
For this feature I'm not sure it matters too much, as in my mind this is more of a friendly feature for mediocre players, who as long as it basically works, won't care about edge cases.  Most hardcore players wouldn't want to use this i'd think as Manual/pwo would be ideal.  

Of potentially interesting note: while there is a pwo for picking up new weapons, once you run out of ammo the weapon you switch to follows a separate order which has not been made user modifiable.  The ideal pwo system would let you choose an order for both of these scenarios (switching to new weapons, and switching to a weapon you have after running out of ammo of your current gun).

In my personal case i would want my switching on new pickup behavior to have all "usable" guns (sg,ssg,cg,rl,pg,bfg) as equal priority and above pistol which would be above chainsaw.  This way, off a spawn i could auto switch to a weapon, but after that first switch to a usable weapon, the rest would be manual.  For the switching to a gun after running out of ammo, clearly you need a defined priority list, nothing can be equal.  

I had thought of ways to implement this a while ago.  One way was to make the weapon priority value a double. but only switch on pickup if your new weapon was greater than a certain value over your current (say in the case 1.0)

so, for example, you could set the bfg to have 7.2 priority value, and ssg to have 7.9 priority value. if you had bfg out and picked up ssg it would not switch as the ssg's value of 7.9 was not greater than 1.0 over your current bfg's value of 7.2.  This would allow new pickups to have "equal priority" behavior while still letting your weapons have a clearly defined priority hierarchy for when you run out of ammo. Alternatively there could just be 2 pwo lists: one list for switching to new weapons which allows equal priorities, and another for switching after running out of ammo that didnt allow equality.

If either of these pwo system improvement methods were implemented the best weapon bind behavior could just follow the pwo, in the case of the double values it would select the highest one you had, and in the case of the 2 lists it could just use the running out of ammo list as the best weapon list.  Hope this all makes sense and is good food for thought.   

 

 weapons to switch to   anythign if i only have a p, and have weapons at equal pwo for switching to new weapons, while needing a strict ordering for running out of ammo because in that case clearly a switch should be made.
Comment 3 capo 2016-09-12 09:50:01 CDT
This seems to be a bit pointless to me. Doube PWO? Bcz of some ppl using same priority for every weapon? So you really need to another pwo for switching weapons when you run out of ammo. Seems be way too much for me. TBH the pwo is perfect for me, remember odd ZD pwo lmao? And how often you run out of ammo and dont have time for switch to better weapon. Well. :-)