注:Aimware Crack Lua功能失效无法加载
代码:
local Camera = gui.Reference("World","Camera")
local ColorPicker = gui.ColorPicker(Camera, "Color", "天使光环颜色", 255, 0, 0, 255)
local Slider_y = gui.Slider(Camera, "Slider_y", "天使光环上下方向", 7, 0, 12, 0.1)
local Slider_s = gui.Slider(Camera, "Slider_x", "天使光环大小", 8, 0, 12, 0.1)
function DrawChineseHat(color, extra_z, size)
local local_entity = entities:GetLocalPlayer()
if not local_entity or not local_entity:IsAlive() then
return
end
local hat_center = local_entity:GetHitboxPosition(0)
for i = 1, 360, 1 do
local old_position_x = nil
local old_position_y = nil
local current_position_x = nil
local current_position_y = nil
current_position_x, current_position_y = client.WorldToScreen(Vector3(hat_center.x + math.sin(math.rad(i)) * size, hat_center.y + math.cos(math.rad(i)) * size, hat_center.z + extra_z))
old_position_x, old_position_y = client.WorldToScreen(Vector3(hat_center.x + math.sin(math.rad(i - 1)) * size, hat_center.y + math.cos(math.rad(i - 1)) * size, hat_center.z + extra_z))
draw.Line(current_position_x, current_position_y, old_position_x, old_position_y)
end
end
function draw_hat()
local local_entity = entities:GetLocalPlayer()
if not local_entity or not local_entity:IsAlive() then return end
if gui.GetValue("world.thirdperson") then
draw.Color(ColorPicker:GetValue())
DrawChineseHat({255,255,255,155}, Slider_y:GetValue(), Slider_s:GetValue())
end
end
callbacks.Register('Draw', draw_hat)