and here is the code from positionutils, maybe i am wrong in the below examples, but for sure the 360 degree shield defense is not working, in game with geodata enabled on live server, players complain for 3 months allready and tested also. please check positionutils class.
Цитата:
ublic class PositionUtils
{
private static final int MAX_ANGLE = 360;
private static final double FRONT_MAX_ANGLE = 100.0D;
private static final double BACK_MAX_ANGLE = 40.0D;
|
is clear max angle from fron is 100, not 180 and back only 40 not 180 , to make total 360, maybe i am wrong but please recheck, clearly this is not working for no one in game (live server using geodata).
Код:
public static int convertDegreeToClientHeading(double degree)
{
if (degree < 0.0D)
degree = 360.0D + degree;
return (int)(degree * 182.04444444399999D);
}