Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

More weapon slots question

| Inside3d Forums Forum Index -> QuakeC Programming

View previous topic :: View next topic
Author | Message
--- | ---
asdqwe Joined: 05 Apr 2009 Posts: 24 |

Posted: Fri Apr 10, 2009 7:01 pm Post subject: More weapon slots question |

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-.

Back to top |

MauveBib Joined: 04 Nov 2004 Posts: 602 |

Posted: Fri Apr 10, 2009 7:36 pm Post subject: |

I'll be covering this in my next beginner tutorial. _________________ Apathy Now!

Back to top |

Spike Joined: 05 Nov 2004 Posts: 944 Location: UK |

Posted: Fri Apr 10, 2009 7:42 pm Post subject: |

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 |

Display posts from previous:

| 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