JavaScript:
UI.AddCheckbox(["Rage", "Anti Aim", "General"], "[Fake Flick] Increase Speed")
UI.AddHotkey(["Rage", "Anti Aim", "General", "Key assignment"], "Fake Flick", "Fake Flick")
UI.AddHotkey(["Rage", "Anti Aim", "General", "Key assignment"], "Invert Fake Flick", "Invert Fake Flick")
function fake_flick() {
if (!UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "Fake Flick"]) || !Entity.IsAlive(Entity.GetLocalPlayer()))
return
if (Globals.ChokedCommands() != 0)
UserCMD.Send() // Im basically forcing fl off because i tried to deal with it "properly" but at this point im too lazy to keep going to you can have this
AntiAim.SetOverride(1)
AntiAim.SetLBYOffset(-90)
const invert = UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "Invert Fake Flick"])
const speed = Globals.Tickrate() / (UI.GetValue(["Rage", "Anti Aim", "General", "[Fake Flick] Increase Speed"]) ? 8 : 4)
if (Globals.Tickcount() % (speed + 1) == speed && Globals.ChokedCommands() == 0) {
AntiAim.SetRealOffset(invert ? -180 : 180)
AntiAim.SetFakeOffset(invert ? -90 : 90)
} else {
AntiAim.SetRealOffset(invert ? 120 : -120)
AntiAim.SetFakeOffset(0)
}
}
function indicator() {
if (!UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "Fake Flick"]) || !Entity.IsAlive(Entity.GetLocalPlayer()))
return
const speed = Globals.Tickrate() / (UI.GetValue(["Rage", "Anti Aim", "General", "[Fake Flick] Increase Speed"]) ? 8 : 4) * 2
const main_color = [35, 204, 136, 255]
const x = Render.GetScreenSize()[0]
const y = Render.GetScreenSize()[1]
UI.SetHotkeyState(["Rage", "Anti Aim", "General", "Key assignment", "Invert Fake Flick"], "Toggle")
length = Render.TextSize("Flick", 3)[0]
Render.String(x / 10.6, y / 3.06, 0, "Flick", [255, 255, 255, 255], 3)
Render.FilledRect(x / 10.78, y / 2.8125, (length + 7), 10, [0, 0, 0, 150])
Render.Rect(x / 10.84, y / 2.819, (length + 9), 12, main_color)
Render.GradientRect(x / 10.6, y / 2.79, length * (Globals.Tickcount() % (speed + 1) / speed) + 2, 4, 1, main_color, [35, 204, 136, 30])
}
Cheat.RegisterCallback("CreateMove", "fake_flick")
Cheat.RegisterCallback("Draw", "indicator")