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/shared/sdk/sdk_weapon_parse.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/shared/sdk/sdk_weapon_parse.cpp')
| -rw-r--r-- | mp/src/game/shared/sdk/sdk_weapon_parse.cpp | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/mp/src/game/shared/sdk/sdk_weapon_parse.cpp b/mp/src/game/shared/sdk/sdk_weapon_parse.cpp index 1e122b7c..69303d33 100644 --- a/mp/src/game/shared/sdk/sdk_weapon_parse.cpp +++ b/mp/src/game/shared/sdk/sdk_weapon_parse.cpp @@ -1,35 +1,35 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#include "cbase.h"
-#include <KeyValues.h>
-#include "sdk_weapon_parse.h"
-
-
-FileWeaponInfo_t* CreateWeaponInfo()
-{
- return new CSDKWeaponInfo;
-}
-
-
-CSDKWeaponInfo::CSDKWeaponInfo()
-{
-}
-
-
-void CSDKWeaponInfo::Parse( KeyValues *pKeyValuesData, const char *szWeaponName )
-{
- BaseClass::Parse( pKeyValuesData, szWeaponName );
-
- m_iDamage = pKeyValuesData->GetInt( "Damage", 42 ); // Douglas Adams 1952 - 2001
- m_iBullets = pKeyValuesData->GetInt( "Bullets", 1 );
- m_flCycleTime = pKeyValuesData->GetFloat( "CycleTime", 0.15 );
-
- const char *pAnimEx = pKeyValuesData->GetString( "PlayerAnimationExtension", "mp5" );
- Q_strncpy( m_szAnimExtension, pAnimEx, sizeof( m_szAnimExtension ) );
-}
-
-
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#include "cbase.h" +#include <KeyValues.h> +#include "sdk_weapon_parse.h" + + +FileWeaponInfo_t* CreateWeaponInfo() +{ + return new CSDKWeaponInfo; +} + + +CSDKWeaponInfo::CSDKWeaponInfo() +{ +} + + +void CSDKWeaponInfo::Parse( KeyValues *pKeyValuesData, const char *szWeaponName ) +{ + BaseClass::Parse( pKeyValuesData, szWeaponName ); + + m_iDamage = pKeyValuesData->GetInt( "Damage", 42 ); // Douglas Adams 1952 - 2001 + m_iBullets = pKeyValuesData->GetInt( "Bullets", 1 ); + m_flCycleTime = pKeyValuesData->GetFloat( "CycleTime", 0.15 ); + + const char *pAnimEx = pKeyValuesData->GetString( "PlayerAnimationExtension", "mp5" ); + Q_strncpy( m_szAnimExtension, pAnimEx, sizeof( m_szAnimExtension ) ); +} + + |