I am using the latest version of rof but I cant understand why the mk1 botkiller scattergun doing always reloading on every shot like in 3 1.5 or 10 value ???
is there a way to speed up sentries? I have tried m_flNextAttack but it does not seem to make them shoot faster do they need to be calculated diffrently?
Last edited by jfmherokiller; 02-11-2014 at 03:48.
new OffAW = -1;
new Float:LastCharge[MAXPLAYERS+1];
new Float:Multi[MAXPLAYERS+1];
new bool:SpeedEnabled[MAXPLAYERS+1];
new bool:InAttack[MAXPLAYERS+1];
new Handle:g_hcvarSniperScope = INVALID_HANDLE;
new Handle:g_hcvarMaxFireSpeep = INVALID_HANDLE;
new Handle:g_hcvarHuntsman = INVALID_HANDLE;
public Plugin:myinfo =
{
name = "[TF2] Rate of Fire - Arkarr's edition",
author = "EHG",
description = "Modify weapon rate of fire",
version = PLUGIN_VERSION,
url = ""
}
public OnPluginStart()
{
LoadTranslations("common.phrases");
OffAW = FindSendPropInfo("CBasePlayer", "m_hActiveWeapon");
CreateConVar("sm_tf2_rof_version", PLUGIN_VERSION, "TF2 Rate of Fire version", FCVAR_PLUGIN|FCVAR_DONTRECORD|FCVAR_REPLICATED|FCVAR_NOTIFY);
g_hcvarSniperScope = CreateConVar("sm_tf2_rof_scope", "0", "Set if rof should effect sniper scope", 0, true, 0.0, true, 1.0);
g_hcvarHuntsman = CreateConVar("sm_tf2_rof_huntsman", "1", "Set if rof should effect huntsman", 0, true, 0.0, true, 1.0);
g_hcvarMaxFireSpeep = CreateConVar("sm_tf2_rof_max_fire_speed_limit", "3.0", "Set the maxium fire speed limit", 0, true, 0.0, true, 1.0);
/*if(GetConVarFloat(g_hcvarMaxFireSpeep) > 10.0)
{
SetConVarFloat(g_hcvarMaxFireSpeep, 10.0);
PrintToServer("TF2 - ROF : CVAR sm_tf2_rof_max_fire_speed_limit SHOULDN'T BE OVER 10 ! -> new value : 10.0");
}*/
RegAdminCmd("sm_rof", Command_Rof, 0, "Set Rate of Fire");
for (new i = 0; i <= MaxClients; i++) OnClientPostAdminCheck(i);
}
GetCmdArg(1, arg, sizeof(arg));
amount = StringToFloat(arg);
}
else
{
ReplyToCommand(client, "[SM] You do not have access to this command.");
return Plugin_Handled;
}
new OffAW = -1;
new Float:LastCharge[MAXPLAYERS+1];
new Float:Multi[MAXPLAYERS+1];
new bool:SpeedEnabled[MAXPLAYERS+1];
new bool:InAttack[MAXPLAYERS+1];
new Handle:g_hcvarSniperScope = INVALID_HANDLE;
new Handle:g_hcvarMaxFireSpeep = INVALID_HANDLE;
new Handle:g_hcvarHuntsman = INVALID_HANDLE;
public Plugin:myinfo =
{
name = "[TF2] Rate of Fire - Arkarr's edition",
author = "EHG",
description = "Modify weapon rate of fire",
version = PLUGIN_VERSION,
url = ""
}
public OnPluginStart()
{
LoadTranslations("common.phrases");
OffAW = FindSendPropInfo("CBasePlayer", "m_hActiveWeapon");
CreateConVar("sm_tf2_rof_version", PLUGIN_VERSION, "TF2 Rate of Fire version", FCVAR_PLUGIN|FCVAR_DONTRECORD|FCVAR_REPLICATED|FCVAR_NOTIFY);
g_hcvarSniperScope = CreateConVar("sm_tf2_rof_scope", "0", "Set if rof should effect sniper scope", 0, true, 0.0, true, 1.0);
g_hcvarHuntsman = CreateConVar("sm_tf2_rof_huntsman", "1", "Set if rof should effect huntsman", 0, true, 0.0, true, 1.0);
g_hcvarMaxFireSpeep = CreateConVar("sm_tf2_rof_max_fire_speed_limit", "3.0", "Set the maxium fire speed limit", 0, true, 0.0, true, 1.0);
/*if(GetConVarFloat(g_hcvarMaxFireSpeep) > 10.0)
{
SetConVarFloat(g_hcvarMaxFireSpeep, 10.0);
PrintToServer("TF2 - ROF : CVAR sm_tf2_rof_max_fire_speed_limit SHOULDN'T BE OVER 10 ! -> new value : 10.0");
}*/
RegAdminCmd("sm_rof", Command_Rof, 0, "Set Rate of Fire");
for (new i = 0; i <= MaxClients; i++) OnClientPostAdminCheck(i);
}
GetCmdArg(1, arg, sizeof(arg));
amount = StringToFloat(arg);
}
else
{
ReplyToCommand(client, "[SM] You do not have access to this command.");
return Plugin_Handled;
}