Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void drawMinimap() {
- aRSImageProducer_1164.initDrawingArea();
- if (minimapState == 2) {
- byte abyte0[] = mapBack.aByteArray1450;
- int ai[] = DrawingArea.pixels;
- int k2 = abyte0.length;
- for (int i5 = 0; i5 < k2; i5++) {
- if (abyte0[i5] == 0) {
- ai[i5] = 0;
- }
- }
- compass.method352(33, minimapInt1, anIntArray1057, 256, anIntArray968, 25, 0, 0, 33, 25);
- aRSImageProducer_1165.initDrawingArea();
- return;
- }
- int i = minimapInt1 + minimapInt2 & 0x7ff;
- int j = 48 + myPlayer.x / 32;
- int l2 = 464 - myPlayer.y / 32;
- sprite.method352(151, i, anIntArray1229, 256 + minimapInt3, anIntArray1052, l2, 5, 25, 146, j);
- compass.method352(33, minimapInt1, anIntArray1057, 256, anIntArray968, 25, 0, 0, 33, 25);
- for (int j5 = 0; j5 < anInt1071; j5++) {
- int k = (anIntArray1072[j5] * 4 + 2) - myPlayer.x / 32;
- int i3 = (anIntArray1073[j5] * 4 + 2) - myPlayer.y / 32;
- markMinimap(aClass30_Sub2_Sub1_Sub1Array1140[j5], k, i3);
- }
- for (int k5 = 0; k5 < 104; k5++) {
- for (int l5 = 0; l5 < 104; l5++) {
- NodeList class19 = groundArray[plane][k5][l5];
- if (class19 != null) {
- int l = (k5 * 4 + 2) - myPlayer.x / 32;
- int j3 = (l5 * 4 + 2) - myPlayer.y / 32;
- markMinimap(mapDotItem, l, j3);
- }
- }
- }
- for (int i6 = 0; i6 < npcCount; i6++) {
- NPC npc = npcArray[npcIndices[i6]];
- if (npc != null && npc.isVisible()) {
- EntityDef entityDef = npc.desc;
- if (entityDef.childrenIDs != null) {
- entityDef = entityDef.method161();
- }
- if (entityDef != null && entityDef.aBoolean87 && entityDef.aBoolean84) {
- int i1 = npc.x / 32 - myPlayer.x / 32;
- int k3 = npc.y / 32 - myPlayer.y / 32;
- markMinimap(mapDotNPC, i1, k3);
- }
- }
- }
- for (int j6 = 0; j6 < playerCount; j6++) {
- Player player = playerArray[playerIndices[j6]];
- if (player != null && player.isVisible()) {
- int j1 = player.x / 32 - myPlayer.x / 32;
- int l3 = player.y / 32 - myPlayer.y / 32;
- boolean flag1 = false;
- long l6 = StringHelper.longForName(player.name);
- for (int k6 = 0; k6 < friendsCount; k6++) {
- if (l6 != friendsListAsLongs[k6] || friendsNodeIDs[k6] == 0) {
- continue;
- }
- flag1 = true;
- break;
- }
- boolean flag2 = false;
- if (myPlayer.team != 0 && player.team != 0 && myPlayer.team == player.team) {
- flag2 = true;
- }
- if (flag1) {
- markMinimap(mapDotFriend, j1, l3);
- } else if (flag2) {
- markMinimap(mapDotTeam, j1, l3);
- } else {
- markMinimap(mapDotPlayer, j1, l3);
- }
- }
- }
- if (anInt855 != 0 && loopCycle % 20 < 10) {
- if (anInt855 == 1 && anInt1222 >= 0 && anInt1222 < npcArray.length) {
- NPC class30_sub2_sub4_sub1_sub1_1 = npcArray[anInt1222];
- if (class30_sub2_sub4_sub1_sub1_1 != null) {
- int k1 = class30_sub2_sub4_sub1_sub1_1.x / 32 - myPlayer.x / 32;
- int i4 = class30_sub2_sub4_sub1_sub1_1.y / 32 - myPlayer.y / 32;
- method81(mapMarker, i4, k1);
- }
- }
- if (anInt855 == 2) {
- int l1 = ((anInt934 - baseX) * 4 + 2) - myPlayer.x / 32;
- int j4 = ((anInt935 - baseY) * 4 + 2) - myPlayer.y / 32;
- method81(mapMarker, j4, l1);
- }
- if (anInt855 == 10 && anInt933 >= 0 && anInt933 < playerArray.length) {
- Player class30_sub2_sub4_sub1_sub2_1 = playerArray[anInt933];
- if (class30_sub2_sub4_sub1_sub2_1 != null) {
- int i2 = class30_sub2_sub4_sub1_sub2_1.x / 32 - myPlayer.x / 32;
- int k4 = class30_sub2_sub4_sub1_sub2_1.y / 32 - myPlayer.y / 32;
- method81(mapMarker, k4, i2);
- }
- }
- }
- if (destX != 0) {
- int j2 = (destX * 4 + 2) - myPlayer.x / 32;
- int l4 = (destY * 4 + 2) - myPlayer.y / 32;
- markMinimap(mapFlag, j2, l4);
- }
- DrawingArea.method336(3, 78, 97, 0xffffff, 3);
- aRSImageProducer_1165.initDrawingArea();
- }
- private void npcScreenPos(Entity entity, int i) {
- calcEntityScreenPos(entity.x, i, entity.y);
- //aryan entity.entScreenX = spriteDrawX; entity.entScreenY = spriteDrawY;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement