Tumble files around a bit

This commit is contained in:
2025-05-16 10:20:19 +02:00
parent 0e3166a410
commit 003f90126d
1595 changed files with 75381 additions and 70006 deletions

View File

@@ -1,58 +0,0 @@
--Guess attack speed by taking entire data set and comparing 2 - 4 intervals then storing the n into seperate array and incrementing it
--Attack speed with most counts in latter array is the best guess by m%
--Correct this by repeating step on exit combat maybe?
--Look at tolerances as well
local dataSet2s = {
[1] = 540390408.9506,
[2] = 540392394.9163,
[3] = 540394398.5326,
[4] = 540396409.5288,
[5] = 540398396.6414,
[6] = 540400397.0754,
[7] = 540402384.8113,
[8] = 540404385.3304,
[9] = 540406398.99,
[10] = 540408386.472,
[11] = 540410386.9851,
[12] = 540412374.8497,
[13] = 540414375.1427,
[14] = 540416373.0995,
[15] = 540418376.9931,
[16] = 540420390.6971,
}
local dataSet1p5s = {
[1] = 541651364.1916,
[2] = 541652857.9058,
[3] = 541654365.8491,
[4] = 541655858.3292,
[5] = 541657352.4962,
[6] = 541658846.2963,
[7] = 541660354.015,
[8] = 541661847.0112,
[9] = 541663340.6759,
[10] = 541664861.3772,
[11] = 541666354.9449,
[12] = 541667848.8308,
[13] = 541669343.2332,
[14] = 541670849.9777,
[15] = 541672344.0613,
[16] = 541673851.2346,
}
local tolerance = 50
local tempAverages = {}
-- rounds .5 to 0 or 1; want to round to .5 or .2 or alike
for k, v in ipairs(dataSet1p5s) do
if k > 1 then
local tempAvg = (dataSet1p5s[k] - dataSet1p5s[k - 1])
print(
((math.floor(tempAvg / 1000) - (tempAvg / 1000)) * 1000),
(math.ceil(tempAvg / 1000) - (tempAvg / 1000)) * 1000
)
if not tempAverages[tempAvg] then tempAverages[tempAvg] = 0 end
tempAverages[tempAvg] = tempAverages[tempAvg] + 1
end
end
for k, v in pairs(tempAverages) do
print(k, v)
end

Submodule Complete Projects/Legion/RaiderSA deleted from 7a3f912549

View File

@@ -1,11 +0,0 @@
local Button = CreateFrame("Button", "MyButton", UIParent, "UIPanelButtonTemplate")
Button:SetWidth(150)
Button:SetHeight(25)
Button:SetPoint("TOP")
Button:SetText("Dance")
Button:RegisterForClicks("AnyUp")
Button:SetScript("OnClick", function()
DoEmote("dance", UnitName("target"))
end )

View File

@@ -1,38 +0,0 @@
EVERY FRAME
function()
local function range (val, min, max, max2)
val = 1 - (((max - val) / (max - min)) * max2)
return val
end
local pX = UnitPosition("player") or 0
local pY = select(2,UnitPosition("player")) or 0
local tX = UnitPosition("Alurielle") or 0
local tY = select(2,UnitPosition("Alurielle")) or 0
local X = pX - tX
local Y = pY - tY
local playerFace = GetPlayerFacing() or 0
local playerA = math.floor(playerFace * 100)
playerA = range(playerA, 0, 630, 360) - 1
playerA = - playerA
playerA = playerA - 90
if playerA < 0 then playerA = playerA + 360 end
aura_env.hyp = math.sqrt((math.abs(X^2)) + (math.abs(Y^2)))
aura_env.angle = math.deg(math.atan2(X,Y))
if aura_env.angle < 0 then aura_env.angle = aura_env.angle + 360 end
aura_env.angle = aura_env.angle - playerA
end
DISPLAY
function()
local pX = UnitPosition("player") or 0
local pY = select(2,UnitPosition("player")) or 0
local tX = UnitPosition("Alurielle") or 0
local tY = select(2,UnitPosition("Alurielle")) or 0
local X = pX - tX
local Y = pY - tY
local hyp = math.floor(math.sqrt((math.abs(X^2)) + (math.abs(Y^2))))
return hyp
end
INIT
aura_env.angle = 0

View File

@@ -1,31 +0,0 @@
EVERY FRAME
function()
local function range (val, min, max, max2)
val = 1 - (((max - val) / (max - min)) * max2)
return val
end
local pX = UnitPosition("player") or 0
local pY = select(2,UnitPosition("player")) or 0
local tX = UnitPosition("Alurielle") or 0
local tY = select(2,UnitPosition("Alurielle")) or 0
local X = pX - tX
local Y = pY - tY
local playerFace = GetPlayerFacing() or 0
local playerA = math.floor(playerFace * 100)
playerA = range(playerA, 0, 630, 360) - 1
playerA = - playerA
playerA = playerA - 90
if playerA < 0 then playerA = playerA + 360 end
aura_env.hyp = math.sqrt((math.abs(X^2)) + (math.abs(Y^2)))
aura_env.angle = math.deg(math.atan2(X,Y))
if aura_env.angle < 0 then aura_env.angle = aura_env.angle + 360 end
aura_env.angle = aura_env.angle - playerA
end
ANIMATION
function()
return - aura_env.angle
end
INIT
aura_env.angle = 0

1
LegionWA/.gitignore vendored
View File

@@ -1 +0,0 @@
.vscode

View File

@@ -1 +0,0 @@
/dump getmetatable(LFGListApplicationViewerScrollFrameButton3.Member1.Name)

View File

@@ -1,24 +0,0 @@
--MODEL_TEST
function()
frame:SetAlpha(1);
frame:SetFrameStrata("DIALOG");
local model = CreateFrame("PlayerModel", "QCP", QCQuestTitleFrame);
model:SetFrameStrata("DIALOG");
model:SetUnit("TARGET");
model:ClearModel();
model:SetPortraitZoom(0.3);
model:SetPosition(-1.6, 0, 0);
model:SetScale(0.8);
model:SetFacing(-(math.pi / -26))
model:SetAlpha(1);
model:SetScript("OnAnimStarted", function() model:SetAnimation(60); end);
model:SetScript("OnAnimFinished", function() model:SetAnimation(60); end);
model:SetAllPoints(frame);
model:RegisterEvent("PLAYER_TARGET_CHANGED");
model:RegisterEvent("UNIT_PORTRAIT_UPDATE");
model:RegisterEvent("UNIT_MODEL_CHANGED");
model:SetScript("OnEvent", TargetPortrait_EventHandler);
--yeet_env.region:SetSequenceTime(120)
--aura_env.region:SetOffsetAnim(120)
return true
end

View File

@@ -1,19 +0,0 @@
local array = { 13, 14, 52, 63, 764, 12342, 143, 2, 54, 63, 25, 15 }
local sortedarray = { 0 }
for ka, va in ipairs(array) do
for j = 1, #sortedarray do
if va > sortedarray[j] then
if sortedarray[j] > 0 then
for i = #sortedarray, j, -1 do
sortedarray[i + 1] = sortedarray[i]
end
end
sortedarray[j] = va
end
end
end
for k, v in ipairs(sortedarray) do
print(k, v)
end

Some files were not shown because too many files have changed in this diff Show More