-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
436a87a
commit c7c87b7
Showing
22 changed files
with
1,354 additions
and
769 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/*** | ||
* | ||
* 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. | ||
* | ||
****/ | ||
|
||
#pragma once | ||
#include "cdll_dll.h" | ||
|
||
#define ITEM_FLAG_SELECTONEMPTY 1 | ||
#define ITEM_FLAG_NOAUTORELOAD 2 | ||
#define ITEM_FLAG_NOAUTOSWITCHEMPTY 4 | ||
#define ITEM_FLAG_LIMITINWORLD 8 | ||
#define ITEM_FLAG_EXHAUSTIBLE 16 // A player can totally exhaust their ammo supply and lose this weapon | ||
|
||
#define WEAPON_NOCLIP -1 | ||
#define WEAPON_ALLWEAPONS (~(1<<WEAPON_SUIT)) | ||
|
||
// weapon clip/carry ammo capacities | ||
#define URANIUM_MAX_CARRY 100 | ||
#define _9MM_MAX_CARRY 250 | ||
#define _357_MAX_CARRY 36 | ||
#define BUCKSHOT_MAX_CARRY 125 | ||
#define BOLT_MAX_CARRY 50 | ||
#define ROCKET_MAX_CARRY 5 | ||
#define HANDGRENADE_MAX_CARRY 10 | ||
#define SATCHEL_MAX_CARRY 5 | ||
#define TRIPMINE_MAX_CARRY 5 | ||
#define SNARK_MAX_CARRY 15 | ||
#define HORNET_MAX_CARRY 8 | ||
#define M203_GRENADE_MAX_CARRY 10 | ||
|
||
// bullet types | ||
typedef enum | ||
{ | ||
BULLET_NONE = 0, | ||
BULLET_PLAYER_9MM, // glock | ||
BULLET_PLAYER_MP5, // mp5 | ||
BULLET_PLAYER_357, // python | ||
BULLET_PLAYER_BUCKSHOT, // shotgun | ||
BULLET_PLAYER_CROWBAR, // crowbar swipe | ||
BULLET_MONSTER_9MM, | ||
BULLET_MONSTER_MP5, | ||
BULLET_MONSTER_12MM, | ||
} Bullet; | ||
|
||
typedef struct | ||
{ | ||
int iSlot; | ||
int iPosition; | ||
const char *pszAmmo1; // ammo 1 type | ||
int iMaxAmmo1; // max ammo 1 | ||
const char *pszAmmo2; // ammo 2 type | ||
int iMaxAmmo2; // max ammo 2 | ||
const char *pszName; | ||
int iMaxClip; | ||
int iId; | ||
int iFlags; | ||
int iWeight;// this value used to determine this weapon's importance in autoselection. | ||
} ItemInfo; | ||
|
||
typedef struct | ||
{ | ||
const char *pszName; | ||
int iId; | ||
} AmmoInfo; |
Oops, something went wrong.