Function Issue
Moderator: InsideQC Admins
8 posts
• Page 1 of 1
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?
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?
- Ghost_Fang
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
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...
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.
- Sajt
- Posts: 1215
- Joined: Sat Oct 16, 2004 3:39 am
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
- Ghost_Fang
- Posts: 336
- Joined: Thu Nov 12, 2009 4:37 am
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
