Bots and Simulations > The Gene depository
Powerful half-evolved shooting gene
(1/1)
MysticalDumpling:
This evolved froma complex web of Blue On Blue evolution sims- whatever it is, it works well! I do not know how evolved it is, exactly.
start
*.eyef 0 !=
*.refxpos *.refypos angle .setaim store
*.refxpos *.refypos angle *.refxpos *.refypos dist 700 div *.maxvel mult *.refvelup add 9 floor *.maxvel mult .up store
*.veldx .sx store
-6 .shoot store
*.nrg 50 div 20 floor 1000 ceil 15 store
stop
However, you have to add a conspec line to the top.
:D
MysticalDumpling:
I found the original:
*.refxpos *.refypos angle .setaim store
*.refxpos *.refypos angle *.aim sub .aimshoot store
*.refxpos *.refypos dist 700 div *.maxvel mult *.refvel add 0 floor *.maxvel ceil .up store
*.veldx .sx store
-6 .shoot store
*.nrg 50 div 20 floor 1000 ceil .shootval store
PhiNotPi:
Okay, so I cut out all of the junk DNA. This way, we can see what the DNA is actually doing:
--- Code: ---start
*.eyef 0 !=
*.refxpos *.refypos angle .setaim store
*.refxpos *.refypos dist 700 div *.maxvel mult *.refvelup add 9 floor *.maxvel mult .up store
*.veldx .sx store
-6 .shoot store
stop
--- End code ---
So, by comparing the two versions, we can see that the .aimshoot line was rendered nonfunctional, as well as the .shootval line. Those are the major changes. A third change was *.maxvel ceil changing to *.maxvel mult in one location.
I can't tell if the *.eyef line was in the original or not, but I assume it was.
Navigation
[0] Message Index
Go to full version