mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-17 14:07:48 +00:00
1
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
//=============================================================================//
|
||||
|
||||
#ifndef DOD_SMOKEGRENADE_H
|
||||
#define DOD_SMOKEGRENADE_H
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include "dod_basegrenade.h"
|
||||
|
||||
class CDODSmokeGrenade : public CDODBaseGrenade
|
||||
{
|
||||
public:
|
||||
DECLARE_CLASS( CDODSmokeGrenade, CDODBaseGrenade );
|
||||
DECLARE_DATADESC();
|
||||
|
||||
DECLARE_SERVERCLASS();
|
||||
|
||||
virtual void Spawn();
|
||||
virtual void Precache();
|
||||
virtual void BounceSound( void );
|
||||
virtual void Detonate();
|
||||
|
||||
virtual bool CanBePickedUp( void ) { return false; }
|
||||
|
||||
void Think_Emit();
|
||||
void Think_Fade();
|
||||
void Think_Remove();
|
||||
|
||||
private:
|
||||
bool m_bFading;
|
||||
bool m_bInitialSmoke;
|
||||
float m_flRemoveTime;
|
||||
|
||||
CNetworkVar( float, m_flSmokeSpawnTime );
|
||||
};
|
||||
|
||||
#endif // DOD_SMOKEGRENADE_H
|
||||
Reference in New Issue
Block a user