diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /mp/src/game/client/c_te_beamringpoint.cpp | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/game/client/c_te_beamringpoint.cpp')
| -rw-r--r-- | mp/src/game/client/c_te_beamringpoint.cpp | 162 |
1 files changed, 81 insertions, 81 deletions
diff --git a/mp/src/game/client/c_te_beamringpoint.cpp b/mp/src/game/client/c_te_beamringpoint.cpp index d44b2b14..832ba2f1 100644 --- a/mp/src/game/client/c_te_beamringpoint.cpp +++ b/mp/src/game/client/c_te_beamringpoint.cpp @@ -1,81 +1,81 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $Workfile: $
-// $Date: $
-//
-//-----------------------------------------------------------------------------
-// $Log: $
-//
-// $NoKeywords: $
-//=============================================================================//
-#include "cbase.h"
-#include "c_te_basebeam.h"
-#include "iviewrender_beams.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-//-----------------------------------------------------------------------------
-// Purpose: BeamRingPoint TE
-//-----------------------------------------------------------------------------
-class C_TEBeamRingPoint : public C_TEBaseBeam
-{
-public:
- DECLARE_CLASS( C_TEBeamRingPoint, C_TEBaseBeam );
- DECLARE_CLIENTCLASS();
-
- C_TEBeamRingPoint( void );
- virtual ~C_TEBeamRingPoint( void );
-
- virtual void PostDataUpdate( DataUpdateType_t updateType );
-
-public:
- Vector m_vecCenter;
- float m_flStartRadius;
- float m_flEndRadius;
-};
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-C_TEBeamRingPoint::C_TEBeamRingPoint( void )
-{
- m_vecCenter.Init();
- m_flStartRadius = 0.0f;
- m_flEndRadius = 0.0f;
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-C_TEBeamRingPoint::~C_TEBeamRingPoint( void )
-{
-}
-
-void TE_BeamRingPoint( IRecipientFilter& filter, float delay,
- const Vector& center, float start_radius, float end_radius, int modelindex, int haloindex, int startframe, int framerate,
- float life, float width, int spread, float amplitude, int r, int g, int b, int a, int speed, int flags )
-{
- beams->CreateBeamRingPoint( center, start_radius, end_radius, modelindex, haloindex, 0.0f,
- life, width, 0.1 * spread, 0.0f, amplitude, a, 0.1 * speed,
- startframe, 0.1 * framerate, r, g, b, flags );
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : bool -
-//-----------------------------------------------------------------------------
-void C_TEBeamRingPoint::PostDataUpdate( DataUpdateType_t updateType )
-{
- beams->CreateBeamRingPoint( m_vecCenter, m_flStartRadius, m_flEndRadius, m_nModelIndex, m_nHaloIndex, 0.0f,
- m_fLife, m_fWidth, m_fEndWidth, m_nFadeLength, m_fAmplitude, a, 0.1 * m_nSpeed,
- m_nStartFrame, 0.1 * m_nFrameRate, r, g, b, m_nFlags );
-}
-
-IMPLEMENT_CLIENTCLASS_EVENT_DT(C_TEBeamRingPoint, DT_TEBeamRingPoint, CTEBeamRingPoint)
- RecvPropVector( RECVINFO(m_vecCenter)),
- RecvPropFloat( RECVINFO(m_flStartRadius)),
- RecvPropFloat( RECVINFO(m_flEndRadius)),
-END_RECV_TABLE()
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $Workfile: $ +// $Date: $ +// +//----------------------------------------------------------------------------- +// $Log: $ +// +// $NoKeywords: $ +//=============================================================================// +#include "cbase.h" +#include "c_te_basebeam.h" +#include "iviewrender_beams.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +//----------------------------------------------------------------------------- +// Purpose: BeamRingPoint TE +//----------------------------------------------------------------------------- +class C_TEBeamRingPoint : public C_TEBaseBeam +{ +public: + DECLARE_CLASS( C_TEBeamRingPoint, C_TEBaseBeam ); + DECLARE_CLIENTCLASS(); + + C_TEBeamRingPoint( void ); + virtual ~C_TEBeamRingPoint( void ); + + virtual void PostDataUpdate( DataUpdateType_t updateType ); + +public: + Vector m_vecCenter; + float m_flStartRadius; + float m_flEndRadius; +}; + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +C_TEBeamRingPoint::C_TEBeamRingPoint( void ) +{ + m_vecCenter.Init(); + m_flStartRadius = 0.0f; + m_flEndRadius = 0.0f; +} + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +C_TEBeamRingPoint::~C_TEBeamRingPoint( void ) +{ +} + +void TE_BeamRingPoint( IRecipientFilter& filter, float delay, + const Vector& center, float start_radius, float end_radius, int modelindex, int haloindex, int startframe, int framerate, + float life, float width, int spread, float amplitude, int r, int g, int b, int a, int speed, int flags ) +{ + beams->CreateBeamRingPoint( center, start_radius, end_radius, modelindex, haloindex, 0.0f, + life, width, 0.1 * spread, 0.0f, amplitude, a, 0.1 * speed, + startframe, 0.1 * framerate, r, g, b, flags ); +} + +//----------------------------------------------------------------------------- +// Purpose: +// Input : bool - +//----------------------------------------------------------------------------- +void C_TEBeamRingPoint::PostDataUpdate( DataUpdateType_t updateType ) +{ + beams->CreateBeamRingPoint( m_vecCenter, m_flStartRadius, m_flEndRadius, m_nModelIndex, m_nHaloIndex, 0.0f, + m_fLife, m_fWidth, m_fEndWidth, m_nFadeLength, m_fAmplitude, a, 0.1 * m_nSpeed, + m_nStartFrame, 0.1 * m_nFrameRate, r, g, b, m_nFlags ); +} + +IMPLEMENT_CLIENTCLASS_EVENT_DT(C_TEBeamRingPoint, DT_TEBeamRingPoint, CTEBeamRingPoint) + RecvPropVector( RECVINFO(m_vecCenter)), + RecvPropFloat( RECVINFO(m_flStartRadius)), + RecvPropFloat( RECVINFO(m_flEndRadius)), +END_RECV_TABLE() |