📄 hl1_npc_gargantua.h
字号:
#ifndef NPC_GARGANTUA_H
#define NPC_GARGANTUA_H
#include "hl1_ai_basenpc.h"
class CNPC_Gargantua : public CHL1BaseNPC
{
DECLARE_CLASS( CNPC_Gargantua, CHL1BaseNPC );
public:
void Spawn( void );
void Precache( void );
Class_T Classify ( void );
float MaxYawSpeed ( void );
int MeleeAttack1Conditions( float flDot, float flDist );
int MeleeAttack2Conditions( float flDot, float flDist );
int RangeAttack1Conditions( float flDot, float flDist );
void HandleAnimEvent( animevent_t *pEvent );
int TranslateSchedule( int scheduleType );
void StartTask( const Task_t *pTask );
void RunTask ( const Task_t *pTask );
void TraceAttack( const CTakeDamageInfo &info, const Vector &vecDir, trace_t *ptr );
int OnTakeDamage_Alive( const CTakeDamageInfo &info );
virtual void SetObjectCollisionBox( void )
{
SetAbsMins( GetAbsOrigin() + Vector( -80, -80, 0 ) );
SetAbsMaxs( GetAbsOrigin() + Vector( 80, 80, 214 ) );
}
/* int TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType );
void TraceAttack( entvars_t *pevAttacker, float flDamage, Vector vecDir, TraceResult *ptr, int bitsDamageType );
Schedule_t *GetScheduleOfType( int Type );
void StartTask( Task_t *pTask );
void RunTask( Task_t *pTask );
*/
void PrescheduleThink( void );
void Event_Killed( const CTakeDamageInfo &info );
void DeathEffect( void );
bool ShouldGib( const CTakeDamageInfo &info );
void EyeOff( void );
void EyeOn( int level );
void EyeUpdate( void );
// void Leap( void );
void StompAttack( void );
void FlameCreate( void );
void FlameUpdate( void );
void FlameControls( float angleX, float angleY );
void FlameDestroy( void );
inline BOOL FlameIsOn( void ) { return m_pFlame[0] != NULL; }
void FlameDamage( Vector vecStart, Vector vecEnd, CBaseEntity *pevInflictor, CBaseEntity *pevAttacker, float flDamage, int iClassIgnore, int bitsDamageType );
DEFINE_CUSTOM_AI;
DECLARE_DATADESC();
private:
static const char *pAttackHitSounds[];
static const char *pBeamAttackSounds[];
static const char *pAttackMissSounds[];
static const char *pRicSounds[];
static const char *pFootSounds[];
static const char *pIdleSounds[];
static const char *pAlertSounds[];
static const char *pPainSounds[];
static const char *pAttackSounds[];
static const char *pStompSounds[];
static const char *pBreatheSounds[];
CBaseEntity* GargantuaCheckTraceHullAttack(float flDist, int iDamage, int iDmgType);
CSprite *m_pEyeGlow; // Glow around the eyes
CBeam *m_pFlame[4]; // Flame beams
int m_eyeBrightness; // Brightness target
float m_seeTime; // Time to attack (when I see the enemy, I set this)
float m_flameTime; // Time of next flame attack
float m_painSoundTime; // Time of next pain sound
float m_streakTime; // streak timer (don't send too many)
float m_flameX; // Flame thrower aim
float m_flameY;
float m_flDmgTime;
};
#endif //NPC_GARGANTUA_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -