RSSy MYGO.pl Opublikowano Sierpień 25, 2021 o 19:05 RSSy Udostępnij Opublikowano Sierpień 25, 2021 o 19:05 Rare-Animation-Controller Description: Tweaks the usage of rare weapon animations. :bee: 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. Plugin Dependencies: StudioHdr (GameData) Compile Dependencies: SourcePawn 1.11+ compiler. StudioHdr (.inc) AnyMap (.inc) API: Spoiler PHP Code: #if defined _rare_animation_controller_included #endinput #endif #define _rare_animation_controller_included enum { RARE_SEQUENCE_DRAW, RARE_SEQUENCE_IDLE, RARE_SEQUENCE_INSPECT, RARE_SEQUENCE_MAX, RARE_SEQUENCE_NONE } /** * 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 }; GitHub Repository Latest Release Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi