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 » Sun Sep 13, 2009 4:23 am

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: 2841
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass » Sun Sep 13, 2009 10:44 am

I suspect more, involving other enemies will appear soon.

User avatar
Fleexy
Site Admin
Posts: 472
Joined: Fri Dec 12, 2008 1:33 am
Location: Blogham Tower
Contact:

Post by Fleexy » Thu Oct 29, 2009 12:52 am

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: 2841
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass » Sat Oct 31, 2009 8:44 pm

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 » Sat Nov 07, 2009 11:49 am

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: 2841
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass » Mon Nov 09, 2009 10:25 am

*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 » Tue Dec 22, 2009 4:23 am

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 » Tue Dec 22, 2009 5:14 am

Um no. It would be near impossible to rewrite that much of Keen in assembly.

levellass
Posts: 2841
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass » Tue Dec 22, 2009 5:17 am

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

Post Reply