Action functions: Difference between revisions

From ZDoom Wiki
Jump to navigation Jump to search
m (removing "new" for GZDoom 2.4.0 release)
m (replacing git tags with new tags for GZDoom 2.4.0 release)
Line 1: Line 1:
The following are all the code pointers supported by ZDoom's [[DECORATE]] lump as of the latest source code. These are placed at the end of an individual frame definition within the actor's [[Actor states|state]] block. You may also use any [[Action Specials|action special]] in place of an action function. See also [[:Category:Action functions|the category]] for a more exhaustive listing.
The following are all the code pointers supported by ZDoom's [[DECORATE]] lump as of the latest source code. These are placed at the end of an individual frame definition within the actor's [[Actor states|state]] block. You may also use any [[Action Specials|action special]] in place of an action function. See also [[:Category:Action functions|the category]] for a more exhaustive listing.


As of {{git|b2ccd0b}}, functions may have a return type (e.g. ''return'' '''A_FunctionName'''). See [[Actor_states#Anonymous_functions|anonymous functions]] for details.
As of {{new}}, functions may have a return type (e.g. ''return'' '''A_FunctionName'''). See [[Actor_states#Anonymous_functions|anonymous functions]] for details.


__TOC__
__TOC__
Line 52: Line 52:
* [[A_BulletAttack]]
* [[A_BulletAttack]]
* [[A_ComboAttack]] {{deprecated}}
* [[A_ComboAttack]] {{deprecated}}
* [[A_CustomMissile]] ({{deprecated}} on {{git|d4c0ee9}})
* [[A_CustomMissile]] {{deprecated}}
* [[A_CustomBulletAttack]]
* [[A_CustomBulletAttack]]
* [[A_CustomRailgun]]
* [[A_CustomRailgun]]
Line 63: Line 63:
* [[A_MonsterRefire]]
* [[A_MonsterRefire]]
* [[A_MonsterRail]]
* [[A_MonsterRail]]
* [[A_RadiusDamageSelf]] {{git|de0301a}}
* [[A_RadiusDamageSelf]] {{new}}
* [[A_RadiusThrust]]
* [[A_RadiusThrust]]
* [[A_SpawnProjectile]] {{git|d4c0ee9}}
* [[A_SpawnProjectile]] {{new}}
* [[A_ThrowGrenade]]
* [[A_ThrowGrenade]]
* [[A_WolfAttack]]
* [[A_WolfAttack]]
Line 97: Line 97:
* [[A_PrintBold]]
* [[A_PrintBold]]
* [[A_Log]]
* [[A_Log]]
* [[A_LogFloat]] {{git|0cc2705}}
* [[A_LogFloat]] {{new}}
* [[A_LogInt]]
* [[A_LogInt]]


Line 111: Line 111:
* [[A_PlayerSkinCheck]]
* [[A_PlayerSkinCheck]]
* [[A_SkullPop]]
* [[A_SkullPop]]
* [[A_SprayDecal]] {{git|5fe04df}}
* [[A_SprayDecal]] {{new}}
* [[A_Quake]]
* [[A_Quake]]
* [[A_QuakeEx]]
* [[A_QuakeEx]]
* [[A_CopySpriteFrame]] {{git|3d95912}}
* [[A_CopySpriteFrame]] {{new}}
* [[A_SetSpriteAngle]] {{git|dfed6ac}}
* [[A_SetSpriteAngle]] {{new}}
* [[A_SetSpriteRotation]] {{git|dfed6ac}}
* [[A_SetSpriteRotation]] {{new}}


== Spawn functions ==
== Spawn functions ==
Line 167: Line 167:
* [[A_HideThing]]
* [[A_HideThing]]
* [[A_LowGravity]]
* [[A_LowGravity]]
* [[A_Morph]] {{git|f6dd99d}}
* [[A_Morph]] {{new}}
* [[A_NoBlocking]]
* [[A_NoBlocking]]
* [[A_NoGravity]]
* [[A_NoGravity]]
Line 178: Line 178:
* [[A_SetAngle]]
* [[A_SetAngle]]
* [[A_SetArg]]
* [[A_SetArg]]
* [[A_SetChaseThreshold]] {{git|43b4d45}}
* [[A_SetChaseThreshold]] {{new}}
* [[A_SetDamageType]]
* [[A_SetDamageType]]
* [[A_SetFloat]]
* [[A_SetFloat]]
Line 188: Line 188:
* [[A_SetInvulnerable]]
* [[A_SetInvulnerable]]
* [[A_SetMass]]
* [[A_SetMass]]
* [[A_SetMugshotState]] {{git|fb3d4bd}}
* [[A_SetMugshotState]] {{new}}
* [[A_SetPainThreshold]]
* [[A_SetPainThreshold]]
* [[A_SetPitch]]
* [[A_SetPitch]]
* [[A_SetReflective]]
* [[A_SetReflective]]
* [[A_SetReflectiveInvulnerable]]
* [[A_SetReflectiveInvulnerable]]
* [[A_SetRenderStyle]] {{git|80f2f58}}
* [[A_SetRenderStyle]] {{new}}
* [[A_SetRipperLevel]]
* [[A_SetRipperLevel]]
* [[A_SetRipMin]]
* [[A_SetRipMin]]
Line 201: Line 201:
* [[A_SetShadow]]
* [[A_SetShadow]]
* [[A_SetShootable]]
* [[A_SetShootable]]
* [[A_SetSize]] {{git|1bcebb0}}
* [[A_SetSize]] {{new}}
* [[A_SetSolid]]
* [[A_SetSolid]]
* [[A_SetSpecial]]
* [[A_SetSpecial]]
Line 208: Line 208:
* [[A_SetTeleFog]]
* [[A_SetTeleFog]]
* [[A_SetTics]]
* [[A_SetTics]]
* [[A_SetTranslucent]] {{deprecated|80f2f58}}
* [[A_SetTranslucent]] {{deprecated}}
* [[A_SetUserArray]]
* [[A_SetUserArray]]
* [[A_SetUserArrayFloat]] {{git|b6e3358}}
* [[A_SetUserArrayFloat]] {{new}}
* [[A_SetUserVar]]
* [[A_SetUserVar]]
* [[A_SetUserVarFloat]] {{git|b6e3358}}
* [[A_SetUserVarFloat]] {{new}}
* [[A_SetTranslation]] {{git|0bce6e3}}
* [[A_SetTranslation]] {{new}}
* [[A_SetVisibleRotation]] {{git|dfa4f38}}
* [[A_SetVisibleRotation]] {{new}}
* [[A_SwapTeleFog]]
* [[A_SwapTeleFog]]
* [[A_TransferPointer]]
* [[A_TransferPointer]]
Line 252: Line 252:
* [[A_TakeFromTarget]]
* [[A_TakeFromTarget]]
* [[A_SelectWeapon]]
* [[A_SelectWeapon]]
* [[A_SetInventory]] {{git|5dc94a1}}
* [[A_SetInventory]] {{new}}
* [[A_RadiusGive]]
* [[A_RadiusGive]]


== Weapon functions ==
== Weapon functions ==
* [[A_WeaponReady]]
* [[A_WeaponReady]]
* [[A_WeaponOffset]] {{git|115dbd0}}
* [[A_WeaponOffset]] {{new}}
* [[A_Lower]]
* [[A_Lower]]
* [[A_Raise]]
* [[A_Raise]]
Line 272: Line 272:
* [[A_Light2]]
* [[A_Light2]]
* [[A_LightInverse]]
* [[A_LightInverse]]
* [[A_ClearOverlays]] {{git|dd41087}}
* [[A_ClearOverlays]] {{new}}
* [[A_Overlay]] {{git|7ccdbf9}}
* [[A_Overlay]] {{new}}
* [[A_OverlayFlags]] {{git|7ccdbf9}}
* [[A_OverlayFlags]] {{new}}
* [[A_OverlayOffset]] {{git|7ccdbf9}}
* [[A_OverlayOffset]] {{new}}
* [[A_Recoil]]
* [[A_Recoil]]
* [[A_ZoomFactor]]
* [[A_ZoomFactor]]
Line 283: Line 283:
* [[A_CustomPunch]]
* [[A_CustomPunch]]
* [[A_FireBullets]]
* [[A_FireBullets]]
* [[A_FireCustomMissile]] {{deprecated}} on {{git|2879749}}
* [[A_FireCustomMissile]] {{deprecated}}
* [[A_FireProjectile]] {{git|2879749}}
* [[A_FireProjectile]] {{new}}
* [[A_FireAssaultGun]]
* [[A_FireAssaultGun]]
* [[A_FireBFG]]
* [[A_FireBFG]]

Revision as of 14:13, 20 March 2017

The following are all the code pointers supported by ZDoom's DECORATE lump as of the latest source code. These are placed at the end of an individual frame definition within the actor's state block. You may also use any action special in place of an action function. See also the category for a more exhaustive listing.

As of (New from 4.14.3), functions may have a return type (e.g. return A_FunctionName). See anonymous functions for details.

Monster AI

Generic monster attacks

Freeze death functions

Sound functions

Print actions

Special actions

Spawn functions

State jumps

Status changes

Missile movement

Inventory functions

Weapon functions

Weapon attack functions

Script functions

Original Doom/Strife monster attacks

Miscellaneous functions for Doom

See also