Team Fortress 2 Source Code as on 22/4/2020
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.

32 lines
618 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #include "cbase.h"
  7. #include <KeyValues.h>
  8. #include "hl2mp_weapon_parse.h"
  9. #include "ammodef.h"
  10. FileWeaponInfo_t* CreateWeaponInfo()
  11. {
  12. return new CHL2MPSWeaponInfo;
  13. }
  14. CHL2MPSWeaponInfo::CHL2MPSWeaponInfo()
  15. {
  16. m_iPlayerDamage = 0;
  17. }
  18. void CHL2MPSWeaponInfo::Parse( KeyValues *pKeyValuesData, const char *szWeaponName )
  19. {
  20. BaseClass::Parse( pKeyValuesData, szWeaponName );
  21. m_iPlayerDamage = pKeyValuesData->GetInt( "damage", 0 );
  22. }