2 @Copyright Looking Glass Studios, Inc.
3 1996,1997,1998,1999,2000 Unpublished Work.
6 ///////////////////////////////////////////////////////////////////////////////
7 // $Header: r:/t2repos/thief2/src/shock/shkaicmd.cpp,v 1.1 1999/06/18 22:07:20 JON Exp $
24 // Must be last header
27 ///////////////////////////////////////////////////////////////////////////////
29 // CLASS: cAICameraDeath
32 STDMETHODIMP_(const char *) cAICameraDeath::GetName()
37 //////////////////////////////////////
39 STDMETHODIMP_(void) cAICameraDeath::Init()
41 // Intentially not calling base -- want no goals or notifications by default
42 SetNotifications(kAICN_Death
);
47 //////////////////////////////////////
49 STDMETHODIMP_(void) cAICameraDeath::OnDeath(const sDamageMsg
* pMsg
)
51 // Halt all current sounds
52 if (m_pAI
->AccessSoundEnactor())
53 m_pAI
->AccessSoundEnactor()->HaltCurrent();
58 AIWatch(Death
, m_pAI
->GetObjID(), "camera death");
61 //////////////////////////////////////
63 STDMETHODIMP
cAICameraDeath::SuggestGoal(cAIGoal
* pPrevious
, cAIGoal
** ppGoal
)
71 *ppGoal
= new cAIDieGoal(this);
72 (*ppGoal
)->priority
= kAIP_VeryHigh
;
79 ///////////////////////////////////////
81 STDMETHODIMP
cAICameraDeath::SuggestActions(cAIGoal
* pGoal
, const cAIActions
& previous
, cAIActions
* pNew
)