Code:
public OnPluginStart()
{
HookEvent("weapon_reload", weapon_reload);
}
public weapon_reload(Handle:event, const String:name[], bool:silent)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
new weapon = GetEntPropEnt(client, Prop_Data, "m_hActiveWeapon");
new Float:curtime = GetGameTime();
new Float:nexttime = GetEntPropFloat(weapon, Prop_Send, "m_flNextPrimaryAttack");
nexttime -= curtime;
nexttime *= 1.0/4.0;
nexttime += curtime;
SetEntPropFloat(weapon, Prop_Send, "m_flNextPrimaryAttack", nexttime);
SetEntPropFloat(client, Prop_Send, "m_flNextAttack", nexttime);
}
this code make reload speed x4 faster, but how make reload animation x4 faster or stop when reload ends