Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

my second "help me" 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 |

Posted: Fri Nov 05, 2004 1:48 pm Post subject: my second "help me" topic |

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?
_________________
my site

Back to top |

Dr. Shadowborg Inside3D Staff Joined: 16 Oct 2004 Posts: 726 |

Posted: Fri Nov 05, 2004 2:28 pm Post subject: |

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 |

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

Posted: Fri Nov 05, 2004 2:32 pm Post subject: |

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 |

Dr. Shadowborg Inside3D Staff Joined: 16 Oct 2004 Posts: 726 |

Posted: Fri Nov 05, 2004 5:35 pm Post subject: |

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 |

Spike Joined: 05 Nov 2004 Posts: 944 Location: UK |

Posted: Fri Nov 05, 2004 7:26 pm Post subject: |

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 |

Sajt Joined: 16 Oct 2004 Posts: 1026 |

Posted: Sat Nov 06, 2004 7:26 pm Post subject: |

Also, check that if you're using FrikQCC 2.6, that you're not using the 'const' keyword anywhere.

Back to top |

FrikaC Site Admin Joined: 08 Oct 2004 Posts: 947 |

Posted: Sat Nov 06, 2004 9:13 pm Post subject: |

anywhere?

Back to top |

Sajt Joined: 16 Oct 2004 Posts: 1026 |

Posted: Sun Nov 07, 2004 4:59 am Post subject: |

not nowheres

Back to top |

Display posts from previous:

| 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