-
Автор темы
- #1
code_language.lua:
local glob = ui.create("Globals", "Globals")
local tag = glob:switch("Clantag", false)
function time_to_ticks(time)
return math.floor(time / globals.tickinterval + 0.5)
end
function gamesense_anim(text, indices)
if not globals.is_connected then return end
local text_anim = ' ' .. text .. ' '
local tickinterval = globals.tickinterval
local tickcount = globals.tickcount + time_to_ticks(utils.net_channel().latency[0])
local i = tickcount / time_to_ticks(0.3)
i = math.floor(i % #indices)
i = indices[i+1]+1
return string.sub(text_anim, i, i+15)
end
enabled_prev = true
if tag:get() then
local clan_tag = gamesense_anim('Lunarity.lua', {0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 12, 12, 12, 12, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25})
if clan_tag ~= enabled_prev then
common.set_clan_tag(clan_tag)
end
enabled_prev = clan_tag
else
common.set_clan_tag("\0")
end