Camera problem

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Kadzumba
Posts: 4
Joined: Wed Oct 12, 2011 5:10 am

Camera problem

#1 Post by Kadzumba » Wed Oct 12, 2011 5:19 am

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)

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Camera problem

#2 Post by rock5 » Wed Oct 12, 2011 6:18 am

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)'

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

Kadzumba
Posts: 4
Joined: Wed Oct 12, 2011 5:10 am

Re: Camera problem

#3 Post by Kadzumba » Wed Oct 12, 2011 9:34 am

Works fine, thx a lot. :)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests