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/server/hl2/item_longjump.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/server/hl2/item_longjump.cpp')
| -rw-r--r-- | mp/src/game/server/hl2/item_longjump.cpp | 122 |
1 files changed, 61 insertions, 61 deletions
diff --git a/mp/src/game/server/hl2/item_longjump.cpp b/mp/src/game/server/hl2/item_longjump.cpp index 79335047..fd4b8dbe 100644 --- a/mp/src/game/server/hl2/item_longjump.cpp +++ b/mp/src/game/server/hl2/item_longjump.cpp @@ -1,61 +1,61 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//
-//=============================================================================//
-/*
-
-===== item_longjump.cpp ========================================================
-
- handling for the longjump module
-*/
-
-#include "cbase.h"
-#include "player.h"
-//#include "weapons.h"
-#include "gamerules.h"
-#include "items.h"
-
-class CItemLongJump : public CItem
-{
-public:
- DECLARE_CLASS( CItemLongJump, CItem );
-
- void Spawn( void )
- {
- Precache( );
- SetModel( "models/w_longjump.mdl" );
- BaseClass::Spawn( );
- }
- void Precache( void )
- {
- PrecacheModel ("models/w_longjump.mdl");
- }
- bool MyTouch( CBasePlayer *pPlayer )
- {
- if ( pPlayer->m_fLongJump )
- {
- return FALSE;
- }
-
- if ( pPlayer->IsSuitEquipped() )
- {
- pPlayer->m_fLongJump = TRUE;// player now has longjump module
-
- CSingleUserRecipientFilter user( pPlayer );
- user.MakeReliable();
-
- UserMessageBegin( user, "ItemPickup" );
- WRITE_STRING( STRING(pev->classname) );
- MessageEnd();
-
- UTIL_EmitSoundSuit( pPlayer->edict(), "!HEV_A1" ); // Play the longjump sound UNDONE: Kelly? correct sound?
- return true;
- }
- return false;
- }
-};
-
-LINK_ENTITY_TO_CLASS( item_longjump, CItemLongJump );
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// +/* + +===== item_longjump.cpp ======================================================== + + handling for the longjump module +*/ + +#include "cbase.h" +#include "player.h" +//#include "weapons.h" +#include "gamerules.h" +#include "items.h" + +class CItemLongJump : public CItem +{ +public: + DECLARE_CLASS( CItemLongJump, CItem ); + + void Spawn( void ) + { + Precache( ); + SetModel( "models/w_longjump.mdl" ); + BaseClass::Spawn( ); + } + void Precache( void ) + { + PrecacheModel ("models/w_longjump.mdl"); + } + bool MyTouch( CBasePlayer *pPlayer ) + { + if ( pPlayer->m_fLongJump ) + { + return FALSE; + } + + if ( pPlayer->IsSuitEquipped() ) + { + pPlayer->m_fLongJump = TRUE;// player now has longjump module + + CSingleUserRecipientFilter user( pPlayer ); + user.MakeReliable(); + + UserMessageBegin( user, "ItemPickup" ); + WRITE_STRING( STRING(pev->classname) ); + MessageEnd(); + + UTIL_EmitSoundSuit( pPlayer->edict(), "!HEV_A1" ); // Play the longjump sound UNDONE: Kelly? correct sound? + return true; + } + return false; + } +}; + +LINK_ENTITY_TO_CLASS( item_longjump, CItemLongJump ); |