hl1_npc_houndeye.h

来自「hl2 source code. Do not use it illegal.」· C头文件 代码 · 共 57 行

H
57
字号
#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 + =
减小字号Ctrl + -
显示快捷键?