You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
623 B
33 lines
623 B
![]()
2 years ago
|
//========= 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 );
|
||
|
}
|
||
|
|
||
|
|