forked from MagicBane/Server
Dev command updated
This commit is contained in:
@@ -41,12 +41,15 @@ public class GetHeightCmd extends AbstractDevCmd {
|
||||
Vector2f zoneLoc = ZoneManager.worldToTerrainSpace(playerCharacter.getLoc(), heightmapZone);
|
||||
Vector2f zoneOffset = ZoneManager.worldToZoneOffset(playerCharacter.getLoc(), heightmapZone);
|
||||
Vector2f gridSquare = heightmapZone.terrain.getTerrainCell(zoneLoc);
|
||||
gridSquare.x = (float) Math.floor(gridSquare.x);
|
||||
gridSquare.y = (float) Math.floor(gridSquare.y);
|
||||
|
||||
this.throwbackInfo(playerCharacter, "Current Zone : " + currentZone.zoneName);
|
||||
this.throwbackInfo(playerCharacter, "Heightmap Zone : " + heightmapZone.zoneName);
|
||||
this.throwbackInfo(playerCharacter, "Global Height: " + heightmapZone.global_height);
|
||||
this.throwbackInfo(playerCharacter, "Sea Level: " + heightmapZone.seaLevel);
|
||||
this.throwbackInfo(playerCharacter, "Grid : " + Math.floor(gridSquare.x) + "x" + Math.floor(gridSquare.y));
|
||||
this.throwbackInfo(playerCharacter, "Grid : " + gridSquare);
|
||||
this.throwbackInfo(playerCharacter, "Offset: " + zoneOffset);
|
||||
this.throwbackInfo(playerCharacter, "Blend: " + heightmapZone.terrain.terrainBlend(zoneOffset));
|
||||
this.throwbackInfo(playerCharacter, "Height returned: " + Math.ceil(currentHeight));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user