7,301
edits
m (→External links: clean up,) |
mNo edit summary |
||
Line 1: | Line 1: | ||
The <code>'''carrec'''.img</code> file stores a set of R3 files (files with an extension <code>.rrr</code>). These files contain path information used by the mission script for [[San Andreas]] and [[ | The <code>'''carrec'''.img</code> file stores a set of R3 files (files with an extension <code>.rrr</code>). These files contain path information used by the mission script for [[Grand Theft Auto: San Andreas]] and [[Grand Theft Auto IV]]. The paths are predefined and look unnatural during gameplay because the movement of the vehicle is very rigid. The paths ignore many stuff in the game including gravity and obstacles. | ||
Original San Andreas installation has '''426''' R3 paths. Maximum number of these paths is '''475'''. GTA IV increases this limit. By default there are '''1813''' R3 paths. The limit appears to be located somewhere beyond 3000. | Original San Andreas installation has '''426''' R3 paths. Maximum number of these paths is '''475'''. GTA IV increases this limit. By default there are '''1813''' R3 paths. The limit appears to be located somewhere beyond 3000. | ||
Line 54: | Line 54: | ||
==Mission Script== | ==Mission Script== | ||
===San Andreas=== | ===San Andreas=== | ||
You can use the following opcodes to do stuff to your paths.<br> | You can use the following opcodes to do stuff to your paths.<br /> | ||
[[07C0]] - Loads the path<br> | [[07C0]] - Loads the path<br /> | ||
[[07C1]] - Checks if the path has been loaded<br> | [[07C1]] - Checks if the path has been loaded<br /> | ||
[[0873]] - Releases the path from memory<br> | [[0873]] - Releases the path from memory<br /> | ||
[[05EB]] - Assigns a vehicle to the path<br> | [[05EB]] - Assigns a vehicle to the path<br /> | ||
[[0705]] - Assigns a vehicle to the path<br> | [[0705]] - Assigns a vehicle to the path<br /> | ||
[[085E]] - Assigns a vehicle to a looped path<br> | [[085E]] - Assigns a vehicle to a looped path<br /> | ||
[[05EC]] - Releases the vehicle from a path<br> | [[05EC]] - Releases the vehicle from a path<br /> | ||
[[05ED]] - Freezes the vehicle along the path<br> | [[05ED]] - Freezes the vehicle along the path<br /> | ||
[[05EE]] - Unfreezes the vehicle along the path<br> | [[05EE]] - Unfreezes the vehicle along the path<br /> | ||
[[06FD]] - Sets the speed multiplier of the vehicle along the path<br> | [[06FD]] - Sets the speed multiplier of the vehicle along the path<br /> | ||
[[0706]] - Advances the vehicle along the path<br> | [[0706]] - Advances the vehicle along the path<br /> | ||
[[060E]] - Checks if a path is assigned to the vehicle<br> | [[060E]] - Checks if a path is assigned to the vehicle<br /> | ||
If you load a non-existant path to a vehicle, path 1 will be loaded instead. | If you load a non-existant path to a vehicle, path 1 will be loaded instead. | ||
===GTA 4=== | ===GTA 4=== | ||
Use the following [[native function]]s:<br> | Use the following [[native function]]s:<br /> | ||
[[REQUEST CAR RECORDING]]<br> | [[REQUEST CAR RECORDING]]<br /> | ||
[[HAS CAR RECORDING BEEN LOADED]]<br> | [[HAS CAR RECORDING BEEN LOADED]]<br /> | ||
[[REMOVE CAR RECORDING]]<br> | [[REMOVE CAR RECORDING]]<br /> | ||
[[FIND POSITION IN RECORDING]]<br> | [[FIND POSITION IN RECORDING]]<br /> | ||
[[FIND TIME POSITION IN RECORDING]]<br> | [[FIND TIME POSITION IN RECORDING]]<br /> | ||
[[GET POSITION OF CAR RECORDING AT TIME]]<br> | [[GET POSITION OF CAR RECORDING AT TIME]]<br /> | ||
[[GET TOTAL DURATION OF CAR RECORDING]]<br> | [[GET TOTAL DURATION OF CAR RECORDING]]<br /> | ||
[[SET RECORDING TO POINT NEAREST TO COORS]]<br> | [[SET RECORDING TO POINT NEAREST TO COORS]]<br /> | ||
[[SYNCH RECORDING WITH WATER]]<br> | [[SYNCH RECORDING WITH WATER]]<br /> | ||
== List of paths in San Andreas== | == List of paths in San Andreas== | ||
Line 293: | Line 293: | ||
{{fdl}} | |||
{{modding}} | {{modding}} | ||
[[Category:Map Formats]] | |||
[[Category:File Formats]] | |||
[[Category:Modifications]] |
edits