diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/hl1/hl1_npc_headcrab.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/hl1/hl1_npc_headcrab.h')
| -rw-r--r-- | game/server/hl1/hl1_npc_headcrab.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/game/server/hl1/hl1_npc_headcrab.h b/game/server/hl1/hl1_npc_headcrab.h new file mode 100644 index 0000000..c047415 --- /dev/null +++ b/game/server/hl1/hl1_npc_headcrab.h @@ -0,0 +1,63 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// +#ifndef NPC_HEADCRAB_H +#define NPC_HEADCRAB_H +#pragma once + + +#include "hl1_ai_basenpc.h" + +class CNPC_Headcrab : public CHL1BaseNPC +{ + DECLARE_CLASS( CNPC_Headcrab, CHL1BaseNPC ); +public: + + void Spawn( void ); + void Precache( void ); + + void RunTask ( const Task_t *pTask ); + void StartTask ( const Task_t *pTask ); + void SetYawSpeed ( void ); + Vector Center( void ); + Vector BodyTarget( const Vector &posSrc, bool bNoisy = true ); + + float MaxYawSpeed( void ); + Class_T Classify( void ); + + void LeapTouch ( CBaseEntity *pOther ); + void BiteSound( void ); + void AttackSound( void ); + void TouchDamage( CBaseEntity *pOther ); + void HandleAnimEvent( animevent_t *pEvent ); + int SelectSchedule( void ); + void Touch( CBaseEntity *pOther ); + int OnTakeDamage_Alive( const CTakeDamageInfo &inputInfo ); + int TranslateSchedule( int scheduleType ); + void PrescheduleThink( void ); + int RangeAttack1Conditions ( float flDot, float flDist ); + float GetDamageAmount( void ); + virtual void PainSound( const CTakeDamageInfo &info ); + virtual void DeathSound( const CTakeDamageInfo &info ); + virtual void IdleSound(); + virtual void AlertSound(); + + virtual int GetVoicePitch( void ) { return 100; } + virtual float GetSoundVolume( void ) { return 1.0; } + + int m_nGibCount; + + DEFINE_CUSTOM_AI; + DECLARE_DATADESC(); + +protected: + void HeadCrabSound( const char *pchSound ); + + Vector m_vecJumpVel; +}; + +#endif //NPC_HEADCRAB_H
\ No newline at end of file |