Forum

my second "help me" topic

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

my second "help me" topic

Postby ajay » Fri Nov 05, 2004 1:48 pm

Got a weapon.
You pick up ammo for it.
You've now got 15 according to the menu.
You fire one out.
You go down to 9!
You fire another you go to 8.
You fire another, down to 7, and so on.

I thought this might have happened, as I'd set the total you could have for that ammo at 10. But I can't find that.

So I don't understand. :)

Any ideas, before I copy 'n' paste loads of useless code?
User avatar
ajay
 
Posts: 559
Joined: Fri Oct 29, 2004 6:44 am
Location: Swindon, UK

Postby Dr. Shadowborg » Fri Nov 05, 2004 2:28 pm

I don't know how different your code is to the original Quake source, but...

Have you tried checking the bound_other_ammo() in items.qc? Pretty much all ammo is properly leveled out by this function.
User avatar
Dr. Shadowborg
InsideQC Staff
 
Posts: 1110
Joined: Sat Oct 16, 2004 3:34 pm

Postby ajay » Fri Nov 05, 2004 2:32 pm

Thanks, yeah. It was at 10, so methought that's it. So I yanked it up to 50, but it still does it.
User avatar
ajay
 
Posts: 559
Joined: Fri Oct 29, 2004 6:44 am
Location: Swindon, UK

Postby Dr. Shadowborg » Fri Nov 05, 2004 5:35 pm

Sounds almost like some sort of .currentammo problem. Is your weapon somehow improperly setting the .currentammo rather than the actual ammo type?
User avatar
Dr. Shadowborg
InsideQC Staff
 
Posts: 1110
Joined: Sat Oct 16, 2004 3:34 pm

Postby Spike » Fri Nov 05, 2004 7:26 pm

you're not using -= are you? Last I checked some compilers accept it but generate broken code. (I think they accept it at least..)
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby Sajt » Sat Nov 06, 2004 7:26 pm

Also, check that if you're using FrikQCC 2.6, that you're not using the 'const' keyword anywhere.
Sajt
 
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Postby FrikaC » Sat Nov 06, 2004 9:13 pm

anywhere?
FrikaC
Site Admin
 
Posts: 1026
Joined: Fri Oct 08, 2004 11:19 pm

Postby Sajt » Sun Nov 07, 2004 4:59 am

not nowheres
Sajt
 
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest