0595

From GTAMods Wiki
Revision as of 20:15, 10 November 2016 by Spaceeinstein (talk | contribs)
Jump to navigation Jump to search

Vice City San Andreas REGISTER_ODDJOB_MISSION_PASSED


Description
Sets the latest odd job mission passed
Syntax
0595: mission_complete
Parameter
none

This opcode behaves similarly to opcode 0318 except it does not save the mission name. Unlike GTA III, in Vice City there is no mission passed stat so this opcode is almost entirely useless. Its main effect is disabling the taxi shortcut drop-off set by 058E.

Disassembled code

This is disassembled code for this opcode from PC v1.0 US.

Vice City

loc_6382FC:
    inc     ds:CStats::MissionsPassed                        ; increment value at CStats::MissionsPassed
    call    CStats::CheckPointReachedSuccessfully            ; call CStats::CheckPointReachedSuccessfully
    mov     eax, ds:CTimer::m_snTimeInMilliseconds
    mov     ds:CTheScripts::LastMissionPassedTime, eax       ; set value at CTheScripts::LastMissionPassedTime to value at CTimer::m_snTimeInMilliseconds
    call    CGameLogic::RemoveShortCutDropOffPointForMission ; call CGameLogic::RemoveShortCutDropOffPointForMission
    lea     esp, [ebp-0Ch]
    xor     al, al                                           ; return 0

Keywords

register, set, latest, odd, job, oddjob, mission, passed, pass, complete