A_Pain is an action that plays the actor's
PainSound if it has one. It will also remove
MF2_SUPERFIRE from the actor's secondary flags.
Code – A_Pain
// Function: A_Pain
// Description: Starts the pain sound of the object.
// var1 = unused
// var2 = unused
void A_Pain(mobj_t *actor)
if (LUA_CallAction("A_Pain", actor))
actor->flags2 &= ~MF2_FIRING;
actor->flags2 &= ~MF2_SUPERFIRE;