plugins/include/sdktools_engine.inc
author David Anderson <dvander@alliedmods.net>
Tue Jan 08 03:06:33 2008 +0000 (2008-01-08)
changeset 1839 1f3aaf8fbd12
parent 1330 ab94316bb52b
child 1947 e73a1e51833b
permissions -rw-r--r--
- added amb1332, new cvar protection mechanism for rcon_password
- removed FCVAR_PROTECTED from Core cvars
     1 /**
     2  * vim: set ts=4 :
     3  * =============================================================================
     4  * SourceMod (C)2004-2007 AlliedModders LLC.  All rights reserved.
     5  * =============================================================================
     6  *
     7  * This file is part of the SourceMod/SourcePawn SDK.
     8  *
     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.
    12  * 
    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
    16  * details.
    17  *
    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/>.
    20  *
    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>.
    29  *
    30  * Version: $Id$
    31  */
    32 
    33 #if defined _sdktools_engine_included
    34   #endinput
    35 #endif
    36 #define _sdktools_engine_included
    37 
    38 #define MAX_LIGHTSTYLES			64
    39 
    40 /**
    41  * Sets a client's "viewing entity."
    42  *
    43  * @param client		Client index.
    44  * @param entity		Entity index.
    45  * @noreturn
    46  * @error				Invalid client or entity, lack of mod support, or client not in 
    47  *						game.
    48  */
    49 native SetClientViewEntity(client, entity);
    50 
    51 /**
    52  * Sets a light style.
    53  *
    54  * @param style			Light style (from 0 to MAX_LIGHTSTYLES-1)
    55  * @param value			Light value string (see world.cpp/light.cpp in dlls)
    56  * @noreturn
    57  * @error				Light style index is out of range.
    58  */
    59 native SetLightStyle(style, const String:value[]);
    60 
    61 /**
    62  * Returns the client's eye position.
    63  *
    64  * @param client		Player's index.
    65  * @param pos			Destination vector to store the client's eye position.
    66  * @noreturn
    67  * @error				Invalid client index, client not in game, or no mod support.
    68  */
    69 native GetClientEyePosition(client, Float:pos[3]);