ishyfishy 5 Share Posted July 15, 2015 I added a little thing trying to change the screen angle every once in a while (antiban?) but it doesn't work. Random srand = new Random(); double chances = srand.nextDouble(); if(chances < 0.096){ log("Antiban; changing camera angle..."); getClient().setCameraInMotion(true); } else { } Am I using the wrong method (getClient().setCameraInMotion(true))? Is there another way to achieve this? EDIT:: Fixed using Random srand = new Random(); double chances = srand.nextDouble(); if(chances < 0.096){ log("Antiban; changing camera angle..."); getCamera().rotateToEvent(srand.nextInt()+360,srand.nextInt()+90); } else { } Link to comment Share on other sites More sharing options...
Dreamlicker 750 Share Posted July 15, 2015 Consider changing your random formula so that you will generate negative numbers sometimes too. Link to comment Share on other sites More sharing options...
ishyfishy 5 Author Share Posted July 15, 2015 Consider changing your random formula so that you will generate negative numbers sometimes too. How would generating negative numbers change anything? Wouldn't it be the same as me adding +1 to the statement so the numbers are generated between 0 and 2, not 0 and 1? Link to comment Share on other sites More sharing options...
Chris 154 Share Posted July 15, 2015 Consider changing your random formula so that you will generate negative numbers sometimes too. camera rotation uses 180 degree intervals to decide which way to turn the camera. Negative numbers won't have a different effect Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.