Skip to content

Instantly share code, notes, and snippets.

@Patrick-1994-
Last active January 17, 2018 20:57
Show Gist options
  • Save Patrick-1994-/999e77b09cfd760dda9c6a2b87c20c2e to your computer and use it in GitHub Desktop.
Save Patrick-1994-/999e77b09cfd760dda9c6a2b87c20c2e to your computer and use it in GitHub Desktop.

Testing

Darkdraggy gets a black screen when he tries it.

Tech

The instapass uses "The Bum Deal", offset 12621, the 1000ms wait after "better not be screwing us" is played.

{1241584} 037B: not call in_parameters 4 out_parameters 0 stack_shift 4 label @MAIN_12755 parameters 'BRYB4AE' 'BRY4_05' $5368[17] 0  // ~w~You better not be screwing us.
{1241615} 037B: not call in_parameters 1 out_parameters 0 stack_shift 4 label @MAIN_12704 parameters 'BRYB4AE' 
{1241634} 0001: WAIT 1000 ms //this
{1241639} 0045:   IS_CHAR_STILL_ALIVE $782 
{1241643} 0022: GOTO_IF_FALSE @BRY_B4_12644 
{1241650} 04B4:  $782 120 512 100.0 

:BRY_B4_12644

It lands right inside the "mission passed" code:

:CHOPLIF_12608
{401137} 001B:   $1704 == 15 // (int) var == num 
{401143} 0022: GOTO_IF_FALSE @CHOPLIF_12679 
//exactly here: (no unintended opcodes or anything)
{401150} 011D: PRINT_WITH_NUMBER_BIG 'M_PASS' 500 1000 1  // ~Y~MISSION PASSED! ~n~$~1~
{401168} 0267: PRINT_HELP 'CHO_H3'  // Checkpoint Reached! Air Rescue mission complete. Your maximum health has increased!
{401178} 0094: ADD_SCORE $782 500 
{401185} 0340: INCREASE_PLAYER_MAX_HEALTH $782 50 
{401191} 022B: PLAY_MISSION_PASSED_TUNE 1 
{401195} 036A: REGISTER_ODDJOB_MISSION_PASSED 
{401197} 01DF: PLAYER_MADE_PROGRESS 1 
{401201} 0002: GOTO @CHOPLIF_12689 

The instapassing wait offset is in a subroutine, the call stack is: 1597, 29 Code: [1] offset 1597:

:BRY_B4_1437
{1230455} 0004: $789 = 1 // (int) 
{1230461} 0001: WAIT 0 ms 
{1230464} 0004: $5430[7] = 0 // (int) 
{1230469} 0005: $5430[8] = -1107.3 // (float) 
{1230478} 0005: $5438[1] = 140.2 // (float) 
{1230487} 0005: $5440[0] = 11.1 // (float) 
{1230496} 037B: not call in_parameters 1 out_parameters 1 stack_shift 4 label @MAIN_6396 parameters $2078 $5332[0] 
{1230510} 0160: REQUEST_MODEL 37 
{1230514} 0160: REQUEST_MODEL 69 
{1230518} 0160: REQUEST_MODEL 70 
{1230522} 0160: REQUEST_MODEL #BAT 
{1230527} 0160: REQUEST_MODEL #KNIFECUR 
{1230532} 0160: REQUEST_MODEL #MOP50 
{1230537} 0228: LOAD_ALL_MODELS_NOW 
{1230539} 0160: REQUEST_MODEL 144 
{1230544} 0160: REQUEST_MODEL 145 
{1230549} 0160: REQUEST_MODEL #ELECTRAG 
{1230554} 0160: REQUEST_MODEL #MOP50 
{1230559} 0160: REQUEST_MODEL #FREEWAY 
{1230564} 0160: REQUEST_MODEL 137 
{1230569} 0228: LOAD_ALL_MODELS_NOW 
{1230571} 0160: REQUEST_MODEL #CHROMEGUN 
{1230576} 0160: REQUEST_MODEL #BERETTA 
{1230581} 0160: REQUEST_MODEL 126 
{1230585} 0160: REQUEST_MODEL #MPLNG 
{1230590} 0160: REQUEST_MODEL #EBPROP_CHAIR 
{1230594} 0160: REQUEST_MODEL 125 
{1230598} 0443:  69 
{1230602} 0443:  67 
{1230606} 0228: LOAD_ALL_MODELS_NOW 
{1230608} 0025: GOSUB @BRY_B4_12115 
// ^ 1597

[2] offset 29:

:BRY_B4
{1229018} 0238: SCRIPT_NAME 'BRY_B4' 
{1229028} 01EA: REGISTER_MISSION_GIVEN 
{1229030} 033A: LOAD_MISSION_TEXT 'BRY_B4' 
{1229040} 0025: GOSUB @BRY_B4_1437 
{1229047} 009D:   HAS_DEATHARREST_BEEN_EXECUTED 

1597 is here:

--> {390126} 005F: RETURN_FALSE 
:CHOPLIF_1599

29 is here:

:CHOPLIF
{388529} 0238: SCRIPT_NAME 'CHOPLIF'  // 'Air Rescue'
{388540} 0025: GOSUB @CHOPLIF_12965 
{388547} 009D:   HAS_DEATHARREST_BEEN_EXECUTED 
{388549} 0022: GOTO_IF_FALSE @CHOPLIF_34 
{388556} 0025: GOSUB @CHOPLIF_13657 // executed as opcode: @CHOPLIF_13657

:CHOPLIF_35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment