PROJ VEL MULT: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Jwaffe (talk | contribs)
m Added a little more detail
Fox (talk | contribs)
No edit summary
Line 1: Line 1:
'''defineprojectile''' <tilenum> '''PROJ_VEL_MULT''' <velocity multiplier>
PROJ_VEL_MULT is a [[defineprojectile]] property used to set multiply velocity of a projectile (causes an artificial acceleration).  
PROJ_VEL_MULT is a [[defineprojectile]] property used to set multiply velocity of a projectile (causes an artificial acceleration).  


On a given tic the projectile will move PROJ_VEL_MULT times, for example, if you set PROJ_VEL_MULT to 1, it will only move at its current velocity (stored in its sprite's [[xvel]] / [[zvel]]) once per tic.  
On a given tic the projectile will move PROJ_VEL_MULT times, for example, if you set PROJ_VEL_MULT to 1, it will only move at its current velocity (stored in its sprite's [[xvel]] / [[zvel]]) once per tic.  


Syntax is:
Where <velocity multiplier> is the amount to multiply by. See also [[PROJ_VEL]].
 
[[defineprojectile]] <tile number> PROJ_VEL_MULT <number>
 
Where <number> is the amount to multiply by. See also [[PROJ_VEL]].


[[Category:Projectile_structure_members]]
[[Category:Projectile_structure_members]]

Revision as of 06:21, 21 February 2020

defineprojectile <tilenum> PROJ_VEL_MULT <velocity multiplier>

PROJ_VEL_MULT is a defineprojectile property used to set multiply velocity of a projectile (causes an artificial acceleration).

On a given tic the projectile will move PROJ_VEL_MULT times, for example, if you set PROJ_VEL_MULT to 1, it will only move at its current velocity (stored in its sprite's xvel / zvel) once per tic.

Where <velocity multiplier> is the amount to multiply by. See also PROJ_VEL.