даПосмотреть вложение 122595
типо такого?
джс с кряка, фиксед под вт
var trails = [];
UI.AddCheckbox(["Visuals", "Extra", "Impacts"], "Trail RGB");
UI.AddSliderInt(["Visuals", "Extra", "Impacts"], "RGB Speed", 1, 100);
UI.AddColorPicker(["Visuals", "Extra", "Impacts"], "Trail color");
UI.AddSliderInt(["Visuals", "Extra", "Impacts"], "Trail timer", 1, 500);
function rgb(speed) {
var timer = Global.Tickcount();
var result = [0, 0, 0, 255];
result[0] = Math.floor(Math.sin(timer * speed + 0) * 127 + 128);
result[1] = Math.floor(Math.sin(timer * speed + 2) * 127 + 128);
result[2] = Math.floor(Math.sin(timer * speed + 4) * 127 + 128);
return result;
}
function trail() {
var localPlayer = Entity.GetLocalPlayer();
if (Entity.IsValid(localPlayer)){
var position = Entity.GetHitboxPosition(localPlayer, 6);
if(Array.isArray(position)){
trails.push({remove:Global.Tickcount() + UI.GetValue(["Visuals", "Extra", "Impacts", "Trail timer"]), location:position});
trails.forEach(function(x, y){
var location = trails[y]["location"];
var rainbow = rgb(UI.GetValue(["Visuals", "Extra", "Impacts", "RGB Speed"])/500);
rainbow[3] = 50;
if (!UI.GetValue(["Visuals", "Extra", "Impacts", "Trail RGB"])) {
var color = UI.GetColor(["Visuals", "Extra", "Impacts", "Trail color"]);
rainbow = color;
}
var position = Render.WorldToScreen([location[0], location[1], location[2]-50.0]);
Render.FilledRect(position[0], position[1], 15, 15, rainbow);
var time = Global.Tickcount();
if (trails[y]["remove"] <= time){
trails.splice(y, 1);
}
})
}
}
}
Global.RegisterCallback("Draw", "trail");
Пасиба)джс с кряка, фиксед под вт
JavaScript:var trails = []; UI.AddCheckbox(["Visuals", "Extra", "Impacts"], "Trail RGB"); UI.AddSliderInt(["Visuals", "Extra", "Impacts"], "RGB Speed", 1, 100); UI.AddColorPicker(["Visuals", "Extra", "Impacts"], "Trail color"); UI.AddSliderInt(["Visuals", "Extra", "Impacts"], "Trail timer", 1, 500); function rgb(speed) { var timer = Global.Tickcount(); var result = [0, 0, 0, 255]; result[0] = Math.floor(Math.sin(timer * speed + 0) * 127 + 128); result[1] = Math.floor(Math.sin(timer * speed + 2) * 127 + 128); result[2] = Math.floor(Math.sin(timer * speed + 4) * 127 + 128); return result; } function trail() { var localPlayer = Entity.GetLocalPlayer(); if (Entity.IsValid(localPlayer)){ var position = Entity.GetHitboxPosition(localPlayer, 6); if(Array.isArray(position)){ trails.push({remove:Global.Tickcount() + UI.GetValue(["Visuals", "Extra", "Impacts", "Trail timer"]), location:position}); trails.forEach(function(x, y){ var location = trails[y]["location"]; var rainbow = rgb(UI.GetValue(["Visuals", "Extra", "Impacts", "RGB Speed"])/500); rainbow[3] = 50; if (!UI.GetValue(["Visuals", "Extra", "Impacts", "Trail RGB"])) { var color = UI.GetColor(["Visuals", "Extra", "Impacts", "Trail color"]); rainbow = color; } var position = Render.WorldToScreen([location[0], location[1], location[2]-50.0]); Render.FilledRect(position[0], position[1], 15, 15, rainbow); var time = Global.Tickcount(); if (trails[y]["remove"] <= time){ trails.splice(y, 1); } }) } } } Global.RegisterCallback("Draw", "trail");
Проект предоставляет различный материал, относящийся к сфере киберспорта, программирования, ПО для игр, а также позволяет его участникам общаться на многие другие темы. Почта для жалоб: admin@yougame.biz