aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/server/CRagdollMagnet.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 /sp/src/game/server/CRagdollMagnet.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 'sp/src/game/server/CRagdollMagnet.h')
-rw-r--r--sp/src/game/server/CRagdollMagnet.h88
1 files changed, 44 insertions, 44 deletions
diff --git a/sp/src/game/server/CRagdollMagnet.h b/sp/src/game/server/CRagdollMagnet.h
index 1268d0c9..b2211724 100644
--- a/sp/src/game/server/CRagdollMagnet.h
+++ b/sp/src/game/server/CRagdollMagnet.h
@@ -1,45 +1,45 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: Used to influence the initial force for a dying NPC's ragdoll.
-// Passive entity. Just represents position in the world, radius, force
-//
-// $NoKeywords: $
-//=============================================================================//
-#pragma once
-
-#ifndef CRAGDOLLMAGNET_H
-#define CRAGDOLLMAGNET_H
-
-#define SF_RAGDOLLMAGNET_BAR 0x00000002 // this is a bar magnet.
-
-class CRagdollMagnet : public CPointEntity
-{
-public:
- DECLARE_CLASS( CRagdollMagnet, CPointEntity );
- DECLARE_DATADESC();
-
- Vector GetForceVector( CBaseEntity *pNPC );
- float GetRadius( void ) { return m_radius; }
- Vector GetAxisVector( void ) { return m_axis - GetAbsOrigin(); }
- float DistToPoint( const Vector &vecPoint );
-
- bool IsEnabled( void ) { return !m_bDisabled; }
-
- int IsBarMagnet( void ) { return (m_spawnflags & SF_RAGDOLLMAGNET_BAR); }
-
- static CRagdollMagnet *FindBestMagnet( CBaseEntity *pNPC );
-
- void Enable( bool bEnable ) { m_bDisabled = !bEnable; }
-
- // Inputs
- void InputEnable( inputdata_t &inputdata );
- void InputDisable( inputdata_t &inputdata );
-
-private:
- bool m_bDisabled;
- float m_radius;
- float m_force;
- Vector m_axis;
-};
-
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Used to influence the initial force for a dying NPC's ragdoll.
+// Passive entity. Just represents position in the world, radius, force
+//
+// $NoKeywords: $
+//=============================================================================//
+#pragma once
+
+#ifndef CRAGDOLLMAGNET_H
+#define CRAGDOLLMAGNET_H
+
+#define SF_RAGDOLLMAGNET_BAR 0x00000002 // this is a bar magnet.
+
+class CRagdollMagnet : public CPointEntity
+{
+public:
+ DECLARE_CLASS( CRagdollMagnet, CPointEntity );
+ DECLARE_DATADESC();
+
+ Vector GetForceVector( CBaseEntity *pNPC );
+ float GetRadius( void ) { return m_radius; }
+ Vector GetAxisVector( void ) { return m_axis - GetAbsOrigin(); }
+ float DistToPoint( const Vector &vecPoint );
+
+ bool IsEnabled( void ) { return !m_bDisabled; }
+
+ int IsBarMagnet( void ) { return (m_spawnflags & SF_RAGDOLLMAGNET_BAR); }
+
+ static CRagdollMagnet *FindBestMagnet( CBaseEntity *pNPC );
+
+ void Enable( bool bEnable ) { m_bDisabled = !bEnable; }
+
+ // Inputs
+ void InputEnable( inputdata_t &inputdata );
+ void InputDisable( inputdata_t &inputdata );
+
+private:
+ bool m_bDisabled;
+ float m_radius;
+ float m_force;
+ Vector m_axis;
+};
+
#endif //CRAGDOLLMAGNET_H \ No newline at end of file