-
Автор темы
- #1
JavaScript:
var recharge = 0
var should_toggle = false;
function toggle_dt(){
if (Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer())) == 'r8 revolver'){
var delay = UI.GetValue(['Rage','Exploits','General','Recharge Delay'])
if (should_toggle && recharge + 16 == Globals.Tickcount()){
UI.ToggleHotkey(['Rage','Exploits','Keys','Key assignment','Double tap'])
should_toggle = false;
}
}
}
function on_wpn_fire(){
if ( (Entity.GetEntityFromUserID(Event.GetInt("userid")) != Entity.GetLocalPlayer()) || Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer())) != 'r8 revolver')
return;
recharge = Globals.Tickcount();
if (UI.GetValue(['Rage','Exploits','Keys','Key assignment','Double tap'])){
UI.ToggleHotkey(['Rage','Exploits','Keys','Key assignment','Double tap'])
should_toggle = true;
}
}
Cheat.RegisterCallback('weapon_fire','on_wpn_fire')
Cheat.RegisterCallback('Draw','toggle_dt')
Пожалуйста, авторизуйтесь для просмотра ссылки.