Difference between revisions of "0595"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
Line 12: Line 12:
 
This is disassembled code for this opcode from PC v1.0 US.
 
This is disassembled code for this opcode from PC v1.0 US.
 
=== Vice City ===
 
=== Vice City ===
<syntaxhighlight lang="nasm" style="overflow-x: auto;">
+
<syntaxhighlight lang="nasm">
 
loc_6382FC:
 
loc_6382FC:
 
     inc    ds:CStats::MissionsPassed                        ; increment value at CStats::MissionsPassed
 
     inc    ds:CStats::MissionsPassed                        ; increment value at CStats::MissionsPassed
Line 18: Line 18:
 
     mov    eax, ds:CTimer::m_snTimeInMilliseconds
 
     mov    eax, ds:CTimer::m_snTimeInMilliseconds
 
     mov    ds:CTheScripts::LastMissionPassedTime, eax      ; set value at CTheScripts::LastMissionPassedTime to value at 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
+
     call    CGameLogic::RemoveShortCutDropOffPointForMission ; call CGameLogic::RemoveShortCutDropOffPointForMission(void)
 
     lea    esp, [ebp-0Ch]
 
     lea    esp, [ebp-0Ch]
 
     xor    al, al                                          ; return 0
 
     xor    al, al                                          ; return 0

Latest revision as of 04:10, 24 May 2017

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(void)
    lea     esp, [ebp-0Ch]
    xor     al, al                                           ; return 0

Keywords

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