Jump to content

Weird Camera Movement


Recommended Posts

Posted
if (camera.getPitchAngle() < 44) {
	status = "Moving camera angle";

	int targetPitch = random(44, 67);
	log(targetPitch);

	if (camera.movePitch(targetPitch)) {
		if (!CTime.sleepUntil(3000, 100, () -> camera.getPitchAngle() == targetPitch)) {
			return random(50, 300);
		}
	}
}

This always sets my camera pitch to 67...

targetPitch doesn't always return 67.

Let me know if you get this behavior too, or if I'm doing something wrong in my code.

Posted
1 minute ago, Stimpack said:

maybe the minimum pitch for that particular area is 67

67 is the maximum pitch in the game actually. I was testing this by pausing and moving my pitch below 44, so I don't believe this could be the problem.

Looking for others to test this. This could be a serious bug in the client, if every script is running at 67 pitch

Posted

doubt every script is running at 67 pitch lol

 

[INFO][Bot #1][02/04 09:00:58 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:00:58 AM]: [3240] 47
[INFO][Bot #1][02/04 09:01:18 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:01:18 AM]: [3240] 56
[INFO][Bot #1][02/04 09:01:18 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:01:18 AM]: [3240] 50
[INFO][Bot #1][02/04 09:01:19 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:01:19 AM]: [3240] 53
[INFO][Bot #1][02/04 09:01:20 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:01:20 AM]: [3240] 47

 

seems fine, i'm north of sw varr mine

Posted
4 minutes ago, Stimpack said:

doubt every script is running at 67 pitch lol

 


[INFO][Bot #1][02/04 09:00:58 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:00:58 AM]: [3240] 47
[INFO][Bot #1][02/04 09:01:18 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:01:18 AM]: [3240] 56
[INFO][Bot #1][02/04 09:01:18 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:01:18 AM]: [3240] 50
[INFO][Bot #1][02/04 09:01:19 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:01:19 AM]: [3240] 53
[INFO][Bot #1][02/04 09:01:20 AM]: [3240] Moving camera angle
[INFO][Bot #1][02/04 09:01:20 AM]: [3240] 47

 

seems fine, i'm north of sw varr mine

Are you checking to see if the pitch is indeed set to that pitch though?

Posted

um, it's your code that u posted 


        if (camera.getPitchAngle() < 44) {
            log("Moving camera angle");

            int targetPitch = random(44, 67);
            log(targetPitch);

            if (camera.movePitch(targetPitch)) {
                Sleep.until(() -> camera.getPitchAngle() == targetPitch, 3_000, 400, 200);
            }
        }

except i use Sleep class cuz i dont have ur CTime

Posted

dfrOO0O.gif

        int angleToMove = s.random(44, 67);
        log("Angle to move to: " + angleToMove);

        if (getCamera().getPitchAngle() < 44){
            log("Current camera pitch is: " + getCamera().getPitchAngle());
            getCamera().movePitch(angleToMove);
        } else {
            log("Camera pitch is " + getCamera().getPitchAngle() + " which is " + (getCamera().getPitchAngle() - 44) + " greater than 44, don't move camera.");
        }

 

Posted
48 minutes ago, TrekToop11 said:

dfrOO0O.gif


        int angleToMove = s.random(44, 67);
        log("Angle to move to: " + angleToMove);

        if (getCamera().getPitchAngle() < 44){
            log("Current camera pitch is: " + getCamera().getPitchAngle());
            getCamera().movePitch(angleToMove);
        } else {
            log("Camera pitch is " + getCamera().getPitchAngle() + " which is " + (getCamera().getPitchAngle() - 44) + " greater than 44, don't move camera.");
        }

 

Weird behavior on my side only. Thanks guys!

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...