mirror of
https://github.com/ENSL/NS.git
synced 2024-11-27 23:02:16 +00:00
88f1ac3034
o cvar cl_customcrosshair 0|1|2|3, default 0, any other value forces default o Option added to advanced options o Multiple resolutions supported, if an xhair isn't available for the configured resolution, the next lowest available sprite is used. o Fully backwards compatible with 3.1 crosshair files. git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@409 67975925-1194-0748-b3d5-c16f83f1a3a1
70 lines
No EOL
1.4 KiB
C
70 lines
No EOL
1.4 KiB
C
/***
|
|
*
|
|
* Copyright (c) 1999, 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__
|
|
|
|
#define MAX_WEAPON_NAME 128
|
|
|
|
|
|
#define WEAPON_FLAGS_SELECTIONEMPTY 1
|
|
|
|
struct WEAPON
|
|
{
|
|
char szName[MAX_WEAPON_NAME];
|
|
int iAmmoType;
|
|
int iAmmo2Type;
|
|
int iMax1;
|
|
int iMax2;
|
|
int iSlot;
|
|
int iSlotPos;
|
|
int iFlags;
|
|
int iId;
|
|
int iClip;
|
|
// puzl: 497 - weapon enable state
|
|
int iEnabled;
|
|
|
|
int iCount; // # of itesm in plist
|
|
|
|
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 hCrosshair1;
|
|
wrect_t rcCrosshair1;
|
|
HSPRITE hCrosshair2;
|
|
wrect_t rcCrosshair2;
|
|
HSPRITE hCrosshair3;
|
|
wrect_t rcCrosshair3;
|
|
|
|
/* HSPRITE hAutoaim;
|
|
wrect_t rcAutoaim;
|
|
HSPRITE hZoomedCrosshair;
|
|
wrect_t rcZoomedCrosshair;
|
|
HSPRITE hZoomedAutoaim;
|
|
wrect_t rcZoomedAutoaim;
|
|
*/
|
|
};
|
|
|
|
typedef int AMMO;
|
|
|
|
|
|
#endif |