UI.AddSubTab(["Rage", "SUBTAB_MGR"], "Kitty resolver");
var path = ["Rage", "Kitty resolver", "Kitty resolver"];
UI.AddCheckbox(path, "extend resolver");
function GetVelocity(index) {
var velocity = Entity.GetProp(index, "CBasePlayer", "m_vecVelocity[0]");
return Math.sqrt(velocity[0] * velocity[0] + velocity[1] * velocity[1]);
}
if( UI.GetValue(["Rage", "Kitty resolver", "Kitty resolver", "extend resolver"]) ) {
function resolver() {
var last_fov = 180
var best_player = Ragebot.GetTarget()
var hp = Entity.GetProp(best_player,"CBasePlayer", "m_iHealth");
if( Entity.GetEyePosition(best_player) - Entity.GetHitboxPosition(best_player, 0) >= 1 ) {
UI.ToggleHotkey( ["Rage", "General", "General", "Key assignment", "Resolver override"]);
Ragebot.ForceTarget(best_player)
return
}else if( Entity.GetEyePosition(best_player) - Entity.GetHitboxPosition(best_player, 1) < 10 ) {
Ragebot.ForceTarget(best_player)
return
}
if ( hp <= 90 ) {
Ragebot.ForceTarget(best_player)
Ragebot.ForceTargetSafety(best_player)
} else if ( hp > 90 ) {
return
}
}
}
Cheat.RegisterCallback("CreateMove","resolver")