UI.AddHotkey('v4cum button');
var gerf0 = UI.GetValue('Rage', 'GENERAL', 'Accuracy', 'Auto stop mode')
var gerf1 = UI.GetValue('Rage', 'PISTOL', 'Accuracy', 'Auto stop mode')
var gerf2 = UI.GetValue('Rage', 'HEAVY PISTOL', 'Accuracy', 'Auto stop mode')
var gerf3 = UI.GetValue('Rage', 'SCOUT', 'Accuracy', 'Auto stop mode')
var gerf4 = UI.GetValue('Rage', 'AWP', 'Accuracy', 'Auto stop mode')
Cheat.PrintChat(" \x03DT_FIX\x06.js \x01by \x07v4cum");
var gerf5 = UI.GetValue('Rage', 'AUTOSNIPER', 'Accuracy', 'Auto stop mode')
var gerf6 = UI.GetValue('Rage', 'SCOUT', 'Accuracy', 'Prefer body aim')
var gerf7 = UI.GetValue('Rage', 'AWP', 'Accuracy', 'Prefer body aim')
function DT_FIX()
{
if (UI.IsHotkeyActive('Script items', 'v4cum button'))
{
UI.SetValue('Rage', 'GENERAL', 'Accuracy', 'Auto stop mode', 4);
UI.SetValue('Rage', 'PISTOL', 'Accuracy', 'Auto stop mode', 4);
UI.SetValue('Rage', 'HEAVY PISTOL', 'Accuracy', 'Auto stop mode', 4);
UI.SetValue('Rage', 'SCOUT', 'Accuracy', 'Auto stop mode', 4);
UI.SetValue('Rage', 'SCOUT', 'Accuracy', 'Prefer body aim', true);
UI.SetValue('Rage', 'AWP', 'Accuracy', 'Auto stop mode', 4);
UI.SetValue('Rage', 'AWP', 'Accuracy', 'Prefer body aim', true);
UI.SetValue('Rage', 'AUTOSNIPER', 'Accuracy', 'Auto stop mode', 4);
}
else
{
UI.SetValue('Rage', 'GENERAL', 'Accuracy', 'Auto stop mode', gerf0);
UI.SetValue('Rage', 'PISTOL', 'Accuracy', 'Auto stop mode', gerf1);
UI.SetValue('Rage', 'HEAVY PISTOL', 'Accuracy', 'Auto stop mode', gerf2);
UI.SetValue('Rage', 'SCOUT', 'Accuracy', 'Auto stop mode', gerf3);
UI.SetValue('Rage', 'AWP', 'Accuracy', 'Auto stop mode', gerf4);
UI.SetValue('Rage', 'AUTOSNIPER', 'Accuracy', 'Auto stop mode', gerf5);
UI.SetValue('Rage', 'SCOUT', 'Accuracy', 'Prefer body aim', gerf6);
UI.SetValue('Rage', 'AWP', 'Accuracy', 'Prefer body aim', gerf7);
}
}
function _TBC_UNLOAD() {
UI.SetValue('Rage', 'GENERAL', 'Accuracy', 'Auto stop mode', gerf0);
UI.SetValue('Rage', 'PISTOL', 'Accuracy', 'Auto stop mode', gerf1);
UI.SetValue('Rage', 'HEAVY PISTOL', 'Accuracy', 'Auto stop mode', gerf2);
UI.SetValue('Rage', 'SCOUT', 'Accuracy', 'Auto stop mode', gerf3);
UI.SetValue('Rage', 'AWP', 'Accuracy', 'Auto stop mode', gerf4);
UI.SetValue('Rage', 'AUTOSNIPER', 'Accuracy', 'Auto stop mode', gerf5);
UI.SetValue('Rage', 'SCOUT', 'Accuracy', 'Prefer body aim', gerf6);
UI.SetValue('Rage', 'AWP', 'Accuracy', 'Prefer body aim', gerf7);
}
function Main()
{
Cheat.RegisterCallback("CreateMove", "DT_FIX");
Cheat.RegisterCallback("Unload", "_TBC_UNLOAD");
}
Main();