18
18
import org .runejs .client .net .OutgoingPackets ;
19
19
import org .runejs .client .scene .InteractiveObjectTemporary ;
20
20
import org .runejs .client .scene .Scene ;
21
- import org .runejs .client .scene .SceneCluster ;
22
21
import org .runejs .client .scene .util .CollisionMap ;
23
22
import org .runejs .client .sound .SoundSystem ;
24
23
import org .runejs .client .util .BitUtils ;
@@ -556,15 +555,15 @@ else if(s > 255)
556
555
}
557
556
for (int i_56_ = 1 ; i_56_ < 103 ; i_56_ ++) {
558
557
for (int i_57_ = 1 ; i_57_ < 103 ; i_57_ ++)
559
- scene .method130 (_plane , i_57_ , i_56_ , MovedStatics .getVisibilityPlaneFor (_plane , i_56_ , 0 , i_57_ ));
558
+ scene .setDrawLevel (_plane , i_57_ , i_56_ , MovedStatics .getVisibilityPlaneFor (_plane , i_56_ , 0 , i_57_ ));
560
559
}
561
560
tile_underlayids [_plane ] = null ;
562
561
tile_overlayids [_plane ] = null ;
563
562
tile_underlay_path [_plane ] = null ;
564
563
tile_overlay_rotation [_plane ] = null ;
565
564
tileShadowIntensity [_plane ] = null ;
566
565
}
567
- scene .method118 (-50 , -10 , -50 );
566
+ scene .buildModels (-50 , -10 , -50 );
568
567
for (int i = 0 ; i < 104 ; i ++) {
569
568
for (int i_58_ = 0 ; i_58_ < 104 ; i_58_ ++) {
570
569
if ((MovedStatics .tile_flags [1 ][i ][i_58_ ] & 0x2 ) == 2 )
@@ -1057,7 +1056,7 @@ public static void addObject(int objectId, int localX, int localY, int plane, in
1057
1056
renderable = gameObjectDefinition .createTerrainObjectModel (vertexHeightTopRight , vertexHeightTop , face , vertexHeight , 0 , vertexHeightRight );
1058
1057
else
1059
1058
renderable = new GameObject (objectId , 0 , face , vertexHeight , vertexHeightRight , vertexHeightTopRight , vertexHeightTop , gameObjectDefinition .animationId , true );
1060
- scene .addWall (localX , localY , plane , vertexMix , SceneCluster . anIntArray761 [face ], 0 , hash , renderable , null , objectConfig );
1059
+ scene .addWall (localX , localY , plane , vertexMix , Scene . ROTATION_WALL_TYPE [face ], 0 , hash , renderable , null , objectConfig );
1061
1060
if (face == 0 ) {
1062
1061
if (gameObjectDefinition .castsShadow ) {
1063
1062
tileShadowIntensity [plane ][localX ][localY ] = (byte ) 50 ;
@@ -1090,14 +1089,14 @@ public static void addObject(int objectId, int localX, int localY, int plane, in
1090
1089
if (gameObjectDefinition .solid && collisionMap != null )
1091
1090
collisionMap .unmarkWall (localX , localY , type , face , gameObjectDefinition .walkable );
1092
1091
if (gameObjectDefinition .setDecorDisplacement != 16 )
1093
- scene .method115 (plane , localX , localY , gameObjectDefinition .setDecorDisplacement );
1092
+ scene .setWallDecorationOffset (plane , localX , localY , gameObjectDefinition .setDecorDisplacement );
1094
1093
} else if (type == 1 ) {
1095
1094
Renderable renderable ;
1096
1095
if (gameObjectDefinition .animationId == -1 && gameObjectDefinition .childIds == null )
1097
1096
renderable = gameObjectDefinition .createTerrainObjectModel (vertexHeightTopRight , vertexHeightTop , face , vertexHeight , 1 , vertexHeightRight );
1098
1097
else
1099
1098
renderable = new GameObject (objectId , 1 , face , vertexHeight , vertexHeightRight , vertexHeightTopRight , vertexHeightTop , gameObjectDefinition .animationId , true );
1100
- scene .addWall (localX , localY , plane , vertexMix , MovedStatics . anIntArray2788 [face ], 0 , hash , renderable , null , objectConfig );
1099
+ scene .addWall (localX , localY , plane , vertexMix , Scene . ROTATION_WALL_CORNER_TYPE [face ], 0 , hash , renderable , null , objectConfig );
1101
1100
if (gameObjectDefinition .castsShadow ) {
1102
1101
if (face == 0 )
1103
1102
tileShadowIntensity [plane ][localX ][localY + 1 ] = (byte ) 50 ;
@@ -1121,7 +1120,7 @@ else if(face == 3)
1121
1120
renderable = new GameObject (objectId , 2 , 4 + face , vertexHeight , vertexHeightRight , vertexHeightTopRight , vertexHeightTop , gameObjectDefinition .animationId , true );
1122
1121
renderable_47_ = new GameObject (objectId , 2 , i_46_ , vertexHeight , vertexHeightRight , vertexHeightTopRight , vertexHeightTop , gameObjectDefinition .animationId , true );
1123
1122
}
1124
- scene .addWall (localX , localY , plane , vertexMix , SceneCluster . anIntArray761 [face ], SceneCluster . anIntArray761 [i_46_ ], hash , renderable , renderable_47_ , objectConfig );
1123
+ scene .addWall (localX , localY , plane , vertexMix , Scene . ROTATION_WALL_TYPE [face ], Scene . ROTATION_WALL_TYPE [i_46_ ], hash , renderable , renderable_47_ , objectConfig );
1125
1124
if (gameObjectDefinition .wall ) {
1126
1125
if (face == 0 ) {
1127
1126
tileCullingBitsets [plane ][localX ][localY ] = BitUtils .bitWiseOR (tileCullingBitsets [plane ][localX ][localY ], 585 );
@@ -1140,14 +1139,14 @@ else if(face == 3)
1140
1139
if (gameObjectDefinition .solid && collisionMap != null )
1141
1140
collisionMap .unmarkWall (localX , localY , type , face , gameObjectDefinition .walkable );
1142
1141
if (gameObjectDefinition .setDecorDisplacement != 16 )
1143
- scene .method115 (plane , localX , localY , gameObjectDefinition .setDecorDisplacement );
1142
+ scene .setWallDecorationOffset (plane , localX , localY , gameObjectDefinition .setDecorDisplacement );
1144
1143
} else if (type == 3 ) {
1145
1144
Renderable renderable ;
1146
1145
if (gameObjectDefinition .animationId != -1 || gameObjectDefinition .childIds != null )
1147
1146
renderable = new GameObject (objectId , 3 , face , vertexHeight , vertexHeightRight , vertexHeightTopRight , vertexHeightTop , gameObjectDefinition .animationId , true );
1148
1147
else
1149
1148
renderable = gameObjectDefinition .createTerrainObjectModel (vertexHeightTopRight , vertexHeightTop , face , vertexHeight , 3 , vertexHeightRight );
1150
- scene .addWall (localX , localY , plane , vertexMix , MovedStatics . anIntArray2788 [face ], 0 , hash , renderable , null , objectConfig );
1149
+ scene .addWall (localX , localY , plane , vertexMix , Scene . ROTATION_WALL_CORNER_TYPE [face ], 0 , hash , renderable , null , objectConfig );
1151
1150
if (gameObjectDefinition .castsShadow ) {
1152
1151
if (face != 0 ) {
1153
1152
if (face == 1 )
@@ -1199,7 +1198,7 @@ else if(face == 3)
1199
1198
renderable = gameObjectDefinition .createTerrainObjectModel (vertexHeightTopRight , vertexHeightTop , 0 , vertexHeight , 4 , vertexHeightRight );
1200
1199
else
1201
1200
renderable = new GameObject (objectId , 4 , 0 , vertexHeight , vertexHeightRight , vertexHeightTopRight , vertexHeightTop , gameObjectDefinition .animationId , true );
1202
- scene .addWallDecoration (localX , localY , plane , vertexMix , 0 , 0 , 512 * face , hash , renderable , objectConfig , SceneCluster . anIntArray761 [face ]);
1201
+ scene .addWallDecoration (localX , localY , plane , vertexMix , 0 , 0 , 512 * face , hash , renderable , objectConfig , Scene . ROTATION_WALL_TYPE [face ]);
1203
1202
} else if (type == 5 ) {
1204
1203
int i_51_ = scene .getWallHash (plane , localX , localY );
1205
1204
int i_52_ = 16 ;
@@ -1210,7 +1209,7 @@ else if(face == 3)
1210
1209
renderable = gameObjectDefinition .createTerrainObjectModel (vertexHeightTopRight , vertexHeightTop , 0 , vertexHeight , 4 , vertexHeightRight );
1211
1210
else
1212
1211
renderable = new GameObject (objectId , 4 , 0 , vertexHeight , vertexHeightRight , vertexHeightTopRight , vertexHeightTop , gameObjectDefinition .animationId , true );
1213
- scene .addWallDecoration (localX , localY , plane , vertexMix , i_52_ * MovedStatics .anIntArray666 [face ], MovedStatics .anIntArray2207 [face ] * i_52_ , face * 512 , hash , renderable , objectConfig , SceneCluster . anIntArray761 [face ]);
1212
+ scene .addWallDecoration (localX , localY , plane , vertexMix , i_52_ * MovedStatics .anIntArray666 [face ], MovedStatics .anIntArray2207 [face ] * i_52_ , face * 512 , hash , renderable , objectConfig , Scene . ROTATION_WALL_TYPE [face ]);
1214
1213
} else if (type == 6 ) {
1215
1214
Renderable renderable ;
1216
1215
if (gameObjectDefinition .animationId == -1 && gameObjectDefinition .childIds == null )
0 commit comments