Test: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
Created page with "== Test 1 == '''defineprojectile''' <tilenum> '''PROJ_WORKSLIKE''' <flag value> Used to set flags for projectile function. Note that the damage on impact bit (32768) must b..."
 
Fox (talk | contribs)
Line 27: Line 27:
{| {{prettytable}}
{| {{prettytable}}
|-
|-
| '''PROJ_WORKSLIKE''' || Used to set flags for projectile function.
| '''PROJ_WORKSLIKE''' || Used to set flags for projectile function. Add all the desired flags together, and use that value for <flag value>. This works similar to [[cstat (sprite)|cstat]].


Note that the damage on impact bit (32768) must be set on the WORKSLIKE of any RPG type projectile (i.e. nonhitscan) for which the projectile itself does damage, as opposed to the damage being caused only by the hitradius.
Note that the damage on impact bit (32768) must be set on the WORKSLIKE of any RPG type projectile (i.e. nonhitscan) for which the projectile itself does damage, as opposed to the damage being caused only by the hitradius.


Add all the desired flags together, and use that value for <flag value>. This works similar to [[cstat (sprite)|cstat]].
|-
|-
| '''PROJ_SPAWNS''' || Used to [[spawn]] an [[actor]] on impact.
| '''PROJ_SPAWNS''' || Used to [[spawn]] an [[actor]] on impact. Set <value> to -1 to [[spawn]] nothing, otherwise <value> defaults to SMALLSMOKE.
 
Set <value> to -1 to [[spawn]] nothing, otherwise <value> defaults to SMALLSMOKE.


Doesn't work with bullet-type projectiles fired by actors other than the player.
Doesn't work with bullet-type projectiles fired by actors other than the player.
|-
|-
| '''PROJ_SXREPEAT''' || Used to set the x size of an [[actor]] [[spawn]]ed on impact.
| '''PROJ_SXREPEAT''' || Used to set the x size of an [[actor]] [[spawn]]ed on impact. <value> is the size you wish to set the [[spawn]]ed [[actor]]'s x to.
 
Where <value> is the size you wish to set the [[spawn]]ed [[actor]]'s x to.
|-
|-
|}
|}

Revision as of 10:13, 21 February 2020

Test 1

defineprojectile <tilenum> PROJ_WORKSLIKE <flag value>

Used to set flags for projectile function.

Note that the damage on impact bit (32768) must be set on the WORKSLIKE of any RPG type projectile (i.e. nonhitscan) for which the projectile itself does damage, as opposed to the damage being caused only by the hitradius.

Add all the desired flags together, and use that value for <flag value>. This works similar to cstat.

defineprojectile <tilenum> PROJ_SPAWNS <spawn tilenum>

Used to spawn an actor on impact.

Set <spawn tilenum> to -1 to spawn nothing, otherwise <spawn tilenum> defaults to SMALLSMOKE.

Doesn't work with bullet-type projectiles fired by actors other than the player.

defineprojectile <tilenum> PROJ_SXREPEAT <spawn xrepeat>

Used to set the x size of an actor spawned on impact.

Where <spawn xrepeat> is the size you wish to set the spawned actor's x to.

Test 2

PROJ_WORKSLIKE Used to set flags for projectile function. Add all the desired flags together, and use that value for <flag value>. This works similar to cstat.

Note that the damage on impact bit (32768) must be set on the WORKSLIKE of any RPG type projectile (i.e. nonhitscan) for which the projectile itself does damage, as opposed to the damage being caused only by the hitradius.

PROJ_SPAWNS Used to spawn an actor on impact. Set <value> to -1 to spawn nothing, otherwise <value> defaults to SMALLSMOKE.

Doesn't work with bullet-type projectiles fired by actors other than the player.

PROJ_SXREPEAT Used to set the x size of an actor spawned on impact. <value> is the size you wish to set the spawned actor's x to.