A_NoBlocking

From ZDoom Wiki
(Redirected from A Fall)
Jump to navigation Jump to search
DoomWiki.org
For more information on this article, visit the A_Fall page on the Doom Wiki.


Actor

void A_NoBlocking (bool drop = true)

void A_Fall ()

Usage

Actor function typiocally called in its Death state sequence. The function does the following:

  • It makes the actor visible if it is stealth.
  • It makes it non-solid (unsetting the SOLID flag).
  • It makes it spawn its dialogue-set and "regular" drop items.
  • It clears the dialogue that is assigned to it.

Note that unlike the dialogue-set drop item, which is cleared from the actor after it is spawned (cleared since the actor no longer has a dialogue assigned to it), the regular drop items are not, which means that these items are spawned each time the function is called. Also, if the actor has both dialogue-set and regular drop items, it only spawns the dialogue-set one for that function call. For all subsequent calls, the regular drop items are spawned, instead.

A_Fall is an alternative name which is Doom's original name for this function. It functions identically to the default A_NoBlocking call with default parameters.

Note that in vanilla Doom, item drops are not handled by A_Fall, but instead by P_KillMobj directly. Drops therefore happen immediately when the actor is killed, instead of happening when the actor calls A_Fall like it does in ZDoom.

Parameters

  • bool drop
Determines whether the actor's DropItem will be spawned. Default is true.

Examples

Example from Zombieman code:

	Death:
		POSS H 5;
		POSS I 5 A_Scream;
		POSS J 5 A_NoBlocking;
		POSS K 5;
		POSS L -1;
		Stop;

Note: This can be combined with A_Scream using A_ScreamAndUnblock.