Quote:
Originally Posted by Syturi0
Can you do it AmxModX 1.8.2 (& lower) compatible?
|
Theoretically - possible, in reality - it's kinda bullshit, because 1.8.2 ham animation forward does not works correctly.
To make it work under 1.8.2 there is need to code a lot of animation forwards hook, make tons of defines and catch default animations to play them on Deploy, Silence, Unsilence, Reload, Shotgun Reload, Idle and many more.
In 1.8.3 it's simply done with 1 line only, without coding 1000+ lines of bullshit:
Code:
//This the weapon from 1st view animation forward, it doesn't works under amxmodx 1.8.2, only 1.8.3
RegisterHam(Ham_CS_Weapon_SendWeaponAnim, WeaponNames[i], "HamF_CS_Weapon_SendWeaponAnim_Post", TRUE);
public HamF_CS_Weapon_SendWeaponAnim_Post(iEnt, iAnim, Skiplocal)
{
static iPlayer;
iPlayer = get_pdata_cbase(iEnt, m_pPlayer, XO_WEAPON);
SendWeaponAnim(iPlayer, iAnim, iBodyIndex[iPlayer]); //Our v_ animations overhaul (reload, sil, unsil and other)
}