public/IPlayerHelpers.h File Reference

Defines basic helper functions for Half-Life 2 clients. More...

#include <IShareSys.h>
#include <IAdminSystem.h>

Include dependency graph for IPlayerHelpers.h:

Go to the source code of this file.

Namespaces

namespace  SourceMod

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

Defines

#define SMINTERFACE_PLAYERMANAGER_NAME   "IPlayerManager"
#define SMINTERFACE_PLAYERMANAGER_VERSION   8
#define SM_REPLY_CONSOLE   0
#define SM_REPLY_CHAT   1
#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


Detailed Description

Defines basic helper functions for Half-Life 2 clients.

Definition in file IPlayerHelpers.h.


Define Documentation

#define SM_REPLY_CONSOLE   0

Reply to console.

Definition at line 49 of file IPlayerHelpers.h.

#define SM_REPLY_CHAT   1

Reply to chat.

Definition at line 50 of file IPlayerHelpers.h.

#define COMMAND_FILTER_ALIVE   (1<<0)

Only allow alive players

Definition at line 315 of file IPlayerHelpers.h.

#define COMMAND_FILTER_DEAD   (1<<1)

Only filter dead players

Definition at line 316 of file IPlayerHelpers.h.

#define COMMAND_FILTER_CONNECTED   (1<<2)

Allow players not fully in-game

Definition at line 317 of file IPlayerHelpers.h.

#define COMMAND_FILTER_NO_IMMUNITY   (1<<3)

Ignore immunity rules

Definition at line 318 of file IPlayerHelpers.h.

#define COMMAND_FILTER_NO_MULTI   (1<<4)

Do not allow multiple target patterns

Definition at line 319 of file IPlayerHelpers.h.

#define COMMAND_FILTER_NO_BOTS   (1<<5)

Do not allow bots to be targetted

Definition at line 320 of file IPlayerHelpers.h.

#define COMMAND_TARGET_VALID   1

Client passed the filter

Definition at line 322 of file IPlayerHelpers.h.

#define COMMAND_TARGET_NONE   0

No target was found

Definition at line 323 of file IPlayerHelpers.h.

#define COMMAND_TARGET_NOT_ALIVE   -1

Single client is not alive

Definition at line 324 of file IPlayerHelpers.h.

#define COMMAND_TARGET_NOT_DEAD   -2

Single client is not dead

Definition at line 325 of file IPlayerHelpers.h.

#define COMMAND_TARGET_NOT_IN_GAME   -3

Single client is not in game

Definition at line 326 of file IPlayerHelpers.h.

#define COMMAND_TARGET_IMMUNE   -4

Single client is immune

Definition at line 327 of file IPlayerHelpers.h.

#define COMMAND_TARGET_EMPTY_FILTER   -5

A multi-filter (such as ) had no targets

Definition at line 328 of file IPlayerHelpers.h.

#define COMMAND_TARGET_NOT_HUMAN   -6

Target was not human

Definition at line 329 of file IPlayerHelpers.h.

#define COMMAND_TARGET_AMBIGUOUS   -7

Partial name had too many targets

Definition at line 330 of file IPlayerHelpers.h.

#define COMMAND_TARGETNAME_RAW   0

Target name is a raw string

Definition at line 332 of file IPlayerHelpers.h.

#define COMMAND_TARGETNAME_ML   1

Target name is a multi-lingual phrase

Definition at line 333 of file IPlayerHelpers.h.


Generated on Sun Dec 28 23:26:27 2008 for SourceMod SDK by  doxygen 1.5.1