Main Page | Recent changes | Edit this page | Page history

Printable version | Disclaimers | Privacy policy

Not logged in
Log in | Help
 

Addammo

From EDukeWiki

addammo <weapon> <amount>

Adds <amount> to ammo of <weapon>. Similar to addweapon and addweaponvar, but doesn't add the weapon if the player doesn't already have it.

actor AMMO
  fall
  ifmove RESPAWN_ACTOR_FLAG
    state respawnit
  else
    ifp pshrunk nullop
    else
      ifp palive
        ifcount 6
          ifpdistl RETRIEVEDISTANCE
            ifcanseetarget
      {
        addammo PISTOL_WEAPON PISTOLAMMOAMOUNT
        quote 65
        ifspawnedby AMMO
          state getcode
        else
          state quikget
      }
enda

Retrieved from "http://localhost../../../a/d/d/Addammo.html"

This page has been accessed 384 times. This page was last modified 08:48, 7 September 2006 by Richard Gobeille.


[Main Page]
Main Page
Recent changes
Random page
EDuke32.com

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages
Bug reports