Bots and Simulations > Tips and Tricks
Distances, coordinates, units
Trafalgar:
Here's a saved sim on a size 5 map (attached to this post, it's only 75 KB or so), saved right at the beginning before any bots have done anything: http://shadowlord13.googlepages.com/aimtest.sim
P.S. Oddly, bots I add manually fly east/west away from each other, whereas ones spawned at sim start don't, they go some other direction instead. The bots there were all spawned at sim start by DarwinBots, not added by me.
The yellow AimTest bots will all split into two bots, move apart, and begin shooting at each other.
The parent bot will store:
dist(refxpos, refypos) in 998
the calculated (scaled-down) distance using the distance formula in 997
and 996 has 998's value minus 120
out3 will also be set to the value from 996.
The child bot only has one of those variables, I think.
If you're curious about the shot speed stuff:
After the first shot has hit, the child bot will also:
store the last shot's calculated speed in out4 (the calculated speed is based on what it reads from in3)
The total sum of all shot speeds for shots that hit in out5
The total number of shots that hit in out6
The lowest shot speed in out7
The highest shot speed in out8
The shooting and recording continues until the shooter runs out of energy and dies.
gymsum:
could you post your code for the bot? It could be in your programming.
Navigation
[0] Message Index
[*] Previous page
Go to full version