| View previous topic :: View next topic |
| Author |
Message |
lemm
Joined: 05 Jul 2009 Posts: 532
|
Posted: Sun Sep 13, 2009 4:23 am Post subject: Tank bots shoot at keen |
|
|
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) |
|
| Back to top |
|
 |
levellass
Joined: 11 Oct 2006 Posts: 2053 Location: Ngaruawahia New Zealand
|
Posted: Sun Sep 13, 2009 10:44 am Post subject: |
|
|
| I suspect more, involving other enemies will appear soon. |
|
| Back to top |
|
 |
Fleexy

Joined: 12 Dec 2008 Posts: 281 Location: Blogham Tower
|
Posted: Thu Oct 29, 2009 12:52 am Post subject: |
|
|
| 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!! |
|
| Back to top |
|
 |
levellass
Joined: 11 Oct 2006 Posts: 2053 Location: Ngaruawahia New Zealand
|
Posted: Sat Oct 31, 2009 8:44 pm Post subject: |
|
|
| By 'seek' I take it you mean 'Keen always shoots in the direction of the nearest enemy'? |
|
| Back to top |
|
 |
lemm
Joined: 05 Jul 2009 Posts: 532
|
Posted: Sat Nov 07, 2009 11:49 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
levellass
Joined: 11 Oct 2006 Posts: 2053 Location: Ngaruawahia New Zealand
|
Posted: Mon Nov 09, 2009 10:25 am Post subject: |
|
|
*Smacks head*
THAT'S why my 'Gargs look for not-Keen' patches always failed Awww man! |
|
| Back to top |
|
 |
thehackercat
Joined: 26 Sep 2009 Posts: 69 Location: Mississippi, USA
|
Posted: Tue Dec 22, 2009 4:23 am Post subject: |
|
|
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: | 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
|
|
|
| Back to top |
|
 |
Draik
Joined: 26 Jul 2008 Posts: 118
|
Posted: Tue Dec 22, 2009 5:14 am Post subject: |
|
|
| Um no. It would be near impossible to rewrite that much of Keen in assembly. |
|
| Back to top |
|
 |
levellass
Joined: 11 Oct 2006 Posts: 2053 Location: Ngaruawahia New Zealand
|
Posted: Tue Dec 22, 2009 5:17 am Post subject: |
|
|
| The way things are going, it will *be* a totally different engine in a year or two... |
|
| Back to top |
|
 |
|