|
faluco@1441
|
1 |
/** |
|
faluco@1441
|
2 |
* vim: set ts=4 : |
|
faluco@1441
|
3 |
* ============================================================================= |
|
faluco@1441
|
4 |
* SourceMod (C)2004-2007 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 |
|
|
faluco@1441
|
48 |
/** |
|
faluco@1441
|
49 |
* Respawns a player. |
|
faluco@1441
|
50 |
* |
|
faluco@1441
|
51 |
* @param client Player's index. |
|
faluco@1441
|
52 |
* @noreturn |
|
faluco@1441
|
53 |
* @error Invalid client index, client not in game. |
|
faluco@1441
|
54 |
*/ |
|
faluco@1441
|
55 |
native CS_RespawnPlayer(client); |
|
faluco@1441
|
56 |
|
|
faluco@1441
|
57 |
/** |
|
faluco@1441
|
58 |
* Switches the player's team. |
|
faluco@1441
|
59 |
* |
|
faluco@1441
|
60 |
* @param client Player's index. |
|
faluco@1441
|
61 |
* @param team Team index. |
|
faluco@1441
|
62 |
* @noreturn |
|
faluco@1441
|
63 |
* @error Invalid client index, client not in game. |
|
faluco@1441
|
64 |
*/ |
|
faluco@1441
|
65 |
native CS_SwitchTeam(client, team); |
|
faluco@1441
|
66 |
|
|
faluco@1441
|
67 |
/** |
|
faluco@1441
|
68 |
* Do not edit below this line! |
|
faluco@1441
|
69 |
*/ |
|
faluco@1441
|
70 |
public Extension:__ext_cstrike = |
|
faluco@1441
|
71 |
{ |
|
dvander@1573
|
72 |
name = "cstrike", |
|
dvander@1459
|
73 |
file = "games/game.cstrike.ext", |
|
faluco@1441
|
74 |
autoload = 0, |
|
faluco@1441
|
75 |
#if defined REQUIRE_EXTENSIONS |
|
faluco@1441
|
76 |
required = 1, |
|
faluco@1441
|
77 |
#else |
|
faluco@1441
|
78 |
required = 0, |
|
faluco@1441
|
79 |
#endif |
|
dvander@1459
|
80 |
}; |
|
dvander@1573
|
81 |
|
|
dvander@1573
|
82 |
#if !defined REQUIRE_EXTENSIONS |
|
dvander@1573
|
83 |
public __ext_cstrike_SetNTVOptional() |
|
dvander@1573
|
84 |
{ |
|
dvander@1573
|
85 |
MarkNativeAsOptional("CS_RespawnPlayer"); |
|
dvander@1573
|
86 |
MarkNativeAsOptional("CS_SwitchTeam"); |
|
dvander@1573
|
87 |
} |
|
dvander@1573
|
88 |
#endif |