[nbahangt] always on fire PL1 or PL2

This forum is for posting M.A.M.E. Work In Progress "Arcade"cheats that are not quite ready for the prime time. If the cheats are buggy or the cheat descriptions are non-standard then please post them here. Help maybe given but there are no guarantees and they will only be added to the cheat file when the cheat file maintainer is happy with them.
Post Reply
syndromtr
Posts: 232
Joined: Wed Sep 25, 2013 8:18 am
Been thanked: 1 time

[nbahangt] always on fire PL1 or PL2

Post by syndromtr »

requested for nba maximum hangtime (clone of this) but i started from parent rom,

this needs some testing, and if we're satisfied this cheat works properly, it can be a permanent cheat..
what it does : select a player from list (PL1 or PL2), when that player has the ball, he always will be on fire. of course, for PL2 option, human player must be in game. (cheat checks it, if 2nd team is controlled by CPU-won't operate for PL2)

only problem i noticed is, if you enable this cheat with PL2 option and start a 2UP game, everything is OK till period ends but,
if PL2 loses game and PL1 continues game with 2 coins, CPU team's first attack, team 2 player #2 will be on fire temporarily (only once)

[nbahangt]

Code: Select all

	<cheat desc="Select Player to be On Fire">
		<comment>When chosen Player has the control of the ball, he always will be on fire. </comment>
    <parameter>
		<item value="0x01">PL1</item>
		<item value="0x02">PL2</item>
    </parameter>	
		<script state="run">
			<action>temp0=00</action>
			<action condition="(param == 02) AND (maincpu.pb@1137B90 == 00)">temp0=01</action>
			<action condition="(temp0 == 00) AND (maincpu.pb@1136D90 == param)">maincpu.pb@1136DF0=03</action>
			<action condition="(temp0 == 00) AND (maincpu.pb@1136D90 == param)">maincpu.pw@1136DE0=param</action>
		</script>
	</cheat>
ok, waiting for feedback for this..
Post Reply