|
faluco@1441
|
1 |
/** |
|
faluco@1441
|
2 |
* vim: set ts=4 : |
|
faluco@1441
|
3 |
* ============================================================================= |
|
ds@1947
|
4 |
* SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. |
|
faluco@1441
|
5 |
* ============================================================================= |
|
faluco@1441
|
6 |
* |
|
faluco@1441
|
7 |
* This file is part of the SourceMod/SourcePawn SDK. |
|
faluco@1441
|
8 |
* |
|
faluco@1441
|
9 |
* This program is free software; you can redistribute it and/or modify it under |
|
faluco@1441
|
10 |
* the terms of the GNU General Public License, version 3.0, as published by the |
|
faluco@1441
|
11 |
* Free Software Foundation. |
|
faluco@1441
|
12 |
* |
|
faluco@1441
|
13 |
* This program is distributed in the hope that it will be useful, but WITHOUT |
|
faluco@1441
|
14 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
|
faluco@1441
|
15 |
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
|
faluco@1441
|
16 |
* details. |
|
faluco@1441
|
17 |
* |
|
faluco@1441
|
18 |
* You should have received a copy of the GNU General Public License along with |
|
faluco@1441
|
19 |
* this program. If not, see <http://www.gnu.org/licenses/>. |
|
faluco@1441
|
20 |
* |
|
faluco@1441
|
21 |
* As a special exception, AlliedModders LLC gives you permission to link the |
|
faluco@1441
|
22 |
* code of this program (as well as its derivative works) to "Half-Life 2," the |
|
faluco@1441
|
23 |
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software |
|
faluco@1441
|
24 |
* by the Valve Corporation. You must obey the GNU General Public License in |
|
faluco@1441
|
25 |
* all respects for all other code used. Additionally, AlliedModders LLC grants |
|
faluco@1441
|
26 |
* this exception to all derivative works. AlliedModders LLC defines further |
|
faluco@1441
|
27 |
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), |
|
faluco@1441
|
28 |
* or <http://www.sourcemod.net/license.php>. |
|
faluco@1441
|
29 |
* |
|
faluco@1441
|
30 |
* Version: $Id$ |
|
faluco@1441
|
31 |
*/ |
|
faluco@1441
|
32 |
|
|
faluco@1441
|
33 |
#if defined _cstrike_included |
|
faluco@1441
|
34 |
#endinput |
|
faluco@1441
|
35 |
#endif |
|
faluco@1441
|
36 |
#define _cstrike_included |
|
faluco@1441
|
37 |
|
|
faluco@1441
|
38 |
#define CS_TEAM_NONE 0 /**< No team yet. */ |
|
faluco@1441
|
39 |
#define CS_TEAM_SPECTATOR 1 /**< Spectators. */ |
|
dvander@1459
|
40 |
#define CS_TEAM_T 2 /**< Terrorists. */ |
|
dvander@1459
|
41 |
#define CS_TEAM_CT 3 /**< Counter-Terrorists. */ |
|
dvander@1459
|
42 |
|
|
dvander@1459
|
43 |
#define CS_SLOT_PRIMARY 0 /**< Primary weapon slot. */ |
|
dvander@1459
|
44 |
#define CS_SLOT_SECONDARY 1 /**< Secondary weapon slot. */ |
|
dvander@1459
|
45 |
#define CS_SLOT_GRENADE 3 /**< Grenade slot (will only return one grenade). */ |
|
dvander@1459
|
46 |
#define CS_SLOT_C4 4 /**< C4 slot. */ |
|
faluco@1441
|
47 |
|
|
rgr_02@3313
|
48 |
enum CSRoundEndReason |
|
rgr_02@3313
|
49 |
{ |
|
rgr_02@3313
|
50 |
CSRoundEnd_TargetBombed = 0, // Target Successfully Bombed! |
|
rgr_02@3313
|
51 |
CSRoundEnd_VIPEscaped, // The VIP has escaped! |
|
rgr_02@3313
|
52 |
CSRoundEnd_VIPKilled, // VIP has been assassinated! |
|
rgr_02@3313
|
53 |
CSRoundEnd_TerroristsEscaped, // The terrorists have escaped! |
|
rgr_02@3313
|
54 |
CSRoundEnd_CTStoppedEscape, // The CTs have prevented most of the terrorists from escaping! |
|
rgr_02@3313
|
55 |
CSRoundEnd_TerroristsStopped, // Escaping terrorists have all been neutralized! |
|
rgr_02@3313
|
56 |
CSRoundEnd_BombDefused, // The bomb has been defused! |
|
rgr_02@3313
|
57 |
CSRoundEnd_CTWin, // Counter-Terrorists Win! |
|
rgr_02@3313
|
58 |
CSRoundEnd_TerroristWin, // Terrorists Win! |
|
rgr_02@3313
|
59 |
CSRoundEnd_Draw, // Round Draw! |
|
rgr_02@3313
|
60 |
CSRoundEnd_HostagesRescued, // All Hostages have been rescued! |
|
rgr_02@3313
|
61 |
CSRoundEnd_TargetSaved, // Target has been saved! |
|
rgr_02@3313
|
62 |
CSRoundEnd_HostagesNotRescued, // Hostages have not been rescued! |
|
rgr_02@3313
|
63 |
CSRoundEnd_TerroristsNotEscaped, // Terrorists have not escaped! |
|
rgr_02@3313
|
64 |
CSRoundEnd_VIPNotEscaped, // VIP has not escaped! |
|
rgr_02@3535
|
65 |
CSRoundEnd_GameStart, // Game Commencing! |
|
rgr_02@3528
|
66 |
|
|
rgr_02@3528
|
67 |
// The below only exist on CS:GO |
|
rgr_02@3528
|
68 |
CSRoundEnd_TerroristsSurrender, // Terrorists Surrender |
|
rgr_02@3528
|
69 |
CSRoundEnd_CTSurrender, // CTs Surrender |
|
rgr_02@3313
|
70 |
}; |
|
rgr_02@3313
|
71 |
|
|
rgr_02@3324
|
72 |
enum CSWeaponID |
|
rgr_02@3324
|
73 |
{ |
|
rgr_02@3519
|
74 |
CSWeapon_NONE = 0, |
|
rgr_02@3519
|
75 |
CSWeapon_P228, |
|
rgr_02@3519
|
76 |
CSWeapon_GLOCK, |
|
rgr_02@3519
|
77 |
CSWeapon_SCOUT, |
|
rgr_02@3519
|
78 |
CSWeapon_HEGRENADE, |
|
rgr_02@3519
|
79 |
CSWeapon_XM1014, |
|
rgr_02@3519
|
80 |
CSWeapon_C4, |
|
rgr_02@3519
|
81 |
CSWeapon_MAC10, |
|
rgr_02@3519
|
82 |
CSWeapon_AUG, |
|
rgr_02@3519
|
83 |
CSWeapon_SMOKEGRENADE, |
|
rgr_02@3519
|
84 |
CSWeapon_ELITE, |
|
rgr_02@3519
|
85 |
CSWeapon_FIVESEVEN, |
|
rgr_02@3519
|
86 |
CSWeapon_UMP45, |
|
rgr_02@3519
|
87 |
CSWeapon_SG550, |
|
rgr_02@3519
|
88 |
CSWeapon_GALIL, |
|
rgr_02@3519
|
89 |
CSWeapon_FAMAS, |
|
rgr_02@3519
|
90 |
CSWeapon_USP, |
|
rgr_02@3519
|
91 |
CSWeapon_AWP, |
|
rgr_02@3519
|
92 |
CSWeapon_MP5NAVY, |
|
rgr_02@3519
|
93 |
CSWeapon_M249, |
|
rgr_02@3519
|
94 |
CSWeapon_M3, |
|
rgr_02@3519
|
95 |
CSWeapon_M4A1, |
|
rgr_02@3519
|
96 |
CSWeapon_TMP, |
|
rgr_02@3519
|
97 |
CSWeapon_G3SG1, |
|
rgr_02@3519
|
98 |
CSWeapon_FLASHBANG, |
|
rgr_02@3519
|
99 |
CSWeapon_DEAGLE, |
|
rgr_02@3519
|
100 |
CSWeapon_SG552, |
|
rgr_02@3519
|
101 |
CSWeapon_AK47, |
|
rgr_02@3519
|
102 |
CSWeapon_KNIFE, |
|
rgr_02@3519
|
103 |
CSWeapon_P90, |
|
rgr_02@3519
|
104 |
CSWeapon_SHIELD, |
|
rgr_02@3519
|
105 |
CSWeapon_KEVLAR, |
|
rgr_02@3519
|
106 |
CSWeapon_ASSAULTSUIT, |
|
rgr_02@3519
|
107 |
CSWeapon_NIGHTVISION, |
|
rgr_02@3519
|
108 |
CSWeapon_GALILAR, |
|
rgr_02@3519
|
109 |
CSWeapon_BIZON, |
|
rgr_02@3519
|
110 |
CSWeapon_MAG7, |
|
rgr_02@3519
|
111 |
CSWeapon_NEGEV, |
|
rgr_02@3519
|
112 |
CSWeapon_SAWEDOFF, |
|
rgr_02@3519
|
113 |
CSWeapon_TEC9, |
|
rgr_02@3519
|
114 |
CSWeapon_TASER, |
|
rgr_02@3519
|
115 |
CSWeapon_HKP2000, |
|
rgr_02@3519
|
116 |
CSWeapon_MP7, |
|
rgr_02@3519
|
117 |
CSWeapon_MP9, |
|
rgr_02@3519
|
118 |
CSWeapon_NOVA, |
|
rgr_02@3519
|
119 |
CSWeapon_P250, |
|
rgr_02@3519
|
120 |
CSWeapon_SCAR17, |
|
rgr_02@3519
|
121 |
CSWeapon_SCAR20, |
|
rgr_02@3519
|
122 |
CSWeapon_SG556, |
|
rgr_02@3519
|
123 |
CSWeapon_SSG08, |
|
rgr_02@3519
|
124 |
CSWeapon_KNIFE_GG, |
|
rgr_02@3519
|
125 |
CSWeapon_MOLOTOV, |
|
rgr_02@3519
|
126 |
CSWeapon_DECOY, |
|
rgr_02@3519
|
127 |
CSWeapon_INCGRENADE, |
|
rgr_02@3519
|
128 |
CSWeapon_DEFUSER |
|
rgr_02@3324
|
129 |
}; |
|
rgr_02@3519
|
130 |
|
|
rgr_02@3313
|
131 |
/** |
|
rgr_02@3313
|
132 |
* Called when a player attempts to purchase an item. |
|
rgr_02@3313
|
133 |
* Return Plugin_Continue to allow the purchase or return a |
|
rgr_02@3313
|
134 |
* higher action to deny. |
|
rgr_02@3313
|
135 |
* |
|
rgr_02@3313
|
136 |
* @param client Client index |
|
rgr_02@3313
|
137 |
* @param weapon User input for weapon name |
|
rgr_02@3313
|
138 |
*/ |
|
rgr_02@3313
|
139 |
forward Action:CS_OnBuyCommand(client, const String:weapon[]); |
|
rgr_02@3313
|
140 |
|
|
rgr_02@3313
|
141 |
/** |
|
rgr_02@3313
|
142 |
* Called when CSWeaponDrop is called |
|
rgr_02@3313
|
143 |
* Return Plugin_Continue to allow the call or return a |
|
rgr_02@3313
|
144 |
* higher action to deny. |
|
rgr_02@3313
|
145 |
* |
|
rgr_02@3313
|
146 |
* @param client Client index |
|
rgr_02@3313
|
147 |
* @param weapon Weapon index |
|
rgr_02@3313
|
148 |
*/ |
|
rgr_02@3313
|
149 |
forward Action:CS_OnCSWeaponDrop(client, weaponIndex); |
|
rgr_02@3313
|
150 |
|
|
rgr_02@3313
|
151 |
/** |
|
rgr_02@3313
|
152 |
* Called when game retrieves a weapon's price for a player. |
|
rgr_02@3313
|
153 |
* Return Plugin_Continue to use default value or return a higher |
|
rgr_02@3313
|
154 |
* action to use a newly-set price. |
|
rgr_02@3313
|
155 |
* |
|
rgr_02@3313
|
156 |
* @note This can be called multiple times per weapon purchase |
|
rgr_02@3313
|
157 |
* |
|
rgr_02@3313
|
158 |
* @param client Client index |
|
rgr_02@3313
|
159 |
* @param weapon Weapon classname |
|
rgr_02@3313
|
160 |
* @param price Buffer param for the price of the weapon |
|
rgr_02@3322
|
161 |
* |
|
rgr_02@3322
|
162 |
* @note Not all "weapons" call GetWeaponPrice. Example: c4, knife, vest, vest helmet, night vision. |
|
rgr_02@3313
|
163 |
*/ |
|
rgr_02@3313
|
164 |
forward Action:CS_OnGetWeaponPrice(client, const String:weapon[], &price); |
|
rgr_02@3313
|
165 |
|
|
rgr_02@3313
|
166 |
/** |
|
rgr_02@3313
|
167 |
* Called when TerminateRound is called. |
|
rgr_02@3313
|
168 |
* Return Plugin_Continue to ignore, return Plugin_Changed to continue, |
|
rgr_02@3313
|
169 |
* using the given delay and reason, or return Plugin_Handled or a higher |
|
rgr_02@3313
|
170 |
* action to block TerminateRound from firing. |
|
rgr_02@3313
|
171 |
* |
|
rgr_02@3313
|
172 |
* @param delay Time (in seconds) until new round starts |
|
rgr_02@3313
|
173 |
* @param reason Reason for round end |
|
rgr_02@3313
|
174 |
*/ |
|
rgr_02@3313
|
175 |
forward Action:CS_OnTerminateRound(&Float:delay, &CSRoundEndReason:reason); |
|
rgr_02@3313
|
176 |
|
|
faluco@1441
|
177 |
/** |
|
faluco@1441
|
178 |
* Respawns a player. |
|
faluco@1441
|
179 |
* |
|
faluco@1441
|
180 |
* @param client Player's index. |
|
faluco@1441
|
181 |
* @noreturn |
|
faluco@1441
|
182 |
* @error Invalid client index, client not in game. |
|
faluco@1441
|
183 |
*/ |
|
faluco@1441
|
184 |
native CS_RespawnPlayer(client); |
|
faluco@1441
|
185 |
|
|
faluco@1441
|
186 |
/** |
|
faluco@1441
|
187 |
* Switches the player's team. |
|
faluco@1441
|
188 |
* |
|
faluco@1441
|
189 |
* @param client Player's index. |
|
faluco@1441
|
190 |
* @param team Team index. |
|
faluco@1441
|
191 |
* @noreturn |
|
faluco@1441
|
192 |
* @error Invalid client index, client not in game. |
|
faluco@1441
|
193 |
*/ |
|
faluco@1441
|
194 |
native CS_SwitchTeam(client, team); |
|
faluco@1441
|
195 |
|
|
faluco@1441
|
196 |
/** |
|
rgr_02@3313
|
197 |
* Forces a player to drop or toss their weapon |
|
rgr_02@3313
|
198 |
* |
|
rgr_02@3313
|
199 |
* @param client Player's index. |
|
rgr_02@3313
|
200 |
* @param weaponIndex Index of weapon to drop. |
|
rgr_02@3313
|
201 |
* @param toss True to toss weapon (with velocity) or false to just drop weapon |
|
rgr_02@3313
|
202 |
* @param blockhook Set to true to stop the corresponding CS_OnCSWeaponDrop |
|
rgr_02@3313
|
203 |
* |
|
rgr_02@3313
|
204 |
* @noreturn |
|
rgr_02@3313
|
205 |
* @error Invalid client index, client not in game, or invalid weapon index. |
|
rgr_02@3313
|
206 |
*/ |
|
rgr_02@3313
|
207 |
native CS_DropWeapon(client, weaponIndex, bool:toss, bool:blockhook = false); |
|
rgr_02@3313
|
208 |
|
|
rgr_02@3313
|
209 |
/** |
|
rgr_02@3313
|
210 |
* Forces round to end with a reason |
|
rgr_02@3313
|
211 |
* |
|
rgr_02@3313
|
212 |
* @param delay Time (in seconds) to delay before new round starts |
|
rgr_02@3313
|
213 |
* @param reason Reason for the round ending |
|
rgr_02@3313
|
214 |
* @param blockhook Set to true to stop the corresponding CS_OnTerminateRound |
|
rgr_02@3313
|
215 |
* forward from being called. |
|
rgr_02@3313
|
216 |
* @noreturn |
|
rgr_02@3313
|
217 |
*/ |
|
skamonkey@3437
|
218 |
native CS_TerminateRound(Float:delay, CSRoundEndReason:reason, bool:blockhook = false); |
|
rgr_02@3313
|
219 |
|
|
skamonkey@3405
|
220 |
/** |
|
rgr_02@3313
|
221 |
* Gets a weapon name from a weapon alias |
|
rgr_02@3313
|
222 |
* |
|
rgr_02@3313
|
223 |
* @param alias Weapons alias to get weapon name for. |
|
rgr_02@3313
|
224 |
* @param weapon Buffer to store weapons name |
|
rgr_02@3313
|
225 |
* @param size Size of buffer to store the weapons name. |
|
rgr_02@3313
|
226 |
* @noreturn |
|
rgr_02@3313
|
227 |
* |
|
rgr_02@3313
|
228 |
* @note Will set the buffer to the original alias if it is not an alias to a weapon. |
|
rgr_02@3313
|
229 |
*/ |
|
skamonkey@3437
|
230 |
native CS_GetTranslatedWeaponAlias(const String:alias[], String:weapon[], size); |
|
rgr_02@3313
|
231 |
|
|
skamonkey@3405
|
232 |
/** |
|
rgr_02@3324
|
233 |
* Gets a weapon's price |
|
rgr_02@3324
|
234 |
* |
|
rgr_02@3324
|
235 |
* @param client Client to check weapon price for. |
|
rgr_02@3324
|
236 |
* @param id Weapon id for the weapon to check |
|
rgr_02@3324
|
237 |
* @param defaultprice Set to true to get defaultprice. |
|
rgr_02@3324
|
238 |
* @return Returns price of the weapon (even if modified) |
|
rgr_02@3324
|
239 |
* |
|
rgr_02@3324
|
240 |
* @error Invalid client, failing to get weapon info, or failing to get price offset. |
|
rgr_02@3359
|
241 |
* @note c4, knife and shield will always return 0. vest, vest helmet and night vision will always return default price. |
|
rgr_02@3324
|
242 |
*/ |
|
skamonkey@3437
|
243 |
native CS_GetWeaponPrice(client, CSWeaponID:id, bool:defaultprice = false); |
|
rgr_02@3324
|
244 |
|
|
rgr_02@3313
|
245 |
/** |
|
skamonkey@3405
|
246 |
* Gets a clients clan tag |
|
skamonkey@3405
|
247 |
* @param client Client index to get clan tag for. |
|
skamonkey@3405
|
248 |
* @param buffer Buffer to store clients clan tag in. |
|
skamonkey@3405
|
249 |
* @param size Size of the buffer. |
|
skamonkey@3405
|
250 |
* @return Number of non-null bytes written. |
|
skamonkey@3405
|
251 |
* |
|
skamonkey@3405
|
252 |
* @error Invalid client. |
|
skamonkey@3405
|
253 |
*/ |
|
skamonkey@3437
|
254 |
native CS_GetClientClanTag(client, String:buffer[], size); |
|
skamonkey@3405
|
255 |
|
|
skamonkey@3405
|
256 |
/** |
|
skamonkey@3405
|
257 |
* Sets a clients clan tag |
|
skamonkey@3405
|
258 |
* @param client Client index to set clan tag for. |
|
skamonkey@3405
|
259 |
* @param tag Tag to set clients clan tag as. |
|
skamonkey@3405
|
260 |
* @noreturn |
|
skamonkey@3405
|
261 |
* |
|
skamonkey@3405
|
262 |
* @error Invalid client. |
|
skamonkey@3405
|
263 |
*/ |
|
skamonkey@3437
|
264 |
native CS_SetClientClanTag(client, const String:tag[]); |
|
rgr_02@3530
|
265 |
|
|
rgr_02@3530
|
266 |
/** |
|
rgr_02@3530
|
267 |
* Gets a team's score |
|
rgr_02@3530
|
268 |
* @param team Team index to get score for. |
|
rgr_02@3530
|
269 |
* @return Returns the internal team score. |
|
rgr_02@3530
|
270 |
* |
|
rgr_02@3530
|
271 |
* @error Invalid team index. |
|
rgr_02@3530
|
272 |
*/ |
|
rgr_02@3530
|
273 |
native CS_GetTeamScore(team); |
|
rgr_02@3530
|
274 |
|
|
rgr_02@3530
|
275 |
/** |
|
rgr_02@3530
|
276 |
* Sets a team's score |
|
rgr_02@3530
|
277 |
* @param team Team index to set score for. |
|
rgr_02@3530
|
278 |
* @param value Value to set teams score as. |
|
rgr_02@3530
|
279 |
* @noreturn |
|
rgr_02@3530
|
280 |
* |
|
rgr_02@3530
|
281 |
* @error Invalid team index. |
|
rgr_02@3530
|
282 |
* @note This will update the scoreboard only after the scoreboard update function is called. Use SetTeamScore plus this to update the scoreboard instantly and save values correctly. |
|
rgr_02@3530
|
283 |
*/ |
|
rgr_02@3530
|
284 |
native CS_SetTeamScore(team, value); |
|
rgr_02@3530
|
285 |
|
|
rgr_02@3530
|
286 |
/** |
|
rgr_02@3530
|
287 |
* Gets a client's mvp count |
|
skamonkey@3706
|
288 |
* @param client Client index to get mvp count of. |
|
skamonkey@3706
|
289 |
* @return Returns the client's internal MVP count. |
|
rgr_02@3530
|
290 |
* |
|
rgr_02@3530
|
291 |
* @error Invalid client. |
|
rgr_02@3530
|
292 |
*/ |
|
rgr_02@3530
|
293 |
native CS_GetMVPCount(client); |
|
rgr_02@3530
|
294 |
|
|
rgr_02@3530
|
295 |
/** |
|
rgr_02@3530
|
296 |
* Sets a client's mvp count |
|
rgr_02@3530
|
297 |
* @param client Client index to set mvp count for. |
|
skamonkey@3706
|
298 |
* @param value Value to set client's mvp count as. |
|
rgr_02@3530
|
299 |
* @noreturn |
|
rgr_02@3530
|
300 |
* |
|
rgr_02@3530
|
301 |
* @error Invalid client. |
|
rgr_02@3530
|
302 |
*/ |
|
rgr_02@3530
|
303 |
native CS_SetMVPCount(client, value); |
|
rgr_02@3530
|
304 |
|
|
skamonkey@3405
|
305 |
/** |
|
skamonkey@3706
|
306 |
* Gets a client's contribution score (CS:GO only) |
|
skamonkey@3706
|
307 |
* @param client Client index to get score of. |
|
skamonkey@3706
|
308 |
* @return Returns the client's score. |
|
skamonkey@3706
|
309 |
* |
|
skamonkey@3706
|
310 |
* @error Invalid client. |
|
skamonkey@3706
|
311 |
*/ |
|
skamonkey@3706
|
312 |
native CS_GetClientContributionScore(client); |
|
skamonkey@3706
|
313 |
|
|
skamonkey@3706
|
314 |
/** |
|
skamonkey@3706
|
315 |
* Sets a client's contribution score (CS:GO only) |
|
skamonkey@3706
|
316 |
* @param client Client index to set score for. |
|
skamonkey@3706
|
317 |
* @param value Value to set client's score as. |
|
skamonkey@3706
|
318 |
* @noreturn |
|
skamonkey@3706
|
319 |
* |
|
skamonkey@3706
|
320 |
* @error Invalid client. |
|
skamonkey@3706
|
321 |
*/ |
|
skamonkey@3706
|
322 |
native CS_SetClientContributionScore(client, value); |
|
skamonkey@3706
|
323 |
|
|
skamonkey@3706
|
324 |
/** |
|
skamonkey@3706
|
325 |
* Gets a client's assists (CS:GO only) |
|
skamonkey@3706
|
326 |
* @param client Client index to get assists of. |
|
skamonkey@3706
|
327 |
* @return Returns the client's assists. |
|
skamonkey@3706
|
328 |
* |
|
skamonkey@3706
|
329 |
* @error Invalid client. |
|
skamonkey@3706
|
330 |
*/ |
|
skamonkey@3706
|
331 |
native CS_GetClientAssists(client); |
|
skamonkey@3706
|
332 |
|
|
skamonkey@3706
|
333 |
/** |
|
skamonkey@3706
|
334 |
* Sets a client's assists (CS:GO only) |
|
skamonkey@3706
|
335 |
* @param client Client index to set assists for. |
|
skamonkey@3706
|
336 |
* @param value Value to set client's assists as. |
|
skamonkey@3706
|
337 |
* @noreturn |
|
skamonkey@3706
|
338 |
* |
|
skamonkey@3706
|
339 |
* @error Invalid client. |
|
skamonkey@3706
|
340 |
*/ |
|
skamonkey@3706
|
341 |
native CS_SetClientAssists(client, value); |
|
skamonkey@3706
|
342 |
|
|
skamonkey@3706
|
343 |
/** |
|
rgr_02@3519
|
344 |
* Gets a weaponID from a alias |
|
rgr_02@3519
|
345 |
* @param alias Weapon alias to attempt to get an id for. |
|
rgr_02@3519
|
346 |
* @return Returns a weapon id or 0 if failed to find a match. |
|
rgr_02@3519
|
347 |
* |
|
rgr_02@3519
|
348 |
* @note For best results use CS_GetTranslatedWeaponAlias on the weapon name before passing it. |
|
rgr_02@3519
|
349 |
*/ |
|
rgr_02@3529
|
350 |
native CSWeaponID:CS_AliasToWeaponID(const String:alias[]); |
|
rgr_02@3519
|
351 |
|
|
rgr_02@3519
|
352 |
/** |
|
kyle@3702
|
353 |
* Gets a alias from a weaponID |
|
kyle@3702
|
354 |
* @param weaponID WeaponID to get alias for. |
|
kyle@3702
|
355 |
* @param destination Destination string to hold the weapon alias. |
|
kyle@3702
|
356 |
* @param len Length of the destination array. |
|
kyle@3702
|
357 |
* @return Returns number of cells written. |
|
kyle@3702
|
358 |
*/ |
|
drifter01620@3785
|
359 |
native CS_WeaponIDToAlias(CSWeaponID:weaponID, String:destination[], len); |
|
kyle@3702
|
360 |
|
|
kyle@3702
|
361 |
/** |
|
faluco@1441
|
362 |
* Do not edit below this line! |
|
faluco@1441
|
363 |
*/ |
|
faluco@1441
|
364 |
public Extension:__ext_cstrike = |
|
faluco@1441
|
365 |
{ |
|
dvander@1573
|
366 |
name = "cstrike", |
|
dvander@1459
|
367 |
file = "games/game.cstrike.ext", |
|
faluco@1441
|
368 |
autoload = 0, |
|
faluco@1441
|
369 |
#if defined REQUIRE_EXTENSIONS |
|
faluco@1441
|
370 |
required = 1, |
|
faluco@1441
|
371 |
#else |
|
faluco@1441
|
372 |
required = 0, |
|
faluco@1441
|
373 |
#endif |
|
dvander@1459
|
374 |
}; |
|
dvander@1573
|
375 |
|
|
dvander@1573
|
376 |
#if !defined REQUIRE_EXTENSIONS |
|
dvander@1573
|
377 |
public __ext_cstrike_SetNTVOptional() |
|
dvander@1573
|
378 |
{ |
|
dvander@1573
|
379 |
MarkNativeAsOptional("CS_RespawnPlayer"); |
|
dvander@1573
|
380 |
MarkNativeAsOptional("CS_SwitchTeam"); |
|
rgr_02@3313
|
381 |
MarkNativeAsOptional("CS_DropWeapon"); |
|
rgr_02@3313
|
382 |
MarkNativeAsOptional("CS_TerminateRound"); |
|
rgr_02@3313
|
383 |
MarkNativeAsOptional("CS_GetTranslatedWeaponAlias"); |
|
rgr_02@3324
|
384 |
MarkNativeAsOptional("CS_GetWeaponPrice"); |
|
skamonkey@3405
|
385 |
MarkNativeAsOptional("CS_GetClientClanTag"); |
|
skamonkey@3405
|
386 |
MarkNativeAsOptional("CS_SetClientClanTag"); |
|
rgr_02@3530
|
387 |
MarkNativeAsOptional("CS_GetTeamScore"); |
|
rgr_02@3530
|
388 |
MarkNativeAsOptional("CS_SetTeamScore"); |
|
rgr_02@3530
|
389 |
MarkNativeAsOptional("CS_GetMVPCount"); |
|
rgr_02@3530
|
390 |
MarkNativeAsOptional("CS_SetMVPCount"); |
|
skamonkey@3706
|
391 |
MarkNativeAsOptional("CS_GetClientContributionScore"); |
|
skamonkey@3706
|
392 |
MarkNativeAsOptional("CS_SetClientContributionScore"); |
|
skamonkey@3706
|
393 |
MarkNativeAsOptional("CS_GetClientAssists"); |
|
skamonkey@3706
|
394 |
MarkNativeAsOptional("CS_SetClientAssists"); |
|
skamonkey@3539
|
395 |
MarkNativeAsOptional("CS_AliasToWeaponID"); |
|
dvander@1573
|
396 |
} |
|
dvander@1573
|
397 |
#endif |
|
rgr_02@3313
|
398 |
|