View previous topic :: View next topic |
Author |
Message |
Ghost_Fang
Joined: 12 Nov 2009 Posts: 162
|
Posted: Thu Feb 25, 2010 5:30 am Post subject: Function Issue |
|
|
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 |
|
 |
ceriux

Joined: 06 Sep 2008 Posts: 969 Location: Florida, USA
|
Posted: Thu Feb 25, 2010 6:06 am Post subject: |
|
|
maybe because your checking if shotty ammo equals zero in your reload function? _________________ QuakeDB - Quake ModDB Group |
|
Back to top |
|
 |
Sajt
Joined: 16 Oct 2004 Posts: 1026
|
Posted: Thu Feb 25, 2010 12:40 pm Post subject: |
|
|
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 |
|
 |
Ghost_Fang
Joined: 12 Nov 2009 Posts: 162
|
Posted: Thu Feb 25, 2010 1:38 pm Post subject: |
|
|
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 |
|
 |
ceriux

Joined: 06 Sep 2008 Posts: 969 Location: Florida, USA
|
|
Back to top |
|
 |
Ghost_Fang
Joined: 12 Nov 2009 Posts: 162
|
Posted: Thu Feb 25, 2010 8:05 pm Post subject: |
|
|
alright, ill post it later tonight after school and work about 7 hours from now (2:05 pm) |
|
Back to top |
|
 |
ceriux

Joined: 06 Sep 2008 Posts: 969 Location: Florida, USA
|
Posted: Thu Feb 25, 2010 8:08 pm Post subject: |
|
|
lol ill look if im not busy gettin my dick wet. _________________ QuakeDB - Quake ModDB Group |
|
Back to top |
|
 |
c0burn
Joined: 05 Nov 2004 Posts: 158 Location: Liverpool, England
|
Posted: Thu Feb 25, 2010 9:24 pm Post subject: |
|
|
 |
|
Back to top |
|
 |
|