Difference between revisions of "0595"
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}} | + | {{OpCode |
− | + | | games = {{Icon|VC}} {{Icon|SA}} | |
− | + | | command = REGISTER_ODDJOB_MISSION_PASSED | |
− | + | | description = Sets the latest odd job mission passed | |
− | + | | syntax1 = 0595: mission_complete | |
− | + | | 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 | + | 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