Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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.
|
|
|
|
//========= Copyright <EFBFBD> 1996-2005, Valve Corporation, All rights reserved. ============//
|
|
|
|
|
//
|
|
|
|
|
// Purpose:
|
|
|
|
|
//
|
|
|
|
|
// $NoKeywords: $
|
|
|
|
|
//=============================================================================//
|
|
|
|
|
|
|
|
|
|
#ifndef WEAPONS_RESOURCE_H
|
|
|
|
|
#define WEAPONS_RESOURCE_H
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "shareddefs.h"
|
|
|
|
|
#include "weapon_parse.h"
|
|
|
|
|
#include "UtlDict.h"
|
|
|
|
|
#include "hud.h"
|
|
|
|
|
|
|
|
|
|
class C_BaseCombatWeapon;
|
|
|
|
|
class CHudTexture;
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
// Purpose: Stores data about the Weapon Definitions passed to the client when
|
|
|
|
|
// the client first connects to a server.
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
class WeaponsResource
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
WeaponsResource( void );
|
|
|
|
|
~WeaponsResource( void );
|
|
|
|
|
|
|
|
|
|
void Init( void );
|
|
|
|
|
void Reset( void );
|
|
|
|
|
|
|
|
|
|
// Sprite handling
|
|
|
|
|
void LoadWeaponSprites( WEAPON_FILE_INFO_HANDLE hWeaponFileInfo );
|
|
|
|
|
void LoadAllWeaponSprites( void );
|
|
|
|
|
|
|
|
|
|
// Ammo Handling
|
|
|
|
|
CHudTexture *GetAmmoIconFromWeapon( int iAmmoId );
|
|
|
|
|
const FileWeaponInfo_t *GetWeaponFromAmmo( int iAmmoId );
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern WeaponsResource gWR;
|
|
|
|
|
|
|
|
|
|
#endif // WEAPONS_RESOURCE_H
|