Removed buggy geodata Z corrections.

This commit is contained in:
MobiusDev 2018-04-27 09:26:32 +00:00
parent dad8a4b8c9
commit 952a9c2e53
15 changed files with 0 additions and 81 deletions

View File

@ -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
npc.setRandomWalking(getRandomWalking());

View File

@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
{
dz = m._zDestination - zPrev; // climbing
}
else
{
zPrev = geoHeight;
}
}
else
{

View File

@ -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
npc.setRandomWalking(getRandomWalking());

View File

@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
{
dz = m._zDestination - zPrev; // climbing
}
else
{
zPrev = geoHeight;
}
}
else
{

View File

@ -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
npc.setRandomWalking(getRandomWalking());

View File

@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
{
dz = m._zDestination - zPrev; // climbing
}
else
{
zPrev = geoHeight;
}
}
else
{

View File

@ -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
npc.setRandomWalking(getRandomWalking());

View File

@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
{
dz = m._zDestination - zPrev; // climbing
}
else
{
zPrev = geoHeight;
}
}
else
{

View File

@ -6016,10 +6016,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder
{
dz = m._zDestination - zPrev; // climbing
}
else
{
zPrev = geoHeight;
}
}
else
{

View File

@ -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.setIsDead(false);

View File

@ -3958,10 +3958,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
{
dz = m._zDestination - zPrev; // climbing
}
else
{
zPrev = geoHeight;
}
}
else
{

View File

@ -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
npc.setRandomWalking(getRandomWalking());

View File

@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
{
dz = m._zDestination - zPrev; // climbing
}
else
{
zPrev = geoHeight;
}
}
else
{

View File

@ -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
npc.setRandomWalking(getRandomWalking());

View File

@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
{
dz = m._zDestination - zPrev; // climbing
}
else
{
zPrev = geoHeight;
}
}
else
{