ishyfishy 5 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 { }
Dreamlicker 750 Posted July 15, 2015 Consider changing your random formula so that you will generate negative numbers sometimes too.
ishyfishy 5 Author 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?
Chris 154 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.