View Single Post
Cruze
Veteran Member
Join Date: May 2017
Old 08-27-2021 , 05:43   Re: [CS:GO] Rare-Animation-Controller (v1.0.0 | 25 August 2021)
Reply With Quote #3

This fixes animation issues for weapons and grenades. Basically only shows rare animation on deagle and knives.
PHP Code:
#include <sourcemod>
#include <sdktools>
#include <RareAnimationController>

public Action OnRareAnimation(int clientint weaponint sequence_typeint sequence_indexfloat duration)
{
    
char sWeapon[64];
    
GetEntityClassname(weaponsWeapon64);
    
    if(
StrContains(sWeapon"knife") != -|| StrContains(sWeapon"deagle") != -1)
    {
        return 
Plugin_Continue;
    }
    return 
Plugin_Handled;

__________________
Taking paid private requests! Contact me
Cruze is offline