Pathing refers to the path that a character takes towards a goal. An effective spy will choose a path that will mimic the path that would be taken were the character controlled by an AI. "Bad pathing" refers to a path that betrays the spy's identity because it does not emulate the path an AI would take.

Algorithm Edit

The basic algorithm that controls AI movement works as follows:

  1. Choose a goal pad. There are several factors which dictate what pad an AI will select:
    • Pads which contain too many people are ineligible. (The definition of "too many" depends on the pad's size.)
    • Bookcase and statue pads are ineligible when the AI holds a drink that has more than one sip left.
    • (Suspected) double agents will not occupy a conversation circle which contains another (suspected) double agent.
    • Outdoor pads are not preferred (but not completely forbidden) for AIs that are holding a drink on the Gallery map.
  2. Determine a path to the pad. In computing the path, the following ordered priorities are considered:
    1. Don't pass through map geometry or other characters
    2. Get to the goal pad
    3. Avoid violating another character's rudeness zone
    4. Prefer shorter paths
  3. Begin walking along the path, continuously re-evaluating to adapt to the movement of other partygoers. If several attempts to move around an obstruction fail, go back to step 1.
  4. Upon nearing the target pad, check again to make sure the pad is open. If it's full, go back to step 1.
  5. Select a target point within the pad and begin moving towards it.
  6. At any point, if another character occupies the target spot, stop momentarily, then go back to step 1.

Collisions Edit

NPCs will sometimes find their path blocked by another character that has suddenly moved in their way. When this happens, the NPC will immediately try to move around them. Sometimes, they both choose to go the same way to get past the other several times, causing them to "bounce" back and forth, until they both conclude that they can't get to their goal and decide to go elsewhere.

Briefcase Edit

Main article: Ambassador

The ambassador's briefcase complicates things when it comes to pathing. An NPC that has decided to go pick up the briefcase will suddenly stop and go do something else if someone else beats them to it, and will stop and put the briefcase down if something interferes with their attempt to return it. This causes pathing behavior which is unusual in other circumstances.

Second Book of SpyParty Strategy Edit

The Second Book of SpyParty says:

One of the greatest terminology mysteries for newer players who listen in on experienced players talking about the game is the word "pathing." It seems to be very important. Sometimes the sniper will shoot on the basis of this nebulous "pathing," and be correct! Whatever could it mean?

"Pathing" refers, roughly, to "walking around," whether like an AI or like a spy. Since the walking animation is the same whether you're a spy or an AI, walking like an AI depends entirely on what actual path you choose to walk, thus, "pathing." [1] There's not much too deep philosophy to pathing; for starters you should just know what the AI partygoers do, and imitate it. Here is a (non-comprehensive) list of AI-like pathing:

  1. AIs generally try to take the shortest available path to their destination, even if this means bumping against other partygoers or static objects like the central statue in the Courtyard maps. Unnecessarily wide and inefficient paths are suspicious.
  2. AIs tend not to enter conversation circles at a very crowded point if a less-occupied point is available when they start their path. People that stand unnecessarily close to another person in the convo are suspicious.[2] Further, it is rare for AIs to stand at a point in the conversation circle that is obviously closer to or further from the center[3] than the other people in the conversation. Try to stand in such a way that you form an actual circle with the other partygoers.
  3. AIs will sometimes make short corrections to avoid colliding with other AIs, but sometimes they will collide.
  4. When AIs collide, they will adjust their path slightly to the left or right and attempt to walk around each other. Sometimes their corrections cancel each other out and you get a repeating pinball effect; this can be imitated by a good spy and it is a very convincing way to look like an AI when done well![4]
  5. Sometimes when AIs collide, one or both of them will give up on what they were trying to do, make a roughly 180 degree turn, and go somewhere else.
  6. AIs never, ever stop dead outside of an action pad or conversation circle, not even for a fraction of a second. The spy can, but should not. Besides not doing so intentionally, you should also be careful not to do so unintentionally - when colliding with other partygoers or static objects, it is possible to stop dead very briefly if you don't "bounce" well, per tips 4 and 5 above.
  7. AIs never make microcorrections; that is, they never make short stuttered bursts to adjust themselves onto an action pad, or to adjust their position within an action pad. Making microcorrections is one of the most common and devastating errors for newer spies. Remember - the spy doesn't have to be right in the middle of an action pad; AIs land on pads in offset locations all the time.
  8. AIs rarely spin more than 180 degrees; someone doing so is more likely to be the spy.[5]
  9. An AI has an equal chance to choose a destination that is far away versus one that is close by. Human beings are often biased towards short paths because they are easier, more noticeable, less stressful, and more predictable. Someone who too often walks short distances may be a spy. Sometimes AIs will take very short paths, paths that would seem silly to an average human. A common example is that they will be at a window, then walk perhaps one foot to the right and stop again.
  10. AIs can and will walk in places that would be unlikely in a real world party: between someone at the bookshelf and the bookshelf, in front of someone at a window, and so forth. On that note, they will also confidently walk clean through Toby the Waiter's tray, which does not clip with the character models.
  11. All of the above are not applicable or at least unpredictably applicable if the partygoer is trying to pick up the ambassador's briefcase.[6]

These tips should help you figure out ways to look "AI-like" with your pathing. Remember that in addition to walking in such a way as to look like an AI, you must also walk in such a way as to avoid looking human. What we mean by this is that you must not just positively look like an AI (so that the sniper thinks you're less suspicious), you must also avoid errors that make you obviously the spy (so that the sniper thinks you're more suspicious). Part of doing this is just practice - the more practice you have, the more skilled you'll be at driving the spy. Part of it is also being attentive - even if you avoid technical errors, you might be guilty of "mission-like" pathing if you walk by the ambassador, even if you weren't thinking about bugging.

No matter how much practice and experience they have, even the most skilled spies have a chance of making small pathing errors, so part of what you must manage is your risk of committing an error. When you look at the party's terrain, one of the things you should look for is how easy it would be to move from point A to point B without committing pathing errors. If your path is heavily crowded, that makes the path more difficult. If Toby is active in the area, that makes the path more difficult. If your path takes you by a conversation circle where a person might pop out into your path unexpectedly, that makes it difficult too. Under circumstances such as these, you may wish to delay your movement, or move somewhere else. Even if you decide to make the original movement anyway, you should be prepared for the obstacles in your way. Don't just path properly - plan to path properly.

Finally - be prepared to deal with the consequences even if you make a pathing error. If you miss an action pad, the best course of action is usually to hold still for a moment, then smoothly depart for somewhere else. Twitching into your destination is generally not a good idea unless you're sure the sniper's not looking. Along the same lines, after a bad bounce or a stall while walking, recover quickly and continue walking, or else duck into a nearby action pad. In general, the goal in dealing with pathing errors is to minimize the amount of time your character is moving in a non-AI manner, and also to minimize the obviousness of such movement. You can do that best by recovering quickly into a safe path or destination, without overcorrecting or panicking.

  1. This is probably also partially derived from "pathfinding," a task AIs in many electronic games must manage.
  2. But not necessarily guilty. The AIs do sometimes head to crowded points unnecessarily; it's just a bit less likely
  3. Sometimes "deeper and shallower" are used to describe this.
  4. Collisions with other partygoers are usually referred to as "bouncing" or "bumping."
  5. Though again, AIs do spin bizarrely on occasion.
  6. The AI for picking up the briefcase can and will lead AI characters to do very bizarre, spy-looking things, even when they are very far away from the briefcase.
Community content is available under CC-BY-SA unless otherwise noted.