A FireCustomBullets

From Eternity Wiki
Revision as of 22:19, 21 April 2009 by Quasar (talk | contribs) (Minor changes, added keyword values)
Jump to navigationJump to search

FireCustomBullets (string soundname, string accuracy, int tracers, int dmgfactor, int dmgmod)

Usage

FireCustomBullets is a parameterized player weapon codepointer. This codepointer can be used for the construction of custom player bullet weapons. The sound, accuracy, number of tracers, and randomized damage range of the tracers are all selectable via the argument fields. It is possible to recreate any of the other bullet attacks in the game using this pointer, as well as create many totally new ones.

Parameters

  • soundname: The "nice name" of the sound to play. See ESOUNDS for how to define this.
  • accuracy: Select accuracy type:
    • 'always': Always accurate on every shot.
    • 'first': Accurate on first fire only ("never" accurate afterward)
    • 'never': Never accurate (moderate horizontal spread with no vertical error)
    • 'ssg': Super Shotgun accuracy (wide horizontal spread with moderate vertical error)
    • 'monster': Monster accuracy (very wide horizontal spread)
  • tracers: Number of bullet tracers to fire.
  • dmgfactor: Damage factor. Damage formula is: dmgfactor * ((rnd%dmgmod) + 1))
  • dmgmod: Damage modulus (Clamped into range of 1 to 256)