aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/hl2/weapon_flaregun.h
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /mp/src/game/server/hl2/weapon_flaregun.h
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/game/server/hl2/weapon_flaregun.h')
-rw-r--r--mp/src/game/server/hl2/weapon_flaregun.h212
1 files changed, 106 insertions, 106 deletions
diff --git a/mp/src/game/server/hl2/weapon_flaregun.h b/mp/src/game/server/hl2/weapon_flaregun.h
index 0e470270..5fcfac34 100644
--- a/mp/src/game/server/hl2/weapon_flaregun.h
+++ b/mp/src/game/server/hl2/weapon_flaregun.h
@@ -1,106 +1,106 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#include "basehlcombatweapon.h"
-#include "soundenvelope.h"
-
-#ifndef WEAPON_FLAREGUN_H
-#define WEAPON_FLAREGUN_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-#define SF_FLARE_NO_DLIGHT 0x00000001
-#define SF_FLARE_NO_SMOKE 0x00000002
-#define SF_FLARE_INFINITE 0x00000004
-#define SF_FLARE_START_OFF 0x00000008
-
-#define FLARE_DURATION 30.0f
-#define FLARE_DECAY_TIME 10.0f
-#define FLARE_BLIND_TIME 6.0f
-
-//---------------------
-// Flare
-//---------------------
-
-class CFlare : public CBaseCombatCharacter
-{
-public:
- DECLARE_CLASS( CFlare, CBaseCombatCharacter );
-
- CFlare();
- ~CFlare();
-
- static CFlare * GetActiveFlares( void );
- CFlare * GetNextFlare( void ) const { return m_pNextFlare; }
-
- static CFlare *Create( Vector vecOrigin, QAngle vecAngles, CBaseEntity *pOwner, float lifetime );
-
- virtual unsigned int PhysicsSolidMaskForEntity( void ) const;
-
- void Spawn( void );
- void Precache( void );
- int Restore( IRestore &restore );
- void Activate( void );
-
- void StartBurnSound( void );
-
- void Start( float lifeTime );
- void Die( float fadeTime );
- void Launch( const Vector &direction, float speed );
-
- Class_T Classify( void );
-
- void FlareTouch( CBaseEntity *pOther );
- void FlareBurnTouch( CBaseEntity *pOther );
- void FlareThink( void );
-
- void InputStart( inputdata_t &inputdata );
- void InputDie( inputdata_t &inputdata );
- void InputLaunch( inputdata_t &inputdata );
-
- DECLARE_SERVERCLASS();
- DECLARE_DATADESC();
-
- static CFlare *activeFlares;
-
- CBaseEntity *m_pOwner;
- int m_nBounces; // how many times has this flare bounced?
- CNetworkVar( float, m_flTimeBurnOut ); // when will the flare burn out?
- CNetworkVar( float, m_flScale );
- float m_flDuration;
- float m_flNextDamage;
-
- CSoundPatch *m_pBurnSound;
- bool m_bFading;
- CNetworkVar( bool, m_bLight );
- CNetworkVar( bool, m_bSmoke );
- CNetworkVar( bool, m_bPropFlare );
-
- bool m_bInActiveList;
- CFlare * m_pNextFlare;
-
- void RemoveFromActiveFlares( void );
- void AddToActiveFlares( void );
-};
-
-//---------------------
-// Flaregun
-//---------------------
-class CFlaregun:public CBaseHLCombatWeapon
-{
-public:
- DECLARE_CLASS( CFlaregun, CBaseHLCombatWeapon );
-
- DECLARE_SERVERCLASS();
-
- void Precache( void );
- void PrimaryAttack( void );
- void SecondaryAttack( void );
-};
-
-#endif // WEAPON_FLAREGUN_H
-
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#include "basehlcombatweapon.h"
+#include "soundenvelope.h"
+
+#ifndef WEAPON_FLAREGUN_H
+#define WEAPON_FLAREGUN_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#define SF_FLARE_NO_DLIGHT 0x00000001
+#define SF_FLARE_NO_SMOKE 0x00000002
+#define SF_FLARE_INFINITE 0x00000004
+#define SF_FLARE_START_OFF 0x00000008
+
+#define FLARE_DURATION 30.0f
+#define FLARE_DECAY_TIME 10.0f
+#define FLARE_BLIND_TIME 6.0f
+
+//---------------------
+// Flare
+//---------------------
+
+class CFlare : public CBaseCombatCharacter
+{
+public:
+ DECLARE_CLASS( CFlare, CBaseCombatCharacter );
+
+ CFlare();
+ ~CFlare();
+
+ static CFlare * GetActiveFlares( void );
+ CFlare * GetNextFlare( void ) const { return m_pNextFlare; }
+
+ static CFlare *Create( Vector vecOrigin, QAngle vecAngles, CBaseEntity *pOwner, float lifetime );
+
+ virtual unsigned int PhysicsSolidMaskForEntity( void ) const;
+
+ void Spawn( void );
+ void Precache( void );
+ int Restore( IRestore &restore );
+ void Activate( void );
+
+ void StartBurnSound( void );
+
+ void Start( float lifeTime );
+ void Die( float fadeTime );
+ void Launch( const Vector &direction, float speed );
+
+ Class_T Classify( void );
+
+ void FlareTouch( CBaseEntity *pOther );
+ void FlareBurnTouch( CBaseEntity *pOther );
+ void FlareThink( void );
+
+ void InputStart( inputdata_t &inputdata );
+ void InputDie( inputdata_t &inputdata );
+ void InputLaunch( inputdata_t &inputdata );
+
+ DECLARE_SERVERCLASS();
+ DECLARE_DATADESC();
+
+ static CFlare *activeFlares;
+
+ CBaseEntity *m_pOwner;
+ int m_nBounces; // how many times has this flare bounced?
+ CNetworkVar( float, m_flTimeBurnOut ); // when will the flare burn out?
+ CNetworkVar( float, m_flScale );
+ float m_flDuration;
+ float m_flNextDamage;
+
+ CSoundPatch *m_pBurnSound;
+ bool m_bFading;
+ CNetworkVar( bool, m_bLight );
+ CNetworkVar( bool, m_bSmoke );
+ CNetworkVar( bool, m_bPropFlare );
+
+ bool m_bInActiveList;
+ CFlare * m_pNextFlare;
+
+ void RemoveFromActiveFlares( void );
+ void AddToActiveFlares( void );
+};
+
+//---------------------
+// Flaregun
+//---------------------
+class CFlaregun:public CBaseHLCombatWeapon
+{
+public:
+ DECLARE_CLASS( CFlaregun, CBaseHLCombatWeapon );
+
+ DECLARE_SERVERCLASS();
+
+ void Precache( void );
+ void PrimaryAttack( void );
+ void SecondaryAttack( void );
+};
+
+#endif // WEAPON_FLAREGUN_H
+