diff --git a/raw/bw-assets/wp-editor-wps-path.png b/raw/bw-assets/wp-editor-wps-path.png new file mode 100644 index 0000000..71d0a1f Binary files /dev/null and b/raw/bw-assets/wp-editor-wps-path.png differ diff --git a/raw/bw-assets/wp-editor-wps.png b/raw/bw-assets/wp-editor-wps.png index 12a83ed..5593c0c 100644 Binary files a/raw/bw-assets/wp-editor-wps.png and b/raw/bw-assets/wp-editor-wps.png differ diff --git a/raw/bw-assets/wpedit.md b/raw/bw-assets/wpedit.md index 998c670..dba1da2 100644 --- a/raw/bw-assets/wpedit.md +++ b/raw/bw-assets/wpedit.md @@ -91,12 +91,23 @@ The editor will generate some GSC code for the waypoints.
![games_mp.log](/raw/bw-assets/wp-editor-gamesmp.png)
This is the GSC function that will generate the waypoints for the map. If you have trouble beyond this point, simply create an Issue and provide the output from here, I can do the rest from there. -You can create/replace the map's waypoints GSC file with the function in `games_mp.log`. Just copy and paste the function into the `maps\mp\bots\waypoints\.gsc` file.
+You can create/replace the map's waypoints GSC file with the function in `games_mp.log`. +Just copy and paste the function into the `scripts\mp\\.gsc` file. +If you're working with a custom map you might need to create the folder with your map's name. +Then inside that newly created folder put your waypoints GSC file. +Make sure to have it named `wps_mapname`. +Also you need to add this `main` function at the topc of your waypoints GSC file to ensure Bot Warfare will load your waypoints. Replace `Dome` with the name of the function in your file. +``` +main() +{ + level.waypoints = Dome(); +} +``` +
+ +![GSC waypoints path](/raw/bw-assets/wp-editor-wps-path.png) ![GSC waypoints](/raw/bw-assets/wp-editor-wps.png) -The waypoints are loaded in the `maps\mp\bots\_bot_utility::load_waypoints()` function. Make changes accordingly to have Bot Warfare load your waypoints.
-![GSC loading the waypoints](/raw/bw-assets/wp-editor-loadwps.png) - - -Now Bot Warfare will use your waypoints you've created! Create a pull request to have your waypoints included in the mod if you like, any help is greatly appreciated. +Now Bot Warfare will use your waypoints you've created! +Create a pull request to have your waypoints included in the mod if you like, any help is greatly appreciated.