plugins/include/sdktools_hooks.inc
author Nicholas Hastings <skamonkey@gmail.com>
Sun Jan 10 17:29:32 2010 -0800 (2010-01-10)
changeset 2893 41e6bdba4712
parent 2711 858723415154
child 3619 0249ba510bfe
permissions -rw-r--r--
Follow-up to bug 4194 (r=dvander).
pred@2711
     1
/**
pred@2711
     2
 * vim: set ts=4 :
pred@2711
     3
 * =============================================================================
pred@2711
     4
 * SourceMod (C)2004-2009 AlliedModders LLC.  All rights reserved.
pred@2711
     5
 * =============================================================================
pred@2711
     6
 *
pred@2711
     7
 * This file is part of the SourceMod/SourcePawn SDK.
pred@2711
     8
 *
pred@2711
     9
 * This program is free software; you can redistribute it and/or modify it under
pred@2711
    10
 * the terms of the GNU General Public License, version 3.0, as published by the
pred@2711
    11
 * Free Software Foundation.
pred@2711
    12
 * 
pred@2711
    13
 * This program is distributed in the hope that it will be useful, but WITHOUT
pred@2711
    14
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
pred@2711
    15
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
pred@2711
    16
 * details.
pred@2711
    17
 *
pred@2711
    18
 * You should have received a copy of the GNU General Public License along with
pred@2711
    19
 * this program.  If not, see <http://www.gnu.org/licenses/>.
pred@2711
    20
 *
pred@2711
    21
 * As a special exception, AlliedModders LLC gives you permission to link the
pred@2711
    22
 * code of this program (as well as its derivative works) to "Half-Life 2," the
pred@2711
    23
 * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
pred@2711
    24
 * by the Valve Corporation.  You must obey the GNU General Public License in
pred@2711
    25
 * all respects for all other code used.  Additionally, AlliedModders LLC grants
pred@2711
    26
 * this exception to all derivative works.  AlliedModders LLC defines further
pred@2711
    27
 * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
pred@2711
    28
 * or <http://www.sourcemod.net/license.php>.
pred@2711
    29
 *
pred@2711
    30
 * Version: $Id$
pred@2711
    31
 */
pred@2711
    32
pred@2711
    33
#if defined _sdktools_hooks_included
pred@2711
    34
  #endinput
pred@2711
    35
#endif
pred@2711
    36
#define _sdktools_hooks_included
pred@2711
    37
pred@2711
    38
/**
pred@2711
    39
 * @brief Called when a clients movement buttons are being processed
pred@2711
    40
 *
pred@2711
    41
 * @param client	Index of the client.
pred@2711
    42
 * @param buttons	Copyback buffer containing the current commands (as bitflags - see entity_prop_stocks.inc).
pred@2711
    43
 * @param impulse	Copyback buffer containing the current impulse command.
pred@2711
    44
 * @param vel		Players desired velocity.
pred@2711
    45
 * @param angles	Players desired view angles.
pred@2711
    46
 * @param weapon	Entity index of the new weapon if player switches weapon, 0 otherwise.
pred@2711
    47
 * @return 			Plugin_Handled to block the commands from being processed, Plugin_Continue otherwise.
pred@2711
    48
 */
pred@2711
    49
forward Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon);