Darwinbots Forum
Bots and Simulations => Bestiary => Interesting behaviour bots => Topic started by: d-EVO on December 02, 2008, 04:30:51 PM
-
This bot has an uber long rang. and is super accurate!
no shootval was used (except for waste expulsion)
how far it can shoot is not limited by the shot range, but by the longest possable eye distance that can be achieved !
Think it will be interesting to see how it evolves.
The timing was a mission to get right.
'gatling gun
def cock 50
cond
*.robage 0 =
start
-34 .eye5width store
stop
cond
*.eye5 0 =
*.refeye *.myeye = or
start
10 .aimdx store
stop
cond
*.eye5 0 >
*.refeye *.myeye !=
start
*.refxpos *.refypos angle .setaim store
*.cock 1 = *.velup 0 <
0 .cock store
1 .fixpos store
dropbool
*.cock 1 = *.velup 0 = and
0 .fixpos store
*.maxvel .dn store
dropbool
*.velup 0 >
*.cock inc
1 .fixpos store
dropbool
*.velup 0 = *.cock 0 = and
0 .fixpos store
*.maxvel .up store
*.nrg 20000 >
40 .repro store
not and
-1 .shoot store
1 .cock store
dropbool
dropbool
stop
cond
*.body 1000 <
start
100 .strbody store
stop
cond
*.waste 40 >
start
.backshot inc
-4 .shoot store
*.waste .shootval store
stop
end
-
I wanted to put something similair in the bot w6.txt
But what I wondered was, if you change the distance of a shot, what is the effect of the shot?
I mean does it require more nrg to shoot ?
Will shots become less powerfull ?
There should be some restriction on it, but I had not figured out what it might be.
Otherwise everyone would increase his shooting range I asume.
-
I wanted to put something similair in the bot w6.txt
But what I wondered was, if you change the distance of a shot, what is the effect of the shot?
I mean does it require more nrg to shoot ?
Will shots become less powerfull ?
There should be some restriction on it, but I had not figured out what it might be.
Otherwise everyone would increase his shooting range I asume.
if you store negative values in .shootval, your shots go furthere and more energy is used. strength remains the same. bigger the negative value, more distance, more cost
if you store positive values in .shootval, yoer shots are stronger and mor energy is used. distance remains the same. bigger value, more strength, more cost
this bot does not use shootval. so aditional costs are not needed ( othere then movement, which it uses to get range).
.shootval is reset each cycle so you need to have it perminantly updated each cycle.
.shootval allso specifies the amount of waste that you want to remove from the bot
-
What version of DB are you using? It doesn't seem to have much range beyond any other bot when I run it. I'll try using it running 2.43M in a minute though.
Also, it seems to suffer from what pilots call "target fixation." When there is something in it's sights, (and frequently out of range,) anything that approaches it must pass through the long-range eye to get it's attention, making it an easy target for even basic bots. You may want to correct that.
-
Neat bot, never would have thought to use eye width that way.