Removed buggy geodata Z corrections.
This commit is contained in:
parent
dad8a4b8c9
commit
952a9c2e53
@ -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());
|
||||
|
||||
|
@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
{
|
||||
dz = m._zDestination - zPrev; // climbing
|
||||
}
|
||||
else
|
||||
{
|
||||
zPrev = geoHeight;
|
||||
}
|
||||
}
|
||||
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
|
||||
npc.setRandomWalking(getRandomWalking());
|
||||
|
||||
|
@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
{
|
||||
dz = m._zDestination - zPrev; // climbing
|
||||
}
|
||||
else
|
||||
{
|
||||
zPrev = geoHeight;
|
||||
}
|
||||
}
|
||||
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
|
||||
npc.setRandomWalking(getRandomWalking());
|
||||
|
||||
|
@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
{
|
||||
dz = m._zDestination - zPrev; // climbing
|
||||
}
|
||||
else
|
||||
{
|
||||
zPrev = geoHeight;
|
||||
}
|
||||
}
|
||||
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
|
||||
npc.setRandomWalking(getRandomWalking());
|
||||
|
||||
|
@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
{
|
||||
dz = m._zDestination - zPrev; // climbing
|
||||
}
|
||||
else
|
||||
{
|
||||
zPrev = geoHeight;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -6016,10 +6016,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder
|
||||
{
|
||||
dz = m._zDestination - zPrev; // climbing
|
||||
}
|
||||
else
|
||||
{
|
||||
zPrev = geoHeight;
|
||||
}
|
||||
}
|
||||
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.setIsDead(false);
|
||||
|
@ -3958,10 +3958,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
{
|
||||
dz = m._zDestination - zPrev; // climbing
|
||||
}
|
||||
else
|
||||
{
|
||||
zPrev = geoHeight;
|
||||
}
|
||||
}
|
||||
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
|
||||
npc.setRandomWalking(getRandomWalking());
|
||||
|
||||
|
@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
{
|
||||
dz = m._zDestination - zPrev; // climbing
|
||||
}
|
||||
else
|
||||
{
|
||||
zPrev = geoHeight;
|
||||
}
|
||||
}
|
||||
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
|
||||
npc.setRandomWalking(getRandomWalking());
|
||||
|
||||
|
@ -2937,10 +2937,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
{
|
||||
dz = m._zDestination - zPrev; // climbing
|
||||
}
|
||||
else
|
||||
{
|
||||
zPrev = geoHeight;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user