Teratos's Note: Copy&Pasted changelog to end of file.


// #autoload
// #name = jsutWaypoints
// #version = 0.0.2
// #author = [PEN]jsut
// #warrior =  jsut
// #email = jsut@kabob.ca
// #description = a waypointing script that lets create your own waypoints and load and save them
// #status = very beta
// #readme = jsut/waypoints/readme.txt


jsutWaypoints

SYNOPSIS

This script allows a person to create their own customized waypoints while
hosting a game, and save them to disk for later retrieval.

INSTALL

drop the jsutwaypoints.vl2 file in your gamedata/base directory, you can 
extract the pjwaypoints file and use the waypoints that PJ made to start
yourself off, you'll have to customize them heavily though for them to really 
be of any use.

INSTRUCTIONS

- Creating waypoints (only works if hosting)

Bind a key to the jsut Create Waypoint thinger that is added into the 
keybinds.  Host a game.  go stand in a position where you would like to have
a waypoint.  Hit the key you binded to jsut Create Waypoint.  You should 
now have a waypoint that has a number for a name.

- Renaming waypoints (only works if hosting)

The number isn't exactly that meaningful, so to rename the number to something
more useful, hit your global chat button, and in the window type

!rename <NUMBER> <LABEL>

Where <NUMBER> is the current label of the waypoing, and <LABEL> is what you 
want to change the label to.  This function tells you what to use as the <NUMBER> 
if you had a typo or something later, and you want to change it again.
Alternatively, you can edit the text files that this script creates when you save
waypoints to fix the names

- Saving your waypoints (only works if hosting)

To save all the waypoints that you have created with the keybind (note: waypoints
created using the CC won't be saved correctly), type

!save <FILENAME>

in the global or team chat window.  This will write out your waypoints to a file
at jsut/waypoint/<GAMETYPE>/<MAPNAME>/<TEAMNUMBER>/<FILENAME>.wp
This file is plain text and can be edited by the user.

- Loading waypoints. (works all the time)

To load a set of waypoints for a map, just type

!load <FILENAME>

if you previously saved your o waypoints using "!save o", you can load that same file
by typing "!load o"

!clear

clears all waypoints

WP FILE LAYOUT

pretty simple, basically it's this:

postition^label

you can also comment out lines by prefixing them with a '#' , like

#this is a comment

LIMITATIONS

I can't figure out how to extract a position from a waypoint created using the CC, or
from any normally created waypoint for that matter.   So you have to create waypoints
using the keybind.

You can only have 16 waypoints.  This is in the t2 code in the executable.  Nothing to 
be done about it.

BUGS

creating waypoints in observer mode, or before you spawn are untested.  I have no idea 
what will happen if you try doing weird shit, so don't blame me if it screws up.  you can
tell me about weird stuff that happens and i'll do my best to fix it though.

email jsut@kabob.ca


//**************************************************************************
//**************************************************************************


v0.0.2
added !clear
fixed objectiveHUD bugs.  

v0.0.1
original release