problem with yorp & tank behavior

Request patches for Keens 1-3.
Post Reply
Stealthy71088
Posts: 583
Joined: Thu Mar 17, 2005 11:54 pm
Location: NY

problem with yorp & tank behavior

Post by Stealthy71088 »

I'm trying to make a yorp that will randomly pause and shoot. I'm using these patches:

Code: Select all

%patch $1980 $C1 $1F #Yorp shoots
%patch $2040 $D3 $19 #Goes back to Yorp looking
%patch $1A58 $C1 $1F #Yorp shoots
#%patch $1A8F $A8 $1A #Becomes Garg when yorp is shot
%patch $1A79 $3D $06 #Yorp not killed by Tank shot
%patch $4A11 $3D $0E #Tank shots not killed by tank zap/zots
It will shoot once, but after that it just sit there whenever it tries to shoot. If I take out the 2nd to last line, the Yorp shoots and kills himself, while the shot keeps going. Any ideas?

Edit: Also, does anyone know the behavior for keen when he is frozen? I've found the behavior for him unfreezing, and the interaction that causes him to freeze, but I don't see his frozen behavior anywhere.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

First up, you want to change not just what kills the Yorp, but what kills the shot:

Code: Select all

%patch $1980 $C1 $1F #Yorp shoots
%patch $2040 $D3 $19 #Goes back to Yorp looking
%patch $1A58 $C1 $1F #Yorp shoots
%patch $4A0C $3D $02 #Tank shots NOT killed by Yorps
%patch $1A79 $3D $0A #Yorp killed by Keen's shot
In this case I make the Yorp killed by Keen's shot ($0A) twice. (Heh!) and the tank's shots not killed by Yorps.

Sadly, from what I an tell, for some reason the shot subroutine doesn't work more than once when the Yorp (And probably other things) use it; I think something about the Tank's behavior 'resets' it, but I know too little, Spleen may be able to help you there.
Stealthy71088
Posts: 583
Joined: Thu Mar 17, 2005 11:54 pm
Location: NY

Post by Stealthy71088 »

I've also discovered that there are other tank speeds that we haven't found yet. If you patch the speeds of the tank, sometimes it follow its normal speed, sometimes itll go the patched speed.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

Probably, a lot of the Keen 1 sprite patches were done by LL, if it's vital, I could look and see if there's other speeds there, but it could be like its shot, speed determined in a mysterious manner.
Stealthy71088
Posts: 583
Joined: Thu Mar 17, 2005 11:54 pm
Location: NY

Post by Stealthy71088 »

No that's okay. I think I like how the speeds are right now better. It makes the tank a little unpredictable, and it can catch you offguard. Thanks though.
Post Reply