Examples of headingToRadians()


Examples of l2p.gameserver.model.L2Player.headingToRadians()

      L2SiegeHeadquarterInstance outpost = new L2SiegeHeadquarterInstance(player, IdFactory.getInstance().getNextId(), NpcTable.getTemplate(36590));
      outpost.setCurrentHpMp(outpost.getMaxHp(), outpost.getMaxMp(), true);
      outpost.setHeading(player.getHeading());
      outpost.setInvul(true);
      // Ставим аутпост перед чаром
      int x = (int) (player.getX() + 100 * Math.cos(player.headingToRadians(player.getHeading() - 32768)));
      int y = (int) (player.getY() + 100 * Math.sin(player.headingToRadians(player.getHeading() - 32768)));
      outpost.spawnMe(GeoEngine.moveCheck(player.getX(), player.getY(), player.getZ(), x, y, player.getReflection().getGeoIndex()));
      siegeClan.setHeadquarter(outpost);
    }
    else
View Full Code Here

Examples of l2p.gameserver.model.L2Player.headingToRadians()

      outpost.setCurrentHpMp(outpost.getMaxHp(), outpost.getMaxMp(), true);
      outpost.setHeading(player.getHeading());
      outpost.setInvul(true);
      // Ставим аутпост перед чаром
      int x = (int) (player.getX() + 100 * Math.cos(player.headingToRadians(player.getHeading() - 32768)));
      int y = (int) (player.getY() + 100 * Math.sin(player.headingToRadians(player.getHeading() - 32768)));
      outpost.spawnMe(GeoEngine.moveCheck(player.getX(), player.getY(), player.getZ(), x, y, player.getReflection().getGeoIndex()));
      siegeClan.setHeadquarter(outpost);
    }
    else
    {
View Full Code Here

Examples of l2p.gameserver.model.L2Player.headingToRadians()

      flag.addStatFunc(new FuncMul(Stats.MAX_HP, 0x50, flag, _advancedMult));
    }
    flag.setCurrentHpMp(flag.getMaxHp(), flag.getMaxMp(), true);
    flag.setHeading(player.getHeading());
    // Ставим флаг перед чаром
    int x = (int) (player.getX() + 100 * Math.cos(player.headingToRadians(player.getHeading() - 32768)));
    int y = (int) (player.getY() + 100 * Math.sin(player.headingToRadians(player.getHeading() - 32768)));
    flag.spawnMe(GeoEngine.moveCheck(player.getX(), player.getY(), player.getZ(), x, y, player.getReflection().getGeoIndex()));
    siegeClan.setHeadquarter(flag);
  }
}
View Full Code Here

Examples of l2p.gameserver.model.L2Player.headingToRadians()

    }
    flag.setCurrentHpMp(flag.getMaxHp(), flag.getMaxMp(), true);
    flag.setHeading(player.getHeading());
    // Ставим флаг перед чаром
    int x = (int) (player.getX() + 100 * Math.cos(player.headingToRadians(player.getHeading() - 32768)));
    int y = (int) (player.getY() + 100 * Math.sin(player.headingToRadians(player.getHeading() - 32768)));
    flag.spawnMe(GeoEngine.moveCheck(player.getX(), player.getY(), player.getZ(), x, y, player.getReflection().getGeoIndex()));
    siegeClan.setHeadquarter(flag);
  }
}
View Full Code Here

Examples of lineage2.gameserver.model.Player.headingToRadians()

        {
          flag.addStatFunc(new FuncMul(Stats.MAX_HP, 0x50, flag, _advancedMult));
        }
        flag.setCurrentHpMp(flag.getMaxHp(), flag.getMaxMp(), true);
        flag.setHeading(player.getHeading());
        int x = (int) (player.getX() + (100 * Math.cos(player.headingToRadians(player.getHeading() - 32768))));
        int y = (int) (player.getY() + (100 * Math.sin(player.headingToRadians(player.getHeading() - 32768))));
        flag.spawnMe(GeoEngine.moveCheck(player.getX(), player.getY(), player.getZ(), x, y, player.getGeoIndex()));
        siegeClan.setFlag(flag);
        break;
    }
View Full Code Here

Examples of lineage2.gameserver.model.Player.headingToRadians()

          flag.addStatFunc(new FuncMul(Stats.MAX_HP, 0x50, flag, _advancedMult));
        }
        flag.setCurrentHpMp(flag.getMaxHp(), flag.getMaxMp(), true);
        flag.setHeading(player.getHeading());
        int x = (int) (player.getX() + (100 * Math.cos(player.headingToRadians(player.getHeading() - 32768))));
        int y = (int) (player.getY() + (100 * Math.sin(player.headingToRadians(player.getHeading() - 32768))));
        flag.spawnMe(GeoEngine.moveCheck(player.getX(), player.getY(), player.getZ(), x, y, player.getGeoIndex()));
        siegeClan.setFlag(flag);
        break;
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.headingToRadians()

      }
    }
    player.sendPacket(PlaySound.HB01);
    try
    {
      int x = (int) (npc.getX() + (40 * Math.cos(npc.headingToRadians((npc.getHeading() - 32768) + 8000))));
      int y = (int) (npc.getY() + (40 * Math.sin(npc.headingToRadians((npc.getHeading() - 32768) + 8000))));
      NpcInstance alegria = NpcUtils.spawnSingle(NPC_ALEGRIA, x, y, npc.getZ(), 180000);
      alegria.setHeading(PositionUtils.calculateHeadingFrom(alegria, player));
    }
    catch (Exception e)
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.headingToRadians()

    }
    player.sendPacket(PlaySound.HB01);
    try
    {
      int x = (int) (npc.getX() + (40 * Math.cos(npc.headingToRadians((npc.getHeading() - 32768) + 8000))));
      int y = (int) (npc.getY() + (40 * Math.sin(npc.headingToRadians((npc.getHeading() - 32768) + 8000))));
      NpcInstance alegria = NpcUtils.spawnSingle(NPC_ALEGRIA, x, y, npc.getZ(), 180000);
      alegria.setHeading(PositionUtils.calculateHeadingFrom(alegria, player));
    }
    catch (Exception e)
    {
View Full Code Here

Examples of lineage2.gameserver.model.instances.residences.clanhall.CTBBossInstance.headingToRadians()

  @Override
  public void onEvtSpawn()
  {
    super.onEvtSpawn();
    final CTBBossInstance actor = getActor();
    final int x = (int) (actor.getX() + (800 * Math.cos(actor.headingToRadians(actor.getHeading() - 32768))));
    final int y = (int) (actor.getY() + (800 * Math.sin(actor.headingToRadians(actor.getHeading() - 32768))));
    actor.setSpawnedLoc(new Location(x, y, actor.getZ()));
    addTaskMove(actor.getSpawnedLoc(), true);
    doTask();
  }
View Full Code Here

Examples of lineage2.gameserver.model.instances.residences.clanhall.CTBBossInstance.headingToRadians()

  public void onEvtSpawn()
  {
    super.onEvtSpawn();
    final CTBBossInstance actor = getActor();
    final int x = (int) (actor.getX() + (800 * Math.cos(actor.headingToRadians(actor.getHeading() - 32768))));
    final int y = (int) (actor.getY() + (800 * Math.sin(actor.headingToRadians(actor.getHeading() - 32768))));
    actor.setSpawnedLoc(new Location(x, y, actor.getZ()));
    addTaskMove(actor.getSpawnedLoc(), true);
    doTask();
  }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.