fixed
amb1379 with sweeping changes to the entity stuff. all prop stocks are now natives so they can properly compute everything quickly, as well as do type checks. Get/SetEntDataEnt are deprecated for being sucky, the new 2 versions do more checking and uses better values. lastly, there are functions/parameters for finding types and sizes of property.
3 * =============================================================================
4 * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
5 * =============================================================================
7 * This file is part of the SourceMod/SourcePawn SDK.
9 * This program is free software; you can redistribute it and/or modify it under
10 * the terms of the GNU General Public License, version 3.0, as published by the
11 * Free Software Foundation.
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
18 * You should have received a copy of the GNU General Public License along with
19 * this program. If not, see <http://www.gnu.org/licenses/>.
21 * As a special exception, AlliedModders LLC gives you permission to link the
22 * code of this program (as well as its derivative works) to "Half-Life 2," the
23 * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
24 * by the Valve Corporation. You must obey the GNU General Public License in
25 * all respects for all other code used. Additionally, AlliedModders LLC grants
26 * this exception to all derivative works. AlliedModders LLC defines further
27 * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
28 * or <http://www.sourcemod.net/license.php>.
33 #if defined _cstrike_included
36 #define _cstrike_included
38 #define CS_TEAM_NONE 0 /**< No team yet. */
39 #define CS_TEAM_SPECTATOR 1 /**< Spectators. */
40 #define CS_TEAM_T 2 /**< Terrorists. */
41 #define CS_TEAM_CT 3 /**< Counter-Terrorists. */
43 #define CS_SLOT_PRIMARY 0 /**< Primary weapon slot. */
44 #define CS_SLOT_SECONDARY 1 /**< Secondary weapon slot. */
45 #define CS_SLOT_GRENADE 3 /**< Grenade slot (will only return one grenade). */
46 #define CS_SLOT_C4 4 /**< C4 slot. */
51 * @param client Player's index.
53 * @error Invalid client index, client not in game.
55 native CS_RespawnPlayer(client);
58 * Switches the player's team.
60 * @param client Player's index.
61 * @param team Team index.
63 * @error Invalid client index, client not in game.
65 native CS_SwitchTeam(client, team);
68 * Do not edit below this line!
70 public Extension:__ext_cstrike =
73 file = "games/game.cstrike.ext",
75 #if defined REQUIRE_EXTENSIONS
82 #if !defined REQUIRE_EXTENSIONS
83 public __ext_cstrike_SetNTVOptional()
85 MarkNativeAsOptional("CS_RespawnPlayer");
86 MarkNativeAsOptional("CS_SwitchTeam");