66 lines
1.7 KiB
C
66 lines
1.7 KiB
C
/*
|
|
* Copyright (c) 2016-2021 Marco Hladik <marco@icculus.org>
|
|
*
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
* copyright notice and this permission notice appear in all copies.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
* WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
|
|
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
|
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
*/
|
|
|
|
/* Weapon Indices for the weapon table */
|
|
enum
|
|
{
|
|
WEAPON_NONE,
|
|
WEAPON_CROWBAR,
|
|
WEAPON_PIPEWRENCH,
|
|
WEAPON_KNIFE,
|
|
WEAPON_GRAPPLE,
|
|
WEAPON_GLOCK,
|
|
WEAPON_PYTHON,
|
|
WEAPON_EAGLE,
|
|
WEAPON_MP5,
|
|
WEAPON_SHOTGUN,
|
|
WEAPON_CROSSBOW,
|
|
WEAPON_RPG,
|
|
WEAPON_GAUSS,
|
|
WEAPON_EGON,
|
|
WEAPON_HORNETGUN,
|
|
WEAPON_HANDGRENADE,
|
|
WEAPON_SATCHEL,
|
|
WEAPON_TRIPMINE,
|
|
WEAPON_SNARK,
|
|
WEAPON_PENGUIN,
|
|
WEAPON_M249,
|
|
WEAPON_DISPLACER,
|
|
WEAPON_SNIPERRIFLE,
|
|
WEAPON_SPORELAUNCHER,
|
|
WEAPON_SHOCKRIFLE
|
|
};
|
|
|
|
#define MAX_A_9MM 250
|
|
#define MAX_A_357 36
|
|
#define MAX_A_BUCKSHOT 125
|
|
#define MAX_A_M203_GRENADE 10
|
|
#define MAX_A_BOLT 50
|
|
#define MAX_A_ROCKET 5
|
|
#define MAX_A_URANIUM 100
|
|
#define MAX_A_HANDGRENADE 10
|
|
#define MAX_A_SATCHEL 5
|
|
#define MAX_A_TRIPMINE 10
|
|
#define MAX_A_SNARK 10
|
|
#define MAX_A_HORNET 8
|
|
|
|
/* gearbox */
|
|
#define MAX_A_556 200
|
|
#define MAX_A_PENGUIN 9
|
|
#define MAX_A_SHOCK 10
|
|
#define MAX_A_762 15
|
|
#define MAX_A_SPORE 20
|