A FireCustomBullets: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(templatized)
(Added flashstate)
Line 1: Line 1:
{{Codepointer |
{{Codepointer |
description=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. |
description=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. |
usage='''FireCustomBullets''' (''soundname'', ''accuracy'', ''tracers'', ''dmgfactor'', ''dmgmod'') |
usage='''FireCustomBullets''' (''soundname'', ''accuracy'', ''tracers'', ''dmgfactor'', ''dmgmod'', ''flashstate'') |
parameters=*soundname: The "nice name" of the sound to play.  See [[sound|the sound EDF block]] for how to define this.
parameters=*soundname: The "nice name" of the sound to play.  See [[sound|the sound EDF block]] for how to define this.
*''accuracy'': Select accuracy type:
*''accuracy'': Select accuracy type:
Line 11: Line 11:
*''tracers'': Number of bullet tracers to fire.
*''tracers'': Number of bullet tracers to fire.
*''dmgfactor'': Damage factor. Damage formula is: ''dmgfactor'' * ((rnd%''dmgmod'') + 1))
*''dmgfactor'': Damage factor. Damage formula is: ''dmgfactor'' * ((rnd%''dmgmod'') + 1))
*''dmgmod'': Damage modulus (Clamped into range of 1 to 256) |
*''dmgmod'': Damage modulus (Clamped into range of 1 to 256)  
*''flashstate'': optional flash state to display. If 0, it will use weapon's defined flash state.
|
notes=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. |
notes=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. |
seealso=
seealso=
*[[CustomPlayerMelee]]
*[[CustomPlayerMelee]]
*[[FirePlayerMissile]]}}
*[[FirePlayerMissile]]}}

Revision as of 13:13, 17 June 2016

Description

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.

Usage

FireCustomBullets (soundname, accuracy, tracers, dmgfactor, dmgmod, flashstate)

Parameters

  • soundname: The "nice name" of the sound to play. See the sound EDF block 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 (5-degree horizontal spread with no vertical error)
    • ssg: Super Shotgun accuracy (10-degree horizontal spread with 5-degree vertical error)
    • monster: Monster accuracy (20-degree 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)
  • flashstate: optional flash state to display. If 0, it will use weapon's defined flash state.

Examples

No examples given.

Notes

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.

See also