Author Topic: gatling gun  (Read 3218 times)

Offline d-EVO

  • Bot Destroyer
  • ***
  • Posts: 125
    • View Profile
gatling gun
« 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.

Code: [Select]
'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
« Last Edit: December 02, 2008, 04:37:27 PM by d-EVO »
1:      2 is true
2:      1 is false

Offline peterb

  • Bot Destroyer
  • ***
  • Posts: 148
    • View Profile
gatling gun
« Reply #1 on: December 02, 2008, 04:54:58 PM »
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.

Offline d-EVO

  • Bot Destroyer
  • ***
  • Posts: 125
    • View Profile
gatling gun
« Reply #2 on: December 02, 2008, 05:44:54 PM »
Quote from: peterb
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
« Last Edit: December 02, 2008, 05:45:48 PM by d-EVO »
1:      2 is true
2:      1 is false

Offline Ta-183

  • Bot Destroyer
  • ***
  • Posts: 105
    • View Profile
gatling gun
« Reply #3 on: December 21, 2008, 08:17:45 PM »
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.

Offline Endy

  • Bot Overlord
  • ****
  • Posts: 852
    • View Profile
gatling gun
« Reply #4 on: December 22, 2008, 03:50:34 PM »
Neat bot, never would have thought to use eye width that way.