1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-20 20:46:03 +08:00

Update from SDK 2013

This commit is contained in:
Kenzzer
2025-02-19 18:39:00 -05:00
committed by Nicholas Hastings
parent 6d5c024820
commit 94b660e16e
7474 changed files with 2597282 additions and 1254065 deletions

View File

@ -1,35 +1,35 @@
//========= Copyright <20> 1996-2005, 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 ) );
}