PATCH: Keen won't 'bounce' off doors

Completed patches for Keen1.
Post Reply
User avatar
CommanderSpleen
Posts: 1017
Joined: Sun Aug 31, 2003 12:11 pm
Location: The Land of Sparkly Things
Contact:

PATCH: Keen won't 'bounce' off doors

Post by CommanderSpleen »

Damn these doors with their crazy little issues.

I'm having the same problem CheesyDave had with his Zelda mod with Keen walking through the doors if you walk at them for a few seconds from the left. From what I've observed, when Keen collides with a door he is shunted back about 16 pixels. The sprite in Perilous Pursuit has a collision distance of 20 pixels when facing right, and I suspect this is the cause of the problem.

Someone wanna trudge around and find out how to change that value?

>Commander Spleen
User avatar
grelphy
Posts: 219
Joined: Fri Sep 05, 2003 12:41 am
Location: the Armageddon Machine

Post by grelphy »

I find it interesting that doors bounce keen back as though made of rubber, rather than simply blocking him like a standard brick wall...

A patch to change doors from trampolines to blast doors would (hopefully) fix your problem, and would work well for my large, solid wall-like doors as well.
Ezjay
Posts: 158
Joined: Fri Feb 27, 2004 1:15 pm
Location: Amsterdam

Post by Ezjay »

It's like that because Keen has to actually touch the door to be able to have his keycard colide with the door. A solid wall would prevent that.
User avatar
adurdin
Site Founder
Posts: 549
Joined: Fri Aug 29, 2003 11:27 pm
Location: Edinburgh, Scotland
Contact:

Post by adurdin »

It's like that because the ID people were just lazy.

Here we go:

WARNING: This must be used in conjunction with the "Status window" patch

Code: Select all

%ext ck1
%version 1.31

# Make the door act like a wall when moving right
%patch $2F31  $E8 $9D $E1 $90 $90
# Make the door act like a wall when moving left
%patch $2FE6  $E8 $0B $E1 $90 $90

# Here's where the real work is done
%patch $10D1  $81 $3E $54 $82 $C4 $45 $75 $15
              $8B $87 $6E $05 $48 $48 $3D $04
              $00 $73 $0A $89 $C3 $D1 $E3 $83
              $BF $9E $AA $01 $C3 $83 $BF $86
              $18 $00 $C3 $81 $3E $54 $82 $C4
              $45 $75 $15 $8B $87 $6E $05 $48
              $48 $3D $04 $00 $73 $0A $89 $C3
              $D1 $E3 $83 $BF $9E $AA $01 $C3
              $83 $BF $FA $0E $00 $C3

# Stop the door bouncing
%patch $43A4  $E9 $D1 $01

%end
User avatar
CommanderSpleen
Posts: 1017
Joined: Sun Aug 31, 2003 12:11 pm
Location: The Land of Sparkly Things
Contact:

Crazy doors...

Post by CommanderSpleen »

Blast doors? You mean where you fire at them and if you have the correct keycard they open? That would be interesting, but really just as roundabout a method as the original one. Patching them to behave like a solid tile would be more ideal. It'd be a bit more complicated, though, I'm sure.
Ezjay wrote:It's like that because Keen has to actually touch the door to be able to have his keycard colide with the door. A solid wall would prevent that.
Not necessarily. If it acted like a solid door, it would just detect when Keen collides with it and block passage if the correct key hasn't been collected, or else open and allow Keen through. I'd say the way they originally work was either due to laziness or as some kind of gimmick. I don't see any other reason that they should be that way.

Edit: Woah! I was pre-empted! *chalks another point up for Andy*

>Commander Spleen
KeenRush
Patch Maker
Posts: 1988
Joined: Sun Aug 31, 2003 2:52 pm
Location: Sand Yego
Contact:

Post by KeenRush »

Very good!
User avatar
adurdin
Site Founder
Posts: 549
Joined: Fri Aug 29, 2003 11:27 pm
Location: Edinburgh, Scotland
Contact:

Re: Crazy doors...

Post by adurdin »

CommanderSpleen wrote:If it acted like a solid door, it would just detect when Keen collides with it and block passage if the correct key hasn't been collected, or else open and allow Keen through.
That's exactly what my patch does.
User avatar
levellord
Crazy pAtChEr
Posts: 1401
Joined: Thu Nov 20, 2003 11:35 pm
Location: NewZealand
Contact:

Post by levellord »

As far as I can tell, the door allows Keen to 'enter its space', then pushes him out if the correct key isn't obtained.
User avatar
CheesyDave
Posts: 19
Joined: Mon Sep 15, 2003 4:07 pm
Location: San Diego
Contact:

Post by CheesyDave »

^^ blast doors hmm? i was rather frustrated with the bouncing effect of the doors in my Keen 1 mod, and i've run into the same problem with a Keen 2 mod i might be currently working on >.>;

^^' i was originally planning on using the key doors, but was afraid of the problem, so i had just made them foregroud. if mr. durdin could change the detection from being on the keen sprite to say... the shot sprite? -^^- tha'd be real nice. blast doors would help my mod seem so much more "authentic."

thanks for this patch! i'll be using it as of this afternoon ^^~
Post Reply