Tank bots shoot at keen

Completed patches for Keen1.
Post Reply
lemm
Posts: 554
Joined: Sun Jul 05, 2009 12:32 pm

Tank bots shoot at keen

Post 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)
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

I suspect more, involving other enemies will appear soon.
User avatar
Fleexy
Site Admin
Posts: 490
Joined: Fri Dec 12, 2008 1:33 am
Location: Bloogton Tower

Post 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!!
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

By 'seek' I take it you mean 'Keen always shoots in the direction of the nearest enemy'?
lemm
Posts: 554
Joined: Sun Jul 05, 2009 12:32 pm

Post 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.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

*Smacks head*

THAT'S why my 'Gargs look for not-Keen' patches always failed Awww man!
thehackercat
Posts: 69
Joined: Sat Sep 26, 2009 10:49 pm
Location: Mississippi, USA

Post 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
Draik
Posts: 117
Joined: Sat Jul 26, 2008 8:52 am
Contact:

Post by Draik »

Um no. It would be near impossible to rewrite that much of Keen in assembly.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

The way things are going, it will *be* a totally different engine in a year or two...
Post Reply