-
Автор темы
- #1
JavaScript:
const yaw = function(angle) {
var adjusted_yaw = angle;
if (adjusted_yaw < -180) adjusted_yaw += 360;
if (adjusted_yaw > 180) adjusted_yaw -= 360;
return adjusted_yaw;
}
const draw = function() {
const y = Global.GetScreenSize()[1];
const font = Render.AddFont("Verdanab", 18, 600);
const delta = Math.abs(yaw(Local.GetRealYaw() % 360 - Local.GetFakeYaw() % 360)) / 2;
const color = [ 170 + (154 - 186) * delta / 60 , 0 + (255 - 0) * delta / 60 , 16 + (0 - 16) * delta / 60 , 255 ];
Render.StringCustom(11, y - 70, 0, "FAKE", [0, 0, 0, 255], font);
Render.StringCustom(10, y - 71, 0, "FAKE", color, font);
}
Cheat.RegisterCallback("Draw", "draw");
Последнее редактирование: