Difference between revisions of "00D8"

From GTAMods Wiki
Jump to navigation Jump to search
(External links)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{research}}
 
{{research}}
{{Icon|trilogy}} '''MISSION_HAS_FINISHED'''
+
{{TocRight}}
<hr />
+
{{OpCode
<onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode|
+
| games      = {{Icon|t}}
'''Description'''
+
| command    = MISSION_HAS_FINISHED
: Mission cleanup
+
| description = Mission cleanup
'''Syntax'''
+
| syntax1    = 00D8: mission_cleanup
: 00D8: mission_cleanup
+
| p1t        = ''none''
'''Parameter'''
+
}}
: ''none''
 
  
This opcode resets ("cleans up") multiple settings that are usually set during missions and in some threads. This helps in getting the game back to "normal" without the need to keep track of multiple settings. This opcode will only be activated if it is within a thread created by [[00D7]] or within a [[Create a mission|mission]]. It will not work elsewhere.
+
This opcode resets ("cleans up") multiple settings that are usually set during missions and in some scripts. This helps in getting the game back to "normal" without the need to keep track of multiple settings. This opcode can only have an effect if it is called within a script launched as a mission using opcode [[0417]] or, in GTA III and Vice City only,{{ref|1}} [[00D7]]; it has no effect elsewhere. The script does not need to follow the [[Create a mission|mission structure]] for this opcode to work.
}}</onlyinclude>
 
  
==Vice City==
+
== GTA III ==
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
!Effect
 
!Effect
Line 19: Line 17:
 
|-
 
|-
 
|force random ped type set to -1 || [[03DF]]
 
|force random ped type set to -1 || [[03DF]]
 +
|-
 +
|ped density multiplier set to 1.0 || [[03DE]]
 
|-
 
|-
 
|car density multiplier set to 1.0 || [[01EB]]
 
|car density multiplier set to 1.0 || [[01EB]]
 +
|-
 +
|wanted multiplier set to 1.0 || [[03C7]]
 +
|-
 +
|switch off widescreen || [[02A3]]
 +
|-
 +
|clear mission audio || [[040D]]
 +
|-
 +
|restore camera || [[015A]]
 +
|-
 +
|unload four special characters || [[0296]]
 +
|-
 +
|switch on streaming || [[03AF]]
 +
|-
 +
|flash hud object set to -1 || [[03E7]]
 +
|-
 +
|clear [[Text#Help message|help message]] || [[03E6]]
 +
|-
 +
|remove all drop-off packages || [[035B]], only in a script [[03A4|named]] "love3"
 +
|-
 +
|freeze onscreen timer set to 0 || [[0396]]
 +
|-
 +
|remove 6 upside down car checks ||[[0191]]
 +
|-
 +
|remove 6 stuck car checks || [[03CD]]
 +
|}
 +
 +
== Vice City ==
 +
{| class="wikitable sortable"
 +
!Effect
 +
!Related opcode
 +
|-
 +
|force random ped type set to -1 || [[03DF]]
 +
|-
 +
|enter car range multiplier set to 1 || [[0481]]
 +
|-
 +
|car density multiplier set to 1.0 || [[01EB]]
 +
|-
 +
|threat reaction range multiplier set to 1 || [[0482]]
 
|-
 
|-
 
|ped density multiplier set to 1.0 || [[03DE]]
 
|ped density multiplier set to 1.0 || [[03DE]]
Line 26: Line 64:
 
|wanted multiplier set to 1.0 || [[03C7]]
 
|wanted multiplier set to 1.0 || [[03C7]]
 
|-
 
|-
|remove police roadblock || [[04C1]]
+
|remove all script roadblocks || [[04C1]]
 +
|-
 +
|remove all routes || [[03AC]]
 
|-
 
|-
 
|restore camera || [[015A]]
 
|restore camera || [[015A]]
 
|-
 
|-
|widescreen set to 0 || [[02A3]]
+
|switch off widescreen || [[02A3]]
 
|-
 
|-
|white scanline set to 0 || [[0507]]
+
|switch off lift camera || [[0507]]
 
|-
 
|-
|green scanline set to 0 || [[04C7]]  
+
|switch off security camera || [[04C7]]  
 
|-
 
|-
|reset sky colors || [[04FA]]
+
|clear extra colors || [[04FA]]
 
|-
 
|-
 
|clear two mission audios || [[040D]]
 
|clear two mission audios || [[040D]]
Line 44: Line 84:
 
|unload 21 special characters || [[0296]]
 
|unload 21 special characters || [[0296]]
 
|-
 
|-
|streaming set to 0 || [[03AF]]
+
|switch on streaming || [[03AF]]
 
|-
 
|-
 
|flash hud object set to -1 || [[03E7]]
 
|flash hud object set to -1 || [[03E7]]
 
|-
 
|-
|clear help box || [[03E6]]
+
|clear [[Text#Help message|help message]] || [[03E6]]
 
|-
 
|-
 
|freeze onscreen timer set to 0 || [[0396]]
 
|freeze onscreen timer set to 0 || [[0396]]
 +
|-
 +
|remove 16 texture dictionaries || [[0391]]
 
|-
 
|-
 
|police ignore player set to 0 || [[01F7]]
 
|police ignore player set to 0 || [[01F7]]
Line 58: Line 100:
 
|player control set to 1 || [[01B4]]
 
|player control set to 1 || [[01B4]]
 
|-
 
|-
|drunk visuals set to 0 || [[052C]]
+
|drunkenness set to 0 || [[052C]]
 +
|-
 +
|drunk input delay set to 0 || [[03FD]]
 +
|-
 +
|player can do drive by set to 1 || [[0501]]
 +
|-
 +
|shut player up set to 0 || [[04E2]]
 +
|-
 +
|enable rc detonate on contact || [[04D6]]
 +
|-
 +
|enable rc detonate || [[048A]]
 +
|-
 +
|clear taxi shortcut || [[0557]]
 
|-
 
|-
|handling responsiveness set to 0 || [[03FD]]
+
|remove 6 upside down car checks ||[[0191]]
 
|-
 
|-
|drive by mode set to 1 || [[0501]]
+
|riot intensity set to 0 || [[0552]]
 
|-
 
|-
|rc contact detonation set to 0 || [[04D6]]
+
|remove 16 stuck car checks || [[03CD]]
 
|-
 
|-
|rc detonation set to 0 || [[048A]]
+
|mark all cars created in the script as no longer needed || [[01C3]]
 
|-
 
|-
|riot noise set to 0 || [[0552]]
+
|mark all characters created in the script as no longer needed || [[01C2]]
 +
|-
 +
|mark all objects created in the script as no longer needed || [[01C4]]
 
|}
 
|}
 
==San Andreas==
 
==San Andreas==
Line 87: Line 143:
 
|destroys scripted trains  || [[06D8]]
 
|destroys scripted trains  || [[06D8]]
 
|}
 
|}
 +
 +
== Notes ==
 +
* {{Note|1}} it's only valid in mission scripts of GTA 3 and GTA VC. In San Andreas a script created with 00D7 acts as a common script created with [[004F]].
 +
 +
== Keywords ==
 +
mission, cleanup, has, finished
  
 
==External links==
 
==External links==
 
* {{GTAF|post|107998|1059813730|Vice City's cleanup routine}}
 
* {{GTAF|post|107998|1059813730|Vice City's cleanup routine}}
* [http://gtag.gtagaming.com/forums/index.php?showtopic=311 San Andreas' cleanup routine]
+
* [https://gtagmodding.com/forums/index.php?showtopic=311 San Andreas' cleanup routine]
 
 
[[Category:OpCodes]]
 

Latest revision as of 17:01, 3 March 2018

GTA III Vice City San Andreas MISSION_HAS_FINISHED


Description
Mission cleanup
Syntax
00D8: mission_cleanup
Parameter
none

This opcode resets ("cleans up") multiple settings that are usually set during missions and in some scripts. This helps in getting the game back to "normal" without the need to keep track of multiple settings. This opcode can only have an effect if it is called within a script launched as a mission using opcode 0417 or, in GTA III and Vice City only,[1] 00D7; it has no effect elsewhere. The script does not need to follow the mission structure for this opcode to work.

GTA III

Effect Related opcode
force random ped type set to -1 03DF
ped density multiplier set to 1.0 03DE
car density multiplier set to 1.0 01EB
wanted multiplier set to 1.0 03C7
switch off widescreen 02A3
clear mission audio 040D
restore camera 015A
unload four special characters 0296
switch on streaming 03AF
flash hud object set to -1 03E7
clear help message 03E6
remove all drop-off packages 035B, only in a script named "love3"
freeze onscreen timer set to 0 0396
remove 6 upside down car checks 0191
remove 6 stuck car checks 03CD

Vice City

Effect Related opcode
force random ped type set to -1 03DF
enter car range multiplier set to 1 0481
car density multiplier set to 1.0 01EB
threat reaction range multiplier set to 1 0482
ped density multiplier set to 1.0 03DE
wanted multiplier set to 1.0 03C7
remove all script roadblocks 04C1
remove all routes 03AC
restore camera 015A
switch off widescreen 02A3
switch off lift camera 0507
switch off security camera 04C7
clear extra colors 04FA
clear two mission audios 040D
release weather 01B7
unload 21 special characters 0296
switch on streaming 03AF
flash hud object set to -1 03E7
clear help message 03E6
freeze onscreen timer set to 0 0396
remove 16 texture dictionaries 0391
police ignore player set to 0 01F7
everyone ignore player set to 0 03BF
player control set to 1 01B4
drunkenness set to 0 052C
drunk input delay set to 0 03FD
player can do drive by set to 1 0501
shut player up set to 0 04E2
enable rc detonate on contact 04D6
enable rc detonate 048A
clear taxi shortcut 0557
remove 6 upside down car checks 0191
riot intensity set to 0 0552
remove 16 stuck car checks 03CD
mark all cars created in the script as no longer needed 01C3
mark all characters created in the script as no longer needed 01C2
mark all objects created in the script as no longer needed 01C4

San Andreas

Effect Related opcode
car density set to 1.0 01EB
ped density set to 1.0 03DE
gang spawn set to 1 08EA
unknown_gang_war set to 1 0983
police patrols set to 1 099E
destroys scripted trains 06D8

Notes

  • ^ it's only valid in mission scripts of GTA 3 and GTA VC. In San Andreas a script created with 00D7 acts as a common script created with 004F.

Keywords

mission, cleanup, has, finished

External links