Inside3D!
     

Function Issue

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



Joined: 12 Nov 2009
Posts: 162

PostPosted: Thu Feb 25, 2010 5:30 am    Post subject: Function Issue Reply with quote

I will post my code if necessary, but ill try to explain it so that you can tell me where i might possibly have to look to fix this:

I have it so impulse == 100 is W_sreload.

I also have it so that if self.ammo_shotty == 0 and you shoot, it does W_sreload.

So when i use my shotgun, i can reload anytime, etc etc. But i if i shoot it til there is 0 ammo in the shotgun, impulse 100's W_sreload does NOT work, but if i shoot to reload it works fine..... it calls the same function, have a possible idea why?
Back to top
View user's profile Send private message
ceriux



Joined: 06 Sep 2008
Posts: 969
Location: Florida, USA

PostPosted: Thu Feb 25, 2010 6:06 am    Post subject: Reply with quote

maybe because your checking if shotty ammo equals zero in your reload function?
_________________
QuakeDB - Quake ModDB Group
Back to top
View user's profile Send private message Yahoo Messenger
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Thu Feb 25, 2010 12:40 pm    Post subject: Reply with quote

It could be something to do with the annoying W_CheckNoAmmo (IIRC?) stuff that the id1 progs do, the code that was used to autoswitch to another weapon when you emptied one.

If not, post your reload and attack functions...
_________________
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Back to top
View user's profile Send private message
Ghost_Fang



Joined: 12 Nov 2009
Posts: 162

PostPosted: Thu Feb 25, 2010 1:38 pm    Post subject: Reply with quote

ceriux wrote:
maybe because your checking if shotty ammo equals zero in your reload function?


No, that was the first thing i checked.

It acts like it tries, it plays like the first frame then cancels.
I'm at school right now, ill post my code later
Back to top
View user's profile Send private message
ceriux



Joined: 06 Sep 2008
Posts: 969
Location: Florida, USA

PostPosted: Thu Feb 25, 2010 6:07 pm    Post subject: Reply with quote

have to see the reload function.
_________________
QuakeDB - Quake ModDB Group
Back to top
View user's profile Send private message Yahoo Messenger
Ghost_Fang



Joined: 12 Nov 2009
Posts: 162

PostPosted: Thu Feb 25, 2010 8:05 pm    Post subject: Reply with quote

alright, ill post it later tonight after school and work about 7 hours from now (2:05 pm)
Back to top
View user's profile Send private message
ceriux



Joined: 06 Sep 2008
Posts: 969
Location: Florida, USA

PostPosted: Thu Feb 25, 2010 8:08 pm    Post subject: Reply with quote

lol ill look if im not busy gettin my dick wet.
_________________
QuakeDB - Quake ModDB Group
Back to top
View user's profile Send private message Yahoo Messenger
c0burn



Joined: 05 Nov 2004
Posts: 158
Location: Liverpool, England

PostPosted: Thu Feb 25, 2010 9:24 pm    Post subject: Reply with quote

Rolling Eyes
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
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