Bots and Simulations > DNA - General

No need for .shootval to have powerful shots

(1/1)

spike43884:
Remove .shootval from standard feeding type shots (keep it only for poison, venom and viruses)
Replace the standard feeding gene's shooting with
-1 .shoot store
-6 .shoot store


Or even just replace -1 .shoot store with -6 .shoot store

Shadowgod2:
first:

-1 .shoot store
-6 .shoot store

is a waist of dna length and storing nrg.
this code will give you both with just 1 added dna length no waist:

1 rnd 5 mult 6 sub .shoot store

second .shootval can be very useful even with just regular shots when used well such as shell:

cond
*.eye5 50 >
*.refeye *.myeye !=
start
.shell .memloc store
-6 .shoot store
*.memval *.nrg 2 div 100 sub 0 floor ceil .shootval store
stop

sence shell blocks body shots you have to break through it using .shootval. sence most bots don't make much at a time this should remain fairly small but not overpowering for you as to kill your self trying to do so.

3rd viruses don't use .shootval. just increasing the number in .vshoot does the trick.

sorry but i just had to get that out there. no hard feelings

spike43884:

--- Quote from: Shadowgod2 on February 19, 2015, 12:35:05 AM ---first:

-1 .shoot store
-6 .shoot store

is a waist of dna length and storing nrg.
this code will give you both with just 1 added dna length no waist:

1 rnd 5 mult 6 sub .shoot store

second .shootval can be very useful even with just regular shots when used well such as shell:

cond
*.eye5 50 >
*.refeye *.myeye !=
start
.shell .memloc store
-6 .shoot store
*.memval *.nrg 2 div 100 sub 0 floor ceil .shootval store
stop

sence shell blocks body shots you have to break through it using .shootval. sence most bots don't make much at a time this should remain fairly small but not overpowering for you as to kill your self trying to do so.

3rd viruses don't use .shootval. just increasing the number in .vshoot does the trick.

sorry but i just had to get that out there. no hard feelings

--- End quote ---
I know. But with viruses, they can use .shootval to change range can't they?

Anyway, nice bit of code there. And using the -1 and -6 flavours breaks through shell since it only blocks -6, letting the -1 still get through, and -6 is just generally stronger

Shadowgod2:
no viruses increase range by increasing .vshoot. i've tried using .shootval and didn't work.

spike43884:

--- Quote from: Shadowgod2 on February 19, 2015, 09:58:37 AM ---no viruses increase range by increasing .vshoot. i've tried using .shootval and didn't work.

--- End quote ---
Strange, I thought .vshoot changed the number of viruses shot

Navigation

[0] Message Index

Go to full version