hl1_npc_hornet.h

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

H
79
字号
#ifndef NPC_HORNET_H
#define NPC_HORNET_H

#include "hl1_ai_basenpc.h"


/***
*
*	Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*	
*	This product contains software technology licensed from Id 
*	Software, Inc. ("Id Technology").  Id Technology (c) 1996 Id Software, Inc. 
*	All Rights Reserved.
*
*   Use, distribution, and modification of this source code and/or resulting
*   object code is restricted to non-commercial enhancements to products from
*   Valve LLC.  All other use, distribution, or modification is prohibited
*   without written permission from Valve LLC.
*
****/
//=========================================================
// Hornets
//=========================================================

//=========================================================
// Hornet Defines
//=========================================================
#define HORNET_TYPE_RED			0
#define HORNET_TYPE_ORANGE		1
#define HORNET_RED_SPEED		(float)600
#define HORNET_ORANGE_SPEED		(float)800
#define	HORNET_BUZZ_VOLUME		(float)0.8

extern int iHornetPuff;

//=========================================================
// Hornet - this is the projectile that the Alien Grunt fires.
//=========================================================
class CNPC_Hornet : public CHL1BaseNPC
{
	DECLARE_CLASS( CNPC_Hornet, CHL1BaseNPC );
public:

	void Spawn( void );
	void Precache( void );
	Class_T	 Classify ( void );
	Disposition_t		IRelationType(CBaseEntity *pTarget);

	void DieTouch ( CBaseEntity *pOther );
	void DartTouch( CBaseEntity *pOther );
	void TrackTouch ( CBaseEntity *pOther );
	void TrackTarget ( void );
	void StartDart ( void );
	void IgniteTrail( void );
	void StartTrack(void);
	
	/*	virtual int		Save( CSave &save );
	virtual int		Restore( CRestore &restore );
	static	TYPEDESCRIPTION m_SaveData[];

	
	void EXPORT StartTrack ( void );
	
	void EXPORT TrackTarget ( void );
	void EXPORT TrackTouch ( CBaseEntity *pOther );
	void EXPORT DartTouch( CBaseEntity *pOther );
	
	
	int TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType );*/

	float			m_flStopAttack;
	int				m_iHornetType;
	float			m_flFlySpeed;
	int				m_flDamage;

	DECLARE_DATADESC();
};

#endif //NPC_HORNET_H

⌨️ 快捷键说明

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