A_Scream is an action that plays the actor's DeathSound
if it has one. If the actor's tracer is the Koopa Shell (MT_SHELL
) or the Fire Flower's Fireball (MT_FIREBALL
), then this action plays sfx_mario2
instead.
Code – A_Scream
|
|
// Function: A_Scream
//
// Description: Starts the death sound of the object.
//
// var1 = unused
// var2 = unused
//
void A_Scream(mobj_t *actor)
{
#ifdef HAVE_BLUA
if (LUA_CallAction("A_Scream", actor))
return;
#endif
if (actor->tracer && (actor->tracer->type == MT_SHELL || actor->tracer->type == MT_FIREBALL))
S_StartScreamSound(actor, sfx_mario2);
else if (actor->info->deathsound)
S_StartScreamSound(actor, actor->info->deathsound);
}
|
|