Bug 2773 - Patch for modification to the Human HUD (scrollwheel-wise)
Status: RESOLVED FIXED
Alias: None
Product: Tremulous
Classification: Unclassified
Component: Misc
Version: unspecified
Hardware: All All
: P2 enhancement
Assignee: Tim Angus
QA Contact:
URL: http://alaric.al.funpic.org/index.php...
Depends on:
Blocks:
 
Reported: 2006-07-10 08:06 EDT by Dustin Howett
Modified: 2006-12-20 11:32:20 EST
1 user (show)

See Also:


Attachments
The aforementioned patch (1.67 KB, patch)
2006-07-10 08:09 EDT, Dustin Howett

Description Dustin Howett 2006-07-10 08:06:49 EDT
First off, Apologies if this is the wrong place for patches (though in a post, you said that patches are always welcome, and to add them to Bugzilla). This patch changes the behaviour and look of the human scrollwheel list:
Unusable items (armour, battery pack) are in grey and are skipped by weapnext and weapprev.
Weapons without any ammo are in red (still selectable). Everything else is cyan.
Will attach patch in next update. It's against SVN revision 802.
Comment 1 Dustin Howett 2006-07-10 08:09:08 EDT
Created attachment 955 [details]
The aforementioned patch

Kinda strangely coded. I tried to follow the existing code style. Sorry for any deviations.
Comment 2 Dustin Howett 2006-07-11 20:14:33 EDT
Screenshot: http://alaric.al.funpic.org/trem/new_list.jpg (sorry for not including it elsewhere)
Comment 3 Phil Bordelon 2006-07-26 14:05:25 EDT
I realize this is assigned; I just want to state (without having looked at the code) that this sort of tweak would be very nice.

(Semi-related: It probably wouldn't be too terribly hard to autosort your upgrades in the scrollwheel menu either, so that all of the 'unusables' are at one end, with weapons in the front and a MedKit (if not yet used) right before the unusables.  I'll look at the code and see if it's rocket science or not.  And open a new bug if I implement it, of course.)
Comment 4 Rprp 2006-12-18 17:40:10 EST
Well, is this patch client side?
I patched my /src/cgame/cg_weapons.c.
But still its not working.....
Comment 5 Dustin Howett 2006-12-18 20:39:56 EST
You need to compile it and get cgame.qvm, put it in the vms/ folder (or is it vm/) in a pk3 and put that in your data folder.
Comment 6 Tony J. White 2006-12-20 11:32:20 EST
Thanks Dustin.  Applied at revision 874.