| author | Nicholas Hastings <skamonkey@gmail.com> |
| Wed May 08 09:21:40 2013 -0400 (2013-05-08) | |
| changeset 3911 | 5fcb7681aebd |
| parent 3702 | a0256b609078 |
| child 3965 | 86dedf4462d8 |
| permissions | -rw-r--r-- |
1 /**
2 * vim: set ts=4 :
3 * =============================================================================
4 * SourceMod Counter-Strike:Source Extension
5 * Copyright (C) 2004-2008 AlliedModders LLC. All rights reserved.
6 * =============================================================================
7 *
8 * This program is free software; you can redistribute it and/or modify it under
9 * the terms of the GNU General Public License, version 3.0, as published by the
10 * Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15 * details.
16 *
17 * You should have received a copy of the GNU General Public License along with
18 * this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 * As a special exception, AlliedModders LLC gives you permission to link the
21 * code of this program (as well as its derivative works) to "Half-Life 2," the
22 * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
23 * by the Valve Corporation. You must obey the GNU General Public License in
24 * all respects for all other code used. Additionally, AlliedModders LLC grants
25 * this exception to all derivative works. AlliedModders LLC defines further
26 * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
27 * or <http://www.sourcemod.net/license.php>.
28 *
29 * Version: $Id$
30 */
32 #ifndef _INCLUDE_CSTRIKE_UTIL_H_
33 #define _INCLUDE_CSTRIKE_UTIL_H_
35 #if SOURCE_ENGINE == SE_CSGO
36 enum CSGOWeapon
37 {
38 CSGOWeapon_NONE,
39 CSGOWeapon_DEAGLE,
40 CSGOWeapon_ELITE,
41 CSGOWeapon_FIVESEVEN,
42 CSGOWeapon_GLOCK,
43 CSGOWeapon_P228,
44 CSGOWeapon_USP,
45 CSGOWeapon_AK47,
46 CSGOWeapon_AUG,
47 CSGOWeapon_AWP,
48 CSGOWeapon_FAMAS,
49 CSGOWeapon_G3SG1,
50 CSGOWeapon_GALIL,
51 CSGOWeapon_GALILAR,
52 CSGOWeapon_M249,
53 CSGOWeapon_M3,
54 CSGOWeapon_M4A1,
55 CSGOWeapon_MAC10,
56 CSGOWeapon_MP5NAVY,
57 CSGOWeapon_P90,
58 CSGOWeapon_SCOUT,
59 CSGOWeapon_SG550,
60 CSGOWeapon_SG552,
61 CSGOWeapon_TMP,
62 CSGOWeapon_UMP45,
63 CSGOWeapon_XM1014,
64 CSGOWeapon_BIZON,
65 CSGOWeapon_MAG7,
66 CSGOWeapon_NEGEV,
67 CSGOWeapon_SAWEDOFF,
68 CSGOWeapon_TEC9,
69 CSGOWeapon_TASER,
70 CSGOWeapon_HKP2000,
71 CSGOWeapon_MP7,
72 CSGOWeapon_MP9,
73 CSGOWeapon_NOVA,
74 CSGOWeapon_P250,
75 CSGOWeapon_SCAR17,
76 CSGOWeapon_SCAR20,
77 CSGOWeapon_SG556,
78 CSGOWeapon_SSG08,
79 CSGOWeapon_KNIFE_GG,
80 CSGOWeapon_KNIFE,
81 CSGOWeapon_FLASHBANG,
82 CSGOWeapon_HEGRENADE,
83 CSGOWeapon_SMOKEGRENADE,
84 CSGOWeapon_MOLOTOV,
85 CSGOWeapon_DECOY,
86 CSGOWeapon_INCGRENADE,
87 CSGOWeapon_C4, //49
88 CSGOWeapon_KEVLAR = 50,
89 CSGOWeapon_ASSAULTSUIT,
90 CSGOWeapon_NVG,
91 CSGOWeapon_DEFUSER
92 };
93 enum SMCSWeapon
94 {
95 SMCSWeapon_NONE = 0,
96 SMCSWeapon_P228,
97 SMCSWeapon_GLOCK,
98 SMCSWeapon_SCOUT,
99 SMCSWeapon_HEGRENADE,
100 SMCSWeapon_XM1014,
101 SMCSWeapon_C4,
102 SMCSWeapon_MAC10,
103 SMCSWeapon_AUG,
104 SMCSWeapon_SMOKEGRENADE,
105 SMCSWeapon_ELITE,
106 SMCSWeapon_FIVESEVEN,
107 SMCSWeapon_UMP45,
108 SMCSWeapon_SG550,
109 SMCSWeapon_GALIL,
110 SMCSWeapon_FAMAS,
111 SMCSWeapon_USP,
112 SMCSWeapon_AWP,
113 SMCSWeapon_MP5NAVY,
114 SMCSWeapon_M249,
115 SMCSWeapon_M3,
116 SMCSWeapon_M4A1,
117 SMCSWeapon_TMP,
118 SMCSWeapon_G3SG1,
119 SMCSWeapon_FLASHBANG,
120 SMCSWeapon_DEAGLE,
121 SMCSWeapon_SG552,
122 SMCSWeapon_AK47,
123 SMCSWeapon_KNIFE,
124 SMCSWeapon_P90,
125 SMCSWeapon_SHIELD,
126 SMCSWeapon_KEVLAR,
127 SMCSWeapon_ASSAULTSUIT,
128 SMCSWeapon_NIGHTVISION,
129 SMCSWeapon_GALILAR,
130 SMCSWeapon_BIZON,
131 SMCSWeapon_MAG7,
132 SMCSWeapon_NEGEV,
133 SMCSWeapon_SAWEDOFF,
134 SMCSWeapon_TEC9,
135 SMCSWeapon_TASER,
136 SMCSWeapon_HKP2000,
137 SMCSWeapon_MP7,
138 SMCSWeapon_MP9,
139 SMCSWeapon_NOVA,
140 SMCSWeapon_P250,
141 SMCSWeapon_SCAR17,
142 SMCSWeapon_SCAR20,
143 SMCSWeapon_SG556,
144 SMCSWeapon_SSG08,
145 SMCSWeapon_KNIFE_GG,
146 SMCSWeapon_MOLOTOV,
147 SMCSWeapon_DECOY,
148 SMCSWeapon_INCGRENADE,
149 SMCSWeapon_DEFUSER
150 };
151 #endif
152 void *GetWeaponInfo(int weaponID);
154 const char *GetTranslatedWeaponAlias(const char *weapon);
156 int AliasToWeaponID(const char *weapon);
158 const char *WeaponIDToAlias(int weaponID);
160 int GetRealWeaponID(int weaponId);
162 int GetFakeWeaponID(int weaponId);
164 #endif