3 * =============================================================================
4 * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved.
5 * =============================================================================
7 * This file is part of the SourceMod/SourcePawn SDK.
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.
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
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/>.
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>.
33 #if defined _sdktools_entinput_included
36 #define _sdktools_entinput_included
39 * Invokes a named input method on an entity.
41 * After completion (successful or not), the current global variant is re-initalized.
43 * @param dest Destination entity index.
44 * @param input Input action.
45 * @param activator Entity index which initiated the sequence of actions (-1 for a NULL entity).
46 * @param caller Entity index from which this event is sent (-1 for a NULL entity).
47 * @param outputid Unknown.
48 * @return True if successful otherwise false.
49 * @error Invalid entity index or no mod support.
51 native bool:AcceptEntityInput(dest, const String:input[], activator=-1, caller=-1, outputid=0);
54 * Sets a bool value in the global variant object.
56 * @param val Input value.
59 native SetVariantBool(bool:val);
62 * Sets a string in the global variant object.
64 * @param str Input string.
67 native SetVariantString(const String:str[]);
70 * Sets an integer value in the global variant object.
72 * @param val Input value.
75 native SetVariantInt(val);
78 * Sets a floating point value in the global variant object.
80 * @param val Input value.
83 native SetVariantFloat(Float:val);
86 * Sets a 3D vector in the global variant object.
88 * @param vec Input vector.
91 native SetVariantVector3D(const Float:vec[3]);
94 * Sets a 3D position vector in the global variant object.
96 * @param vec Input position vector.
99 native SetVariantPosVector3D(const Float:vec[3]);
102 * Sets a color in the global variant object.
104 * @param color Input color.
107 native SetVariantColor(const color[4]);
110 * Sets an entity in the global variant object.
112 * @param Entity index.
114 * @error Invalid entity index.
116 native SetVariantEntity(entity);