A_MaceRotate

From SRB2 Wiki
Jump to: navigation, search
Test.png This article or section is incomplete. It doesn't have all of the necessary core information on this topic. Please help the SRB2 Wiki by finishing this article.

A_MaceRotate is an action that makes a mace or its chain link rotate around its target, assuming the action is used every tic. If the actor doesn't have a target however, it will be removed from the map. Speed sets the radius of the Object from its target, which also depends on the actor's reaction time value (used as the actor's position in the chain). If the Object type of the actor is MT_BIGMACE or MT_SMALLMACE, and its target's Object type is MT_MACEPOINT (Mace (Spinning)), ActiveSound is played every 63 tics unless MF2_BOSSNOTRAP is set in the actor's secondary flags – this is given to the mace Objects for Mace (Spinning) and Mace (Swinging) when Special is checked in the Thing flags.

The way the actor is rotated around its target depends on the Object type of the actor's target Object, as detailed below:

Object type of target Effect
MT_MACEPOINT Actor is swung in a circle around the target;
If MF2_BOSSNOTRAP is not set, actor's ActiveSound is played (only for MT_BIGMACE/MT_SMALLMACE)
MT_SWINGMACEPOINT Actor is swung in a back-and-forth motion around the target
MT_HANGMACEPOINT Actor is swung in a back-and-forth motion around the target
MT_SPINMACEPOINT Actor is swung in a circle around the target
MT_HIDDEN_SLING Actor is swung in a circle around the target
Default Actor is swung in a circle around the target
Object property Use
ActiveSound Swinging sound; played if Object is MT_BIGMACE/MT_SMALLMACE, and its target is MT_MACEPOINT
Speed Sets radius of Object from its target

  Actions – Rotational movement [view]
A_Custom3DRotateA_MaceRotateA_OrbitNightsA_RotateSpikeBallA_SparkFollowA_UnidusBall