A_Pain is an action that plays the actor's PainSound
if it has one. It will also remove MF2_FIRING
and 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)
{
#ifdef HAVE_BLUA
if (LUA_CallAction("A_Pain", actor))
return;
#endif
if (actor->info->painsound)
S_StartSound(actor, actor->info->painsound);
actor->flags2 &= ~MF2_FIRING;
actor->flags2 &= ~MF2_SUPERFIRE;
}
|
|