plugins/include/sdktools_engine.inc
changeset 1952 b7aa2b626807
child 2289 44045ead61cd
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/plugins/include/sdktools_engine.inc	Sun Mar 30 07:00:22 2008 +0000
     1.3 @@ -0,0 +1,69 @@
     1.4 +/**
     1.5 + * vim: set ts=4 :
     1.6 + * =============================================================================
     1.7 + * SourceMod (C)2004-2008 AlliedModders LLC.  All rights reserved.
     1.8 + * =============================================================================
     1.9 + *
    1.10 + * This file is part of the SourceMod/SourcePawn SDK.
    1.11 + *
    1.12 + * This program is free software; you can redistribute it and/or modify it under
    1.13 + * the terms of the GNU General Public License, version 3.0, as published by the
    1.14 + * Free Software Foundation.
    1.15 + * 
    1.16 + * This program is distributed in the hope that it will be useful, but WITHOUT
    1.17 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    1.18 + * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
    1.19 + * details.
    1.20 + *
    1.21 + * You should have received a copy of the GNU General Public License along with
    1.22 + * this program.  If not, see <http://www.gnu.org/licenses/>.
    1.23 + *
    1.24 + * As a special exception, AlliedModders LLC gives you permission to link the
    1.25 + * code of this program (as well as its derivative works) to "Half-Life 2," the
    1.26 + * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
    1.27 + * by the Valve Corporation.  You must obey the GNU General Public License in
    1.28 + * all respects for all other code used.  Additionally, AlliedModders LLC grants
    1.29 + * this exception to all derivative works.  AlliedModders LLC defines further
    1.30 + * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
    1.31 + * or <http://www.sourcemod.net/license.php>.
    1.32 + *
    1.33 + * Version: $Id$
    1.34 + */
    1.35 +
    1.36 +#if defined _sdktools_engine_included
    1.37 +  #endinput
    1.38 +#endif
    1.39 +#define _sdktools_engine_included
    1.40 +
    1.41 +#define MAX_LIGHTSTYLES			64
    1.42 +
    1.43 +/**
    1.44 + * Sets a client's "viewing entity."
    1.45 + *
    1.46 + * @param client		Client index.
    1.47 + * @param entity		Entity index.
    1.48 + * @noreturn
    1.49 + * @error				Invalid client or entity, lack of mod support, or client not in 
    1.50 + *						game.
    1.51 + */
    1.52 +native SetClientViewEntity(client, entity);
    1.53 +
    1.54 +/**
    1.55 + * Sets a light style.
    1.56 + *
    1.57 + * @param style			Light style (from 0 to MAX_LIGHTSTYLES-1)
    1.58 + * @param value			Light value string (see world.cpp/light.cpp in dlls)
    1.59 + * @noreturn
    1.60 + * @error				Light style index is out of range.
    1.61 + */
    1.62 +native SetLightStyle(style, const String:value[]);
    1.63 +
    1.64 +/**
    1.65 + * Returns the client's eye position.
    1.66 + *
    1.67 + * @param client		Player's index.
    1.68 + * @param pos			Destination vector to store the client's eye position.
    1.69 + * @noreturn
    1.70 + * @error				Invalid client index, client not in game, or no mod support.
    1.71 + */
    1.72 +native GetClientEyePosition(client, Float:pos[3]);