Difference between revisions of "0595"
Jump to navigation
Jump to search
m |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
| description = Sets the latest odd job mission passed | | description = Sets the latest odd job mission passed | ||
| syntax1 = 0595: mission_complete | | syntax1 = 0595: mission_complete | ||
− | | p1t = | + | | p1t = ''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]]. | 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 |
Latest revision as of 04:10, 24 May 2017
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