Difference between revisions of "JUMP"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{IplSection | game = GTA SA GTA IV | description = Creates a unique stunt jump }} Unique stunt jumps are stunts the player can optinaly search and perform to finish the ga...)
 
Line 7: Line 7:
  
 
==Format==
 
==Format==
 +
 +
Basicly a unique stunt jump is defined by 3 parameters: A plane which the player needs to pass (in a car and with a specific speed), a plane a player needs to reach and the position of the camera. If the player passes the ''start plane'' then the game enables a slow motion and sets the camera to the ''camera position''. The camera follows the player during his flight. If the player reaches the ground without passing the ''target plane'' the stunt failed. If he has crossed it and reaches the ground (even if he falls of a bike or dies due a vehicle explosion or something else) the stunt jump has been successfully passed. If the player has triggered a stunt jump (no matter if it fails or not) it is marked as ''found'' for the game and the [[Saves (GTA SA)|savegame]]. If the player has successfully passed the target plane the stunt jump gets marked as ''done''. To finish the game completely all stunt jumps need to be done, but for the statistics{{ref|1}}{{ref|2}} found stunt jumps are also important.
  
 
===GTA San Andreas===
 
===GTA San Andreas===
  
{{Incomplete}}
+
The planes for target and start (as descriped above) are defined by 6 floating point values, where 3 of them allways represent a point in [[unit|real world coordinates]].
 +
 
 +
<pre>StartLowerX, StartLowerY, StartLowerZ, StartUpperX, StartUpperY, StartUpperZ, TargetLowerX, TargetLowerY, TargetLowerZ,
 +
TargetUpperX, TargetUpperY, TargetUpperZ, CameraX, CameraY, CameraZ, Reward</pre>
 +
''The information above is divided into two lines since it does not fit into one. If you create a stunt jump then the data needs to be written into '''1''' line (1 for each entry), just like the [[IPL]] specification sais.''
 +
 
 +
{|{{Prettytable}} class="collapsible"
 +
!width="100px"|Identifier
 +
!width="100%"|Description
 +
|-
 +
|<center>StartLowerX, StartLowerY, StartLowerZ</center>||Those 3 values define a point in the world as floating point values. The point represents one of the lower edge points of the plane representing the start of the unique stunt jump.
 +
|-
 +
|<center>StartUpperX, StartUpperY, StartUpperZ</center>||Those values are used in the same way as the first ones. They represent a point on the upper edge of the plane (diagonal opposite).
 +
|-
 +
|<center>TargetLowerX, TargetLowerY, TargetLowerZ</center>||A point on the lower edge of the ''target plane''.
 +
|-
 +
|<center>TargetUpperX, TargetUpperY, TargetUpperZ</center>||A point on the upper edge of the ''target plane'' (diagonal opposite).
 +
|-
 +
|<center>CameraX, CameraY, CameraZ</center>||The position of the camera (see [[JUMP#Format|above]]).
 +
|-
 +
|<center>Reward</center>||The amount of cash the player earns after he has finished this stunt successfully.
 +
|}
  
 
===GTA IV===
 
===GTA IV===
  
 
{{Research}}
 
{{Research}}
 +
 +
==Script representation==
 +
 +
* [[0814]] &ndash; [[SCM]] [[Opcode]] defining a unique stunt jump
 +
* [[ADD_STUNT_JUMP]] &ndash; [[SCO]] [[native function]] defining a unique stunt jump
 +
* [[ALLOW_STUNT_JUMPS_TO_TRIGGER]] &ndash; SCO native function to control a stunt jump's behaviour
 +
 +
==See also==
 +
* {{note|1}} {{Icon|4}} [[List of statistics (GTA4)]]
 +
* {{note|2}} {{Icon|SA}} [[List of statistics (SA)]]
  
 
==External Link==
 
==External Link==

Revision as of 08:10, 19 April 2009

JUMP (IPL section)
Short description:Creates a unique stunt jump
Supported games:GTA SA GTA IV
IPL Sections:
2DFX AUZO BLOK CARS CULL ENEX GRGE
INST JUMP LINK LODM MLO+ MULT OCCL
PATH PICK RTFX SLOW TCYC VNOD ZONE

Unique stunt jumps are stunts the player can optinaly search and perform to finish the game completely. Usually they are created using SCM or SCO, but just like the CARS section they can also be stored in plain text ipls since this is more easily to handle. Since unique stunt jumps are related into savegames a new game must be started before changed or added entries are applied. In it is possible to add new stunt jumps without starting a new game using CLEO.

Format

Basicly a unique stunt jump is defined by 3 parameters: A plane which the player needs to pass (in a car and with a specific speed), a plane a player needs to reach and the position of the camera. If the player passes the start plane then the game enables a slow motion and sets the camera to the camera position. The camera follows the player during his flight. If the player reaches the ground without passing the target plane the stunt failed. If he has crossed it and reaches the ground (even if he falls of a bike or dies due a vehicle explosion or something else) the stunt jump has been successfully passed. If the player has triggered a stunt jump (no matter if it fails or not) it is marked as found for the game and the savegame. If the player has successfully passed the target plane the stunt jump gets marked as done. To finish the game completely all stunt jumps need to be done, but for the statistics[1][2] found stunt jumps are also important.

GTA San Andreas

The planes for target and start (as descriped above) are defined by 6 floating point values, where 3 of them allways represent a point in real world coordinates.

StartLowerX, StartLowerY, StartLowerZ, StartUpperX, StartUpperY, StartUpperZ, TargetLowerX, TargetLowerY, TargetLowerZ,
TargetUpperX, TargetUpperY, TargetUpperZ, CameraX, CameraY, CameraZ, Reward

The information above is divided into two lines since it does not fit into one. If you create a stunt jump then the data needs to be written into 1 line (1 for each entry), just like the IPL specification sais.

Identifier Description
StartLowerX, StartLowerY, StartLowerZ
Those 3 values define a point in the world as floating point values. The point represents one of the lower edge points of the plane representing the start of the unique stunt jump.
StartUpperX, StartUpperY, StartUpperZ
Those values are used in the same way as the first ones. They represent a point on the upper edge of the plane (diagonal opposite).
TargetLowerX, TargetLowerY, TargetLowerZ
A point on the lower edge of the target plane.
TargetUpperX, TargetUpperY, TargetUpperZ
A point on the upper edge of the target plane (diagonal opposite).
CameraX, CameraY, CameraZ
The position of the camera (see above).
Reward
The amount of cash the player earns after he has finished this stunt successfully.

GTA IV

Script representation

See also

External Link