After playing a fair amount of insurgency lately, I've finally got annoyed enough by having 5/7 caches spawn in the same 1/4 of the map or even next to each other on multiple occasions, so I decided to throw together a cache spawn selector with similar logic to the FOs (cannot be within 200m of any currently alive ones). Basically what I'd like to solve is this:

But really, I'd prefer the caches to jump as much around the map as possible, so that an unknown doesn't spawn in the vicinity of a known that just went down... I mean the insurgents might not be that intelligent but surely they're not that stupid
I have no modding experience but code is kinda my thing, and I've picked up python to make this attempt. I had a mock set of cache locations, but now I'm at a point that I think the cache locations are well spread, and to make it feasible I want to incorporate a way for the caches.py to use the gameplayobjects.con to get all the cache locations. Thankfully they seemed to be all prefaced (I checked 3 maps) with Object.create a_ but I'm a little confused by 1 thing...
Why on earth are there negative values in there? If the coord system is the logical way that I think it is, top left (NW) of the map should be 0, 0 then x & y iterate up to 1024 & 1024 or 2048 & 2048 etc.
So I got it all parsed into a list ready for cache choosing and it goes wtf is this negatives bs?
It is ->, height, \/ from I can tell for the coords (x, y, z)
Now logically that could just be editor/programmer shorthand to use the (-)bounding to represent:['704.122', '22.776', '-152.693']
['767.655', '8.117', '-714.462']
['846.117', '6.787', '-677.002']
['786.496', '6.770', '-647.495']
['388.672', '3.941', '816.237']
['-558.081', '8.068', '49.169']
['201.523', '0.653', '405.865']
['207.136', '1.121', '387.655']
['237.628', '3.331', '356.822']
['236.934', '3.322', '358.723']
['381.210', '7.766', '824.333']
['606.689', '7.614', '695.414']
['629.685', '7.648', '698.770']
['594.400', '7.627', '699.727']
['631.711', '22.858', '-163.310']
['-485.809', '71.573', '-212.195']
['-469.699', '64.504', '-225.845']
['554.301', '64.504', '798.155']
as
['-469.699', '64.504', '-225.845']
Is this the case or does it work in a different way...? What is the deal with the negatives in the coordinates?
Edit: I think I've figured it out... 2 hours sleep is what I blame! I assume (0,0,0) starts in the middle of the map and goes -1024 to 1024 for 4km^2 maps. Is that right?




