A_DropMine

From SRB2 Wiki
Jump to: navigation, search

A_DropMine is an action that makes the actor drop an Object and plays the actor's AttackSound. The actor's RaiseState specifies the Object type of the dropped Object. By default, the Object is spawned 12 fracunits below the actor, but Var1 can be used to set a height offset in fracunits. The height offset and the dropped Object will flip accordingly with the actor's gravity direction.

Var2 can be used to perform a proximity check before dropping the Object: the lower 16 bits of Var2 set the distance threshold (0 disables the proximity check). The Object is only dropped if the horizontal distance between the actor and its target is smaller than the threshold. If the upper 16 bits of Var2 are set to 1, the proximity check is performed with the actor's tracer instead. If the chosen Object does not exist for performing a proximity check with, this action will do nothing.

In SRB2, this action is used by the Skim to drop Objects of type MT_MINE on the player.

Object property Use
RaiseState Object type to drop
AttackSound Object dropping sound

  Actions – Projectiles [view]
A_DropMineA_FireShotA_LobShotA_MissileSplitA_MultiShotA_NapalmScatterA_ShootBulletA_SplitShotA_SuperFireShotA_SuperTurretFireA_TrapShotA_TurretFireA_TurretStopA_VileAttackA_VileFireA_VileTarget