I have found the real ROF offset.
THIS Offsets are for CS.
Offset for primary attack are for windows 46/linux +4 (untested),for secondary attack windows 47/linux +4 (untested).
BUT there are somthing really recommend, to set the rof it must be in "FM_PlayerPreThink" or in event CurWeapon,
and it must check,that the offset is higher than 0.0, is it under 0.0,player is reloading/weapon idle.
I post here an example plugin to change ROF,but some weapons look bad/funny with fast fire,like knife have no attack animation if ROF to fast.
Code:
#define ROF 0.001
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_forward(FM_PlayerPreThink, "PlayerPreThink")
}
public PlayerPreThink( id )
{
new clip,ammo
new weaponID = get_user_weapon(id,clip,ammo)
if(weaponID)
{
new weapon[32]
get_weaponname(weaponID,weapon,31)
new ent = find_ent(-1,weapon)
if(ent)
{
new Float:nextattack = get_pdata_float(ent,46,4)
if (nextattack > 0.0)
set_pdata_float(ent,46,ROF,4)
}
}
return FMRES_HANDLED;
}
Have fun with empty 100 bullets in 1 sec
I attach the plugin which i have used to find the rof.