Jump to content
NHL'94 Forums

How To: Disable Penalty Shots [SNES]


Recommended Posts

Disable Penalty Shots


Problem:
Request for the option to turn off Penalty Shots.

Solution:
This hack allows you to disable Penalty Shots regardless if Penalties are On or Off.

Technical Details:

The change is simple but finding it was tricky. We just have to branch to the code that signals no penalty shot.

Old Code:

1) Checks if the BreakAwayActive flag is set and if it is, Branches to 9EC068, this code sets up a flag to call a penalty shot.
2) The code at 9EC068 Sets a flag to call a penalty shot by setting the value to #$FFFF

image.png

New Code:

1) Still checks if the BreakAwayActive flag is set but now it Branches to 9EC06D instead of the 9EC068
2) The code at 9EC06D sets a flag to signal NO penalty shot by setting the value to #$0000

image.png

Download the patch tool to create your own ROM or patch an existing ROM

image.png

https://github.com/Mhopkinsinc/NHL94SNESVault/releases

Hex Version:

image.png

1) Replace old hex value with new hex value.

Headerless ROM (.SFC)
ROM Offsets: (hex) F4064
Old: 03 
New: 08

Headered ROM (.SMC)
ROM Offsets: (hex) F4264
Old: 03 
New: 08

 

  • Love 1
Link to comment
Share on other sites

Interesting!  If I wanted to always call a penalty shot do you know if you can set the breakaway flag to essentially always be on?  

@Sebe_The_Legend asked for this in Sega, to make a 3v3 ROM with every penalty being a penalty shot.  So this is great work that will be applicable to that hack!

  • Wow 1
Link to comment
Share on other sites

Posted (edited)

If I recall, this code only runs during breakaways, separate from regular penalty logic. Would have to see what the logic after setting the penalty shot flag is doing, and see if it can be called from regular penalty logic.

 

Edited by McMarkis
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...