plugins/include/sdktools_engine.inc
author David Anderson <dvander@alliedmods.net>
Sun Mar 02 18:01:49 2008 +0000 (2008-03-02)
changeset 1912 506170374d35
parent 1330 ab94316bb52b
child 1947 e73a1e51833b
permissions -rw-r--r--
added amb1377 - binary sql functions
dvander@1106
     1
/**
dvander@1106
     2
 * vim: set ts=4 :
ds@1330
     3
 * =============================================================================
dvander@1106
     4
 * SourceMod (C)2004-2007 AlliedModders LLC.  All rights reserved.
ds@1330
     5
 * =============================================================================
ds@1330
     6
 *
ds@1330
     7
 * This file is part of the SourceMod/SourcePawn SDK.
dvander@1106
     8
 *
ds@1330
     9
 * This program is free software; you can redistribute it and/or modify it under
ds@1330
    10
 * the terms of the GNU General Public License, version 3.0, as published by the
ds@1330
    11
 * Free Software Foundation.
ds@1330
    12
 * 
ds@1330
    13
 * This program is distributed in the hope that it will be useful, but WITHOUT
ds@1330
    14
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
ds@1330
    15
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
ds@1330
    16
 * details.
ds@1330
    17
 *
ds@1330
    18
 * You should have received a copy of the GNU General Public License along with
ds@1330
    19
 * this program.  If not, see <http://www.gnu.org/licenses/>.
ds@1330
    20
 *
ds@1330
    21
 * As a special exception, AlliedModders LLC gives you permission to link the
ds@1330
    22
 * code of this program (as well as its derivative works) to "Half-Life 2," the
ds@1330
    23
 * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
ds@1330
    24
 * by the Valve Corporation.  You must obey the GNU General Public License in
ds@1330
    25
 * all respects for all other code used.  Additionally, AlliedModders LLC grants
ds@1330
    26
 * this exception to all derivative works.  AlliedModders LLC defines further
ds@1330
    27
 * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
ds@1330
    28
 * or <http://www.sourcemod.net/license.php>.
dvander@1106
    29
 *
dvander@1106
    30
 * Version: $Id$
dvander@1106
    31
 */
dvander@1106
    32
dvander@1106
    33
#if defined _sdktools_engine_included
dvander@1106
    34
  #endinput
dvander@1106
    35
#endif
dvander@1106
    36
#define _sdktools_engine_included
dvander@1106
    37
dvander@1152
    38
#define MAX_LIGHTSTYLES			64
dvander@1152
    39
dvander@1106
    40
/**
dvander@1106
    41
 * Sets a client's "viewing entity."
dvander@1106
    42
 *
dvander@1106
    43
 * @param client		Client index.
dvander@1106
    44
 * @param entity		Entity index.
dvander@1106
    45
 * @noreturn
dvander@1106
    46
 * @error				Invalid client or entity, lack of mod support, or client not in 
dvander@1106
    47
 *						game.
dvander@1106
    48
 */
dvander@1106
    49
native SetClientViewEntity(client, entity);
dvander@1152
    50
dvander@1152
    51
/**
dvander@1152
    52
 * Sets a light style.
dvander@1152
    53
 *
dvander@1152
    54
 * @param style			Light style (from 0 to MAX_LIGHTSTYLES-1)
dvander@1152
    55
 * @param value			Light value string (see world.cpp/light.cpp in dlls)
dvander@1152
    56
 * @noreturn
dvander@1152
    57
 * @error				Light style index is out of range.
dvander@1152
    58
 */
dvander@1152
    59
native SetLightStyle(style, const String:value[]);
faluco@1219
    60
faluco@1219
    61
/**
faluco@1219
    62
 * Returns the client's eye position.
faluco@1219
    63
 *
faluco@1219
    64
 * @param client		Player's index.
faluco@1219
    65
 * @param pos			Destination vector to store the client's eye position.
faluco@1219
    66
 * @noreturn
faluco@1219
    67
 * @error				Invalid client index, client not in game, or no mod support.
faluco@1219
    68
 */
faluco@1219
    69
native GetClientEyePosition(client, Float:pos[3]);