forked from APGRoboCop/foxbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bot_weapons.h
177 lines (163 loc) · 5.73 KB
/
bot_weapons.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
//
// FoXBot - AI Bot for Halflife's Team Fortress Classic
//
// (http://foxbot.net)
//
// bot_weapons.cpp
//
// Copyright (C) 2003 - Tom "Redfox" Simpson
//
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License for more details at:
// http://www.gnu.org/copyleft/gpl.html
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
#ifndef BOT_WEAPONS_H
#define BOT_WEAPONS_H
// weapon ID values for Valve's Half-Life Deathmatch
#define VALVE_WEAPON_CROWBAR 1
#define VALVE_WEAPON_GLOCK 2
#define VALVE_WEAPON_PYTHON 3
#define VALVE_WEAPON_MP5 4
#define VALVE_WEAPON_CHAINGUN 5
#define VALVE_WEAPON_CROSSBOW 6
#define VALVE_WEAPON_SHOTGUN 7
#define VALVE_WEAPON_RPG 8
#define VALVE_WEAPON_GAUSS 9
#define VALVE_WEAPON_EGON 10
#define VALVE_WEAPON_HORNETGUN 11
#define VALVE_WEAPON_HANDGRENADE 12
#define VALVE_WEAPON_TRIPMINE 13
#define VALVE_WEAPON_SATCHEL 14
#define VALVE_WEAPON_SNARK 15
#define VALVE_MAX_NORMAL_BATTERY 100
#define VALVE_HORNET_MAX_CARRY 8
// weapon ID values for Valve's Team Fortress Classic & 1.5
#define TF_WEAPON_UNKNOWN1 1
#define TF_WEAPON_UNKNOWN2 2
#define TF_WEAPON_MEDIKIT 3
#define TF_WEAPON_SPANNER 4
#define TF_WEAPON_AXE 5
#define TF_WEAPON_SNIPERRIFLE 6
#define TF_WEAPON_AUTORIFLE 7
#define TF_WEAPON_SHOTGUN 8
#define TF_WEAPON_SUPERSHOTGUN 9
#define TF_WEAPON_NAILGUN 10
#define TF_WEAPON_SUPERNAILGUN 11
#define TF_WEAPON_GL 12
#define TF_WEAPON_FLAMETHROWER 13
#define TF_WEAPON_RPG 14
#define TF_WEAPON_IC 15
#define TF_WEAPON_UNKNOWN16 16
#define TF_WEAPON_AC 17
#define TF_WEAPON_UNKNOWN18 18
#define TF_WEAPON_UNKNOWN19 19
#define TF_WEAPON_TRANQ 20
#define TF_WEAPON_RAILGUN 21
#define TF_WEAPON_PL 22
#define TF_WEAPON_KNIFE 23
/* // Not required for TFC - [APG]RoboCop[CL]
// weapon ID values for Counter-Strike
#define CS_WEAPON_P228 1
#define CS_WEAPON_UNKNOWN2 2
#define CS_WEAPON_SCOUT 3
#define CS_WEAPON_HEGRENADE 4
#define CS_WEAPON_XM1014 5
#define CS_WEAPON_C4 6
#define CS_WEAPON_MAC10 7
#define CS_WEAPON_AUG 8
#define CS_WEAPON_SMOKEGRENADE 9
#define CS_WEAPON_ELITE 10
#define CS_WEAPON_FIVESEVEN 11
#define CS_WEAPON_UMP45 12
#define CS_WEAPON_SG550 13
#define CS_WEAPON_UNKNOWN14 14
#define CS_WEAPON_UNKNOWN15 15
#define CS_WEAPON_USP 16
#define CS_WEAPON_GLOCK18 17
#define CS_WEAPON_AWP 18
#define CS_WEAPON_MP5NAVY 19
#define CS_WEAPON_M249 20
#define CS_WEAPON_M3 21
#define CS_WEAPON_M4A1 22
#define CS_WEAPON_TMP 23
#define CS_WEAPON_G3SG1 24
#define CS_WEAPON_FLASHBANG 25
#define CS_WEAPON_DEAGLE 26
#define CS_WEAPON_SG552 27
#define CS_WEAPON_AK47 28
#define CS_WEAPON_KNIFE 29
#define CS_WEAPON_P90 30
// weapon ID values for Gearbox's OpFor Deathmatch
#define GEARBOX_WEAPON_CROWBAR 1
#define GEARBOX_WEAPON_GLOCK 2
#define GEARBOX_WEAPON_PYTHON 3
#define GEARBOX_WEAPON_MP5 4
#define GEARBOX_WEAPON_CHAINGUN 5
#define GEARBOX_WEAPON_CROSSBOW 6
#define GEARBOX_WEAPON_SHOTGUN 7
#define GEARBOX_WEAPON_RPG 8
#define GEARBOX_WEAPON_GAUSS 9
#define GEARBOX_WEAPON_EGON 10
#define GEARBOX_WEAPON_HORNETGUN 11
#define GEARBOX_WEAPON_HANDGRENADE 12
#define GEARBOX_WEAPON_TRIPMINE 13
#define GEARBOX_WEAPON_SATCHEL 14
#define GEARBOX_WEAPON_SNARK 15
#define GEARBOX_WEAPON_GRAPPLE 16
#define GEARBOX_WEAPON_EAGLE 17
#define GEARBOX_WEAPON_PIPEWRENCH 18
#define GEARBOX_WEAPON_M249 19
#define GEARBOX_WEAPON_DISPLACER 20
#define GEARBOX_WEAPON_UNKNOWN21 21
#define GEARBOX_WEAPON_SHOCKRIFLE 22
#define GEARBOX_WEAPON_SPORELAUNCHER 23
#define GEARBOX_WEAPON_SNIPERRIFLE 24
#define GEARBOX_WEAPON_KNIFE 25
// weapon ID values for FrontLineForce
#define FLF_WEAPON_AK5 10
#define FLF_WEAPON_UNKNOWN11 11
#define FLF_WEAPON_UNKNOWN12 12
#define FLF_WEAPON_UNKNOWN13 13
#define FLF_WEAPON_UNKNOWN14 14
#define FLF_WEAPON_UNKNOWN15 15
#define FLF_WEAPON_MP5SD 16
#define FLF_WEAPON_M4 17
#define FLF_WEAPON_FLASHBANG 18
#define FLF_WEAPON_HEGRENADE 19
#define FLF_WEAPON_MP5A2 20
#define FLF_WEAPON_UMP45 21
#define FLF_WEAPON_SPAS12 22
#define FLF_WEAPON_BERETTA 23
#define FLF_WEAPON_KNIFE 24
#define FLF_WEAPON_MAC10 25
#define FLF_WEAPON_MK23 26
#define FLF_WEAPON_MSG90 27
#define FLF_WEAPON_FAMAS 28
#define FLF_WEAPON_HK21 29
*/
typedef struct
{
char szClassname[64];
int iAmmo1; // ammo index for primary ammo
int iAmmo1Max; // max primary ammo
int iAmmo2; // ammo index for secondary ammo
int iAmmo2Max; // max secondary ammo
int iSlot; // HUD slot (0 based)
int iPosition; // slot position
int iId; // weapon ID
int iFlags; // flags???
} bot_weapon_t;
#endif // BOT_WEAPONS_H