SourceMod SDK
1.7
|
Defines basic helper functions for Half-Life 2 clients. More...
Go to the source code of this file.
Classes | |
class | SourceMod::IGamePlayer |
Abstracts some Half-Life 2 and SourceMod properties about clients. More... | |
class | SourceMod::IClientListener |
Provides callbacks for important client events. More... | |
struct | SourceMod::cmd_target_info_t |
Holds the many command target info parameters. More... | |
class | SourceMod::ICommandTargetProcessor |
Intercepts a command target operation. More... | |
class | SourceMod::IPlayerManager |
Macros | |
#define | SMINTERFACE_PLAYERMANAGER_NAME "IPlayerManager" |
#define | SMINTERFACE_PLAYERMANAGER_VERSION 21 |
#define | SM_REPLY_CONSOLE 0 |
#define | SM_REPLY_CHAT 1 |
#define | SM_MAXPLAYERS 65 |
#define | COMMAND_FILTER_ALIVE (1<<0) |
#define | COMMAND_FILTER_DEAD (1<<1) |
#define | COMMAND_FILTER_CONNECTED (1<<2) |
#define | COMMAND_FILTER_NO_IMMUNITY (1<<3) |
#define | COMMAND_FILTER_NO_MULTI (1<<4) |
#define | COMMAND_FILTER_NO_BOTS (1<<5) |
#define | COMMAND_TARGET_VALID 1 |
#define | COMMAND_TARGET_NONE 0 |
#define | COMMAND_TARGET_NOT_ALIVE -1 |
#define | COMMAND_TARGET_NOT_DEAD -2 |
#define | COMMAND_TARGET_NOT_IN_GAME -3 |
#define | COMMAND_TARGET_IMMUNE -4 |
#define | COMMAND_TARGET_EMPTY_FILTER -5 |
#define | COMMAND_TARGET_NOT_HUMAN -6 |
#define | COMMAND_TARGET_AMBIGUOUS -7 |
#define | COMMAND_TARGETNAME_RAW 0 |
#define | COMMAND_TARGETNAME_ML 1 |
Defines basic helper functions for Half-Life 2 clients.
SourceMod
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 3.0, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
As a special exception, AlliedModders LLC gives you permission to link the code of this program (as well as its derivative works) to "Half-Life 2," the "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software by the Valve Corporation. You must obey the GNU General Public License in all respects for all other code used. Additionally, AlliedModders LLC grants this exception to all derivative works. AlliedModders LLC defines further exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), or http://www.sourcemod.net/license.php.
Version: $Id$
#define COMMAND_FILTER_ALIVE (1<<0) |
Only allow alive players
#define COMMAND_FILTER_CONNECTED (1<<2) |
Allow players not fully in-game
#define COMMAND_FILTER_DEAD (1<<1) |
Only filter dead players
#define COMMAND_FILTER_NO_BOTS (1<<5) |
Do not allow bots to be targetted
#define COMMAND_FILTER_NO_IMMUNITY (1<<3) |
Ignore immunity rules
#define COMMAND_FILTER_NO_MULTI (1<<4) |
Do not allow multiple target patterns
#define COMMAND_TARGET_AMBIGUOUS -7 |
Partial name had too many targets
#define COMMAND_TARGET_EMPTY_FILTER -5 |
A multi-filter (such as ) had no targets
#define COMMAND_TARGET_IMMUNE -4 |
Single client is immune
#define COMMAND_TARGET_NONE 0 |
No target was found
#define COMMAND_TARGET_NOT_ALIVE -1 |
Single client is not alive
#define COMMAND_TARGET_NOT_DEAD -2 |
Single client is not dead
#define COMMAND_TARGET_NOT_HUMAN -6 |
Target was not human
#define COMMAND_TARGET_NOT_IN_GAME -3 |
Single client is not in game
#define COMMAND_TARGET_VALID 1 |
Client passed the filter
#define COMMAND_TARGETNAME_ML 1 |
Target name is a multi-lingual phrase
#define COMMAND_TARGETNAME_RAW 0 |
Target name is a raw string
#define SM_MAXPLAYERS 65 |
Maxplayer Count
#define SM_REPLY_CHAT 1 |
Reply to chat.
#define SM_REPLY_CONSOLE 0 |
Reply to console.