Jump to content

Weird Camera Movement


Chase

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.");
        }

 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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