This repository has been archived on 2022-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
Xash3DArchive/cl_dll/ammo.h

62 lines
1.3 KiB
C
Raw Normal View History

2008-12-25 22:00:00 +01:00
/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object code is restricted to non-commercial enhancements to products from
* Valve LLC. All other use, distribution, or modification is prohibited
* without written permission from Valve LLC.
*
****/
#ifndef __AMMO_H__
#define __AMMO_H__
2010-11-15 22:00:00 +01:00
#define MAX_WEAPON_NAME 128
2008-12-25 22:00:00 +01:00
#define WEAPON_FLAGS_SELECTONEMPTY 1
2010-11-15 22:00:00 +01:00
#define WEAPON_IS_ONTARGET 0x40
2008-12-25 22:00:00 +01:00
struct WEAPON
{
2010-11-15 22:00:00 +01:00
char szName[MAX_WEAPON_NAME];
2009-09-19 22:00:00 +02:00
int iAmmoType;
int iAmmo2Type;
int iMax1;
int iMax2;
int iSlot;
int iSlotPos;
int iFlags;
int iId;
int iClip;
2010-11-15 22:00:00 +01:00
2009-09-19 22:00:00 +02:00
int iCount; // # of itesm in plist
2010-11-15 22:00:00 +01:00
HSPRITE hActive;
wrect_t rcActive;
HSPRITE hInactive;
wrect_t rcInactive;
HSPRITE hAmmo;
wrect_t rcAmmo;
HSPRITE hAmmo2;
wrect_t rcAmmo2;
HSPRITE hCrosshair;
wrect_t rcCrosshair;
HSPRITE hAutoaim;
wrect_t rcAutoaim;
HSPRITE hZoomedCrosshair;
wrect_t rcZoomedCrosshair;
HSPRITE hZoomedAutoaim;
wrect_t rcZoomedAutoaim;
2008-12-25 22:00:00 +01:00
};
typedef int AMMO;
#endif