plugins/include/sdktools_hooks.inc
changeset 3619 0249ba510bfe
parent 2711 858723415154
     1.1 --- a/plugins/include/sdktools_hooks.inc	Tue Aug 21 00:17:48 2012 -0400
     1.2 +++ b/plugins/include/sdktools_hooks.inc	Tue Aug 21 00:42:46 2012 -0400
     1.3 @@ -35,6 +35,8 @@
     1.4  #endif
     1.5  #define _sdktools_hooks_included
     1.6  
     1.7 +#define FEATURECAP_PLAYERRUNCMD_11PARAMS	"SDKTools PlayerRunCmd 11Params"
     1.8 +
     1.9  /**
    1.10   * @brief Called when a clients movement buttons are being processed
    1.11   *
    1.12 @@ -44,6 +46,14 @@
    1.13   * @param vel		Players desired velocity.
    1.14   * @param angles	Players desired view angles.
    1.15   * @param weapon	Entity index of the new weapon if player switches weapon, 0 otherwise.
    1.16 + * @param subtype	Weapon subtype when selected from a menu.
    1.17 + * @param cmdnum	Command number. Increments from the first command sent.
    1.18 + * @param tickcount	Tick count. A client's prediction based on the server's GetGameTickCount value.
    1.19 + * @param seed		Random seed. Used to determine weapon recoil, spread, and other predicted elements.
    1.20 + * @param mouse		Mouse direction (x, y).
    1.21   * @return 			Plugin_Handled to block the commands from being processed, Plugin_Continue otherwise.
    1.22 + *
    1.23 + * @note			To see if all 11 params are avaliable, use FeatureType_Capability and
    1.24 + *					FEATURECAP_PLAYERRUNCMD_11PARAMS.
    1.25   */
    1.26 -forward Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon);
    1.27 \ No newline at end of file
    1.28 +forward Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon, &subtype, &cmdnum, &tickcount, &seed, mouse[2]);
    1.29 \ No newline at end of file