Editing A FireCustomBullets

From Eternity Wiki
Jump to navigationJump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{Codepointer |
'''FireCustomBullets''' (string ''soundname'', int ''accuracy'', int ''tracers'', int ''dmgfactor'', int ''dmgmod'')<br>
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''[, ''horizontal'', ''vertical''[, ''pufftype'']]) |
==Usage==
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:
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.
**'''always''': Always accurate on every shot.
 
**'''first''': Accurate on first fire only ("never" accurate afterward)
===Parameters===
**'''never''': Never accurate (5-degree horizontal spread with no vertical error)
 
**'''ssg''': Super Shotgun accuracy (10-degree horizontal spread with 5-degree vertical error)
*soundname: The "nice name" of the sound to play.  See [[ESOUNDS]] for how to define this.
**'''monster''': Monster accuracy (20-degree horizontal spread)
*accuracy: Select accuracy type:
**'''custom''': custom accuracy. Use ''horizontal'' and ''vertical'' arguments to specify the spread.
**1: Always accurate
*''tracers'': Number of bullet tracers to fire.
**2: Accurate on first fire only ("never" accurate afterward)
*''dmgfactor'': Damage factor. Damage formula is: ''dmgfactor'' * ((rnd%''dmgmod'') + 1))
**3: Never accurate (moderate horizontal spread with no vertical error)
*''dmgmod'': Damage modulus (Clamped into range of 1 to 256)  
**4: Super Shotgun accuracy (wide horizontal spread with moderate vertical error)
*''flashstate'': optional flash state to display. If 0, it will use weapon's defined flash state.
**5: Monster accuracy (very wide horizontal spread)
*''horizontal'': if ''accuracy'' is '''custom''', specify the '''overall''' horizontal spread in degrees (as opposed to spread each side of firing thing's current angle). Keep in mind the distribution is not uniform; it's concentrated on the centre, just like the preset spread types.
*tracers: Number of bullet tracers to fire.
*''vertical'': also if ''accuracy'' is '''custom''', specify the overall vertical spread. Same distribution as for ''horizontal''.
*dmgfactor: Damage factor. Damage formula is: dmgfactor * ((rnd%dmgmod) + 1))
*''pufftype'': name of [[EDF]] [[pufftype]] to spawn when hitting walls. Default is the one designated for the current game.
*dmgmod: Damage modulus (Clamped into range of 1 to 256)
|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=
[[Category:Codepointers]]
*[[CustomPlayerMelee]]
*[[FirePlayerMissile]]}}
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see Eternity Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Template used on this page: