Difference between revisions of "0595"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{Icon|VC}} {{Icon|SA}} '''REGISTER_ODDJOB_MISSION_PASSED''' <hr /> '''Description''' : Sets the latest odd job mission passed '''Syntax''' : 0595: mission_complete '''Paramet...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Icon|VC}} {{Icon|SA}} '''REGISTER_ODDJOB_MISSION_PASSED'''
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}} {{Icon|SA}}
'''Description'''
+
| command    = REGISTER_ODDJOB_MISSION_PASSED
: Sets the latest odd job mission passed
+
| description = Sets the latest odd job mission passed
'''Syntax'''
+
| syntax1    = 0595: mission_complete
: 0595: mission_complete
+
| p1t        = ''none''
'''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 restart taxi destination point set by [[058E]].
+
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 ===
 +
<syntaxhighlight lang="nasm">
 +
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
 +
</syntaxhighlight>
  
 
== Keywords ==
 
== Keywords ==
 
register, set, latest, odd, job, oddjob, mission, passed, pass, complete
 
register, set, latest, odd, job, oddjob, mission, passed, pass, complete
 
[[Category:OpCodes]]
 

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