Description:
Tweaks the usage of rare weapon animations.
Demonstration video
Credits: KoNLiG: For helping me create the plugin.
List of features:
Quote:
• Animations are checked automatically. (no need for updates when new weapons come out)
• Can be easily integrated into Shop / VIP plugins, animations can be blocked via forward.
• Rare inspect animation: double click the inspect key (def: 'F') to trigger.
• Rare draw animation: always triggered.
• Rare idle animation (knives only): click on the reload key (def: 'R') to trigger.
/**
* Called before a rare animation sequence is applied.
*
* @param client Client index.
* @param weapon Weapon entity index.
* @param sequence_type Sequence type, see the enum above.
* @param sequence_index New applied sequence index.
* @param duration Duration of the new sequence.
*
* @return Plugin_Handled or higher to block the sequence change.
*/
forward Action OnRareAnimation(int client, int weapon, int sequence_type, int sequence_index, float duration);
public SharedPlugin __pl_rare_animation_controller =
{
name = "RareAnimationController",
file = "RareAnimationController.smx",
#if defined REQUIRE_PLUGIN
required = 1,
#else
required = 0,
#endif
};