A FireCustomBullets

From Eternity Wiki
Revision as of 18:20, 21 April 2009 by Esselfortium (talk | contribs) (New page: '''FireCustomBullets''' (string ''soundname'', int ''accuracy'', int ''tracers'', int ''dmgfactor'', int ''dmgmod'')<br> ==Usage== FireCustomBullets is a parameterized player weapon code...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

FireCustomBullets (string soundname, int 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:
    • 1: Always accurate
    • 2: Accurate on first fire only ("never" accurate afterward)
    • 3: Never accurate (moderate horizontal spread with no vertical error)
    • 4: Super Shotgun accuracy (wide horizontal spread with moderate vertical error)
    • 5: 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)