Log in

View Full Version : NPC spawning at ground level


Annihilator
02-10-2008, 03:28 AM
There is a bug/issue that I've noticed within the last week or two regarding NPC spawning. Some NPC's that have a spawn location other than on the ground (such as the bankers in Plane of Tranquility) will sometimes respawn standing on the ground rather than standing on the floor of the building they are in giving the appearance they are embedded in the floor. I am using the current PEQ CVS with Emu build 1090. Has anyone else noticed this?

cavedude
02-10-2008, 04:05 AM
Using BestZ will cause this, it is known. Disabling the rule will spawn them normally, but you then get hopping mobs.

Derision
02-10-2008, 04:46 AM
Yes, the problem is that the buildings the bankers are in are classed as placeable objects, rather than part of the ground mesh. The .MAP file data that BestZ uses doesn't contain information about the placeable objects.

You will find that if you try and cast a spell on something you can't see behind one of these buildings, it will work because the Line Of Sight code uses the same data.

EDIT: Setting Map:FixPathingZWhenLoading to false, and maybe also Map:FixPathingZOnSendTo and leaving the moving/waypoint BestZ options on should fix it if the mobs aren't on a grid.

The images below show the same scene first with the placeable objects, and then without.

http://www.rama.demon.co.uk/tranq1.jpg

http://www.rama.demon.co.uk/tranq2.jpg

Derision
02-10-2008, 05:09 AM
Actually it is just Map:FixPathingZOnSendTo that needs to be set to false if the bankers don't have any waypoints associated with them.

Annihilator
02-10-2008, 10:54 AM
Thanks guys. I'll change the setting of that rule (if PEQ DB has it set to true by default) and see how that works.