aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/weapon_cubemap.cpp
diff options
context:
space:
mode:
authorNarendra Umate <[email protected]>2013-12-02 23:36:05 -0800
committerNarendra Umate <[email protected]>2013-12-02 23:36:05 -0800
commit8737f191f3b59f001a77bf6c08091109211c1c9f (patch)
treedbbf05c004d9b026f2c1f23f06600fe0add82c36 /mp/src/game/server/weapon_cubemap.cpp
parentUpdate .gitignore. (diff)
parentMake .xcconfigs text files too. (diff)
downloadsource-sdk-2013-8737f191f3b59f001a77bf6c08091109211c1c9f.tar.xz
source-sdk-2013-8737f191f3b59f001a77bf6c08091109211c1c9f.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'mp/src/game/server/weapon_cubemap.cpp')
-rw-r--r--mp/src/game/server/weapon_cubemap.cpp96
1 files changed, 48 insertions, 48 deletions
diff --git a/mp/src/game/server/weapon_cubemap.cpp b/mp/src/game/server/weapon_cubemap.cpp
index 84e80ea6..212023e3 100644
--- a/mp/src/game/server/weapon_cubemap.cpp
+++ b/mp/src/game/server/weapon_cubemap.cpp
@@ -1,48 +1,48 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#include "cbase.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-class CWeaponCubemap : public CBaseCombatWeapon
-{
-public:
-
- DECLARE_CLASS( CWeaponCubemap, CBaseCombatWeapon );
-
- void Precache( void );
-
- bool HasAnyAmmo( void ) { return true; }
-
- void Spawn( void );
-
- DECLARE_SERVERCLASS();
-};
-
-LINK_ENTITY_TO_CLASS( weapon_cubemap, CWeaponCubemap );
-
-IMPLEMENT_SERVERCLASS_ST( CWeaponCubemap, DT_WeaponCubemap )
-END_SEND_TABLE()
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-void CWeaponCubemap::Precache( void )
-{
- BaseClass::Precache();
-}
-
-void CWeaponCubemap::Spawn( void )
-{
- BaseClass::Spawn();
-
- //Hack to fix the cubemap weapon not being held by the player.
- //Problem is the model has huge bounds so the new pickup code that checks if the player can see the model fails cause half the entity's bounds are inside the ground.
- //Since this is just a dev tool I made this quick hack so level designers can use it again asap. - Adrian
- UTIL_SetSize( this, Vector( -16, -16, -16 ), Vector( 16, 16, 16 ) );
-}
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#include "cbase.h"
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+class CWeaponCubemap : public CBaseCombatWeapon
+{
+public:
+
+ DECLARE_CLASS( CWeaponCubemap, CBaseCombatWeapon );
+
+ void Precache( void );
+
+ bool HasAnyAmmo( void ) { return true; }
+
+ void Spawn( void );
+
+ DECLARE_SERVERCLASS();
+};
+
+LINK_ENTITY_TO_CLASS( weapon_cubemap, CWeaponCubemap );
+
+IMPLEMENT_SERVERCLASS_ST( CWeaponCubemap, DT_WeaponCubemap )
+END_SEND_TABLE()
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+void CWeaponCubemap::Precache( void )
+{
+ BaseClass::Precache();
+}
+
+void CWeaponCubemap::Spawn( void )
+{
+ BaseClass::Spawn();
+
+ //Hack to fix the cubemap weapon not being held by the player.
+ //Problem is the model has huge bounds so the new pickup code that checks if the player can see the model fails cause half the entity's bounds are inside the ground.
+ //Since this is just a dev tool I made this quick hack so level designers can use it again asap. - Adrian
+ UTIL_SetSize( this, Vector( -16, -16, -16 ), Vector( 16, 16, 16 ) );
+}