-
Автор темы
- #1
Хочу сделать свой сборник джс в одной(корде), попробовал добавить лоу дельту во вкладку анти аимы, но лоу дельта не отображается(
JavaScript:
UI.AddLabel(' Manifest-Cord ')
UI.AddLabel("___________________________________________");
//=============================================================================================================
UI.AddDropdown( "SETTINGS", [ "Anti-Aim","Rage","VISUALS","MISC" ] );
UI.AddCheckbox("Low_delta");
// Функция
function menu(){
UI.SetEnabled("Script items", "Low_delta", false)
}
if(UI.GetValue("Script items", "Sections") == 0){
// Rage
}
if(UI.GetValue("Script items", "Sections") == 1){
// Anti-Aim
UI.SetEnabled("Script items", "Low_delta", true)
}
if(UI.GetValue("Script items", "Sections") == 2){
}
if(UI.GetValue("Script items", "Sections") == 3){
}
Cheat.RegisterCallback("Draw","menu");
//low delta
function SetEnabled()
{
if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Low delta"))
{
UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Low delta type", 1)
}
else
{
UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Low delta type", 0)
}
if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Low delta type") == 0 && UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Low delta"))
{
UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Low delta modes", 1)
UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Low delta on key", 0)
}
else if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Low delta type") == 1 && UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Low delta"))
{
UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Low delta modes", 0)
UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Low delta on key", 1)
}
else
{
UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Low delta modes", 0)
UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Low delta on key", 0)
}
}
function get_velocity(index)
{
var velocity = Entity.GetProp(index, "CBasePlayer", "m_vecVelocity[0]");
return Math.sqrt(velocity[0] * velocity[0] + velocity[1] * velocity[1]);
}
function get_health(index)
{
health_override = Entity.GetProp(index, "CBasePlayer", "m_iHealth");
return health_override;
}
function Low_delta()
{
localplayer_index = Entity.GetLocalPlayer( );
const lowdelta_dropdown_value = UI.GetValue.apply(null, lowdelta_modes);
var velocity = get_velocity(localplayer_index)
var health = get_health(localplayer_index)
var LowHP = false
var SlowWalk = false
var Standing = false
var Onkey = false
if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Low delta") && UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Low delta type") == 0)
{
if (lowdelta_dropdown_value & (1 << 0) && UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk"))
SlowWalk = true
else
SlowWalk = false
if (lowdelta_dropdown_value & (1 << 1) && health < 50)
LowHP = true
else
LowHP = false
if (lowdelta_dropdown_value & (1 << 2) && velocity < 3)
Standing = true
else
Standing = false
}
else if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Low delta") && UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Low delta type") == 1)
{
if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Low delta on key"))
Onkey = true
else
Onkey = false
}
if (Standing == true || LowHP == true || SlowWalk == true || Onkey == true && UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Low delta"))
{
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", 10);
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", 0);
AntiAim.SetOverride(1);
AntiAim.SetFakeOffset(0);
AntiAim.SetRealOffset(-26);
}
else
{
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", 0);
AntiAim.SetOverride(0);
}
}
function drawString()
{
const fontpixel = Render.AddFont( "Verdana", 10, 100);
const lowdelta_dropdown_value = UI.GetValue.apply(null, lowdelta_modes);
var SFOnkey = false
var screen_size = Global.GetScreenSize();
localplayer_index = Entity.GetLocalPlayer( );
localplayer_alive = Entity.IsAlive( localplayer_index );
SlowWalk = false
LowHP = false
Standing = false
Onkey = false
if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Low delta") && UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Low delta type") == 0)
{
if (lowdelta_dropdown_value & (1 << 0) && UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk"))
SlowWalk = true
else
SlowWalk = false
if (lowdelta_dropdown_value & (1 << 1) && health < 50)
LowHP = true
else
LowHP = false
if (lowdelta_dropdown_value & (1 << 2) && velocity < 3)
Standing = true
else
Standing = false
}
else if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Low delta") && UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Low delta type") == 1)
{
if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Low delta on key"))
Onkey = true
else
Onkey = false
}
if (Standing == true || LowHP == true || SlowWalk == true || Onkey == true)
{
drawIND = true
}
else
{
drawIND = false
}
if (drawIND == true && localplayer_alive == true && UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Low delta") == true)
{
Render.StringCustom(screen_size[0] /2 , screen_size[1] /2 +32, 1, " LOW DELTA", [ 163, 180, 255, 255 ], fontpixel );
}
}
Cheat.RegisterCallback("CreateMove", "Low_delta");