Page 1 of 1

Dopefish collision crash

Posted: Fri Jul 15, 2022 3:58 pm
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?

Re: Dopefish collision crash

Posted: Tue Jul 19, 2022 9:55 pm
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.