You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
//========= Copyright Valve Corporation, All rights reserved. ============// |
|
// eyeball_boss_stunned.h |
|
// The 2011 Halloween Boss |
|
// Michael Booth, October 2011 |
|
|
|
#ifndef EYEBALL_BOSS_STUNNED_H |
|
#define EYEBALL_BOSS_STUNNED_H |
|
|
|
//--------------------------------------------------------------------------------------------- |
|
//--------------------------------------------------------------------------------------------- |
|
class CEyeballBossStunned : public Action< CEyeballBoss > |
|
{ |
|
public: |
|
virtual ActionResult< CEyeballBoss > OnStart( CEyeballBoss *me, Action< CEyeballBoss > *priorAction ); |
|
virtual ActionResult< CEyeballBoss > Update( CEyeballBoss *me, float interval ); |
|
virtual void OnEnd( CEyeballBoss *me, Action< CEyeballBoss > *nextAction ); |
|
|
|
virtual EventDesiredResult< CEyeballBoss > OnInjured( CEyeballBoss *me, const CTakeDamageInfo &info ) |
|
{ |
|
// don't get stunned while stunned |
|
return TryToSustain( RESULT_CRITICAL ); |
|
} |
|
|
|
virtual const char *GetName( void ) const { return "Stunned"; } // return name of this action |
|
|
|
private: |
|
CountdownTimer m_stunTimer; |
|
float m_spinRate; |
|
}; |
|
|
|
#endif // EYEBALL_BOSS_STUNNED_H
|
|
|