Removed buggy geodata Z corrections.
This commit is contained in:
@@ -550,13 +550,6 @@ public class L2Spawn implements IPositionable, IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DO NOT CORRECT SPAWN Z IN GENERAL - Prevent NPC spawns on top of buildings
|
|
||||||
// don't correct z of flying NPCs
|
|
||||||
// if (!npc.isFlying())
|
|
||||||
// {
|
|
||||||
// newlocz = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Set is not random walk default value
|
// Set is not random walk default value
|
||||||
npc.setRandomWalking(getRandomWalking());
|
npc.setRandomWalking(getRandomWalking());
|
||||||
|
|
||||||
|
@@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
{
|
{
|
||||||
dz = m._zDestination - zPrev; // climbing
|
dz = m._zDestination - zPrev; // climbing
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
zPrev = geoHeight;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -550,13 +550,6 @@ public class L2Spawn implements IPositionable, IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DO NOT CORRECT SPAWN Z IN GENERAL - Prevent NPC spawns on top of buildings
|
|
||||||
// don't correct z of flying NPCs
|
|
||||||
// if (!npc.isFlying())
|
|
||||||
// {
|
|
||||||
// newlocz = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Set is not random walk default value
|
// Set is not random walk default value
|
||||||
npc.setRandomWalking(getRandomWalking());
|
npc.setRandomWalking(getRandomWalking());
|
||||||
|
|
||||||
|
@@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
{
|
{
|
||||||
dz = m._zDestination - zPrev; // climbing
|
dz = m._zDestination - zPrev; // climbing
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
zPrev = geoHeight;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -550,13 +550,6 @@ public class L2Spawn implements IPositionable, IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DO NOT CORRECT SPAWN Z IN GENERAL - Prevent NPC spawns on top of buildings
|
|
||||||
// don't correct z of flying NPCs
|
|
||||||
// if (!npc.isFlying())
|
|
||||||
// {
|
|
||||||
// newlocz = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Set is not random walk default value
|
// Set is not random walk default value
|
||||||
npc.setRandomWalking(getRandomWalking());
|
npc.setRandomWalking(getRandomWalking());
|
||||||
|
|
||||||
|
@@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
{
|
{
|
||||||
dz = m._zDestination - zPrev; // climbing
|
dz = m._zDestination - zPrev; // climbing
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
zPrev = geoHeight;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -550,13 +550,6 @@ public class L2Spawn implements IPositionable, IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DO NOT CORRECT SPAWN Z IN GENERAL - Prevent NPC spawns on top of buildings
|
|
||||||
// don't correct z of flying NPCs
|
|
||||||
// if (!npc.isFlying())
|
|
||||||
// {
|
|
||||||
// newlocz = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Set is not random walk default value
|
// Set is not random walk default value
|
||||||
npc.setRandomWalking(getRandomWalking());
|
npc.setRandomWalking(getRandomWalking());
|
||||||
|
|
||||||
|
@@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
{
|
{
|
||||||
dz = m._zDestination - zPrev; // climbing
|
dz = m._zDestination - zPrev; // climbing
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
zPrev = geoHeight;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -6016,10 +6016,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder
|
|||||||
{
|
{
|
||||||
dz = m._zDestination - zPrev; // climbing
|
dz = m._zDestination - zPrev; // climbing
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
zPrev = geoHeight;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -597,13 +597,6 @@ public class L2Spawn implements IPositionable, IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DO NOT CORRECT SPAWN Z IN GENERAL - Prevent NPC spawns on top of buildings
|
|
||||||
// don't correct z of flying NPCs
|
|
||||||
// if (!npc.isFlying())
|
|
||||||
// {
|
|
||||||
// newlocz = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
|
||||||
// }
|
|
||||||
|
|
||||||
npc.stopAllEffects();
|
npc.stopAllEffects();
|
||||||
|
|
||||||
npc.setIsDead(false);
|
npc.setIsDead(false);
|
||||||
|
@@ -3958,10 +3958,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
{
|
{
|
||||||
dz = m._zDestination - zPrev; // climbing
|
dz = m._zDestination - zPrev; // climbing
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
zPrev = geoHeight;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -550,13 +550,6 @@ public class L2Spawn implements IPositionable, IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DO NOT CORRECT SPAWN Z IN GENERAL - Prevent NPC spawns on top of buildings
|
|
||||||
// don't correct z of flying NPCs
|
|
||||||
// if (!npc.isFlying())
|
|
||||||
// {
|
|
||||||
// newlocz = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Set is not random walk default value
|
// Set is not random walk default value
|
||||||
npc.setRandomWalking(getRandomWalking());
|
npc.setRandomWalking(getRandomWalking());
|
||||||
|
|
||||||
|
@@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
{
|
{
|
||||||
dz = m._zDestination - zPrev; // climbing
|
dz = m._zDestination - zPrev; // climbing
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
zPrev = geoHeight;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -550,13 +550,6 @@ public class L2Spawn implements IPositionable, IIdentifiable, INamable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DO NOT CORRECT SPAWN Z IN GENERAL - Prevent NPC spawns on top of buildings
|
|
||||||
// don't correct z of flying NPCs
|
|
||||||
// if (!npc.isFlying())
|
|
||||||
// {
|
|
||||||
// newlocz = GeoEngine.getInstance().getHeight(newlocx, newlocy, newlocz);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Set is not random walk default value
|
// Set is not random walk default value
|
||||||
npc.setRandomWalking(getRandomWalking());
|
npc.setRandomWalking(getRandomWalking());
|
||||||
|
|
||||||
|
@@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
{
|
{
|
||||||
dz = m._zDestination - zPrev; // climbing
|
dz = m._zDestination - zPrev; // climbing
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
zPrev = geoHeight;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user