Difference between revisions of "024F"

From GTAMods Wiki
Jump to navigation Jump to search
(created article)
 
m (Types of Coronas)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{OpCode
+
{{Icon|trilogy}} '''DRAW_CORONA'''
| ini        = 024F=9,%4d% %5d% %6d% %7d% %8d% %9d% %1d% %2d% %3d%
+
<hr />
| description = Creates a corona
+
'''Description'''
| p1          = x-coordinate
+
: Draws a corona
| p2          = y-coordinate
+
'''Syntax'''
| p3          = z-coordinate
+
: 024F: create_corona_with_radius [''flt1''] type [''int1''] lensflares [''int2''] with_color [''int3''] [''int4''] [''int5''] at [''flt2''] [''flt3''] [''flt4'']
| p4          = radius (float)
+
'''Parameter'''
| p5          = [[024F#Types of Coronas|corona type]]
+
: [''flt1'']
| p6          = [[024F#Types of Lens Flare|lensflare]]
+
:: Radius, slightly larger than the standard game units
| p7          = R
+
: [''int1'']
| p8          = G
+
:: [[#Types of Coronas|Type]]
| p9          = B
+
: [''int2'']
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]], [[Liberty City Stories]] (0254)
+
:: [[#Types of Lens Flare|Lensflare]]
}}
+
: [''int3'']
This creates a corona at the coordinate. It is nearly identical to opcode [[04D5]]. This opcode has to be placed in a [[Create a thread#Loops|loop]] in order for the corona to appear. When the corona appears and disappears, it fades in and out. They are transparent textures and all textures used for the coronas are from the <code>[[particles.txd]]</code> file. Coronas are mainly used as checkpoints in races in the games. Note that the first three parameters are placed at the beginning instead of in the beginning.
+
:: [[wikipedia:RGB color model|Red]]
[[Sanny Builder]] example:<source lang="scm">024F: create_corona_with_radius 1.0 type 6 lensflares 0 with_color 255 0 0 at_point 0.0 0.0 0.0</source>
+
: [''int4'']
 +
:: Green
 +
: [''int5'']
 +
:: Blue
 +
: [''flt2'']
 +
:: X-coordinate
 +
: [''flt3'']
 +
:: Y-coordinate
 +
: [''flt4'']
 +
:: Z-coordinate
 +
'''Native analog'''
 +
: [[DRAW_CORONA]]
  
==Note==
+
This opcode draws a corona at a point. It is nearly identical to opcode [[04D5]] and behaves like [[2DFX#Type 0: Lights|2DFX type 0 lights]]: it is transparent, the corona texture will point towards the player, and "dark" colors means decreased light intensity of the corona. All the corona textures are from the <code>[[particle.txd]]</code> file. This opcode must be placed in a [[Create a thread#Loops|loop]] in order for the corona to appear. Once the corona is placed in a loop, it begins to appear by fading in. When not placed in a loop anymore, it fades out and disappears. Coronas are mainly used as checkpoints in races in the games.  
The above format is more commonly used. The actual format of this opcode is in order:<br>
 
<code>024F=9,%1d% %2d% %3d% %4d% %5d% %6d% %7d% %8d% %9d%</code><br>
 
The format to use depends on which INI file you use.
 
  
 
==Types of Coronas==
 
==Types of Coronas==
Line 32: Line 40:
 
|-
 
|-
 
| 0
 
| 0
|  
+
| [[File:3Corona0.png|150px|Type 0]]
| [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/Corona0.png Type 0]
+
| [[File:VCorona0.png|150px|Type 0]]
 
|  
 
|  
 
| coronastar
 
| coronastar
Line 39: Line 47:
 
|-
 
|-
 
| 1
 
| 1
|  
+
| [[File:3Corona1.png|150px|Type 1]]
| [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/Corona1.png Type 1]
+
| [[File:VCorona1.png|150px|Type 1]]
 
|  
 
|  
 
| coronastar
 
| coronastar
Line 46: Line 54:
 
|-
 
|-
 
| 2
 
| 2
|  
+
| [[File:3Corona2.png|150px|Type 2]]
| [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/Corona2.png Type 2]
+
| [[File:VCorona2.png|150px|Type 2]]
 
|  
 
|  
 
| coronamoon
 
| coronamoon
Line 53: Line 61:
 
|-
 
|-
 
| 3
 
| 3
|  
+
| [[File:3Corona3.png|150px|Type 3]]
| [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/Corona3.png Type 3]
+
| [[File:VCorona3.png|150px|Type 3]]
 
|  
 
|  
 
| coronareflect
 
| coronareflect
| Oval light used in sun "reflections"
+
| Oval light used for "reflective" lights
 
|-
 
|-
 
| 4
 
| 4
|  
+
| [[File:3Corona4.png|150px|Type 4]]
| [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/Corona4.png Type 4]
+
| [[File:VCorona4.png|150px|Type 4]]
 
|  
 
|  
 
| coronaheadlightline
 
| coronaheadlightline
Line 67: Line 75:
 
|-
 
|-
 
| 5
 
| 5
 +
| [[File:3Corona5.png|150px|Type 5]]
 +
| [[File:VCorona5.png|150px|Type 5]]
 
|  
 
|  
| [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/Corona5.png Type 5]
+
| coronahex
|
 
| coronahax
 
 
| Hexagonal light
 
| Hexagonal light
 
|-
 
|-
 
| 6
 
| 6
|  
+
| [[File:3Corona6.png|150px|Type 6]]
| [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/Corona6.png Type 6]
+
| [[File:VCorona6.png|150px|Type 6]]
 
|  
 
|  
 
| coronacircle
 
| coronacircle
Line 81: Line 89:
 
|-
 
|-
 
| 7
 
| 7
|  
+
| [[File:3Corona7.png|150px|Type 7]]
| [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/Corona7.png Type 7]
+
| [[File:VCorona7.png|150px|Type 7]]
 
|  
 
|  
 
| coronaringa
 
| coronaringa
Line 88: Line 96:
 
|-
 
|-
 
| 8
 
| 8
 +
| [[File:3Corona8.png|150px|Type 8]]
 +
| [[File:VCorona8.png|150px|Type 8]]
 
|  
 
|  
| [http://img.photobucket.com/albums/v41/spaceeinstein/GTAModding/Corona8.png Type 8]
+
| streek
|
 
|
 
 
| Very thin and long light
 
| Very thin and long light
 
|}
 
|}
Line 110: Line 118:
 
| white
 
| white
 
|}
 
|}
 +
 +
== Keywords ==
 +
create, draw, corona, color, rgb
 +
 +
[[Category:OpCodes]]

Latest revision as of 20:56, 18 July 2015

GTA III Vice City San Andreas DRAW_CORONA


Description

Draws a corona

Syntax

024F: create_corona_with_radius [flt1] type [int1] lensflares [int2] with_color [int3] [int4] [int5] at [flt2] [flt3] [flt4]

Parameter

[flt1]
Radius, slightly larger than the standard game units
[int1]
Type
[int2]
Lensflare
[int3]
Red
[int4]
Green
[int5]
Blue
[flt2]
X-coordinate
[flt3]
Y-coordinate
[flt4]
Z-coordinate

Native analog

DRAW_CORONA

This opcode draws a corona at a point. It is nearly identical to opcode 04D5 and behaves like 2DFX type 0 lights: it is transparent, the corona texture will point towards the player, and "dark" colors means decreased light intensity of the corona. All the corona textures are from the particle.txd file. This opcode must be placed in a loop in order for the corona to appear. Once the corona is placed in a loop, it begins to appear by fading in. When not placed in a loop anymore, it fades out and disappears. Coronas are mainly used as checkpoints in races in the games.

Types of Coronas

Values not listed in the table will crash the game. The following images all have a size of 1.0 with the color white.

Type GTA III Vice City San Andreas Texture Description
0 Type 0 Type 0 coronastar Solid light
1 Type 1 Type 1 coronastar Slightly brighter solid light
2 Type 2 Type 2 coronamoon Moon
3 Type 3 Type 3 coronareflect Oval light used for "reflective" lights
4 Type 4 Type 4 coronaheadlightline Elongated light
5 Type 5 Type 5 coronahex Hexagonal light
6 Type 6 Type 6 coronacircle Circular light
7 Type 7 Type 7 coronaringa Ring light
8 Type 8 Type 8 streek Very thin and long light

Types of Lens Flare

Lens flare is the light scattering effect on the lens of a camera. The most noticeably obvious use of lens flare in the games is when the player looks toward the sun but not directly at the sun.

Lensflare Description
0 none
1 yellow
2 white

Keywords

create, draw, corona, color, rgb