From f56bb35301836e56582a575a75864392a0177875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20P=2E=20Tjern=C3=B8?= Date: Mon, 2 Dec 2013 19:31:46 -0800 Subject: Fix line endings. WHAMMY. --- mp/src/game/server/hl2/weapon_manhack.cpp | 208 +++++++++++++++--------------- 1 file changed, 104 insertions(+), 104 deletions(-) (limited to 'mp/src/game/server/hl2/weapon_manhack.cpp') diff --git a/mp/src/game/server/hl2/weapon_manhack.cpp b/mp/src/game/server/hl2/weapon_manhack.cpp index ced1a6e1..a4d14bff 100644 --- a/mp/src/game/server/hl2/weapon_manhack.cpp +++ b/mp/src/game/server/hl2/weapon_manhack.cpp @@ -1,104 +1,104 @@ -//========= Copyright Valve Corporation, All rights reserved. ============// -// -// Purpose: -// -// $NoKeywords: $ -// -//=============================================================================// - - -#include "cbase.h" -#include "basehlcombatweapon.h" -#include "player.h" -#include "gamerules.h" -#include "ammodef.h" -#include "in_buttons.h" -#include "bone_setup.h" - -// memdbgon must be the last include file in a .cpp file!!! -#include "tier0/memdbgon.h" - -class CWeapon_Manhack : public CBaseHLCombatWeapon -{ - DECLARE_DATADESC(); -public: - DECLARE_CLASS( CWeapon_Manhack, CBaseHLCombatWeapon ); - - DECLARE_SERVERCLASS(); - - void Spawn( void ); - void Precache( void ); - - void ItemPostFrame( void ); - void PrimaryAttack( void ); - void SecondaryAttack( void ); - - float m_flBladeYaw; -}; - -IMPLEMENT_SERVERCLASS_ST( CWeapon_Manhack, DT_Weapon_Manhack) -END_SEND_TABLE() - -LINK_ENTITY_TO_CLASS( weapon_manhack, CWeapon_Manhack ); -PRECACHE_WEAPON_REGISTER(weapon_manhack); - -//--------------------------------------------------------- -// Save/Restore -//--------------------------------------------------------- -BEGIN_DATADESC( CWeapon_Manhack ) - - DEFINE_FIELD( m_flBladeYaw, FIELD_FLOAT ), - -END_DATADESC() - -void CWeapon_Manhack::Spawn( ) -{ - // Call base class first - BaseClass::Spawn(); - - Precache( ); - SetModel( GetViewModel() ); - - FallInit();// get ready to fall down. - - m_flBladeYaw = NULL; - AddSolidFlags( FSOLID_NOT_SOLID ); -} - - -//------------------------------------------------------------------------------ -// Purpose : -// Input : -// Output : -//------------------------------------------------------------------------------ -void CWeapon_Manhack::ItemPostFrame( void ) -{ - WeaponIdle( ); -} - -void CWeapon_Manhack::Precache( void ) -{ - BaseClass::Precache(); -} - - -//------------------------------------------------------------------------------ -// Purpose : -// Input : -// Output : -//------------------------------------------------------------------------------ -void CWeapon_Manhack::PrimaryAttack() -{ -} - -//------------------------------------------------------------------------------ -// Purpose : -// Input : -// Output : -//------------------------------------------------------------------------------ -void CWeapon_Manhack::SecondaryAttack() -{ -} - - - +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// + + +#include "cbase.h" +#include "basehlcombatweapon.h" +#include "player.h" +#include "gamerules.h" +#include "ammodef.h" +#include "in_buttons.h" +#include "bone_setup.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +class CWeapon_Manhack : public CBaseHLCombatWeapon +{ + DECLARE_DATADESC(); +public: + DECLARE_CLASS( CWeapon_Manhack, CBaseHLCombatWeapon ); + + DECLARE_SERVERCLASS(); + + void Spawn( void ); + void Precache( void ); + + void ItemPostFrame( void ); + void PrimaryAttack( void ); + void SecondaryAttack( void ); + + float m_flBladeYaw; +}; + +IMPLEMENT_SERVERCLASS_ST( CWeapon_Manhack, DT_Weapon_Manhack) +END_SEND_TABLE() + +LINK_ENTITY_TO_CLASS( weapon_manhack, CWeapon_Manhack ); +PRECACHE_WEAPON_REGISTER(weapon_manhack); + +//--------------------------------------------------------- +// Save/Restore +//--------------------------------------------------------- +BEGIN_DATADESC( CWeapon_Manhack ) + + DEFINE_FIELD( m_flBladeYaw, FIELD_FLOAT ), + +END_DATADESC() + +void CWeapon_Manhack::Spawn( ) +{ + // Call base class first + BaseClass::Spawn(); + + Precache( ); + SetModel( GetViewModel() ); + + FallInit();// get ready to fall down. + + m_flBladeYaw = NULL; + AddSolidFlags( FSOLID_NOT_SOLID ); +} + + +//------------------------------------------------------------------------------ +// Purpose : +// Input : +// Output : +//------------------------------------------------------------------------------ +void CWeapon_Manhack::ItemPostFrame( void ) +{ + WeaponIdle( ); +} + +void CWeapon_Manhack::Precache( void ) +{ + BaseClass::Precache(); +} + + +//------------------------------------------------------------------------------ +// Purpose : +// Input : +// Output : +//------------------------------------------------------------------------------ +void CWeapon_Manhack::PrimaryAttack() +{ +} + +//------------------------------------------------------------------------------ +// Purpose : +// Input : +// Output : +//------------------------------------------------------------------------------ +void CWeapon_Manhack::SecondaryAttack() +{ +} + + + -- cgit v1.2.3