mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-12-12 21:22:22 +00:00
26 lines
547 B
C++
26 lines
547 B
C++
/*
|
|
#include "actor.h"
|
|
#include "a_action.h"
|
|
#include "a_strifeglobal.h"
|
|
#include "p_enemy.h"
|
|
#include "r_defs.h"
|
|
#include "thingdef/thingdef.h"
|
|
*/
|
|
|
|
|
|
DEFINE_ACTION_FUNCTION(AActor, A_WakeOracleSpectre)
|
|
{
|
|
PARAM_ACTION_PROLOGUE;
|
|
|
|
TThinkerIterator<AActor> it(NAME_AlienSpectre3);
|
|
AActor *spectre = it.Next();
|
|
|
|
if (spectre != NULL && spectre->health > 0 && self->target != spectre)
|
|
{
|
|
spectre->Sector->SoundTarget = spectre->LastHeard = self->LastHeard;
|
|
spectre->target = self->target;
|
|
spectre->SetState (spectre->SeeState);
|
|
}
|
|
return 0;
|
|
}
|
|
|