aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/basegrenade_contact.cpp
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/basegrenade_contact.cpp
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/basegrenade_contact.cpp')
-rw-r--r--mp/src/game/server/basegrenade_contact.cpp142
1 files changed, 71 insertions, 71 deletions
diff --git a/mp/src/game/server/basegrenade_contact.cpp b/mp/src/game/server/basegrenade_contact.cpp
index fe6665a4..d0123ba0 100644
--- a/mp/src/game/server/basegrenade_contact.cpp
+++ b/mp/src/game/server/basegrenade_contact.cpp
@@ -1,71 +1,71 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#include "cbase.h"
-#include "basegrenade_shared.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-extern ConVar sk_plr_dmg_grenade;
-
-// ==========================================================================================
-
-class CBaseGrenadeContact : public CBaseGrenade
-{
- DECLARE_CLASS( CBaseGrenadeContact, CBaseGrenade );
-public:
-
- void Spawn( void );
- void Precache( void );
-};
-LINK_ENTITY_TO_CLASS( npc_contactgrenade, CBaseGrenadeContact );
-
-
-void CBaseGrenadeContact::Spawn( void )
-{
- // point sized, solid, bouncing
- SetMoveType( MOVETYPE_FLYGRAVITY, MOVECOLLIDE_FLY_BOUNCE );
- SetSolid( SOLID_BBOX );
- SetCollisionGroup( COLLISION_GROUP_PROJECTILE );
- SetModel( "models/weapons/w_grenade.mdl" ); // BUG: wrong model
-
- UTIL_SetSize(this, vec3_origin, vec3_origin);
-
- // contact grenades arc lower
- SetGravity( UTIL_ScaleForGravity( 400 ) ); // use a lower gravity for grenades to make them easier to see
-
- QAngle angles;
- VectorAngles(GetAbsVelocity(), angles);
- SetLocalAngles( angles );
-
- // make NPCs afaid of it while in the air
- SetThink( &CBaseGrenadeContact::DangerSoundThink );
- SetNextThink( gpGlobals->curtime );
-
- // Tumble in air
- QAngle vecAngVelocity( random->RandomFloat ( -100, -500 ), 0, 0 );
- SetLocalAngularVelocity( vecAngVelocity );
-
- // Explode on contact
- SetTouch( &CBaseGrenadeContact::ExplodeTouch );
-
- m_flDamage = sk_plr_dmg_grenade.GetFloat();
-
- // Allow player to blow this puppy up in the air
- m_takedamage = DAMAGE_YES;
-
- m_iszBounceSound = NULL_STRING;
-}
-
-
-void CBaseGrenadeContact::Precache( void )
-{
- BaseClass::Precache( );
-
- PrecacheModel("models/weapons/w_grenade.mdl");
-}
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#include "cbase.h"
+#include "basegrenade_shared.h"
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+extern ConVar sk_plr_dmg_grenade;
+
+// ==========================================================================================
+
+class CBaseGrenadeContact : public CBaseGrenade
+{
+ DECLARE_CLASS( CBaseGrenadeContact, CBaseGrenade );
+public:
+
+ void Spawn( void );
+ void Precache( void );
+};
+LINK_ENTITY_TO_CLASS( npc_contactgrenade, CBaseGrenadeContact );
+
+
+void CBaseGrenadeContact::Spawn( void )
+{
+ // point sized, solid, bouncing
+ SetMoveType( MOVETYPE_FLYGRAVITY, MOVECOLLIDE_FLY_BOUNCE );
+ SetSolid( SOLID_BBOX );
+ SetCollisionGroup( COLLISION_GROUP_PROJECTILE );
+ SetModel( "models/weapons/w_grenade.mdl" ); // BUG: wrong model
+
+ UTIL_SetSize(this, vec3_origin, vec3_origin);
+
+ // contact grenades arc lower
+ SetGravity( UTIL_ScaleForGravity( 400 ) ); // use a lower gravity for grenades to make them easier to see
+
+ QAngle angles;
+ VectorAngles(GetAbsVelocity(), angles);
+ SetLocalAngles( angles );
+
+ // make NPCs afaid of it while in the air
+ SetThink( &CBaseGrenadeContact::DangerSoundThink );
+ SetNextThink( gpGlobals->curtime );
+
+ // Tumble in air
+ QAngle vecAngVelocity( random->RandomFloat ( -100, -500 ), 0, 0 );
+ SetLocalAngularVelocity( vecAngVelocity );
+
+ // Explode on contact
+ SetTouch( &CBaseGrenadeContact::ExplodeTouch );
+
+ m_flDamage = sk_plr_dmg_grenade.GetFloat();
+
+ // Allow player to blow this puppy up in the air
+ m_takedamage = DAMAGE_YES;
+
+ m_iszBounceSound = NULL_STRING;
+}
+
+
+void CBaseGrenadeContact::Precache( void )
+{
+ BaseClass::Precache( );
+
+ PrecacheModel("models/weapons/w_grenade.mdl");
+}