54 lines
1.5 KiB
C
54 lines
1.5 KiB
C
/*
|
|
* Copyright (c) 2016-2021 Marco Cawthorne <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_STUNSTICK,
|
|
WEAPON_GRAVITYGUN,
|
|
WEAPON_PISTOL,
|
|
WEAPON_357,
|
|
WEAPON_SMG1,
|
|
WEAPON_AR2,
|
|
WEAPON_SHOTGUN,
|
|
WEAPON_CROSSBOW,
|
|
WEAPON_FRAG,
|
|
WEAPON_RPG,
|
|
WEAPON_SLAM,
|
|
WEAPON_BUGBAIT
|
|
};
|
|
|
|
#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
|