Struct HeatHaze
Struct to define different heat haze properties in the GTA world
Inherited Members
Namespace: Slipe.Shared.GameWorld
Assembly: SlipeShared.dll
Syntax
public struct HeatHaze
Constructors
| Improve this Doc View SourceHeatHaze(Int32, Int32, Int32, Int32)
Heat haze with optional paramters as default
Declaration
public HeatHaze(int intensity = 0, int randomShift = 0, int speedMin = 12, int speedMax = 18)
Parameters
Type | Name | Description |
---|---|---|
Int32 | intensity | |
Int32 | randomShift | |
Int32 | speedMin | |
Int32 | speedMax |
HeatHaze(Int32, Int32, Int32, Int32, Vector2, Vector2, Boolean)
Create a heat haze struct
Declaration
public HeatHaze(int intensity, int randomShift, int speedMin, int speedMax, Vector2 scanSize, Vector2 renderSize, bool showInside = false)
Parameters
Type | Name | Description |
---|---|---|
Int32 | intensity | |
Int32 | randomShift | |
Int32 | speedMin | |
Int32 | speedMax | |
Vector2 | scanSize | |
Vector2 | renderSize | |
Boolean | showInside |
Properties
| Improve this Doc View SourceIntensity
The intensity of the effect, from 0 to 255.
Declaration
public int Intensity { readonly get; set; }
Property Value
Type | Description |
---|---|
Int32 |
RandomShift
A random jitter, from 0 to 255.
Declaration
public int RandomShift { readonly get; set; }
Property Value
Type | Description |
---|---|
Int32 |
RenderSize
Size in pixels the chunk will be when rendered back to the screen, from 0 to 1000.
Declaration
public Vector2 RenderSize { readonly get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
ScanSize
Size in pixels of the chunk grabbed from the screen, from -1000 to 1000.
Declaration
public Vector2 ScanSize { readonly get; set; }
Property Value
Type | Description |
---|---|
Vector2 |
ShowInside
Set to true to enable the heat haze effect when inside a building.
Declaration
public bool ShowInside { readonly get; set; }
Property Value
Type | Description |
---|---|
Boolean |
SpeedMax
The fastest effect speed, from 0 to 1000.
Declaration
public int SpeedMax { readonly get; set; }
Property Value
Type | Description |
---|---|
Int32 |
SpeedMin
The slowest effect speed, from 0 to 1000.
Declaration
public int SpeedMin { readonly get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceFromRaw(Tuple<Int32, Int32, Int32, Int32, Int32, Int32, Int32, Tuple<Int32, Boolean>>)
Creates a heat haze from the raw MTA function output
Declaration
public static HeatHaze FromRaw(Tuple<int, int, int, int, int, int, int, Tuple<int, bool>> raw)
Parameters
Type | Name | Description |
---|---|---|
Tuple<Int32, Int32, Int32, Int32, Int32, Int32, Int32, Tuple<Int32, Boolean>> | raw |
Returns
Type | Description |
---|---|
HeatHaze |