plugins/include/sdktools_engine.inc
author Phong Dang <teame06@gmail.com>
Wed Aug 01 04:17:36 2007 +0000 (2007-08-01)
changeset 1235 88bb46f9731e
parent 1219 6f440a361fa7
child 1330 ab94316bb52b
permissions -rw-r--r--
Implemented requested amb603. Added voice natives.
     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.  This file may only be used 
     8  * or modified under the Terms and Conditions of its License Agreement, which is found 
     9  * in LICENSE.txt.  The Terms and Conditions for making SourceMod extensions/plugins 
    10  * may change at any time.  To view the latest information, see:
    11  *   http://www.sourcemod.net/license.php
    12  *
    13  * Version: $Id$
    14  */
    15 
    16 #if defined _sdktools_engine_included
    17   #endinput
    18 #endif
    19 #define _sdktools_engine_included
    20 
    21 #define MAX_LIGHTSTYLES			64
    22 
    23 /**
    24  * Sets a client's "viewing entity."
    25  *
    26  * @param client		Client index.
    27  * @param entity		Entity index.
    28  * @noreturn
    29  * @error				Invalid client or entity, lack of mod support, or client not in 
    30  *						game.
    31  */
    32 native SetClientViewEntity(client, entity);
    33 
    34 /**
    35  * Sets a light style.
    36  *
    37  * @param style			Light style (from 0 to MAX_LIGHTSTYLES-1)
    38  * @param value			Light value string (see world.cpp/light.cpp in dlls)
    39  * @noreturn
    40  * @error				Light style index is out of range.
    41  */
    42 native SetLightStyle(style, const String:value[]);
    43 
    44 /**
    45  * Returns the client's eye position.
    46  *
    47  * @param client		Player's index.
    48  * @param pos			Destination vector to store the client's eye position.
    49  * @noreturn
    50  * @error				Invalid client index, client not in game, or no mod support.
    51  */
    52 native GetClientEyePosition(client, Float:pos[3]);