plugins/include/cstrike.inc
author David Anderson <dvander@alliedmods.net>
Sun Nov 25 18:50:13 2007 +0000 (2007-11-25)
changeset 1725 ea875bcbc286
parent 1573 979f2ccfee5a
child 1822 cb4bb315da60
permissions -rw-r--r--
small clarification to param2 in MenuAction_End
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
#include <core>
faluco@1441
    39
faluco@1441
    40
#define CS_TEAM_NONE		0	/**< No team yet. */
faluco@1441
    41
#define CS_TEAM_SPECTATOR	1	/**< Spectators. */
dvander@1459
    42
#define CS_TEAM_T 			2	/**< Terrorists. */
dvander@1459
    43
#define CS_TEAM_CT			3	/**< Counter-Terrorists. */
dvander@1459
    44
dvander@1459
    45
#define CS_SLOT_PRIMARY		0	/**< Primary weapon slot. */
dvander@1459
    46
#define CS_SLOT_SECONDARY	1	/**< Secondary weapon slot. */
dvander@1459
    47
#define CS_SLOT_GRENADE		3	/**< Grenade slot (will only return one grenade). */
dvander@1459
    48
#define CS_SLOT_C4			4	/**< C4 slot. */
faluco@1441
    49
faluco@1441
    50
/**
faluco@1441
    51
 * Respawns a player.
faluco@1441
    52
 *
faluco@1441
    53
 * @param client		Player's index.
faluco@1441
    54
 * @noreturn
faluco@1441
    55
 * @error			Invalid client index, client not in game.
faluco@1441
    56
 */
faluco@1441
    57
native CS_RespawnPlayer(client);
faluco@1441
    58
faluco@1441
    59
/**
faluco@1441
    60
 * Switches the player's team.
faluco@1441
    61
 *
faluco@1441
    62
 * @param client		Player's index.
faluco@1441
    63
 * @param team			Team index.
faluco@1441
    64
 * @noreturn
faluco@1441
    65
 * @error			Invalid client index, client not in game.
faluco@1441
    66
 */
faluco@1441
    67
native CS_SwitchTeam(client, team);
faluco@1441
    68
faluco@1441
    69
/**
faluco@1441
    70
 * Do not edit below this line!
faluco@1441
    71
 */
faluco@1441
    72
public Extension:__ext_cstrike = 
faluco@1441
    73
{
dvander@1573
    74
	name = "cstrike",
dvander@1459
    75
	file = "games/game.cstrike.ext",
faluco@1441
    76
	autoload = 0,
faluco@1441
    77
#if defined REQUIRE_EXTENSIONS
faluco@1441
    78
	required = 1,
faluco@1441
    79
#else
faluco@1441
    80
	required = 0,
faluco@1441
    81
#endif
dvander@1459
    82
};
dvander@1573
    83
dvander@1573
    84
#if !defined REQUIRE_EXTENSIONS
dvander@1573
    85
public __ext_cstrike_SetNTVOptional()
dvander@1573
    86
{
dvander@1573
    87
	MarkNativeAsOptional("CS_RespawnPlayer");
dvander@1573
    88
	MarkNativeAsOptional("CS_SwitchTeam");
dvander@1573
    89
}
dvander@1573
    90
#endif