function is_trying_to_dt() {
return UI.GetValue(["Rage", "SUBTAB_MGR", "Exploits", "SHEET_MGR", "Keys", "Key assignment", "Double tap"]) && UI.GetValue(["Rage", "SUBTAB_MGR", "Exploits", "SHEET_MGR", "General", "Double tap"]) && !UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "Fake duck"])
}
UI.AddSliderInt(["Rage", "SUBTAB_MGR", "Exploits", "SHEET_MGR", "General"], "Shift amount", 0, 62)
UI.AddSliderInt(["Rage", "SUBTAB_MGR", "Exploits", "SHEET_MGR", "General"], "Tolerance", 0, 8)
UI.AddSliderInt(["Rage", "SUBTAB_MGR", "Exploits", "SHEET_MGR", "General"], "Max process ticks", 0, 62)
UI.AddCheckbox(["Rage", "SUBTAB_MGR", "Exploits", "SHEET_MGR", "General"], "Automatic Shift")
UI.AddCheckbox(["Rage", "SUBTAB_MGR", "Exploits", "SHEET_MGR", "General"], "Automatic Tolerance")
UI.AddCheckbox(["Rage", "SUBTAB_MGR", "Exploits", "SHEET_MGR", "General"], "Automatic max process ticks")
function cm() {
if (!is_trying_to_dt()) {
Exploit.OverrideMaxProcessTicks(14)
Exploit.OverrideShift(0)
Exploit.OverrideTolerance(0)
return
}
var local = Entity.GetLocalPlayer()
var info = Entity.GetCCSWeaponInfo(local)
if (info == undefined)
return
var time = info.cycle_time
var ticks = Math.round(time / Globals.TickInterval())
var automatic_shift = UI.GetValue(["Rage", "SUBTAB_MGR", "Exploits", "SHEET_MGR", "General", "Automatic Shift"])
var automatic_tolerance = UI.GetValue(["Rage", "SUBTAB_MGR", "Exploits", "SHEET_MGR", "General", "Automatic Tolerance"])
var automatic_mpt = UI.GetValue(["Rage", "SUBTAB_MGR", "Exploits", "SHEET_MGR", "General", "Automatic max process ticks"])
var maxprocessticks = UI.GetValue(["Rage", "SUBTAB_MGR", "Exploits", "SHEET_MGR", "General", "Max process ticks"])
var shift = UI.GetValue(["Rage", "SUBTAB_MGR", "Exploits", "SHEET_MGR", "General", "Shift amount"])
var tolerance = UI.GetValue(["Rage", "SUBTAB_MGR", "Exploits", "SHEET_MGR", "General", "Tolerance"])
if (automatic_shift) {
shift = ticks
}
if (automatic_tolerance) {
tolerance = Math.round(Local.Latency() / Globals.TickInterval()) - 2
}
if (automatic_mpt) {
maxprocessticks = 16 // or maxprocessticks = ticks
}
shift = Math.max(Math.min(shift, maxprocessticks), 0)
Exploit.OverrideMaxProcessTicks(maxprocessticks)
Exploit.OverrideShift(shift)
Exploit.OverrideTolerance(tolerance)
}
Cheat.RegisterCallback("CreateMove", "cm")