Author Topic: Using the ammo system  (Read 805 times)

I am trying to make a non-hacky ammo system and can't help wondering about this:
Quote from: any weapon add-on
  // Images have a state system which controls how the animations
   // are run, which sounds are played, script callbacks, etc. This
   // state system is downloaded to the client so that clients can
   // predict state changes and animate accordingly.  The following
   // system supports basic ready->fire->reload transitions as
   // well as a no-ammo->dryfire idle state.
Where exactly is this no-ammo>dryfire idle state system? I know there is an "ammo" variable in the weapon image, but it does not seem to be used at all. Can someone explain this?

I too am curious about those states.

As for the ammo field,
http://forum.blockland.us/index.php?topic=102790.0
however I never could find the crossbow script Space Guy referred to. (I eventually concluded that it must part of private documentation that you need to buy some torque product to receive.)


inb4spaceGuy
« Last Edit: May 19, 2010, 06:25:53 PM by BobAndRob »

The rocket launcher still has the dryfire ammo state. The ammo "system" that comes with torque is far from complete, and the best working example of an ammo system is Bushido's tier tactical pack.

What I was hoping for is a more realistic system where you have a limited amount of ammunition, and keeps the weapon from firing when you run out. Isn't there any such thing?

http://www.mediafire.com/download.php?hllmjngqwm2
This is an example of limited clip/ammo, but the clip reloading is pretty primitive and I'm sure it's not what you want. You could use Tier Tactical's ammo support script and do some modifying and eventually you'd come up with what you're trying to get.
« Last Edit: May 23, 2010, 06:09:19 PM by Amade »

What I was hoping for is a more realistic system where you have a limited amount of ammunition, and keeps the weapon from firing when you run out. Isn't there any such thing?

I posted one a while back in this forum.

Edit:
http://forum.blockland.us/index.php?topic=102881.0
Be forewarned it's hacky but it works.

Ammo is limited, in clips, and adding more ammo is controlled by events. (so pickups are possible).
« Last Edit: May 23, 2010, 06:11:49 PM by rkynick »