I have been learning about weapons this week.
So yesterday I decided to make a set of binoculars as I have not seen any yet for GG, as a learning experience for weapons.
But I have a few questions I need help with.
With respect to the gunspec.
Q. How is the ID assigned to a weapon for the "g_PlayerGunID" , and does each different weapon have a unique id #. ?
I assumed it was the "statuspanelcode", just because of the way I numbered it, but
the ID# changes from time to time, which is no good for the script.
Q. Is there an official format/standard for different weapon types to follow, within the weapons hud?
Q. How do I get the panel at the bottom left of the screen to show.
I have made binoculars icons in the ammohealth folder, but I cannot work out how this or the panel is shown within my hud.
I have the below in the gunspec for the Binoculars.
;GUN HUD (0-colt,1-magnum,2-uzi,3-shotgun,4-rifle,5-rpg,6-grenade,7-bow,8-mace,9-stone,10-sword,11-utilities)
statuspanelcode = 11
;WEAPON Style (1-pistol,2-rocket,3-shotgun,4-uzi,5-assault,10-binoculars)
weapontype = 10
Gunspec is also attached.
I am marking the AI with a key press at the moment, but ideally the left mouse click is what I would like.
The right mouse click is for the fixed zoom, like any other rifle.
Its only early days yet with the graphics for the hud.
Its functionality I am after first, then I can dress it up later.
Thanks
I may be old, but at least my memory still ....hmmm
Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2336 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)