Is there an efficient way to calculate the size of the widest point on a map in Uscript?
Perhaps this value is already available and I just don't know where to look for it.
Figured out a way to get the distance between the flagbases on most CTF maps like this:
Code: Select all
if (TeamCnt != 0) SpBaseDist = VSize(TeamBases[0] - TeamBases[1]) * 0.5;
Some CTF maps, are not mirror images of each other, and the above method has a few issues depending
upon the map layout.
If I was able to get the VSize value for the widest point on the map, it might help with that, and would also
be useful for optimizing some other bits of this project.
Only thing I can think of is a giant radius search on all actors in the map, then somehow filtering out the 2 locations that are
the farthest apart, but the thought of that code makes me feel like this:
There has to be a better way.....