plugins/include/tf2.inc
changeset 1979 d36fac1a8203
parent 1965 63d5a5f6935f
child 1981 0a12326343ad
     1.1 --- a/plugins/include/tf2.inc	Thu Apr 10 00:10:45 2008 +0000
     1.2 +++ b/plugins/include/tf2.inc	Thu Apr 10 04:49:17 2008 +0000
     1.3 @@ -114,6 +114,23 @@
     1.4  native TFClassType:TF2_GetClass(const String:classname[]);
     1.5  
     1.6  /**
     1.7 + * Called on weapon fire to decide if the current shot should be critical.
     1.8 + * Return Plugin_Continue to let the original calculation or return a higher
     1.9 + * action to override the decision with the value of 'result'
    1.10 + *
    1.11 + * @note Since critical shots are also calculated client side any changes made with
    1.12 + *		 this will not show for the shooter. Projectile weapons such as the rocketlauncher
    1.13 + *		 and demoman weapons will show a critical bullet but no critical sound effect.
    1.14 + *		 Bullet hits should appear as expected.
    1.15 + *
    1.16 + * @param client		Client Index.
    1.17 + * @param weapon		Weapon entity Index.
    1.18 + * @param weaponname	Classname of the weapon.
    1.19 + * @param result		Buffer param for the result of the decision.
    1.20 + */
    1.21 +forward Action:TF2_CalcIsAttackCritical(client, weapon, String:weaponname[], &bool:result)
    1.22 +
    1.23 +/**
    1.24   * Do not edit below this line!
    1.25   */
    1.26  public Extension:__ext_tf2 =