Inside3D!
     

my second "help me" topic

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



Joined: 29 Oct 2004
Posts: 295
Location: Swindon, UK

PostPosted: Fri Nov 05, 2004 1:48 pm    Post subject: my second "help me" topic Reply with quote

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

Any ideas, before I copy 'n' paste loads of useless code?
_________________
my site
Back to top
View user's profile Send private message MSN Messenger
Dr. Shadowborg
Inside3D Staff


Joined: 16 Oct 2004
Posts: 726

PostPosted: Fri Nov 05, 2004 2:28 pm    Post subject: Reply with quote

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.
_________________
"Roboto suggests Plasma Bazooka."
Back to top
View user's profile Send private message
ajay



Joined: 29 Oct 2004
Posts: 295
Location: Swindon, UK

PostPosted: Fri Nov 05, 2004 2:32 pm    Post subject: Reply with quote

Thanks, yeah. It was at 10, so methought that's it. So I yanked it up to 50, but it still does it.
_________________
my site
Back to top
View user's profile Send private message MSN Messenger
Dr. Shadowborg
Inside3D Staff


Joined: 16 Oct 2004
Posts: 726

PostPosted: Fri Nov 05, 2004 5:35 pm    Post subject: Reply with quote

Sounds almost like some sort of .currentammo problem. Is your weapon somehow improperly setting the .currentammo rather than the actual ammo type?
_________________
"Roboto suggests Plasma Bazooka."
Back to top
View user's profile Send private message
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Fri Nov 05, 2004 7:26 pm    Post subject: Reply with quote

you're not using -= are you? Last I checked some compilers accept it but generate broken code. (I think they accept it at least..)
Back to top
View user's profile Send private message Visit poster's website
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Sat Nov 06, 2004 7:26 pm    Post subject: Reply with quote

Also, check that if you're using FrikQCC 2.6, that you're not using the 'const' keyword anywhere.
Back to top
View user's profile Send private message
FrikaC
Site Admin


Joined: 08 Oct 2004
Posts: 947

PostPosted: Sat Nov 06, 2004 9:13 pm    Post subject: Reply with quote

anywhere?
Back to top
View user's profile Send private message Send e-mail
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Sun Nov 07, 2004 4:59 am    Post subject: Reply with quote

not nowheres
Back to top
View user's profile Send private message
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