plugins/include/cstrike.inc
branchsourcemod-1.1.0
changeset 2283 03a67e41afbc
parent 1951 c7b4237fff50
child 2287 017a725c9d17
     1.1 --- a/plugins/include/cstrike.inc	Fri Mar 28 06:21:34 2008 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,90 +0,0 @@
     1.4 -/**
     1.5 - * vim: set ts=4 :
     1.6 - * =============================================================================
     1.7 - * SourceMod (C)2004-2007 AlliedModders LLC.  All rights reserved.
     1.8 - * =============================================================================
     1.9 - *
    1.10 - * This file is part of the SourceMod/SourcePawn SDK.
    1.11 - *
    1.12 - * This program is free software; you can redistribute it and/or modify it under
    1.13 - * the terms of the GNU General Public License, version 3.0, as published by the
    1.14 - * Free Software Foundation.
    1.15 - * 
    1.16 - * This program is distributed in the hope that it will be useful, but WITHOUT
    1.17 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    1.18 - * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
    1.19 - * details.
    1.20 - *
    1.21 - * You should have received a copy of the GNU General Public License along with
    1.22 - * this program.  If not, see <http://www.gnu.org/licenses/>.
    1.23 - *
    1.24 - * As a special exception, AlliedModders LLC gives you permission to link the
    1.25 - * code of this program (as well as its derivative works) to "Half-Life 2," the
    1.26 - * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
    1.27 - * by the Valve Corporation.  You must obey the GNU General Public License in
    1.28 - * all respects for all other code used.  Additionally, AlliedModders LLC grants
    1.29 - * this exception to all derivative works.  AlliedModders LLC defines further
    1.30 - * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
    1.31 - * or <http://www.sourcemod.net/license.php>.
    1.32 - *
    1.33 - * Version: $Id$
    1.34 - */
    1.35 -
    1.36 -#if defined _cstrike_included
    1.37 -  #endinput
    1.38 -#endif
    1.39 -#define _cstrike_included
    1.40 -
    1.41 -#include <core>
    1.42 -
    1.43 -#define CS_TEAM_NONE		0	/**< No team yet. */
    1.44 -#define CS_TEAM_SPECTATOR	1	/**< Spectators. */
    1.45 -#define CS_TEAM_T 			2	/**< Terrorists. */
    1.46 -#define CS_TEAM_CT			3	/**< Counter-Terrorists. */
    1.47 -
    1.48 -#define CS_SLOT_PRIMARY		0	/**< Primary weapon slot. */
    1.49 -#define CS_SLOT_SECONDARY	1	/**< Secondary weapon slot. */
    1.50 -#define CS_SLOT_GRENADE		3	/**< Grenade slot (will only return one grenade). */
    1.51 -#define CS_SLOT_C4			4	/**< C4 slot. */
    1.52 -
    1.53 -/**
    1.54 - * Respawns a player.
    1.55 - *
    1.56 - * @param client		Player's index.
    1.57 - * @noreturn
    1.58 - * @error			Invalid client index, client not in game.
    1.59 - */
    1.60 -native CS_RespawnPlayer(client);
    1.61 -
    1.62 -/**
    1.63 - * Switches the player's team.
    1.64 - *
    1.65 - * @param client		Player's index.
    1.66 - * @param team			Team index.
    1.67 - * @noreturn
    1.68 - * @error			Invalid client index, client not in game.
    1.69 - */
    1.70 -native CS_SwitchTeam(client, team);
    1.71 -
    1.72 -/**
    1.73 - * Do not edit below this line!
    1.74 - */
    1.75 -public Extension:__ext_cstrike = 
    1.76 -{
    1.77 -	name = "cstrike",
    1.78 -	file = "games/game.cstrike.ext",
    1.79 -	autoload = 0,
    1.80 -#if defined REQUIRE_EXTENSIONS
    1.81 -	required = 1,
    1.82 -#else
    1.83 -	required = 0,
    1.84 -#endif
    1.85 -};
    1.86 -
    1.87 -#if !defined REQUIRE_EXTENSIONS
    1.88 -public __ext_cstrike_SetNTVOptional()
    1.89 -{
    1.90 -	MarkNativeAsOptional("CS_RespawnPlayer");
    1.91 -	MarkNativeAsOptional("CS_SwitchTeam");
    1.92 -}
    1.93 -#endif