Dopefish collision crash

Request patches for Keens 4-6.
Post Reply
Posts: 5
Joined: Thu Apr 14, 2022 8:33 am

Dopefish collision crash

Post by Dave216 »

So, the Keen game I am working on won't have water levels which means placing a dopefish replacement on the level which you are controling regular Keen(non diving one) will cause the game to crash when they collide. Which patch should I use so that Keen has a regular death sequence when it collides with the dopefish - so the game doesn't crash?
User avatar
Site Admin
Posts: 490
Joined: Fri Dec 12, 2008 1:33 am
Location: Blogham Tower

Re: Dopefish collision crash

Post by Fleexy »

This changes the Dopefish's collision code to immediately use the normal kill-Keen code on contact:

Code: Select all

# Collision with hungry Dopefish immediately kills Keen
%patch $123FB $9A $0B8013E9RL     # Call KillKeen
              $5F $5E $5D $CB     # Exit collision function
Note that the affected collision code is only active when the Dopefish is "hungry", i.e. not in the middle of eating a Schoolfish. This can be changed with more effort if needed.
Post Reply