📄 hl1_npc_headcrab.h
字号:
#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 int GetVoicePitch( void ) { return 100; }
virtual float GetSoundVolue( void ) { return 1.0; }
static const char *pIdleSounds[];
static const char *pAlertSounds[];
static const char *pPainSounds[];
static const char *pAttackSounds[];
static const char *pDeathSounds[];
static const char *pBiteSounds[];
int m_nGibCount;
DEFINE_CUSTOM_AI;
DECLARE_DATADESC();
protected:
Vector m_vecJumpVel;
};
#endif //NPC_HEADCRAB_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -