pred@2711: /** pred@2711: * vim: set ts=4 : pred@2711: * ============================================================================= pred@2711: * SourceMod (C)2004-2009 AlliedModders LLC. All rights reserved. pred@2711: * ============================================================================= pred@2711: * pred@2711: * This file is part of the SourceMod/SourcePawn SDK. pred@2711: * pred@2711: * This program is free software; you can redistribute it and/or modify it under pred@2711: * the terms of the GNU General Public License, version 3.0, as published by the pred@2711: * Free Software Foundation. pred@2711: * pred@2711: * This program is distributed in the hope that it will be useful, but WITHOUT pred@2711: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS pred@2711: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more pred@2711: * details. pred@2711: * pred@2711: * You should have received a copy of the GNU General Public License along with pred@2711: * this program. If not, see . pred@2711: * pred@2711: * As a special exception, AlliedModders LLC gives you permission to link the pred@2711: * code of this program (as well as its derivative works) to "Half-Life 2," the pred@2711: * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software pred@2711: * by the Valve Corporation. You must obey the GNU General Public License in pred@2711: * all respects for all other code used. Additionally, AlliedModders LLC grants pred@2711: * this exception to all derivative works. AlliedModders LLC defines further pred@2711: * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007), pred@2711: * or . pred@2711: * pred@2711: * Version: $Id$ pred@2711: */ pred@2711: pred@2711: #if defined _sdktools_hooks_included pred@2711: #endinput pred@2711: #endif pred@2711: #define _sdktools_hooks_included pred@2711: pred@2711: /** pred@2711: * @brief Called when a clients movement buttons are being processed pred@2711: * pred@2711: * @param client Index of the client. pred@2711: * @param buttons Copyback buffer containing the current commands (as bitflags - see entity_prop_stocks.inc). pred@2711: * @param impulse Copyback buffer containing the current impulse command. pred@2711: * @param vel Players desired velocity. pred@2711: * @param angles Players desired view angles. pred@2711: * @param weapon Entity index of the new weapon if player switches weapon, 0 otherwise. pred@2711: * @return Plugin_Handled to block the commands from being processed, Plugin_Continue otherwise. pred@2711: */ pred@2711: forward Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon);