Test

From EDukeWiki
Revision as of 10:09, 21 February 2020 by 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

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.

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.

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