Hi, i have simple question. What i need to change in camera.lua (class catalog) to stop rotating/moving camera?
I had that in my old file but made the mistake and replaced it with original file... (one of the users of this forum did the file but I can find that post...)
PS. Why do I need? less CPU usage.
(sorry for bad english)
Camera problem
Re: Camera problem
So you want the camera angle not to change?
The easiest way would be to disable the setRotation function in camera.lua. Just comment out the contents of the function 'CCamera:setRotation(angle)'
The easiest way would be to disable the setRotation function in camera.lua. Just comment out the contents of the function 'CCamera:setRotation(angle)'
Code: Select all
function CCamera:setRotation(angle)
--[[local proc = getProc();
local px = player.X
local pz = player.Z
local cx = memoryReadFloat(proc, self.Address + addresses.camX_offset)
local cz = memoryReadFloat(proc, self.Address + addresses.camZ_offset)
local currentDistance = distance(px,pz,cx,cz)
local nx = px + math.cos(angle + math.pi) * currentDistance;
local nz = pz + math.sin(angle + math.pi) * currentDistance;
memoryWriteFloat(proc, self.Address + addresses.camX_offset, nx);
memoryWriteFloat(proc, self.Address + addresses.camZ_offset, nz);]]
end
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Who is online
Users browsing this forum: Ahrefs [Bot] and 4 guests