Something such as
cond
*.eye5 20 >
*.vtimer 1 =
start
40 .vshoot store
stop
would fire your virus when it sees something, the number stored in .vshoot determines how far the virus travels, the higher the number the greater distance but the more energy used you would also want to add some cospec recognition so you dont shoot at your own bots.