my second "help me" topic

Discuss programming in the QuakeC language.
Post Reply
ajay
Posts: 559
Joined: Fri Oct 29, 2004 6:44 am
Location: Swindon, UK

my second "help me" topic

Post by ajay »

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?
Dr. Shadowborg
InsideQC Staff
Posts: 1120
Joined: Sat Oct 16, 2004 3:34 pm

Post by Dr. Shadowborg »

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.
ajay
Posts: 559
Joined: Fri Oct 29, 2004 6:44 am
Location: Swindon, UK

Post by ajay »

Thanks, yeah. It was at 10, so methought that's it. So I yanked it up to 50, but it still does it.
Dr. Shadowborg
InsideQC Staff
Posts: 1120
Joined: Sat Oct 16, 2004 3:34 pm

Post by Dr. Shadowborg »

Sounds almost like some sort of .currentammo problem. Is your weapon somehow improperly setting the .currentammo rather than the actual ammo type?
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Post by Spike »

you're not using -= are you? Last I checked some compilers accept it but generate broken code. (I think they accept it at least..)
Sajt
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Post by Sajt »

Also, check that if you're using FrikQCC 2.6, that you're not using the 'const' keyword anywhere.
FrikaC
Site Admin
Posts: 1026
Joined: Fri Oct 08, 2004 11:19 pm

Post by FrikaC »

anywhere?
Sajt
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Post by Sajt »

not nowheres
Post Reply