⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hl1_npc_vortigaunt.h

📁 hl2 source code. Do not use it illegal.
💻 H
字号:
#ifndef NPC_VORTIGAUNT_H
#define NPC_VORTIGAUNT_H

#define	VORTIGAUNT_MAX_BEAMS	8

#include "hl1_ai_basenpc.h"
//=========================================================
//=========================================================
class CNPC_Vortigaunt : public CHL1BaseNPC
{
	DECLARE_CLASS( CNPC_Vortigaunt, CHL1BaseNPC );
public:

	void Spawn( void );
	void Precache( void );
	Class_T	Classify ( void );

	void AlertSound( void );
	void IdleSound( void );
	void PainSound( void );
	void DeathSound( void );
	
	int	 GetSoundInterests ( void );
	
	float MaxYawSpeed ( void );

	void Event_Killed( const CTakeDamageInfo &info );
	void CallForHelp( char *szClassname, float flDist, CBaseEntity * pEnemy, Vector &vecLocation );

	int  RangeAttack1Conditions( float flDot, float flDist );

	int  OnTakeDamage_Alive( const CTakeDamageInfo &inputInfo );
	void TraceAttack( const CTakeDamageInfo &info, const Vector &vecDir, trace_t *ptr );
	
	void StartTask( const Task_t *pTask );

	int  SelectSchedule( void );
	int  TranslateSchedule( int scheduleType );

	void ArmBeam( int side );
	void BeamGlow( void );
	void WackBeam( int side, CBaseEntity *pEntity );
	void ZapBeam( int side );
	void ClearBeams( void );

	void HandleAnimEvent( animevent_t *pEvent );

	static const char *pAttackHitSounds[];
	static const char *pAttackMissSounds[];
	static const char *pPainSounds[];
	static const char *pDeathSounds[];
	
	DEFINE_CUSTOM_AI;
	DECLARE_DATADESC();

private:
	int m_iVoicePitch;
	int	  m_iBeams;

	int m_iBravery;

	CBeam *m_pBeam[VORTIGAUNT_MAX_BEAMS];

	float m_flNextAttack;

	EHANDLE m_hDead;
};


#endif //NPC_VORTIGAUNT_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -