Took another look during lunch break... I don't know of any sysvars named refaimsx or myaimsx, there is a link to a page with all the sysvars on the main Wiki page.
Also what you're trying to do with the eyes, you'll always have eye5 in focus with that code, you should take a look at Excalibur. It's eye genes are realy simple but also very good.
You can always expand their functionality gradualy to get a feel for it, Excalibur makes a spin when looking at it's own, instead you could either keep tooking at nearest enemy in one direction (Maybe have eye9 in focus if you're not fighting and only turn left towards nearest eye that isn't empty). Or you can let your bots send enemy coordinates through out values, this way if you're looking at a friendly theres a chance he'll point you towards nearest enemy... (Locust does something similar, although it doesn't use excaliburs eyes, but the behavior is similar and it would provide an example of the use of in/out values.)
Generaly Excalibur is a great example for a lot of things, realy clever setup, realy simple, flexible, nice tweek values. There is some redundant code though... I'm thinking maybe I should post a cleaned up version of Excalibur (Had to make on when I tryed to SS'ify it). Most noticable is that excalibur has a -1 shot gene, but it's never used. (The eyes should be clean though).
Hmmm I'm going to try that idea with the eyes myself, try to put 'em in the next LoveBot, both the in/out thing an the idea for the eyes, so instead of spinning a fixed angle per cycle I'd turn to the next visible thing in the eyes, maybe even mess with the eyedirs to cover an even broader angle. Could possible be able to cover 360 degrees in 3-4 cycles if nothing is spotted, and take the largest step possible whithout running a chance of missing something... I like the whole spin thing, been using it in all my new bots since I SS'ified Excalibur, I'm hoping this idea will make the spin even more effective.
Bit expensive to mess with the eyes all the time though, probably going to go for small gaps in between the eyes to be able to use the same setup all the time, and not just when looking for food.
Then maybe once totalmyspecies is getting high it could switch to eyes that look more like the ones on Gazer or Pacifist.... just with a narrow eye5.
Only problem is, I'm not sure if this will actualy be an advantage for a rape bot, all these ideas would probably be better on Locust or something... but I want to work on the Rape bot