-
Автор темы
- #1
Почему при при прыжке не ставится значение фейк лагов
JavaScript:
UI.AddSliderInt( ["Visuals", "Extra", "General"], "Fakelags", 6, 15 )
UI.SetValue( ["Visuals", "Extra", "General", "Fakelags"], 12);
function exploitsActive(){
return (UI.GetHotkeyState( ["Rage", "Exploits", "Hide shots"] ) || UI.GetHotkeyState( ["Rage", "Exploits", "Double tap"] ));
}
function isInAir(){
var fv = Entity.GetProp(Entity.GetLocalPlayer(), "CBasePlayer", "m_flFallVelocity");
return (fv < -1 || fv > 1);
}
function Fkae(){
if(!Entity.IsAlive(Entity.GetLocalPlayer())) return;
if (Input.IsKeyPressed(0x20) || isInAir() || exploitsActive()) return;
var fakelag = UI.GetValue("Visuals", "Extra", "General", "Fakelags");
UI.SetValue( ["Rage", "Fake Lag","Fake Lag", "Jitter"] , 0);
UI.SetValue( ["Rage", "Fake Lag","Fake Lag", "Trigger limit"] , 0);
switch (Globals.Tickcount() % fakelag) {
case 0:
UI.SetValue( ["Rage", "Fake Lag","Fake Lag", "Limit"], fakelag);
UI.SetValue( ["Misc", "Movement","Fake Lag", "Leg movement"], 1);
break;
case fakelag - 1:
UI.SetValue( ["Rage", "Fake Lag","Fake Lag", "Limit"], 0);
UI.SetValue( ["Misc", "Movement","Fake Lag", "Leg movement"], 1);
UserCMD.SetMovement([0, 0, 0]);
break;
}
}
Global.RegisterCallback("CreateMove", "Fkae");