diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /mp/src/game/server/hl2/npc_combines.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/game/server/hl2/npc_combines.h')
| -rw-r--r-- | mp/src/game/server/hl2/npc_combines.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/mp/src/game/server/hl2/npc_combines.h b/mp/src/game/server/hl2/npc_combines.h new file mode 100644 index 00000000..5cd68633 --- /dev/null +++ b/mp/src/game/server/hl2/npc_combines.h @@ -0,0 +1,61 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef NPC_COMBINES_H
+#define NPC_COMBINES_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "npc_combine.h"
+
+//=========================================================
+// >> CNPC_CombineS
+//=========================================================
+class CNPC_CombineS : public CNPC_Combine
+{
+ DECLARE_CLASS( CNPC_CombineS, CNPC_Combine );
+#if HL2_EPISODIC
+ DECLARE_DATADESC();
+#endif
+
+public:
+ void Spawn( void );
+ void Precache( void );
+ void DeathSound( const CTakeDamageInfo &info );
+ void PrescheduleThink( void );
+ void BuildScheduleTestBits( void );
+ int SelectSchedule ( void );
+ float GetHitgroupDamageMultiplier( int iHitGroup, const CTakeDamageInfo &info );
+ void HandleAnimEvent( animevent_t *pEvent );
+ void OnChangeActivity( Activity eNewActivity );
+ void Event_Killed( const CTakeDamageInfo &info );
+ void OnListened();
+
+ void ClearAttackConditions( void );
+
+ bool m_fIsBlocking;
+
+ bool IsLightDamage( const CTakeDamageInfo &info );
+ bool IsHeavyDamage( const CTakeDamageInfo &info );
+
+ virtual bool AllowedToIgnite( void ) { return true; }
+
+private:
+ bool ShouldHitPlayer( const Vector &targetDir, float targetDist );
+
+#if HL2_EPISODIC
+public:
+ Activity NPC_TranslateActivity( Activity eNewActivity );
+
+protected:
+ /// whether to use the more casual march anim in ep2_outland_05
+ int m_iUseMarch;
+#endif
+
+};
+
+#endif // NPC_COMBINES_H
|