Skip to content

Pathfinding for Rooftops #20

@ArchDome

Description

@ArchDome

I'm trying to make a map that will have NPCs move around on rooftops, but I'm running into some issues. In this example, I placed a pedestrian pathpoint to start on the roof and then another point at the same height on the other end of the roof. However he'll appear for a moment and then teleport down to a Y value that's the same as the ground and continue moving, passing through walls and standing on ground that isn't there.

Pathfinding issues (3)

For C1_1.zip Inside ZRoot -> ZGROUP::PathFinder ->ZPathFinder2 I can find some references to Pathinfo data and some additional settings. Maybe the solution to this problem is somewhere here. Is it possible to regenerate the Global Path data to include rooftops as playable spaces?

I've also noticed some interesting NPC behavior when there's a drop in the Y-axis. For instance, I removed the NoWalk geometry around the elevated platform. I wanted to make it so that when the guards got shot they would fall off the platform. However, with NoWalk removed, the guards can just walk straight off, without even having some sort of falling animation.

Pathfinding Large Y Drop (1)

I found a workaround where I can position the NoWalk walls just high enough so the NPCs can't step over, but still low enough for their ragdolls to fall off. It's not the best solution because 47 can't drag the body off the ledge.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    pathfindingVisualization and editing of pathfinding graphs

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions