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_antidote.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_antidote.cpp')
| -rw-r--r-- | mp/src/game/server/hl2/item_antidote.cpp | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/mp/src/game/server/hl2/item_antidote.cpp b/mp/src/game/server/hl2/item_antidote.cpp index a8198398..f9837a73 100644 --- a/mp/src/game/server/hl2/item_antidote.cpp +++ b/mp/src/game/server/hl2/item_antidote.cpp @@ -1,45 +1,45 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//
-//=============================================================================//
-/*
-
-===== item_antidote.cpp ========================================================
-
- handling for the antidote object
-*/
-
-#include "cbase.h"
-#include "player.h"
-#include "basecombatweapon.h"
-#include "gamerules.h"
-#include "items.h"
-
-class CItemAntidote : public CItem
-{
-public:
- DECLARE_CLASS( CItemAntidote, CItem );
-
- void Spawn( void )
- {
- Precache( );
- SetModel( "models/w_antidote.mdl" );
- BaseClass::Spawn( );
- }
- void Precache( void )
- {
- PrecacheModel ("models/w_antidote.mdl");
- }
- bool MyTouch( CBasePlayer *pPlayer )
- {
- pPlayer->SetSuitUpdate("!HEV_DET4", FALSE, SUIT_NEXT_IN_1MIN);
-
- pPlayer->m_rgItems[ITEM_ANTIDOTE] += 1;
- return true;
- }
-};
-
-LINK_ENTITY_TO_CLASS(item_antidote, CItemAntidote);
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// +/* + +===== item_antidote.cpp ======================================================== + + handling for the antidote object +*/ + +#include "cbase.h" +#include "player.h" +#include "basecombatweapon.h" +#include "gamerules.h" +#include "items.h" + +class CItemAntidote : public CItem +{ +public: + DECLARE_CLASS( CItemAntidote, CItem ); + + void Spawn( void ) + { + Precache( ); + SetModel( "models/w_antidote.mdl" ); + BaseClass::Spawn( ); + } + void Precache( void ) + { + PrecacheModel ("models/w_antidote.mdl"); + } + bool MyTouch( CBasePlayer *pPlayer ) + { + pPlayer->SetSuitUpdate("!HEV_DET4", FALSE, SUIT_NEXT_IN_1MIN); + + pPlayer->m_rgItems[ITEM_ANTIDOTE] += 1; + return true; + } +}; + +LINK_ENTITY_TO_CLASS(item_antidote, CItemAntidote); |