mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-25 23:56:50 +00:00
33 lines
623 B
C++
33 lines
623 B
C++
//========= Copyright Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose:
|
|
//
|
|
//=============================================================================//
|
|
|
|
#include "cbase.h"
|
|
#include <KeyValues.h>
|
|
#include "portal_weapon_parse.h"
|
|
#include "ammodef.h"
|
|
|
|
FileWeaponInfo_t* CreateWeaponInfo()
|
|
{
|
|
return new CPortalSWeaponInfo;
|
|
}
|
|
|
|
|
|
|
|
CPortalSWeaponInfo::CPortalSWeaponInfo()
|
|
{
|
|
m_iPlayerDamage = 0;
|
|
}
|
|
|
|
|
|
void CPortalSWeaponInfo::Parse( KeyValues *pKeyValuesData, const char *szWeaponName )
|
|
{
|
|
BaseClass::Parse( pKeyValuesData, szWeaponName );
|
|
|
|
m_iPlayerDamage = pKeyValuesData->GetInt( "damage", 0 );
|
|
}
|
|
|
|
|