Difference between revisions of "Map Waypoints"

From Soldat Community Wiki
Jump to: navigation, search
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Basic Information about waypoints==
+
Basic Information about WayPoints.
  
===What Are Waypoints?===
+
=What are WayPoints?=
----
 
A waypoint is a point on a map that contains instructions on moving about the map for bots who make contact with it, provided that they are not worrying about something else nearby. They are invisible and have no effect on human players.
 
  
When a bot player is created at a spawn site, it is programmed to act in a defensive manner. If there are no pressing matters for the bot to deal with, it will not make any actions unless there is a waypoint to guide it. Waypoints ensure that bots can interact with and make their way around a level; the intent of this is to make the map playable for a single human player (or more, or less) with bots. Waypoints are absolutely essential for infiltration and capture the flag maps.  
+
WayPoints are spots on maps that contains instructions for [[Bots]] on how to move in the map, it translates in-game for the paths bots "choose" to take. Each map has it's own WayPoints.
  
 +
When a bot spawns, it is programmed to be defensive. If there's no ongoing attack, the bot will keep going at the designated map WayPoints unless there aren't any on the map's initial design.
  
===How Waypoints Work?===
+
WayPoints ensure that bots can interact with other players or other bots and progress through the map in an effective fashion.
----
 
When a bot is following a waypoint path and makes contact with a waypoint (paths will be touched on shortly), it will follow the instructions that are included in the waypoint; by instructions we mean one or a combination of the following:
 
  
*Move left
 
*Move right
 
*Jump (up)
 
*Crouch (down)
 
*Use jetpack
 
  
also:
+
=How WayPoints Work?=
 +
'''Bots are programmed through the following instructions (single or combinations):'''
  
*Wait x seconds before following instructions
+
* Move Left (Default Key: '''A''')
*stop and camp
+
* Move Right [Default Key: '''D''')
 +
* Jump (Default Key: '''W''')
 +
* Crouch (Default Key: '''S''')
 +
* Use Jetpack (Default Key: '''RMB''')
 +
* Wait X seconds before following further instructions
 +
* Stop and camp
  
  note: obviously some combinations of these are impossible and will cause the bot to malfunction.
+
  '''Note:''' Some of these combinations are impossible and will cause a bot to malfunction.
  
;Instructions
+
==Instructions==
The instructions are read as soon as the bot makes contact with the waypoint. At this point, any instructions the bot was following from a previous waypoint are terminated and it henceforth begins to follow the instructions read from the current waypoint.
+
The instructions are read as soon as the bot makes contact with the WayPoint. At that point, any instruction the bot was following from a previous WayPoint are terminated and it henceforth begins to follow the instructions read from the current one.
  
The bot will follow the instructions until it makes contact with another waypoint in the current path, encounters an enemy player, encounters a team mate with the enemy flag or objective or discovers that its corresponding team's flag is nearby and not in the base.
 
  
In the case that the bot meets an enemy player, it will ignore any instructions it was following until the enemy is no longer in the bots field of view. Obviously, this problem can be solved by killing the enemy!
+
The bot will follow the instructions until it makes contact with another WayPoint in the current path or encounters an enemy player / encounters a team-mate with the enemy flag or objective / discovers that it's corresponding team's flag was taken and not in the base.
  
In the case that the bot encounters a team mate with the enemy flag or objective, it will once again ignore any instructions and instead revert to following its team mate until the flag or objective has been succesfully captured or is no longer in the bot's field of view.
+
*In the instance when a bot meets an enemy player, it will ignore any other given instructions it was following until the enemy is no longer in it's field of view.
 +
*In the instance when a bot encounters a team mate with the enemy flag or objective, it will once again ignore any other given instructions and instead revert to following it's team mate until the flag or objective has been successfully captured or has become no longer in it's field of view.
 +
*In the instance when a bot encounters corresponding team's flag taken, it will once again ignore any other given instructions and instead make it's way to the flag until the flag has been returned to base or has become no longer in it's field of view.
  
If the bot encounters its corresponding team's flag and it is not in the base, it will ignore its instructions and instead make its way to the flag until the flag has been returned to base or the flag is no longer in the bot's field of view.
+
When these conditions are met, it will recall the instructions it was following from the last WayPoint.
  
When these conditions are met, it will recall the instructions it was following from the last waypoint.
 
  
;Paths
+
==Paths==
Paths organize waypoints into groups which allow the creation of one or two paths for bots to follow on the map. Paths are created by linking waypoints together. For example, if a bot was following instructions from path 1 and made contact with a waypoint from path 2, it would ignore it. Bots will only follow a waypoint's instructions if it is in the same path as the last waypoint. It is possible for waypoints to link to more than one other waypoint and form seperate "branches" of the same path. This is a powerful waypoint fuction and allows bots to randomly decide on the next course of action.
+
Paths (or routes) orgnaize WayPoints into groups whicch allow creation of 1 or 2 paths for bots to follow on a map. Paths are created by linking WayPoints together. For instance, if a bot follows instructions from Path #1 and makes contact with a WayPoint from Path #2 it would ignore it.  
  
In a capture the flag, each team should have a path originating from their spawn point. At a minimum, each path must have atleast one branch the leads to the enemy team's flag. In capture the flag games, path 1 corresponds to the red team and should lead to the blue flag, on the flip side path 2 corresponds to the blue team and should lead to the red flag.
 
  
;Infiltration Game Mode
+
Bots will only follow a WayPoint's instructions if it is in the same path as the last WayPoint. It is possible for WayPoints to link to more than one other WayPoint and form separate "branches" of the same path. This is a powerful tool of the WayPoint function and allows bots to randomly decide on the next course of action.
In infiltration games, path 1 corresponds to the red team and should lead to the objective, where as path 2 corresponds to the blue team and should lead to, well, some sort of defensive position around the objective as well as the red team's base. Blue team's defensive "positions" are best described as waypoints ordering the "stop and camp" instruction. If the objective is taken from the blue base, the blue team bot will stop camping and follow the waypoint paths to the red base provided that they are there.
 
  
  
===Quick FAQ===
+
==WayPoints in CTF Gamemode==
----
+
In the [[Capture the Flag]] game-mode, each team should have a path originating from their spawn. Each path must have at least 1 branch that leads to the enemy team's flag.  
;Q ''I've waypointed my map but the bots get stuck a lot!''
 
:This might not be a waypoint problem at all. Make sure your polygons are smooth first. If you think your polygons aren't causing any problems, then tweak the positions of your waypoints a bit. Go through the map yourself and get a feel for how you move about it, then base your waypoints on that.
 
  
;Q ''I've waypointed my map but the bots don't move!''
+
Also, Path #1 corresponds to the <span style="color: red">Alpha Team</span> and should lead to the blue flag, and on the flip-side, Path #2 corresponds to the <span style="color: blue">Bravo Team</span> and should lead to the red flag.
:Remember that a bot needs to come into contact with a waypoint from the start, so if the bot spawns in a place where it doesn't touch a waypoint, it won't start moving at all!
 
  
;Q ''The bots run around in loops!''
 
:It's pretty hard to make this happen! Just make sure you haven't linked waypoints together in a messy pattern or made two waypoints that say "Move right" and then "Move left"!
 
  
===Tutorials for Waypoints===
+
==WayPoints in Infiltration Gamemode==
----
+
In the [[Infiltration]] game-mode, Path #1 corresponds to the <span style="color: red">Alpha Team</span> and should lead to the objective, where as path 2 corresponds to <span style="color: blue">Bravo Team</span> and should lead to, some sort of defensive position around the objective as well as the <span style="color: red">Alpha Team's</span> base.
  
(work in progress)
+
<span style="color: blue">Bravo Team</span>'s defensive "positions" are best described as WayPoints ordering the bots to "stop and camp". If the objective is taken from the blue base, the <span style="color: blue">Bravo Team</span> bost will stop camping and follow the WayPoint paths to the red base provided that they are there.
:link one
 
:link two
 
  
----
+
 
 +
=FAQ=
 +
*'''Q:''' '''I've WayPointed my map but the bots get stuck a lot, what can I do?'''
 +
*'''A:''' This might not be a WayPoint problem at all. Make sure your polygons are smooth first. If you think your polygons aren't causing any problems, then tweak the positions of your WayPoints a bit. Go through the map yourself and get a feel for how you move about it, then base your WayPoints on that.
 +
 
 +
 
 +
*'''Q:''' '''I've WayPointed my map but the bots don't move ata all, what can I do?'''
 +
*'''A:''' Remember that a bot needs to come into contact with a WayPoint from the start, so if the bot spawns in a place where it doesn't touch a WayPoint, it won't start moving at all!
 +
 
 +
 
 +
*'''Q:''' '''The bots run around maps in loops, what can I do?'''
 +
*'''A:''' It's pretty hard to make this happen! Just make sure you haven't linked WayPoints together in a messy pattern or made two WayPoints that say "Move right" and then "Move left"!

Latest revision as of 00:23, 27 April 2018

Basic Information about WayPoints.

What are WayPoints?

WayPoints are spots on maps that contains instructions for Bots on how to move in the map, it translates in-game for the paths bots "choose" to take. Each map has it's own WayPoints.

When a bot spawns, it is programmed to be defensive. If there's no ongoing attack, the bot will keep going at the designated map WayPoints unless there aren't any on the map's initial design.

WayPoints ensure that bots can interact with other players or other bots and progress through the map in an effective fashion.


How WayPoints Work?

Bots are programmed through the following instructions (single or combinations):

  • Move Left (Default Key: A)
  • Move Right [Default Key: D)
  • Jump (Default Key: W)
  • Crouch (Default Key: S)
  • Use Jetpack (Default Key: RMB)
  • Wait X seconds before following further instructions
  • Stop and camp
Note: Some of these combinations are impossible and will cause a bot to malfunction.

Instructions

The instructions are read as soon as the bot makes contact with the WayPoint. At that point, any instruction the bot was following from a previous WayPoint are terminated and it henceforth begins to follow the instructions read from the current one.


The bot will follow the instructions until it makes contact with another WayPoint in the current path or encounters an enemy player / encounters a team-mate with the enemy flag or objective / discovers that it's corresponding team's flag was taken and not in the base.

  • In the instance when a bot meets an enemy player, it will ignore any other given instructions it was following until the enemy is no longer in it's field of view.
  • In the instance when a bot encounters a team mate with the enemy flag or objective, it will once again ignore any other given instructions and instead revert to following it's team mate until the flag or objective has been successfully captured or has become no longer in it's field of view.
  • In the instance when a bot encounters corresponding team's flag taken, it will once again ignore any other given instructions and instead make it's way to the flag until the flag has been returned to base or has become no longer in it's field of view.
When these conditions are met, it will recall the instructions it was following from the last WayPoint.


Paths

Paths (or routes) orgnaize WayPoints into groups whicch allow creation of 1 or 2 paths for bots to follow on a map. Paths are created by linking WayPoints together. For instance, if a bot follows instructions from Path #1 and makes contact with a WayPoint from Path #2 it would ignore it.


Bots will only follow a WayPoint's instructions if it is in the same path as the last WayPoint. It is possible for WayPoints to link to more than one other WayPoint and form separate "branches" of the same path. This is a powerful tool of the WayPoint function and allows bots to randomly decide on the next course of action.


WayPoints in CTF Gamemode

In the Capture the Flag game-mode, each team should have a path originating from their spawn. Each path must have at least 1 branch that leads to the enemy team's flag.

Also, Path #1 corresponds to the Alpha Team and should lead to the blue flag, and on the flip-side, Path #2 corresponds to the Bravo Team and should lead to the red flag.


WayPoints in Infiltration Gamemode

In the Infiltration game-mode, Path #1 corresponds to the Alpha Team and should lead to the objective, where as path 2 corresponds to Bravo Team and should lead to, some sort of defensive position around the objective as well as the Alpha Team's base.

Bravo Team's defensive "positions" are best described as WayPoints ordering the bots to "stop and camp". If the objective is taken from the blue base, the Bravo Team bost will stop camping and follow the WayPoint paths to the red base provided that they are there.


FAQ

  • Q: I've WayPointed my map but the bots get stuck a lot, what can I do?
  • A: This might not be a WayPoint problem at all. Make sure your polygons are smooth first. If you think your polygons aren't causing any problems, then tweak the positions of your WayPoints a bit. Go through the map yourself and get a feel for how you move about it, then base your WayPoints on that.


  • Q: I've WayPointed my map but the bots don't move ata all, what can I do?
  • A: Remember that a bot needs to come into contact with a WayPoint from the start, so if the bot spawns in a place where it doesn't touch a WayPoint, it won't start moving at all!


  • Q: The bots run around maps in loops, what can I do?
  • A: It's pretty hard to make this happen! Just make sure you haven't linked WayPoints together in a messy pattern or made two WayPoints that say "Move right" and then "Move left"!