2008-09-15 14:11:05 +00:00
|
|
|
/*
|
2006-02-24 04:48:15 +00:00
|
|
|
#include "actor.h"
|
|
|
|
#include "a_action.h"
|
|
|
|
#include "a_strifeglobal.h"
|
|
|
|
#include "p_enemy.h"
|
2008-09-15 14:11:05 +00:00
|
|
|
#include "r_defs.h"
|
2008-08-10 20:48:55 +00:00
|
|
|
#include "thingdef/thingdef.h"
|
2008-09-15 14:11:05 +00:00
|
|
|
*/
|
2006-02-24 04:48:15 +00:00
|
|
|
|
|
|
|
|
2008-08-10 20:48:55 +00:00
|
|
|
DEFINE_ACTION_FUNCTION(AActor, A_WakeOracleSpectre)
|
2006-02-24 04:48:15 +00:00
|
|
|
{
|
2008-08-06 17:49:22 +00:00
|
|
|
TThinkerIterator<AActor> it(NAME_AlienSpectre3);
|
2006-02-24 04:48:15 +00:00
|
|
|
AActor *spectre = it.Next();
|
|
|
|
|
|
|
|
if (spectre != NULL)
|
|
|
|
{
|
2006-04-20 14:21:27 +00:00
|
|
|
spectre->Sector->SoundTarget = spectre->LastHeard = self->LastHeard;
|
2006-02-24 04:48:15 +00:00
|
|
|
spectre->target = self->target;
|
|
|
|
spectre->SetState (spectre->SeeState);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|