2016-06-04 15:24:23 +02:00
|
|
|
/***
|
|
|
|
*
|
|
|
|
* Copyright (c) 1996-2002, 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
|
|
|
|
//=========================================================
|
2017-12-10 21:40:41 +01:00
|
|
|
#pragma once
|
2021-06-20 00:53:07 +02:00
|
|
|
#if !defined(HORNET_H)
|
2017-12-10 21:40:41 +01:00
|
|
|
#define HORNET_H
|
2016-06-04 15:24:23 +02:00
|
|
|
//=========================================================
|
|
|
|
// 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 CHornet : public CBaseMonster
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void Spawn( void );
|
|
|
|
void Precache( void );
|
2016-07-31 15:48:50 +02:00
|
|
|
int Classify( void );
|
|
|
|
int IRelationship( CBaseEntity *pTarget );
|
|
|
|
virtual int Save( CSave &save );
|
|
|
|
virtual int Restore( CRestore &restore );
|
|
|
|
static TYPEDESCRIPTION m_SaveData[];
|
2016-06-04 15:24:23 +02:00
|
|
|
|
|
|
|
void IgniteTrail( void );
|
2016-07-31 15:48:50 +02:00
|
|
|
void EXPORT StartTrack( void );
|
|
|
|
void EXPORT StartDart( void );
|
|
|
|
void EXPORT TrackTarget( void );
|
|
|
|
void EXPORT TrackTouch( CBaseEntity *pOther );
|
2016-06-04 15:24:23 +02:00
|
|
|
void EXPORT DartTouch( CBaseEntity *pOther );
|
2016-07-31 15:48:50 +02:00
|
|
|
void EXPORT DieTouch( CBaseEntity *pOther );
|
|
|
|
|
2016-06-04 15:24:23 +02:00
|
|
|
int TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType );
|
|
|
|
|
2016-07-31 15:48:50 +02:00
|
|
|
float m_flStopAttack;
|
|
|
|
int m_iHornetType;
|
|
|
|
float m_flFlySpeed;
|
2016-06-04 15:24:23 +02:00
|
|
|
};
|
2017-12-10 21:40:41 +01:00
|
|
|
#endif // HORNET_H
|