Показать сообщение отдельно
Старый 17.12.2013, 15:59   #1
boulanger
L2-scripts клиент Classic 1.5 + ГЕО до 1 июля
 
Аватар для boulanger
 
Регистрация: 23.09.2013
Сообщений: 437
По умолчанию

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);
  }
boulanger вне форума