Эксперт
-
Автор темы
- #1
пиздец апи говно я ебал
код кринж я сонный
meme:
JavaScript:
/*
author: Mikhailkrylow,
stay Home, stay YouGame.biz, netvoine
*/
// mb govnokod mne poxui
//ui.add_slider('x', 'x',0,render.get_screen_size()[0])
//ui.add_slider('y', 'y',0,render.get_screen_size()[1])
var cords = {
x: 300,
y: 200
}
var master_active = []
function lerp(a, b, c) {
return a+(b-a)*c
}
function print(arg) {
//prikol api ukazano cheat.log_custom a ono undefined
cheat.log(arg+"");
}
// suda pishite vars i nazvania, mb chto upustil
var handle_binds = [
["force_safepoints","Force Safepoints"],
["body_aim","Force Body"],
["override_damage","Override Damage"],
["ensure_lean","Ensure Lean"],
["inverter","Inverter"],
["manual_left","Left"],
["manual_right","Right"],
["manual_back","Backward"],
["manual_forward","Forward"],
["fake_duck","Fake Duck"],
["slow_walk","Slow Walk"],
["doubletap","Double Tap"],// vezde cherez _ a tut slitno kakogo hua
["hide_shots","Hide Shots"],
["thirdperson","Trirdperson"],
["peek_assist","Peek Assist"],
]
function get_active_binds() {
var width = 12
for (var i = 0; i < handle_binds.length; i++) {
if(vars.is_bind_active(handle_binds[i][0])){
if(!master_active[i]){
master_active[i] = {data: handle_binds[i], alpha: 0,offset: 0};
}
master_active[i].alpha = Math.ceil(lerp(master_active[i].alpha,255,6*global_vars.frametime()))
master_active[i].offset = handle_binds[i][1].length //a vot hui nam a ne calc text size
}else{
if(master_active[i]){
master_active[i].alpha = Math.floor(lerp(master_active[i].alpha,0,6*global_vars.frametime()))
if(master_active[i].alpha == 0){
master_active[i] = null
}
}
}
if(master_active[i] && master_active[i].offset > width){
width = master_active[i].offset
}
}
return [master_active,width]
}
var global_alpha = 0
var width = 0
function on_render(){
//print(vars.get_int("x")) coder sin govna to li api isue to li desc api isue kakogo hua ne rabotaet
var count = 0
var active_binds = get_active_binds()[0]
width = lerp(width,get_active_binds()[1],6*global_vars.frametime())
for (var i = 0; i < active_binds.length; i++) {
if(active_binds[i]){
count+=1
render.text(
[
cords.x+5,
cords.y+11*count,
],
[255,255,255,active_binds[i].alpha],
0,
0,
active_binds[i].data[1]
)
render.text(
[
cords.x+width*6+5,
cords.y+11*count,
],
[255,255,255,active_binds[i].alpha],
0,
0,
"[on]"
)
}
}
render.filled_rect([cords.x,cords.y-10], [(width+4)*5.5+15,20], [0,0,0,global_alpha], 10)
render.text(
[cords.x+((width+4)*5.5+15)/2,cords.y],
[255,255,255,global_alpha],
6,
0,
"Keybinds"
)
global_alpha = lerp(global_alpha,Math.max(255*ui.get_menu_alpha(),255*Math.min(1,count)),6*global_vars.frametime())
}
register_callback("render",on_render)
Пожалуйста, авторизуйтесь для просмотра ссылки.
meme:
Последнее редактирование: