-
Автор темы
- #1
Не ругайте новичка.
ДЖс под кряк (миндамаг)
ДЖс под кряк (миндамаг)
JavaScript:
//ui elements
UI.AddHotkey( "Override Damage Key" );
UI.AddSliderInt( "Auto", 0, 130 );
UI.AddSliderInt( "Scout", 0, 130 );
UI.AddSliderInt( "AWP", 0, 130 );
UI.AddSliderInt( "Heavy Pistols", 0, 130 );
// vars
var cache_heavy = UI.GetValue( "Rage", "HEAVY PISTOL", "Targeting", "Minimum damage" );
var cache_awp = UI.GetValue( "Rage", "AWP", "Targeting", "Minimum damage" );
var cache_scout = UI.GetValue( "Rage", "SCOUT", "Targeting", "Minimum damage" );
var cache_auto = UI.GetValue( "AUTOSNIPER", "HEAVY PISTOL", "Targeting", "Minimum damage" );
function override_func() {
// getting overriding damage from sliders
var override_heavy = UI.GetValue( "Script items", "Heavy Pistols" );
var override_awp = UI.GetValue( "Script items", "AWP" );
var override_scout = UI.GetValue( "Script items", "Scout" );
var override_auto = UI.GetValue( "Script items", "Auto" );
// check hotkey
const checker = UI.IsHotkeyActive( "Script items", "Override Damage Key" );
switch (checker) {
case true:
UI.SetValue( "Rage", "HEAVY PISTOL", "Targeting", "Minimum damage", override_heavy); // heavy
UI.SetValue( "Rage", "AWP", "Targeting", "Minimum damage", override_awp); // awp
UI.SetValue( "Rage", "SCOUT", "Targeting", "Minimum damage", override_scout); // scout
UI.SetValue( "Rage", "AUTOSNIPER", "Targeting", "Minimum damage", override_auto); // auto
break;
default:
UI.SetValue( "Rage", "HEAVY PISTOL", "Targeting", "Minimum damage", cache_heavy); // heavy
UI.SetValue( "Rage", "AWP", "Targeting", "Minimum damage", cache_awp); // awp
UI.SetValue( "Rage", "SCOUT", "Targeting", "Minimum damage", cache_scout); // scout
UI.SetValue( "Rage", "AUTOSNIPER", "Targeting", "Minimum damage", cache_auto); // auto
}
}
//callback(-s)
Cheat.RegisterCallback("CreateMove", "override_func");
Последнее редактирование: