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

📄 hl1_npc_houndeye.h

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

#include "hl1_ai_basenpc.h"

class CNPC_Houndeye : public CHL1BaseNPC
{
	DECLARE_CLASS( CNPC_Houndeye, CHL1BaseNPC );
	
public:
	void Spawn( void );
	void Precache( void );

	void WarmUpSound ( void );
	void AlertSound( void );
	void DeathSound( void );
	void WarnSound( void );
	void PainSound( void );
	void IdleSound( void );
	
	float MaxYawSpeed  ( void );

	Class_T	Classify ( void );
	
	void HandleAnimEvent( animevent_t *pEvent );

	void SonicAttack ( void );

	Vector WriteBeamColor( void );
	bool ShouldGoToIdleState( void );
	bool FValidateHintType ( CAI_Hint *pHint );
	
	void SetActivity ( Activity NewActivity );

	void StartTask( const Task_t *pTask );
	void RunTask ( const Task_t *pTask );
	void PrescheduleThink ( void );

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

	float FLSoundVolume( CSound *pSound );
	int RangeAttack1Conditions ( float flDot, float flDist );

	DEFINE_CUSTOM_AI;
	DECLARE_DATADESC();

private:

	int m_iSpriteTexture;
	bool m_fAsleep;// some houndeyes sleep in idle mode if this is set, the houndeye is lying down
	bool m_fDontBlink;// don't try to open/close eye if this bit is set!
	Vector	m_vecPackCenter; // the center of the pack. The leader maintains this by averaging the origins of all pack members.
};

#endif // NPC_HOUNDEYE_H

⌨️ 快捷键说明

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