Difference between revisions of "GRGE"

From GTAMods Wiki
Jump to navigation Jump to search
m (updating styles)
Line 6: Line 6:
  
 
== Format ==
 
== Format ==
{|{{Prettytable}} width="100%"
+
<pre<includeonly></includeonly> style="overflow-x: auto;">
! width="10px"| {{Icon|SA}}
+
grge
! width="150px"| Identifier
+
PosX, PosY, PosZ, LineX, LineY, CubeX, CubeY, CubeZ, Flag, Type, Name
! width="100px"| Type
+
end
 +
</pre>
 +
 
 +
{|class="wikitable center-col-1 center-col-2" style="width: 100%;"
 +
! style="width: 3em;"| {{Icon|SA}}
 +
! style="width: 12em;"| Identifier
 +
! style="width: 6em;" | Type
 
! Description
 
! Description
 
|-
 
|-
| <center>A,B,C</center> || <center>PosX, PosY, PosZ</center> || float[3] || A coordinate of one of the corner marks
+
| A,B,C || PosX, PosY, PosZ || float[3] || A coordinate of one of the corner marks
 
|-
 
|-
| <center>D,E</center> || <center>LineX, LineY</center> || float[2] || Those values are [[Wikipedia:Euclidean_vector#Addition_and_subtraction|added]] to the first position values. They define one edge of the box
+
| D,E || LineX, LineY || float[2] || Those values are [[Wikipedia:Euclidean_vector#Addition_and_subtraction|added]] to the first position values. They define one edge of the box
 
|-
 
|-
| <center>F,G,H</center> || <center>CubeX, CubeY, CubeZ</center> || float[3] || Another world coordinate. Together with the abstract line created with the first 5 coordinates this forms a cube in the world.
+
| F,G,H || CubeX, CubeY, CubeZ || float[3] || Another world coordinate. Together with the abstract line created with the first 5 coordinates this forms a cube in the world.
 
|-
 
|-
| <center>I</center> || <center>Garage Flags</center> || integer || The garage behaviour ([[#Garage flags|see below]])
+
| I || Flags || integer || The garage behaviour ([[#Garage flags|see below]])
 
|-
 
|-
| <center>J</center> || <center>Garage type</center> || integer || The garage type{{ref|1}}
+
| J || Type || integer || The [[Garage#San Andreas|garage type]]
 
|-
 
|-
| <center>K</center> || <center>Name</center> || string || A string which is used to manipulate the behaviour of garages through the <code>[[main.scm]]</code>{{ref|2}}
+
| K || Name || string || The [[Garage#San Andreas 2|garage name]], a string which is used to manipulate the behaviour of garages through the <code>[[main.scm]]</code>
 
|}
 
|}
  
 
=== Garage flags ===
 
=== Garage flags ===
{|{{Prettytable}}
+
{|class="wikitable"
 
! Flag
 
! Flag
 
! Description
 
! Description
Line 42: Line 48:
  
 
Flag combination and their results:
 
Flag combination and their results:
{|{{Prettytable}}
+
{|class="wikitable"
 
! Flag
 
! Flag
 
! Description
 
! Description
Line 81: Line 87:
  
 
== Tools ==
 
== Tools ==
{|
+
{{Icon|SA}} {{GTAF|536465|Garage eXtender}} &ndash; Increases the garages limit and more - by {{U|Link2012}}
| style="text-align:center" | {{Icon|SA}} || {{GTAF|536465|Garage eXtender}} &ndash; Increases the garages limit and more - by {{U|Link2012}}
 
|}
 
 
 
== See also ==
 
* {{note|1}} [[Garage#San_Andreas|Garage types (SA)]]
 
* {{note|2}} [[Garage#San_Andreas_2|List of all default garage names (SA)]]
 
  
 
== External links ==
 
== External links ==

Revision as of 06:14, 11 August 2015

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

GRGE is one of the plain-text IPL sections, introduced with San Andreas. It replaces the previously used opcodes 0219, 03BB and 057A. It creates an invisible cube which interacts as a garage. Each garage can be used differently, for example by the script.

Format

grge
PosX, PosY, PosZ, LineX, LineY, CubeX, CubeY, CubeZ, Flag, Type, Name
end
San Andreas Identifier Type Description
A,B,C PosX, PosY, PosZ float[3] A coordinate of one of the corner marks
D,E LineX, LineY float[2] Those values are added to the first position values. They define one edge of the box
F,G,H CubeX, CubeY, CubeZ float[3] Another world coordinate. Together with the abstract line created with the first 5 coordinates this forms a cube in the world.
I Flags integer The garage behaviour (see below)
J Type integer The garage type
K Name string The garage name, a string which is used to manipulate the behaviour of garages through the main.scm

Garage flags

Flag Description
0x1 door opens up and rotate
0x2 door goes in
0x4 camera follow players

Sum the flags to mix them

Flag combination and their results:

Flag Description
1 door opens up and out, camera remotely follows player
2 door opens straight up, camera remotely follows player
3 door opens up and in, camera remotely follows player
4 door opens straight up, camera follows player
5 door opens up and out, camera follows player
6 door opens straight up, camera follows player
7 door opens up and in, camera follows player

Notes

Garage Doors

The garage door only opens if the IDE flag value of the door is 2048 and the door is defined in the object.dat file.

Garage doors are very important for the camera rotation. They control how the camera moves after you have entered a garage. If your camera moves wrong, then simply rotate the pivot of your garage door, map the new one and rotate it until it fits with the rotation you want. Then test if the camera moves correctly in-game.

If you have not mapped a garage door the camera will move to the west, which corresponds to a garage door rotation of 0 degrees around the z axis.

Limits

GTA San Andreas have a limit of 50 garages, and those 50 garages are already used by default in the game. See Tools for solutions.

Tools

San Andreas GTA Net GTAForums: Garage eXtender – Increases the garages limit and more - by Link2012

External links