UI.AddHotkey("ForceHead")
var gen = UI.GetValue( "Rage", "GENERAL", "Targeting", "Hitboxes" )
var pist = UI.GetValue( "Rage", "PISTOL", "Targeting", "Hitboxes" )
var hpist = UI.GetValue( "Rage", "HEAVY PISTOL", "Targeting", "Hitboxes" )
var ssg = UI.GetValue( "Rage", "SCOUT", "Targeting", "Hitboxes" )
var awp = UI.GetValue( "Rage", "AWP", "Targeting", "Hitboxes" )
var scar = UI.GetValue( "Rage", "AUTOSNIPER", "Targeting", "Hitboxes" )
function on_cm()
{
if(UI.IsHotkeyActive( "Script items", "ForceHead" ))
{
UI.SetValue("Rage", "GENERAL", "Targeting", "Hitboxes", 1)
UI.SetValue("Rage", "PISTOL", "Targeting", "Hitboxes", 1)
UI.SetValue("Rage", "HEAVY PISTOL", "Targeting", "Hitboxes", 1)
UI.SetValue("Rage", "SCOUT", "Targeting", "Hitboxes", 1)
UI.SetValue("Rage", "AWP", "Targeting", "Hitboxes", 1)
UI.SetValue("Rage", "AUTOSNIPER", "Targeting", "Hitboxes", 1)
}
else
{
UI.SetValue("Rage", "GENERAL", "Targeting", "Hitboxes", gen)
UI.SetValue("Rage", "PISTOL", "Targeting", "Hitboxes", pist)
UI.SetValue("Rage", "HEAVY PISTOL", "Targeting", "Hitboxes", hpist)
UI.SetValue("Rage", "SCOUT", "Targeting", "Hitboxes", ssg)
UI.SetValue("Rage", "AWP", "Targeting", "Hitboxes", awp)
UI.SetValue("Rage", "AUTOSNIPER", "Targeting", "Hitboxes", scar)
}
}
function indicator()
{
screen = Render.GetScreenSize()
x = screen[0]/2
y = screen[1]/2
if (Entity.IsValid(Entity.GetLocalPlayer()))
{
if (UI.IsHotkeyActive("Script items","ForceHead"))
{
Render.String(x-26, y+31, 0, "ForceHead", [0, 0, 0,255])
Render.String(x-27, y+30, 0, "ForceHead", [128, 142, 255,255])
}
}
}
Cheat.RegisterCallback("Draw", "indicator")
Cheat.RegisterCallback("CreateMove", "on_cm")