faluco@1498: /** faluco@1498: * vim: set ts=4 : faluco@1498: * ============================================================================= ds@1947: * SourceMod (C)2004-2008 AlliedModders LLC. All rights reserved. faluco@1498: * ============================================================================= faluco@1498: * faluco@1498: * This file is part of the SourceMod/SourcePawn SDK. faluco@1498: * faluco@1498: * This program is free software; you can redistribute it and/or modify it under faluco@1498: * the terms of the GNU General Public License, version 3.0, as published by the faluco@1498: * Free Software Foundation. faluco@1498: * faluco@1498: * This program is distributed in the hope that it will be useful, but WITHOUT faluco@1498: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS faluco@1498: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more faluco@1498: * details. faluco@1498: * faluco@1498: * You should have received a copy of the GNU General Public License along with faluco@1498: * this program. If not, see . faluco@1498: * faluco@1498: * As a special exception, AlliedModders LLC gives you permission to link the faluco@1498: * code of this program (as well as its derivative works) to "Half-Life 2," the faluco@1498: * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software faluco@1498: * by the Valve Corporation. You must obey the GNU General Public License in faluco@1498: * all respects for all other code used. Additionally, AlliedModders LLC grants faluco@1498: * this exception to all derivative works. AlliedModders LLC defines further faluco@1498: * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), faluco@1498: * or . faluco@1498: * faluco@1498: * Version: $Id$ faluco@1498: */ faluco@1498: faluco@1498: #if defined _sdktools_entinput_included faluco@1498: #endinput faluco@1498: #endif faluco@1498: #define _sdktools_entinput_included faluco@1498: faluco@1498: /** faluco@1498: * Invokes a named input method on an entity. faluco@1498: * faluco@1498: * After completion (successful or not), the current global variant is re-initalized. faluco@1498: * faluco@1498: * @param dest Destination entity index. faluco@1498: * @param input Input action. faluco@1498: * @param activator Entity index which initiated the sequence of actions (-1 for a NULL entity). faluco@1498: * @param caller Entity index from which this event is sent (-1 for a NULL entity). faluco@1498: * @param outputid Unknown. faluco@1498: * @return True if successful otherwise false. faluco@1498: * @error Invalid entity index or no mod support. faluco@1498: */ faluco@1498: native bool:AcceptEntityInput(dest, const String:input[], activator=-1, caller=-1, outputid=0); faluco@1498: faluco@1498: /** faluco@1498: * Sets a bool value in the global variant object. faluco@1498: * faluco@1498: * @param val Input value. faluco@1498: * @noreturn faluco@1498: */ faluco@1498: native SetVariantBool(bool:val); faluco@1498: faluco@1498: /** faluco@1498: * Sets a string in the global variant object. faluco@1498: * faluco@1498: * @param str Input string. faluco@1498: * @noreturn faluco@1498: */ faluco@1498: native SetVariantString(const String:str[]); faluco@1498: faluco@1498: /** faluco@1498: * Sets an integer value in the global variant object. faluco@1498: * faluco@1498: * @param val Input value. faluco@1498: * @noreturn faluco@1498: */ faluco@1498: native SetVariantInt(val); faluco@1498: faluco@1498: /** faluco@1498: * Sets a floating point value in the global variant object. faluco@1498: * faluco@1498: * @param val Input value. faluco@1498: * @noreturn faluco@1498: */ faluco@1498: native SetVariantFloat(Float:val); faluco@1498: faluco@1498: /** faluco@1498: * Sets a 3D vector in the global variant object. faluco@1498: * faluco@1498: * @param vec Input vector. faluco@1498: * @noreturn faluco@1498: */ faluco@1498: native SetVariantVector3D(const Float:vec[3]); faluco@1498: faluco@1498: /** faluco@1498: * Sets a 3D position vector in the global variant object. faluco@1498: * faluco@1498: * @param vec Input position vector. faluco@1498: * @noreturn faluco@1498: */ faluco@1498: native SetVariantPosVector3D(const Float:vec[3]); faluco@1498: faluco@1498: /** faluco@1498: * Sets a color in the global variant object. faluco@1498: * faluco@1498: * @param color Input color. faluco@1498: * @noreturn faluco@1498: */ faluco@1498: native SetVariantColor(const color[4]); faluco@1498: faluco@1498: /** faluco@1498: * Sets an entity in the global variant object. faluco@1498: * faluco@1498: * @param Entity index. faluco@1498: * @noreturn faluco@1498: * @error Invalid entity index. faluco@1498: */ faluco@1498: native SetVariantEntity(entity);