2016-03-01 15:47:10 +00:00
|
|
|
/*
|
|
|
|
#include "actor.h"
|
|
|
|
#include "a_action.h"
|
|
|
|
#include "a_strifeglobal.h"
|
|
|
|
#include "p_enemy.h"
|
|
|
|
#include "r_defs.h"
|
2016-10-12 17:22:33 +00:00
|
|
|
#include "vm.h"
|
2016-03-01 15:47:10 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|