Page 1 of 1

Tank bots shoot at keen

Posted: Sun Sep 13, 2009 4:23 am
by lemm
You can run, but you can't hide! Now the tank bots shoot directly at keen with every shot.

Binary Patchfiles and Patch Script
(Requires dosbox or 386 + 387 coprocessor or better)

Posted: Sun Sep 13, 2009 10:44 am
by levellass
I suspect more, involving other enemies will appear soon.

Posted: Thu Oct 29, 2009 12:52 am
by Fleexy
Wow! It has a really cool effect when combined with the 'Robot shoots icecubes' patch. Could you make a version that would make Keen's shot seek the nearest living thing (creature)? No more wasted ammo (except on the other side of a wall! I will never miss my target! Bwahahaha!!

Posted: Sat Oct 31, 2009 8:44 pm
by levellass
By 'seek' I take it you mean 'Keen always shoots in the direction of the nearest enemy'?

Posted: Sat Nov 07, 2009 11:49 am
by lemm
That would be harder.

Keen is always at the beginning of the sprites array, so you know where his location is. The nearest enemy could be anywhere in the array.

Posted: Mon Nov 09, 2009 10:25 am
by levellass
*Smacks head*

THAT'S why my 'Gargs look for not-Keen' patches always failed Awww man!

Posted: Tue Dec 22, 2009 4:23 am
by thehackercat
Sorry for the necropost..

But would it be possible to recode the sprites array? Maybe if someone worked from the dissassembly they could write a new, improved engine for Keen1 that allows sprites more parameters!

For example purposes, I will write this code in its entirety in HackerCatBASIC.

Code: Select all

CreateSprite("Garg1")
     Garg 
          coord == (34,20)

CreateSprite("Garg2")
     Garg
          coord == (27,50)

CreateSprite("Yorp1")
     Yorp
          coord == (5,20)                     

:begin
IF distance_from_Keen_Garg1 is LOWEST,
Make Keen's shot follow Garg1

ELIF distance_from_Keen_Garg2 is LOWEST,
Make Keen's shot follow Garg2

ELIF distance_from_Keen_Yorp1 is LOWEST,
Make Keen's shot follow Yorp1

ELSE goto :begin

Posted: Tue Dec 22, 2009 5:14 am
by Draik
Um no. It would be near impossible to rewrite that much of Keen in assembly.

Posted: Tue Dec 22, 2009 5:17 am
by levellass
The way things are going, it will *be* a totally different engine in a year or two...