Page 1 of 1

Zoom in camera

Posted: Mon Jan 20, 2014 7:58 pm
by Ego95
Hi,

Is there any command to zoom completely in to your char? I want to use it in some scripts to get a better fps and because there are some spots, where the click to cast area of thunderstorm is buggy (even if you cast it manually) and with zooming in you get an other angle to the ground, so thunderstorm can be casted for sure. Would be nice if anyone knows, how to do this. Didn't find anything on theromwiki.

Greets

Re: Zoom in camera

Posted: Mon Jan 20, 2014 11:15 pm
by rock5
With the bot you can use

Code: Select all

camera:setDistance(1)
This method doesn't change the visibility of the character but it should solve your problem.

Just had a look and found the memory location to hide the player. That could be really handy especially for users with very flashy characters. It might improve their performance by not drawing the character. I'm not sure what to do with it though.

Re: Zoom in camera

Posted: Tue Jan 21, 2014 7:35 am
by Ego95
Thanks, this works fine. I myself would not need to hide the player completely. It's just to make thunderstorm more reliable at some places :)

Re: Zoom in camera

Posted: Tue Jan 21, 2014 9:16 am
by rock5
I might just write something here for future reference.

To hide the player use

Code: Select all

memoryWriteIntPtr(getProc(), addresses.staticbase_char, 0x3E4, 1)
And to unhide the player

Code: Select all

memoryWriteIntPtr(getProc(), addresses.staticbase_char, 0x3E4, 0)

Re: Zoom in camera

Posted: Sat Nov 01, 2014 3:03 pm
by Ego95
I got a question to your last post. Is there anything to hide other players? Actually there are some GM Events where hundreds of people walking aroung at one spot. Would be great to hide them :D

Re: Zoom in camera

Posted: Sat Nov 01, 2014 10:06 pm
by rock5
Well R5hacks has an option to show hidden mobs. I always refused to applied the option to players but if you have the lua knowhow you could modify it to hide players with little trouble.