mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-29 17:43:01 +00:00
57 lines
1.1 KiB
C++
57 lines
1.1 KiB
C++
//========= Copyright Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose:
|
|
//
|
|
// $NoKeywords: $
|
|
//=============================================================================//
|
|
|
|
#ifndef GRENADE_TRIPMINE_H
|
|
#define GRENADE_TRIPMINE_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "basegrenade_shared.h"
|
|
|
|
class CBeam;
|
|
|
|
|
|
class CTripmineGrenade : public CBaseGrenade
|
|
{
|
|
public:
|
|
DECLARE_CLASS( CTripmineGrenade, CBaseGrenade );
|
|
|
|
CTripmineGrenade();
|
|
void Spawn( void );
|
|
void Precache( void );
|
|
|
|
#if 0 // FIXME: OnTakeDamage_Alive() is no longer called now that base grenade derives from CBaseAnimating
|
|
int OnTakeDamage_Alive( const CTakeDamageInfo &info );
|
|
#endif
|
|
void WarningThink( void );
|
|
void PowerupThink( void );
|
|
void BeamBreakThink( void );
|
|
void DelayDeathThink( void );
|
|
void Event_Killed( const CTakeDamageInfo &info );
|
|
|
|
void MakeBeam( void );
|
|
void KillBeam( void );
|
|
|
|
public:
|
|
EHANDLE m_hOwner;
|
|
|
|
private:
|
|
float m_flPowerUp;
|
|
Vector m_vecDir;
|
|
Vector m_vecEnd;
|
|
float m_flBeamLength;
|
|
|
|
CBeam *m_pBeam;
|
|
Vector m_posOwner;
|
|
Vector m_angleOwner;
|
|
|
|
DECLARE_DATADESC();
|
|
};
|
|
|
|
#endif // GRENADE_TRIPMINE_H
|