Workshop.codes
Create

OSTW Pathmaps Last updated November 26, 2024

Here are the OSTW pathmaps. There are some for specific maps, or for specific gamemodes I have personally made.

OSTW is made by ItsDetin in which you can use the Pathfinding module to pathfind a bot or person to a specific location using a preset pathmap. Since pathmaps are so frustrating to create, I will list some here!

You can import a pathmap into your Visual Studio Code in which you will be able to use specific commands to make a player move to the specified location.

globalvar Pathmap map = new Pathmap("path-to-file.pathmap");

Other Pathfinding Options

BAKEMAPS
Variables:

globalvar Bakemap bake;
globalvar define i = 0;

Baking Rule:
map.Bake or map.BakeCompressed, compressed is much faster

rule:"bake"
{
    bake = map.BakeCompressed('path-to-file.pathmap', onLoopStart: () =>
    {
        i++;
        if (!(i % 5))
            MinWait();
    });
}

Pathfinding Action:

map.Pathfind(Player, Destination)

OR
for baking ONLY

bake.Pathfind(Player, Destination)

For Smoother Pathfinding Outcomes Use This Rule:

rule: 'Pathfinder: skip if visible'
Event.OngoingPlayer
if (Pathmap.IsPathfinding(EventPlayer()))
if (Pathmap.CurrentNode(EventPlayer()) != -1)
if (Pathmap.CurrentPosition(EventPlayer()).Y - Pathmap.NextPosition(EventPlayer()).Y~Abs() < 1) 
if (IsInLineOfSight(
    StartPos: PositionOf() + Up() * .25,
    EndPos: Pathmap.NextPosition(EventPlayer()) + Up() * .25
))
{
    Wait(0.1);
    Pathmap.SkipNode(EventPlayer());
    Wait(0.1);
    LoopIfConditionIsTrue();
}

OSTW: https://github.com/ItsDeltin/Overwatch-Script-To-Workshop
Pathfinding Module: https://github.com/ItsDeltin/Overwatch-Script-To-Workshop/wiki/Pathfinding

Pathmaps

Malvento

malvento pathmap.pathmap

Junkenstein's Revenge

(Made Specifically for Junkenstein's Revenge)
Junkenstein's Revenge.pathmap

Storm Rising

(Made Specifically for Storm Rising)
Storm Rising.pathmap

Uprising

(Made Specifically for Uprising)
Uprising.pathmap

Chateau Guillard

Chateau Guillard.pathmap

Eichenwalde

eichenwalde.pathmap

Retribution

(Made Specifically for Retribution)
rialtopathmap.pathmap

Workshop.codes
Join the Workshop.codes Discord