Difference between revisions of "01C6"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{OpCode | games = {{Icon|3}} | command = DONT_REMOVE_CAR | description = Removes the vehicle from the mission cleanup list | syntax1 = 01C6: remove_car...")
 
(code snippet)
 
Line 9: Line 9:
  
 
When a vehicle is created inside a [[Create a mission|mission]] launched through opcode [[0417]] (and [[00D7]] in GTA III and Vice City), it is added to the mission cleanup list so that calling opcode [[00D8]] (mission cleanup) [[01C3|marks the vehicle as no longer needed]]. This opcode prevents that from happening by removing it from the list.
 
When a vehicle is created inside a [[Create a mission|mission]] launched through opcode [[0417]] (and [[00D7]] in GTA III and Vice City), it is added to the mission cleanup list so that calling opcode [[00D8]] (mission cleanup) [[01C3|marks the vehicle as no longer needed]]. This opcode prevents that from happening by removing it from the list.
 +
 +
== For Vice City ==
 +
This opcode does not exist in Vice City but the functionality remains in the game. The following example, using Sanny Builder with [[CLEO]] for Vice City and tested on US v1.0, should work similarly to this opcode. Place this at the end of the file:
 +
{{Pre|class=sb-code|1=
 +
<span class="nl">:opcode_01C6</span>
 +
<span class="c1">// 0@ - input param (car handle)</span>
 +
05E3: call_method <span class="m">0x4518E0</span> <span class="m">0x97F060</span> num_params <span class="m">2</span> pop <span class="m">0</span> type <span class="m">1</span> handle <span class="nv">0@</span>  <span class="c1">// CMissionCleanup::RemoveEntityFromList</span>
 +
05F6: ret <span class="m">0</span>
 +
}}
 +
 +
Use this line as a substitute for opcode 01C6:
 +
{{Pre|class=sb-code|1=
 +
05F5: call_scm_func <span class="nl">@opcode_01C6</span> inputs <span class="m">1</span> car_handle [car handle]
 +
}}
  
 
== Keywords ==
 
== Keywords ==

Latest revision as of 02:13, 4 December 2016

GTA III DONT_REMOVE_CAR


Description
Removes the vehicle from the mission cleanup list
Syntax
01C6: remove_car_from_mission_cleanup_list [car handle]
Parameter
[car handle]
The handle of the vehicle

When a vehicle is created inside a mission launched through opcode 0417 (and 00D7 in GTA III and Vice City), it is added to the mission cleanup list so that calling opcode 00D8 (mission cleanup) marks the vehicle as no longer needed. This opcode prevents that from happening by removing it from the list.

For Vice City

This opcode does not exist in Vice City but the functionality remains in the game. The following example, using Sanny Builder with CLEO for Vice City and tested on US v1.0, should work similarly to this opcode. Place this at the end of the file:

:opcode_01C6
// 0@ - input param (car handle)
05E3: call_method 0x4518E0 0x97F060 num_params 2 pop 0 type 1 handle 0@  // CMissionCleanup::RemoveEntityFromList
05F6: ret 0

Use this line as a substitute for opcode 01C6:

05F5: call_scm_func @opcode_01C6 inputs 1 car_handle [car handle]

Keywords

dont, remove, car, vehicle, mission, cleanup

See also

  • GTA III Vice City San Andreas 01C5, for characters
  • GTA III Vice City San Andreas 01C7, for objects