Inside3D!
     

More weapon slots question

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
asdqwe



Joined: 05 Apr 2009
Posts: 24

PostPosted: Fri Apr 10, 2009 7:01 pm    Post subject: More weapon slots question Reply with quote

How can I program more weapon slots in QuakeC?
That is, if I press '9' I get the 9th weapon, '0' for the 10th etc. Not like in Dissolution, where they appeared if you pressed a second time one of the existing keys (1-Cool.
Back to top
View user's profile Send private message
MauveBib



Joined: 04 Nov 2004
Posts: 602

PostPosted: Fri Apr 10, 2009 7:36 pm    Post subject: Reply with quote

I'll be covering this in my next beginner tutorial.
_________________
Apathy Now!
Back to top
View user's profile Send private message
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Fri Apr 10, 2009 7:42 pm    Post subject: Reply with quote

first: break the weapon <-> items mapping.
secondly: add a .items2 field. this replaces runes on your hud. use the right values.
third: lots of programming
fourth: make a new gfx.wad
fifth: moan that the hud doesn't show the extra weapons as selected
sixth: give up and write it with csqc instead, once someone makes a faithful example mod for you to adapt.

for reference, IT_EXTRA_WEAPON is free to use+rename. IT_AXE you always have anyway, change to 0 and reuse this bit. IT_MEGAHEALTH isn't used by the engine so you can nab that one too, but you'll need to make sure the health boxes don't use it any more.
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group