Test

From EDukeWiki
Revision as of 10:18, 21 February 2020 by Fox (talk | contribs) (→‎Test 2)
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. 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.
PROJ_SYREPEAT
PROJ_DECAL
PROJ_TRAIL
PROJ_TXREPEAT
PROJ_TYREPEAT
PROJ_TOFFSET
PROJ_TNUM
PROJ_SOUND
PROJ_ISOUND
PROJ_VEL
PROJ_VEL_MULT
PROJ_EXTRA
PROJ_EXTRA_RAND
PROJ_DROP
PROJ_CSTAT
PROJ_CLIPDIST
PROJ_SHADE
PROJ_XREPEAT
PROJ_YREPEAT
PROJ_PAL
PROJ_HITRADIUS
PROJ_OFFSET
PROJ_BOUNCES
PROJ_BSOUND
PROJ_RANGE
PROJ_FLASH_COLOR