mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-25 15:19:14 +00:00
Update waypoints loading instructions
Update the documentation to give up-to-date instructions on how to load waypoints. This is especially useful to prevent the game from crashing when the user has more than 30 waypoints, following issue #78
This commit is contained in:
parent
6a5af7d510
commit
38ddce8e71
BIN
raw/bw-assets/wp-editor-wps-path.png
Normal file
BIN
raw/bw-assets/wp-editor-wps-path.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 44 KiB |
@ -91,12 +91,23 @@ The editor will generate some GSC code for the waypoints.<br>
|
||||
<br>
|
||||
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\<MAPNAME>.gsc` file.<br>
|
||||
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\<MAPNAME>\<WAYPOINT>.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();
|
||||
}
|
||||
```
|
||||
<br>
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
The waypoints are loaded in the `maps\mp\bots\_bot_utility::load_waypoints()` function. Make changes accordingly to have Bot Warfare load your waypoints.<br>
|
||||

|
||||
|
||||
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user