@tlua/gmod 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/achievementicon.d.tlua +0 -1
- package/types/achievements.d.tlua +15 -16
- package/types/ai.d.tlua +5 -6
- package/types/ai_schedule.d.tlua +0 -1
- package/types/ai_task.d.tlua +0 -1
- package/types/angle.d.tlua +18 -19
- package/types/avatarimage.d.tlua +0 -1
- package/types/awesomium.d.tlua +0 -1
- package/types/baseclass.d.tlua +1 -3
- package/types/bf_read.d.tlua +10 -12
- package/types/bit.d.tlua +11 -12
- package/types/button.d.tlua +0 -1
- package/types/cam.d.tlua +16 -17
- package/types/ceffectdata.d.tlua +31 -33
- package/types/chat.d.tlua +5 -6
- package/types/checkbutton.d.tlua +0 -1
- package/types/cleanup.d.tlua +7 -8
- package/types/cluaemitter.d.tlua +11 -13
- package/types/clualocomotion.d.tlua +39 -41
- package/types/cluaparticle.d.tlua +43 -45
- package/types/cmovedata.d.tlua +46 -48
- package/types/cnavarea.d.tlua +76 -78
- package/types/cnavladder.d.tlua +21 -23
- package/types/cnewparticleeffect.d.tlua +25 -27
- package/types/color.d.tlua +28 -29
- package/types/concommand.d.tlua +4 -5
- package/types/constraint.d.tlua +28 -29
- package/types/construct.d.tlua +1 -2
- package/types/contentheader.d.tlua +1 -3
- package/types/contenticon.d.tlua +7 -9
- package/types/contentsidebar.d.tlua +2 -4
- package/types/contentsidebartoolbox.d.tlua +0 -1
- package/types/contextbase.d.tlua +2 -4
- package/types/controlpanel.d.tlua +11 -14
- package/types/controlpresets.d.tlua +11 -13
- package/types/convar.d.tlua +15 -17
- package/types/cookie.d.tlua +3 -4
- package/types/coroutine.d.tlua +7 -8
- package/types/crecipientfilter.d.tlua +15 -17
- package/types/csent.d.tlua +0 -1
- package/types/csoundpatch.d.tlua +13 -15
- package/types/ctakedamageinfo.d.tlua +32 -34
- package/types/ctrllistbox.d.tlua +0 -1
- package/types/ctrlnumpad.d.tlua +5 -7
- package/types/cusercmd.d.tlua +26 -28
- package/types/custom_entity_fields.d.tlua +0 -1
- package/types/cvars.d.tlua +6 -7
- package/types/dadjustablemodelpanel.d.tlua +5 -7
- package/types/dalphabar.d.tlua +1 -3
- package/types/dbinder.d.tlua +2 -4
- package/types/dbubblecontainer.d.tlua +0 -2
- package/types/dbutton.d.tlua +6 -8
- package/types/dcategoryheader.d.tlua +0 -1
- package/types/dcategorylist.d.tlua +0 -1
- package/types/dcheckbox.d.tlua +3 -5
- package/types/dcheckboxlabel.d.tlua +9 -10
- package/types/dcollapsiblecategory.d.tlua +21 -23
- package/types/dcolorbutton.d.tlua +5 -7
- package/types/dcolorcombo.d.tlua +3 -5
- package/types/dcolorcube.d.tlua +11 -13
- package/types/dcolormixer.d.tlua +25 -27
- package/types/dcolorpalette.d.tlua +21 -23
- package/types/dcolumnsheet.d.tlua +3 -5
- package/types/dcombobox.d.tlua +15 -17
- package/types/ddragbase.d.tlua +11 -13
- package/types/ddrawer.d.tlua +6 -8
- package/types/debug.d.tlua +16 -19
- package/types/debugoverlay.d.tlua +11 -12
- package/types/dentityproperties.d.tlua +3 -5
- package/types/derma.d.tlua +10 -11
- package/types/dexpandbutton.d.tlua +1 -3
- package/types/dfilebrowser.d.tlua +20 -21
- package/types/dform.d.tlua +16 -18
- package/types/dframe.d.tlua +24 -25
- package/types/dgrid.d.tlua +9 -11
- package/types/dhorizontaldivider.d.tlua +18 -20
- package/types/dhorizontalscroller.d.tlua +9 -11
- package/types/dhscrollbar.d.tlua +9 -11
- package/types/dhtml.d.tlua +6 -8
- package/types/dhtmlcontrols.d.tlua +5 -6
- package/types/diconbrowser.d.tlua +9 -11
- package/types/diconlayout.d.tlua +16 -18
- package/types/dimage.d.tlua +17 -20
- package/types/dimagebutton.d.tlua +9 -10
- package/types/dkillicon.d.tlua +0 -1
- package/types/dlabel.d.tlua +31 -33
- package/types/dlabeleditable.d.tlua +3 -5
- package/types/dlabelurl.d.tlua +8 -10
- package/types/dlistbox.d.tlua +6 -8
- package/types/dlistboxitem.d.tlua +2 -4
- package/types/dlistlayout.d.tlua +0 -1
- package/types/dlistview.d.tlua +32 -34
- package/types/dlistview_column.d.tlua +12 -14
- package/types/dlistview_columnplain.d.tlua +0 -1
- package/types/dlistview_draggerbar.d.tlua +0 -1
- package/types/dlistview_line.d.tlua +11 -13
- package/types/dlistviewheaderlabel.d.tlua +0 -1
- package/types/dlistviewlabel.d.tlua +0 -1
- package/types/dlistviewline.d.tlua +0 -1
- package/types/dmenu.d.tlua +23 -28
- package/types/dmenubar.d.tlua +2 -7
- package/types/dmenuoption.d.tlua +11 -13
- package/types/dmenuoptioncvar.d.tlua +4 -6
- package/types/dmodelpanel.d.tlua +20 -22
- package/types/dmodelselect.d.tlua +0 -2
- package/types/dmodelselectmulti.d.tlua +0 -2
- package/types/dnotify.d.tlua +8 -10
- package/types/dnumberscratch.d.tlua +24 -26
- package/types/dnumberwang.d.tlua +14 -16
- package/types/dnumpad.d.tlua +0 -1
- package/types/dnumslider.d.tlua +17 -18
- package/types/dpanel.d.tlua +12 -14
- package/types/dpanellist.d.tlua +11 -12
- package/types/dpaneloverlay.d.tlua +5 -7
- package/types/dpanelselect.d.tlua +0 -1
- package/types/dpanpanel.d.tlua +4 -6
- package/types/dprogress.d.tlua +1 -3
- package/types/dproperties.d.tlua +2 -4
- package/types/dproperty_boolean.d.tlua +0 -1
- package/types/dproperty_combo.d.tlua +1 -3
- package/types/dproperty_entity.d.tlua +0 -1
- package/types/dproperty_float.d.tlua +0 -1
- package/types/dproperty_generic.d.tlua +3 -5
- package/types/dproperty_int.d.tlua +0 -1
- package/types/dproperty_vectorcolor.d.tlua +0 -1
- package/types/dpropertysheet.d.tlua +15 -17
- package/types/dragndrop.d.tlua +10 -11
- package/types/draw.d.tlua +10 -12
- package/types/drgbpicker.d.tlua +2 -4
- package/types/drive.d.tlua +11 -13
- package/types/dscrollbargrip.d.tlua +0 -1
- package/types/dscrollpanel.d.tlua +10 -11
- package/types/dshape.d.tlua +5 -7
- package/types/dsizetocontents.d.tlua +3 -5
- package/types/dslider.d.tlua +26 -28
- package/types/dsprite.d.tlua +7 -9
- package/types/dtab.d.tlua +6 -8
- package/types/dtextentry.d.tlua +41 -43
- package/types/dtilelayout.d.tlua +19 -21
- package/types/dtooltip.d.tlua +4 -6
- package/types/dtree.d.tlua +14 -16
- package/types/dtree_node.d.tlua +66 -68
- package/types/dtree_node_button.d.tlua +0 -1
- package/types/duplicator.d.tlua +29 -31
- package/types/dverticaldivider.d.tlua +21 -23
- package/types/dvscrollbar.d.tlua +9 -11
- package/types/editablepanel.d.tlua +0 -1
- package/types/effect.d.tlua +2 -4
- package/types/effects.d.tlua +6 -7
- package/types/engine.d.tlua +21 -22
- package/types/entity.d.tlua +643 -674
- package/types/ents.d.tlua +19 -25
- package/types/enums.d.tlua +0 -1
- package/types/file.d.tlua +39 -40
- package/types/file_class.d.tlua +0 -1
- package/types/fingerposer.d.tlua +0 -1
- package/types/fingervar.d.tlua +0 -1
- package/types/frame.d.tlua +0 -1
- package/types/frame_blend.d.tlua +7 -8
- package/types/game.d.tlua +39 -40
- package/types/gameevent.d.tlua +0 -1
- package/types/gamemode.d.tlua +2 -4
- package/types/global.d.tlua +0 -18
- package/types/gm.d.tlua +266 -268
- package/types/gmod.d.tlua +0 -1
- package/types/gmsave.d.tlua +4 -5
- package/types/gui.d.tlua +21 -22
- package/types/gwen.d.tlua +3 -4
- package/types/halo.d.tlua +2 -3
- package/types/hammer.d.tlua +0 -1
- package/types/hook.d.tlua +4 -5
- package/types/html.d.tlua +0 -1
- package/types/http.d.tlua +1 -2
- package/types/iconeditor.d.tlua +9 -11
- package/types/igmodaudiochannel.d.tlua +40 -42
- package/types/imagecheckbox.d.tlua +2 -4
- package/types/imaterial.d.tlua +25 -27
- package/types/imesh.d.tlua +4 -6
- package/types/input.d.tlua +22 -25
- package/types/invalidateinternalentitycache.d.tlua +0 -1
- package/types/irestore.d.tlua +8 -10
- package/types/isave.d.tlua +8 -10
- package/types/itexture.d.tlua +9 -11
- package/types/ivideowriter.d.tlua +4 -6
- package/types/jit.d.tlua +16 -17
- package/types/killicon.d.tlua +7 -8
- package/types/label.d.tlua +0 -1
- package/types/language.d.tlua +1 -2
- package/types/list.d.tlua +8 -9
- package/types/makeballoon.d.tlua +0 -1
- package/types/markup.d.tlua +2 -3
- package/types/markupobject.d.tlua +4 -6
- package/types/material.d.tlua +0 -1
- package/types/math.d.tlua +83 -84
- package/types/matproxy.d.tlua +3 -4
- package/types/matselect.d.tlua +9 -11
- package/types/menu.d.tlua +0 -1
- package/types/menubar.d.tlua +2 -3
- package/types/mesh.d.tlua +19 -20
- package/types/modelimage.d.tlua +0 -1
- package/types/motionsensor.d.tlua +10 -11
- package/types/navmesh.d.tlua +26 -27
- package/types/net.d.tlua +51 -53
- package/types/nextbot.d.tlua +34 -37
- package/types/notification.d.tlua +2 -3
- package/types/npc.d.tlua +180 -182
- package/types/numpad.d.tlua +7 -8
- package/types/os.d.tlua +3 -5
- package/types/package.d.tlua +0 -1
- package/types/panel.d.tlua +329 -331
- package/types/panellist.d.tlua +0 -1
- package/types/pathfollower.d.tlua +30 -32
- package/types/permissions.d.tlua +6 -7
- package/types/physcollide.d.tlua +2 -4
- package/types/physenv.d.tlua +11 -12
- package/types/physobj.d.tlua +77 -79
- package/types/pixelvis_handle_t.d.tlua +0 -1
- package/types/player.d.tlua +288 -293
- package/types/player_manager.d.tlua +13 -14
- package/types/preseteditor.d.tlua +0 -1
- package/types/presets.d.tlua +6 -7
- package/types/projectedtexture.d.tlua +47 -49
- package/types/properties.d.tlua +5 -6
- package/types/propselect.d.tlua +3 -5
- package/types/radiobutton.d.tlua +0 -1
- package/types/render.d.tlua +142 -143
- package/types/resource.d.tlua +2 -3
- package/types/richtext.d.tlua +0 -1
- package/types/sandbox.d.tlua +52 -54
- package/types/saverestore.d.tlua +12 -13
- package/types/schedule.d.tlua +5 -7
- package/types/scripted_ents.d.tlua +9 -12
- package/types/search.d.tlua +1 -2
- package/types/serverlist.d.tlua +7 -8
- package/types/slidebar.d.tlua +0 -1
- package/types/slider.d.tlua +0 -1
- package/types/sound.d.tlua +10 -11
- package/types/spawnicon.d.tlua +6 -8
- package/types/spawnmenu.d.tlua +23 -25
- package/types/spawnmenucontentpanel.d.tlua +3 -5
- package/types/sql.d.tlua +9 -10
- package/types/stack.d.tlua +4 -6
- package/types/steamworks.d.tlua +18 -19
- package/types/string.d.tlua +46 -50
- package/types/structures.d.tlua +0 -7
- package/types/surface.d.tlua +34 -35
- package/types/surfaceinfo.d.tlua +4 -6
- package/types/system.d.tlua +10 -11
- package/types/table.d.tlua +45 -48
- package/types/task.d.tlua +8 -10
- package/types/team.d.tlua +19 -20
- package/types/textentry.d.tlua +0 -1
- package/types/tgaimage.d.tlua +0 -1
- package/types/timer.d.tlua +14 -15
- package/types/tool.d.tlua +42 -46
- package/types/ugcpublishwindow.d.tlua +7 -9
- package/types/umsg.d.tlua +12 -13
- package/types/undo.d.tlua +10 -11
- package/types/urllabel.d.tlua +0 -1
- package/types/usermessage.d.tlua +2 -3
- package/types/utf8.d.tlua +7 -8
- package/types/util.d.tlua +90 -95
- package/types/vector.d.tlua +36 -37
- package/types/vehicle.d.tlua +48 -51
- package/types/vgui.d.tlua +14 -19
- package/types/video.d.tlua +0 -1
- package/types/vmatrix.d.tlua +35 -36
- package/types/weapon.d.tlua +81 -84
- package/types/weapons.d.tlua +5 -7
- package/types/widgets.d.tlua +1 -2
- package/types/workshopfilebase.d.tlua +4 -6
package/types/vector.d.tlua
CHANGED
|
@@ -19,24 +19,28 @@ interface Vector {
|
|
|
19
19
|
__mul(l: number, r: Vector): Vector;
|
|
20
20
|
__div(l: Vector, r: Vector | number): Vector;
|
|
21
21
|
__unm(v: Vector): Vector;
|
|
22
|
+
|
|
22
23
|
/**
|
|
23
24
|
* Adds the values of the argument vector to the original vector. This function is the same as vector1 + vector2 without creating a new vector object, skipping object construction and garbage collection.
|
|
24
25
|
* @realm shared and menu
|
|
25
26
|
* @source https://wiki.facepunch.com/gmod/Vector:Add
|
|
26
27
|
*/
|
|
27
28
|
Add(self: Vector, vector: Vector): void;
|
|
29
|
+
|
|
28
30
|
/**
|
|
29
31
|
* Returns an angle representing the normal of the vector.
|
|
30
32
|
* @realm shared and menu
|
|
31
33
|
* @source https://wiki.facepunch.com/gmod/Vector:Angle
|
|
32
34
|
*/
|
|
33
35
|
Angle(self: Vector): Angle;
|
|
36
|
+
|
|
34
37
|
/**
|
|
35
38
|
* Returns the angle of this vector (normalized), but instead of assuming that up is [Global.Vector](https://wiki.facepunch.com/gmod/Global.Vector)( 0, 0, 1 ) (Like [Vector:Angle](https://wiki.facepunch.com/gmod/Vector:Angle) does) you can specify which direction is 'up' for the angle.
|
|
36
39
|
* @realm shared and menu
|
|
37
40
|
* @source https://wiki.facepunch.com/gmod/Vector:AngleEx
|
|
38
41
|
*/
|
|
39
42
|
AngleEx(self: Vector, up: Vector): Angle;
|
|
43
|
+
|
|
40
44
|
/**
|
|
41
45
|
* Calculates the cross product of this vector and the passed one.
|
|
42
46
|
*
|
|
@@ -48,6 +52,7 @@ interface Vector {
|
|
|
48
52
|
* @source https://wiki.facepunch.com/gmod/Vector:Cross
|
|
49
53
|
*/
|
|
50
54
|
Cross(self: Vector, otherVector: Vector): Vector;
|
|
55
|
+
|
|
51
56
|
/**
|
|
52
57
|
* Returns the squared distance of 2 vectors, this is quicker to call than [Vector:Distance](https://wiki.facepunch.com/gmod/Vector:Distance) as DistToSqr does not need to calculate the square root, which is an expensive process.
|
|
53
58
|
*
|
|
@@ -60,6 +65,7 @@ interface Vector {
|
|
|
60
65
|
* @source https://wiki.facepunch.com/gmod/Vector:DistToSqr
|
|
61
66
|
*/
|
|
62
67
|
DistToSqr(self: Vector, otherVec: Vector): number;
|
|
68
|
+
|
|
63
69
|
/**
|
|
64
70
|
* Returns the Euclidean distance between the vector and the other vector.
|
|
65
71
|
*
|
|
@@ -70,6 +76,7 @@ interface Vector {
|
|
|
70
76
|
* @source https://wiki.facepunch.com/gmod/Vector:Distance
|
|
71
77
|
*/
|
|
72
78
|
Distance(self: Vector, otherVector: Vector): number;
|
|
79
|
+
|
|
73
80
|
/**
|
|
74
81
|
* Returns the Euclidean distance between the vector and the other vector in 2D space. The Z axis is ignored.
|
|
75
82
|
*
|
|
@@ -80,6 +87,7 @@ interface Vector {
|
|
|
80
87
|
* @source https://wiki.facepunch.com/gmod/Vector:Distance2D
|
|
81
88
|
*/
|
|
82
89
|
Distance2D(self: Vector, otherVector: Vector): number;
|
|
90
|
+
|
|
83
91
|
/**
|
|
84
92
|
* Returns the squared distance between 2 vectors in 2D space, ignoring the Z axis. This is faster than [Vector:Distance2D](https://wiki.facepunch.com/gmod/Vector:Distance2D) as calculating the square root is an expensive process.
|
|
85
93
|
*
|
|
@@ -92,12 +100,14 @@ interface Vector {
|
|
|
92
100
|
* @source https://wiki.facepunch.com/gmod/Vector:Distance2DSqr
|
|
93
101
|
*/
|
|
94
102
|
Distance2DSqr(self: Vector, otherVec: Vector): number;
|
|
103
|
+
|
|
95
104
|
/**
|
|
96
105
|
* Divide the vector by the given number, that means x, y and z are divided by that value. This will change the value of the original vector, see example 2 for division without changing the value.
|
|
97
106
|
* @realm shared and menu
|
|
98
107
|
* @source https://wiki.facepunch.com/gmod/Vector:Div
|
|
99
108
|
*/
|
|
100
109
|
Div(self: Vector, divisor: number): void;
|
|
110
|
+
|
|
101
111
|
/**
|
|
102
112
|
* Returns the [dot product](https://en.wikipedia.org/wiki/Dot_product#Geometric_definition) of this vector and the passed one.
|
|
103
113
|
*
|
|
@@ -112,6 +122,7 @@ interface Vector {
|
|
|
112
122
|
* @source https://wiki.facepunch.com/gmod/Vector:Dot
|
|
113
123
|
*/
|
|
114
124
|
Dot(self: Vector, otherVector: Vector): number;
|
|
125
|
+
|
|
115
126
|
/**
|
|
116
127
|
* Returns the dot product of the two vectors.
|
|
117
128
|
* @realm shared and menu
|
|
@@ -119,6 +130,7 @@ interface Vector {
|
|
|
119
130
|
* @deprecated This is an alias of Vector:Dot. Use that instead.
|
|
120
131
|
*/
|
|
121
132
|
DotProduct(self: Vector, Vector: Vector): number;
|
|
133
|
+
|
|
122
134
|
/**
|
|
123
135
|
* Returns the negative version of this vector, i.e. a vector with every component to the negative value of itself.
|
|
124
136
|
*
|
|
@@ -128,6 +140,7 @@ interface Vector {
|
|
|
128
140
|
* @source https://wiki.facepunch.com/gmod/Vector:GetNegated
|
|
129
141
|
*/
|
|
130
142
|
GetNegated(self: Vector): Vector;
|
|
143
|
+
|
|
131
144
|
/**
|
|
132
145
|
* Returns a normalized version of the vector. This is a alias of [Vector:GetNormalized](https://wiki.facepunch.com/gmod/Vector:GetNormalized).
|
|
133
146
|
*
|
|
@@ -136,6 +149,7 @@ interface Vector {
|
|
|
136
149
|
* @deprecated Use Vector:GetNormalized instead.
|
|
137
150
|
*/
|
|
138
151
|
GetNormal(self: Vector): Vector;
|
|
152
|
+
|
|
139
153
|
/**
|
|
140
154
|
* Returns a normalized version of the vector. Normalized means vector with same direction but with length of 1.
|
|
141
155
|
*
|
|
@@ -145,18 +159,21 @@ interface Vector {
|
|
|
145
159
|
* @source https://wiki.facepunch.com/gmod/Vector:GetNormalized
|
|
146
160
|
*/
|
|
147
161
|
GetNormalized(self: Vector): Vector;
|
|
162
|
+
|
|
148
163
|
/**
|
|
149
164
|
* Returns if the vector is equal to another vector with the given tolerance.
|
|
150
165
|
* @realm shared and menu
|
|
151
166
|
* @source https://wiki.facepunch.com/gmod/Vector:IsEqualTol
|
|
152
167
|
*/
|
|
153
168
|
IsEqualTol(self: Vector, compare: Vector, tolerance: number): boolean;
|
|
169
|
+
|
|
154
170
|
/**
|
|
155
171
|
* Checks whenever all fields of the vector are 0.
|
|
156
172
|
* @realm shared and menu
|
|
157
173
|
* @source https://wiki.facepunch.com/gmod/Vector:IsZero
|
|
158
174
|
*/
|
|
159
175
|
IsZero(self: Vector): boolean;
|
|
176
|
+
|
|
160
177
|
/**
|
|
161
178
|
* Returns the [Euclidean length](https://en.wikipedia.org/wiki/Euclidean_vector#Length) of the vector: √(x² + y² + z²).
|
|
162
179
|
*
|
|
@@ -167,6 +184,7 @@ interface Vector {
|
|
|
167
184
|
* @source https://wiki.facepunch.com/gmod/Vector:Length
|
|
168
185
|
*/
|
|
169
186
|
Length(self: Vector): number;
|
|
187
|
+
|
|
170
188
|
/**
|
|
171
189
|
* Returns the length of the vector in two dimensions, without the Z axis.
|
|
172
190
|
*
|
|
@@ -177,6 +195,7 @@ interface Vector {
|
|
|
177
195
|
* @source https://wiki.facepunch.com/gmod/Vector:Length2D
|
|
178
196
|
*/
|
|
179
197
|
Length2D(self: Vector): number;
|
|
198
|
+
|
|
180
199
|
/**
|
|
181
200
|
* Returns the squared length of the vectors x and y value, x² + y².
|
|
182
201
|
*
|
|
@@ -186,6 +205,7 @@ interface Vector {
|
|
|
186
205
|
* @source https://wiki.facepunch.com/gmod/Vector:Length2DSqr
|
|
187
206
|
*/
|
|
188
207
|
Length2DSqr(self: Vector): number;
|
|
208
|
+
|
|
189
209
|
/**
|
|
190
210
|
* Returns the squared length of the vector, x² + y² + z².
|
|
191
211
|
*
|
|
@@ -195,32 +215,39 @@ interface Vector {
|
|
|
195
215
|
* @source https://wiki.facepunch.com/gmod/Vector:LengthSqr
|
|
196
216
|
*/
|
|
197
217
|
LengthSqr(self: Vector): number;
|
|
218
|
+
|
|
198
219
|
/**
|
|
199
220
|
* Scales the vector by the given [number](https://wiki.facepunch.com/gmod/number) (that means x, y and z are multiplied by that value), a [Vector](https://wiki.facepunch.com/gmod/Vector) (X, Y, and Z of each vector are multiplied) or a [VMatrix](https://wiki.facepunch.com/gmod/VMatrix) (Transforms the vector by the matrix's rotation/translation).
|
|
200
221
|
* @realm shared and menu
|
|
201
222
|
* @source https://wiki.facepunch.com/gmod/Vector:Mul
|
|
202
223
|
*/
|
|
203
224
|
Mul(self: Vector, multiplier: number): void;
|
|
225
|
+
|
|
204
226
|
Mul(self: Vector, multiplier: Vector): void;
|
|
227
|
+
|
|
205
228
|
Mul(self: Vector, matrix: VMatrix): void;
|
|
229
|
+
|
|
206
230
|
/**
|
|
207
231
|
* Negates this vector, i.e. sets every component to the negative value of itself. Same as `Vector( -vec.x, -vec.y, -vec.z )`
|
|
208
232
|
* @realm shared and menu
|
|
209
233
|
* @source https://wiki.facepunch.com/gmod/Vector:Negate
|
|
210
234
|
*/
|
|
211
235
|
Negate(self: Vector): void;
|
|
236
|
+
|
|
212
237
|
/**
|
|
213
238
|
* Normalizes the given vector. This changes the vector you call it on, if you want to return a normalized copy without affecting the original, use [Vector:GetNormalized](https://wiki.facepunch.com/gmod/Vector:GetNormalized).
|
|
214
239
|
* @realm shared and menu
|
|
215
240
|
* @source https://wiki.facepunch.com/gmod/Vector:Normalize
|
|
216
241
|
*/
|
|
217
242
|
Normalize(self: Vector): void;
|
|
243
|
+
|
|
218
244
|
/**
|
|
219
245
|
* Randomizes each element of this Vector object.
|
|
220
246
|
* @realm shared and menu
|
|
221
247
|
* @source https://wiki.facepunch.com/gmod/Vector:Random
|
|
222
248
|
*/
|
|
223
249
|
Random(self: Vector, min?: number, max?: number): void;
|
|
250
|
+
|
|
224
251
|
/**
|
|
225
252
|
* Rotates a vector by the given angle.
|
|
226
253
|
* Doesn't return anything, but rather changes the original vector.
|
|
@@ -229,24 +256,28 @@ interface Vector {
|
|
|
229
256
|
* @source https://wiki.facepunch.com/gmod/Vector:Rotate
|
|
230
257
|
*/
|
|
231
258
|
Rotate(self: Vector, rotation: Angle): void;
|
|
259
|
+
|
|
232
260
|
/**
|
|
233
261
|
* Copies the values from the second vector to the first vector.
|
|
234
262
|
* @realm shared and menu
|
|
235
263
|
* @source https://wiki.facepunch.com/gmod/Vector:Set
|
|
236
264
|
*/
|
|
237
265
|
Set(self: Vector, vector: Vector): void;
|
|
266
|
+
|
|
238
267
|
/**
|
|
239
268
|
* Sets the x, y, and z of the vector.
|
|
240
269
|
* @realm shared and menu
|
|
241
270
|
* @source https://wiki.facepunch.com/gmod/Vector:SetUnpacked
|
|
242
271
|
*/
|
|
243
272
|
SetUnpacked(self: Vector, x: number, y: number, z: number): void;
|
|
273
|
+
|
|
244
274
|
/**
|
|
245
275
|
* Substracts the values of the second vector from the orignal vector, this function can be used to avoid garbage collection.
|
|
246
276
|
* @realm shared and menu
|
|
247
277
|
* @source https://wiki.facepunch.com/gmod/Vector:Sub
|
|
248
278
|
*/
|
|
249
279
|
Sub(self: Vector, vector: Vector): void;
|
|
280
|
+
|
|
250
281
|
/**
|
|
251
282
|
* Translates the [Vector](https://wiki.facepunch.com/gmod/Vector) (values ranging from 0 to 1) into a [Color](https://wiki.facepunch.com/gmod/Color). This will also range the values from 0 - 1 to 0 - 255.
|
|
252
283
|
*
|
|
@@ -260,6 +291,7 @@ interface Vector {
|
|
|
260
291
|
* @source https://wiki.facepunch.com/gmod/Vector:ToColor
|
|
261
292
|
*/
|
|
262
293
|
ToColor(self: Vector): Color;
|
|
294
|
+
|
|
263
295
|
/**
|
|
264
296
|
* Returns where on the screen the specified position vector would appear. A related function is [gui.ScreenToVector](https://wiki.facepunch.com/gmod/gui.ScreenToVector), which converts a 2D coordinate to a 3D direction.
|
|
265
297
|
*
|
|
@@ -274,18 +306,21 @@ interface Vector {
|
|
|
274
306
|
* @source https://wiki.facepunch.com/gmod/Vector:ToScreen
|
|
275
307
|
*/
|
|
276
308
|
ToScreen(self: Vector): ToScreenData;
|
|
309
|
+
|
|
277
310
|
/**
|
|
278
311
|
* Returns the vector as a table with three elements.
|
|
279
312
|
* @realm shared and menu
|
|
280
313
|
* @source https://wiki.facepunch.com/gmod/Vector:ToTable
|
|
281
314
|
*/
|
|
282
315
|
ToTable(self: Vector): table;
|
|
316
|
+
|
|
283
317
|
/**
|
|
284
318
|
* Returns the x, y, and z of the vector.
|
|
285
319
|
* @realm shared and menu
|
|
286
320
|
* @source https://wiki.facepunch.com/gmod/Vector:Unpack
|
|
287
321
|
*/
|
|
288
322
|
Unpack(self: Vector): (number, number, number);
|
|
323
|
+
|
|
289
324
|
/**
|
|
290
325
|
* Returns whenever the given vector is in a box created by the 2 other vectors.
|
|
291
326
|
*
|
|
@@ -295,6 +330,7 @@ interface Vector {
|
|
|
295
330
|
* @source https://wiki.facepunch.com/gmod/Vector:WithinAABox
|
|
296
331
|
*/
|
|
297
332
|
WithinAABox(self: Vector, boxStart: Vector, boxEnd: Vector): boolean;
|
|
333
|
+
|
|
298
334
|
/**
|
|
299
335
|
* Sets x, y and z to 0.
|
|
300
336
|
* @realm shared and menu
|
|
@@ -302,40 +338,3 @@ interface Vector {
|
|
|
302
338
|
*/
|
|
303
339
|
Zero(self: Vector): void;
|
|
304
340
|
}
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
package/types/vehicle.d.tlua
CHANGED
|
@@ -11,30 +11,35 @@ interface Vehicle extends Entity {
|
|
|
11
11
|
* @source https://wiki.facepunch.com/gmod/Vehicle:BoostTimeLeft
|
|
12
12
|
*/
|
|
13
13
|
BoostTimeLeft(self: Vehicle): number;
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* Tries to find an Exit Point for leaving vehicle, if one is unobstructed in the direction given.
|
|
16
17
|
* @realm server
|
|
17
18
|
* @source https://wiki.facepunch.com/gmod/Vehicle:CheckExitPoint
|
|
18
19
|
*/
|
|
19
20
|
CheckExitPoint(self: Vehicle, yaw: number, distance: number): Vector;
|
|
21
|
+
|
|
20
22
|
/**
|
|
21
23
|
* Sets whether the engine is enabled or disabled, i.e. can be started or not.
|
|
22
24
|
* @realm server
|
|
23
25
|
* @source https://wiki.facepunch.com/gmod/Vehicle:EnableEngine
|
|
24
26
|
*/
|
|
25
27
|
EnableEngine(self: Vehicle, enable: boolean): void;
|
|
28
|
+
|
|
26
29
|
/**
|
|
27
30
|
* Returns information about the ammo of the vehicle
|
|
28
31
|
* @realm client
|
|
29
32
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetAmmo
|
|
30
33
|
*/
|
|
31
34
|
GetAmmo(self: Vehicle): (number, number, number);
|
|
35
|
+
|
|
32
36
|
/**
|
|
33
37
|
* Returns third person camera distance.
|
|
34
38
|
* @realm shared
|
|
35
39
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetCameraDistance
|
|
36
40
|
*/
|
|
37
41
|
GetCameraDistance(self: Vehicle): number;
|
|
42
|
+
|
|
38
43
|
/**
|
|
39
44
|
* Gets the driver of the vehicle, returns NULL Entity if no driver is present.
|
|
40
45
|
* In Garry's Mod, only Players can drive vehicles.
|
|
@@ -42,24 +47,28 @@ interface Vehicle extends Entity {
|
|
|
42
47
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetDriver
|
|
43
48
|
*/
|
|
44
49
|
GetDriver(self: Vehicle): Player | NULL;
|
|
50
|
+
|
|
45
51
|
/**
|
|
46
52
|
* Returns the current speed of the vehicle in Half-Life Hammer Units (in/s). Same as [Entity:GetVelocity](https://wiki.facepunch.com/gmod/Entity:GetVelocity) + [Vector:Length](https://wiki.facepunch.com/gmod/Vector:Length).
|
|
47
53
|
* @realm server
|
|
48
54
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetHLSpeed
|
|
49
55
|
*/
|
|
50
56
|
GetHLSpeed(self: Vehicle): number;
|
|
57
|
+
|
|
51
58
|
/**
|
|
52
59
|
* Returns the max speed of the vehicle in MPH.
|
|
53
60
|
* @realm server
|
|
54
61
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetMaxSpeed
|
|
55
62
|
*/
|
|
56
63
|
GetMaxSpeed(self: Vehicle): number;
|
|
64
|
+
|
|
57
65
|
/**
|
|
58
66
|
* Returns some info about the vehicle.
|
|
59
67
|
* @realm server
|
|
60
68
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetOperatingParams
|
|
61
69
|
*/
|
|
62
70
|
GetOperatingParams(self: Vehicle): OperatingParams;
|
|
71
|
+
|
|
63
72
|
/**
|
|
64
73
|
* Gets the passenger of the vehicle, returns [NULL](https://wiki.facepunch.com/gmod/NULL) if no drivers is present.
|
|
65
74
|
*
|
|
@@ -67,60 +76,70 @@ interface Vehicle extends Entity {
|
|
|
67
76
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetPassenger
|
|
68
77
|
*/
|
|
69
78
|
GetPassenger(self: Vehicle, passenger: number): Entity;
|
|
79
|
+
|
|
70
80
|
/**
|
|
71
81
|
* Returns the seat position and angle of a given passenger seat.
|
|
72
82
|
* @realm server
|
|
73
83
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetPassengerSeatPoint
|
|
74
84
|
*/
|
|
75
85
|
GetPassengerSeatPoint(self: Vehicle, role: number): (Vector, Angle);
|
|
86
|
+
|
|
76
87
|
/**
|
|
77
88
|
* Returns the current RPM of the vehicle. This value is fake and doesn't actually affect the vehicle movement.
|
|
78
89
|
* @realm server
|
|
79
90
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetRPM
|
|
80
91
|
*/
|
|
81
92
|
GetRPM(self: Vehicle): number;
|
|
93
|
+
|
|
82
94
|
/**
|
|
83
95
|
* Returns the current speed of the vehicle in MPH.
|
|
84
96
|
* @realm server
|
|
85
97
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetSpeed
|
|
86
98
|
*/
|
|
87
99
|
GetSpeed(self: Vehicle): number;
|
|
100
|
+
|
|
88
101
|
/**
|
|
89
102
|
* Returns the current steering of the vehicle.
|
|
90
103
|
* @realm server
|
|
91
104
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetSteering
|
|
92
105
|
*/
|
|
93
106
|
GetSteering(self: Vehicle): number;
|
|
107
|
+
|
|
94
108
|
/**
|
|
95
109
|
* Returns the maximum steering degree of the vehicle
|
|
96
110
|
* @realm server
|
|
97
111
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetSteeringDegrees
|
|
98
112
|
*/
|
|
99
113
|
GetSteeringDegrees(self: Vehicle): number;
|
|
114
|
+
|
|
100
115
|
/**
|
|
101
116
|
* Returns if vehicle has thirdperson mode enabled or not.
|
|
102
117
|
* @realm shared
|
|
103
118
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetThirdPersonMode
|
|
104
119
|
*/
|
|
105
120
|
GetThirdPersonMode(self: Vehicle): boolean;
|
|
121
|
+
|
|
106
122
|
/**
|
|
107
123
|
* Returns the current throttle of the vehicle.
|
|
108
124
|
* @realm server
|
|
109
125
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetThrottle
|
|
110
126
|
*/
|
|
111
127
|
GetThrottle(self: Vehicle): number;
|
|
128
|
+
|
|
112
129
|
/**
|
|
113
130
|
* Returns the vehicle class name. This is only useful for Sandbox spawned vehicles or any vehicle that properly sets the vehicle class with [Vehicle:SetVehicleClass](https://wiki.facepunch.com/gmod/Vehicle:SetVehicleClass).
|
|
114
131
|
* @realm shared
|
|
115
132
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetVehicleClass
|
|
116
133
|
*/
|
|
117
134
|
GetVehicleClass(self: Vehicle): string;
|
|
135
|
+
|
|
118
136
|
/**
|
|
119
137
|
* Returns the vehicle parameters of given vehicle.
|
|
120
138
|
* @realm server
|
|
121
139
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetVehicleParams
|
|
122
140
|
*/
|
|
123
141
|
GetVehicleParams(self: Vehicle): VehicleParams;
|
|
142
|
+
|
|
124
143
|
/**
|
|
125
144
|
* Returns the view position and forward angle of a given passenger seat.
|
|
126
145
|
*
|
|
@@ -128,66 +147,77 @@ interface Vehicle extends Entity {
|
|
|
128
147
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetVehicleViewPosition
|
|
129
148
|
*/
|
|
130
149
|
GetVehicleViewPosition(self: Vehicle, role?: number): (Vector, Angle, number);
|
|
150
|
+
|
|
131
151
|
/**
|
|
132
152
|
* Returns the [PhysObj](https://wiki.facepunch.com/gmod/PhysObj) of given wheel.
|
|
133
153
|
* @realm server
|
|
134
154
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetWheel
|
|
135
155
|
*/
|
|
136
156
|
GetWheel(self: Vehicle, wheel: number): PhysObj;
|
|
157
|
+
|
|
137
158
|
/**
|
|
138
159
|
* Returns the base wheel height.
|
|
139
160
|
* @realm server
|
|
140
161
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetWheelBaseHeight
|
|
141
162
|
*/
|
|
142
163
|
GetWheelBaseHeight(self: Vehicle, wheel: number): number;
|
|
164
|
+
|
|
143
165
|
/**
|
|
144
166
|
* Returns the wheel contact point.
|
|
145
167
|
* @realm server
|
|
146
168
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetWheelContactPoint
|
|
147
169
|
*/
|
|
148
170
|
GetWheelContactPoint(self: Vehicle, wheel: number): (Vector, number, boolean);
|
|
171
|
+
|
|
149
172
|
/**
|
|
150
173
|
* Returns the wheel count of the vehicle
|
|
151
174
|
* @realm server
|
|
152
175
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetWheelCount
|
|
153
176
|
*/
|
|
154
177
|
GetWheelCount(self: Vehicle): number;
|
|
178
|
+
|
|
155
179
|
/**
|
|
156
180
|
* Returns the total wheel height.
|
|
157
181
|
* @realm server
|
|
158
182
|
* @source https://wiki.facepunch.com/gmod/Vehicle:GetWheelTotalHeight
|
|
159
183
|
*/
|
|
160
184
|
GetWheelTotalHeight(self: Vehicle, wheel: number): number;
|
|
185
|
+
|
|
161
186
|
/**
|
|
162
187
|
* Returns whether this vehicle has boost at all.
|
|
163
188
|
* @realm server
|
|
164
189
|
* @source https://wiki.facepunch.com/gmod/Vehicle:HasBoost
|
|
165
190
|
*/
|
|
166
191
|
HasBoost(self: Vehicle): boolean;
|
|
192
|
+
|
|
167
193
|
/**
|
|
168
194
|
* Returns whether this vehicle has a brake pedal. See [Vehicle:SetHasBrakePedal](https://wiki.facepunch.com/gmod/Vehicle:SetHasBrakePedal).
|
|
169
195
|
* @realm server
|
|
170
196
|
* @source https://wiki.facepunch.com/gmod/Vehicle:HasBrakePedal
|
|
171
197
|
*/
|
|
172
198
|
HasBrakePedal(self: Vehicle): boolean;
|
|
199
|
+
|
|
173
200
|
/**
|
|
174
201
|
* Returns whether this vehicle is currently boosting or not.
|
|
175
202
|
* @realm server
|
|
176
203
|
* @source https://wiki.facepunch.com/gmod/Vehicle:IsBoosting
|
|
177
204
|
*/
|
|
178
205
|
IsBoosting(self: Vehicle): boolean;
|
|
206
|
+
|
|
179
207
|
/**
|
|
180
208
|
* Returns whether the engine is enabled or not, i.e. whether it can be started.
|
|
181
209
|
* @realm server
|
|
182
210
|
* @source https://wiki.facepunch.com/gmod/Vehicle:IsEngineEnabled
|
|
183
211
|
*/
|
|
184
212
|
IsEngineEnabled(self: Vehicle): boolean;
|
|
213
|
+
|
|
185
214
|
/**
|
|
186
215
|
* Returns whether the engine is started or not.
|
|
187
216
|
* @realm server
|
|
188
217
|
* @source https://wiki.facepunch.com/gmod/Vehicle:IsEngineStarted
|
|
189
218
|
*/
|
|
190
219
|
IsEngineStarted(self: Vehicle): boolean;
|
|
220
|
+
|
|
191
221
|
/**
|
|
192
222
|
* Determines whether a given [Vehicle](https://wiki.facepunch.com/gmod/Vehicle) is fully initialized.
|
|
193
223
|
*
|
|
@@ -199,12 +229,14 @@ interface Vehicle extends Entity {
|
|
|
199
229
|
* @source https://wiki.facepunch.com/gmod/Vehicle:IsValidVehicle
|
|
200
230
|
*/
|
|
201
231
|
IsValidVehicle(self: Vehicle): boolean;
|
|
232
|
+
|
|
202
233
|
/**
|
|
203
234
|
* Returns whether this vehicle's engine is underwater or not. ( Internally the attachment point "engine" or "vehicle_engine" is checked )
|
|
204
235
|
* @realm server
|
|
205
236
|
* @source https://wiki.facepunch.com/gmod/Vehicle:IsVehicleBodyInWater
|
|
206
237
|
*/
|
|
207
238
|
IsVehicleBodyInWater(self: Vehicle): boolean;
|
|
239
|
+
|
|
208
240
|
/**
|
|
209
241
|
* Releases the vehicle's handbrake (Jeep) so it can roll without any passengers.
|
|
210
242
|
*
|
|
@@ -214,18 +246,21 @@ interface Vehicle extends Entity {
|
|
|
214
246
|
* @source https://wiki.facepunch.com/gmod/Vehicle:ReleaseHandbrake
|
|
215
247
|
*/
|
|
216
248
|
ReleaseHandbrake(self: Vehicle): void;
|
|
249
|
+
|
|
217
250
|
/**
|
|
218
251
|
* Sets the boost. It is possible that this function does not work while the vehicle has a valid driver in it.
|
|
219
252
|
* @realm server
|
|
220
253
|
* @source https://wiki.facepunch.com/gmod/Vehicle:SetBoost
|
|
221
254
|
*/
|
|
222
255
|
SetBoost(self: Vehicle, boost: number): void;
|
|
256
|
+
|
|
223
257
|
/**
|
|
224
258
|
* Sets the third person camera distance of the vehicle.
|
|
225
259
|
* @realm shared
|
|
226
260
|
* @source https://wiki.facepunch.com/gmod/Vehicle:SetCameraDistance
|
|
227
261
|
*/
|
|
228
262
|
SetCameraDistance(self: Vehicle, distance: number): void;
|
|
263
|
+
|
|
229
264
|
/**
|
|
230
265
|
* Turns on or off the Jeep handbrake so it can roll without a driver inside.
|
|
231
266
|
*
|
|
@@ -235,30 +270,35 @@ interface Vehicle extends Entity {
|
|
|
235
270
|
* @source https://wiki.facepunch.com/gmod/Vehicle:SetHandbrake
|
|
236
271
|
*/
|
|
237
272
|
SetHandbrake(self: Vehicle, handbrake: boolean): void;
|
|
273
|
+
|
|
238
274
|
/**
|
|
239
275
|
* Sets whether this vehicle has a brake pedal.
|
|
240
276
|
* @realm server
|
|
241
277
|
* @source https://wiki.facepunch.com/gmod/Vehicle:SetHasBrakePedal
|
|
242
278
|
*/
|
|
243
279
|
SetHasBrakePedal(self: Vehicle, brakePedal: boolean): void;
|
|
280
|
+
|
|
244
281
|
/**
|
|
245
282
|
* Sets maximum reverse throttle
|
|
246
283
|
* @realm server
|
|
247
284
|
* @source https://wiki.facepunch.com/gmod/Vehicle:SetMaxReverseThrottle
|
|
248
285
|
*/
|
|
249
286
|
SetMaxReverseThrottle(self: Vehicle, maxRevThrottle: number): void;
|
|
287
|
+
|
|
250
288
|
/**
|
|
251
289
|
* Sets maximum forward throttle
|
|
252
290
|
* @realm server
|
|
253
291
|
* @source https://wiki.facepunch.com/gmod/Vehicle:SetMaxThrottle
|
|
254
292
|
*/
|
|
255
293
|
SetMaxThrottle(self: Vehicle, maxThrottle: number): void;
|
|
294
|
+
|
|
256
295
|
/**
|
|
257
296
|
* Sets spring length of given wheel
|
|
258
297
|
* @realm server
|
|
259
298
|
* @source https://wiki.facepunch.com/gmod/Vehicle:SetSpringLength
|
|
260
299
|
*/
|
|
261
300
|
SetSpringLength(self: Vehicle, wheel: number, length: number): void;
|
|
301
|
+
|
|
262
302
|
/**
|
|
263
303
|
* Sets the steering of the vehicle.
|
|
264
304
|
* The correct range, 0 to 1 or -1 to 1
|
|
@@ -267,24 +307,28 @@ interface Vehicle extends Entity {
|
|
|
267
307
|
* @source https://wiki.facepunch.com/gmod/Vehicle:SetSteering
|
|
268
308
|
*/
|
|
269
309
|
SetSteering(self: Vehicle, front: number, rear: number): void;
|
|
310
|
+
|
|
270
311
|
/**
|
|
271
312
|
* Sets the maximum steering degrees of the vehicle
|
|
272
313
|
* @realm server
|
|
273
314
|
* @source https://wiki.facepunch.com/gmod/Vehicle:SetSteeringDegrees
|
|
274
315
|
*/
|
|
275
316
|
SetSteeringDegrees(self: Vehicle, steeringDegrees: number): void;
|
|
317
|
+
|
|
276
318
|
/**
|
|
277
319
|
* Sets the third person mode state.
|
|
278
320
|
* @realm shared
|
|
279
321
|
* @source https://wiki.facepunch.com/gmod/Vehicle:SetThirdPersonMode
|
|
280
322
|
*/
|
|
281
323
|
SetThirdPersonMode(self: Vehicle, enable: boolean): void;
|
|
324
|
+
|
|
282
325
|
/**
|
|
283
326
|
* Sets the throttle of the vehicle. It is possible that this function does not work with a valid driver in it.
|
|
284
327
|
* @realm server
|
|
285
328
|
* @source https://wiki.facepunch.com/gmod/Vehicle:SetThrottle
|
|
286
329
|
*/
|
|
287
330
|
SetThrottle(self: Vehicle, throttle: number): void;
|
|
331
|
+
|
|
288
332
|
/**
|
|
289
333
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
290
334
|
* Sets the vehicle class name.
|
|
@@ -292,12 +336,14 @@ interface Vehicle extends Entity {
|
|
|
292
336
|
* @source https://wiki.facepunch.com/gmod/Vehicle:SetVehicleClass
|
|
293
337
|
*/
|
|
294
338
|
SetVehicleClass(self: Vehicle, _class: string): void;
|
|
339
|
+
|
|
295
340
|
/**
|
|
296
341
|
* Sets whether the entry or exit camera animation should be played or not.
|
|
297
342
|
* @realm server
|
|
298
343
|
* @source https://wiki.facepunch.com/gmod/Vehicle:SetVehicleEntryAnim
|
|
299
344
|
*/
|
|
300
345
|
SetVehicleEntryAnim(self: Vehicle, bOn: boolean): void;
|
|
346
|
+
|
|
301
347
|
/**
|
|
302
348
|
* Sets the vehicle parameters for given vehicle.
|
|
303
349
|
*
|
|
@@ -308,12 +354,14 @@ interface Vehicle extends Entity {
|
|
|
308
354
|
* @source https://wiki.facepunch.com/gmod/Vehicle:SetVehicleParams
|
|
309
355
|
*/
|
|
310
356
|
SetVehicleParams(self: Vehicle, params: VehicleParams): void;
|
|
357
|
+
|
|
311
358
|
/**
|
|
312
359
|
* Sets friction of given wheel. This function may be broken.
|
|
313
360
|
* @realm server
|
|
314
361
|
* @source https://wiki.facepunch.com/gmod/Vehicle:SetWheelFriction
|
|
315
362
|
*/
|
|
316
363
|
SetWheelFriction(self: Vehicle, wheel: number, friction: number): void;
|
|
364
|
+
|
|
317
365
|
/**
|
|
318
366
|
* Starts or stops the engine.
|
|
319
367
|
* @realm server
|
|
@@ -322,54 +370,3 @@ interface Vehicle extends Entity {
|
|
|
322
370
|
StartEngine(self: Vehicle, start: boolean): void;
|
|
323
371
|
}
|
|
324
372
|
interface VEHICLE extends Vehicle {}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|