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

📄 hl1_npc_zombie.h

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


#include	"hl1_ai_basenpc.h"
//=========================================================
// Monster's Anim Events Go Here
//=========================================================
#define	ZOMBIE_AE_ATTACK_RIGHT		0x01
#define	ZOMBIE_AE_ATTACK_LEFT		0x02
#define	ZOMBIE_AE_ATTACK_BOTH		0x03

#define ZOMBIE_FLINCH_DELAY			2		// at most one flinch every n secs

//=========================================================
//=========================================================
class CNPC_Zombie : public CHL1BaseNPC
{
	DECLARE_CLASS( CNPC_Zombie, CHL1BaseNPC );
public:

	void Spawn( void );
	void Precache( void );
	float MaxYawSpeed( void ) { return 120.0f; };
	Class_T Classify( void );
	void HandleAnimEvent( animevent_t *pEvent );
//	int IgnoreConditions ( void );

	float m_flNextFlinch;

	void PainSound( void );
	void AlertSound( void );
	void IdleSound( void );
	void AttackSound( void );

	static const char *pAttackSounds[];
	static const char *pIdleSounds[];
	static const char *pAlertSounds[];
	static const char *pPainSounds[];
	static const char *pAttackHitSounds[];
	static const char *pAttackMissSounds[];

	// No range attacks
	BOOL CheckRangeAttack1 ( float flDot, float flDist ) { return FALSE; }
	BOOL CheckRangeAttack2 ( float flDot, float flDist ) { return FALSE; }
	int OnTakeDamage_Alive( const CTakeDamageInfo &inputInfo );

	void RemoveIgnoredConditions ( void );
};

#endif //NPC_ZOMBIE_H

⌨️ 快捷键说明

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