@tlua/gmod 1.0.4 → 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 +0 -31
- package/types/ai.d.tlua +0 -11
- package/types/ai_schedule.d.tlua +0 -1
- package/types/ai_task.d.tlua +0 -1
- package/types/angle.d.tlua +0 -37
- package/types/avatarimage.d.tlua +0 -1
- package/types/awesomium.d.tlua +0 -1
- package/types/baseclass.d.tlua +0 -4
- package/types/bf_read.d.tlua +0 -23
- package/types/bit.d.tlua +0 -23
- package/types/button.d.tlua +0 -1
- package/types/cam.d.tlua +0 -33
- package/types/ceffectdata.d.tlua +0 -65
- package/types/chat.d.tlua +0 -11
- package/types/checkbutton.d.tlua +0 -1
- package/types/cleanup.d.tlua +0 -15
- package/types/cluaemitter.d.tlua +0 -25
- package/types/clualocomotion.d.tlua +0 -81
- package/types/cluaparticle.d.tlua +0 -89
- package/types/cmovedata.d.tlua +0 -95
- package/types/cnavarea.d.tlua +0 -155
- package/types/cnavladder.d.tlua +0 -45
- package/types/cnewparticleeffect.d.tlua +0 -53
- package/types/color.d.tlua +0 -57
- package/types/concommand.d.tlua +0 -9
- package/types/constraint.d.tlua +0 -57
- package/types/construct.d.tlua +0 -3
- package/types/contentheader.d.tlua +1 -6
- package/types/contenticon.d.tlua +1 -18
- package/types/contentsidebar.d.tlua +1 -8
- package/types/contentsidebartoolbox.d.tlua +0 -1
- package/types/contextbase.d.tlua +1 -8
- package/types/controlpanel.d.tlua +6 -31
- package/types/controlpresets.d.tlua +1 -26
- package/types/convar.d.tlua +0 -33
- package/types/cookie.d.tlua +0 -7
- package/types/coroutine.d.tlua +0 -15
- package/types/crecipientfilter.d.tlua +0 -33
- package/types/csent.d.tlua +0 -1
- package/types/csoundpatch.d.tlua +0 -29
- package/types/ctakedamageinfo.d.tlua +0 -67
- package/types/ctrllistbox.d.tlua +0 -1
- package/types/ctrlnumpad.d.tlua +0 -13
- package/types/cusercmd.d.tlua +0 -55
- package/types/custom_entity_fields.d.tlua +0 -1
- package/types/cvars.d.tlua +0 -13
- package/types/dadjustablemodelpanel.d.tlua +1 -14
- package/types/dalphabar.d.tlua +1 -6
- package/types/dbinder.d.tlua +1 -8
- package/types/dbubblecontainer.d.tlua +1 -4
- package/types/dbutton.d.tlua +1 -16
- package/types/dcategoryheader.d.tlua +0 -1
- package/types/dcategorylist.d.tlua +0 -1
- package/types/dcheckbox.d.tlua +1 -10
- package/types/dcheckboxlabel.d.tlua +0 -19
- package/types/dcollapsiblecategory.d.tlua +1 -46
- package/types/dcolorbutton.d.tlua +1 -14
- package/types/dcolorcombo.d.tlua +1 -10
- package/types/dcolorcube.d.tlua +1 -26
- package/types/dcolormixer.d.tlua +1 -54
- package/types/dcolorpalette.d.tlua +1 -46
- package/types/dcolumnsheet.d.tlua +1 -10
- package/types/dcombobox.d.tlua +1 -34
- package/types/ddragbase.d.tlua +1 -26
- package/types/ddrawer.d.tlua +1 -16
- package/types/debug.d.tlua +25 -60
- package/types/debugoverlay.d.tlua +0 -23
- package/types/dentityproperties.d.tlua +1 -10
- package/types/derma.d.tlua +0 -21
- package/types/dexpandbutton.d.tlua +1 -6
- package/types/dfilebrowser.d.tlua +0 -41
- package/types/dform.d.tlua +1 -36
- package/types/dframe.d.tlua +0 -49
- package/types/dgrid.d.tlua +1 -22
- package/types/dhorizontaldivider.d.tlua +1 -40
- package/types/dhorizontalscroller.d.tlua +1 -22
- package/types/dhscrollbar.d.tlua +1 -22
- package/types/dhtml.d.tlua +1 -16
- package/types/dhtmlcontrols.d.tlua +0 -11
- package/types/diconbrowser.d.tlua +1 -22
- package/types/diconlayout.d.tlua +1 -36
- package/types/dimage.d.tlua +1 -39
- package/types/dimagebutton.d.tlua +0 -19
- package/types/dkillicon.d.tlua +0 -1
- package/types/dlabel.d.tlua +1 -66
- package/types/dlabeleditable.d.tlua +1 -10
- package/types/dlabelurl.d.tlua +1 -20
- package/types/dlistbox.d.tlua +1 -16
- package/types/dlistboxitem.d.tlua +1 -8
- package/types/dlistlayout.d.tlua +0 -1
- package/types/dlistview.d.tlua +1 -68
- package/types/dlistview_column.d.tlua +1 -28
- package/types/dlistview_columnplain.d.tlua +0 -1
- package/types/dlistview_draggerbar.d.tlua +0 -1
- package/types/dlistview_line.d.tlua +1 -26
- 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 +1 -53
- package/types/dmenubar.d.tlua +1 -11
- package/types/dmenuoption.d.tlua +1 -26
- package/types/dmenuoptioncvar.d.tlua +1 -12
- package/types/dmodelpanel.d.tlua +1 -44
- package/types/dmodelselect.d.tlua +1 -4
- package/types/dmodelselectmulti.d.tlua +1 -4
- package/types/dnotify.d.tlua +1 -20
- package/types/dnumberscratch.d.tlua +1 -52
- package/types/dnumberwang.d.tlua +1 -32
- package/types/dnumpad.d.tlua +0 -1
- package/types/dnumslider.d.tlua +0 -35
- package/types/dpanel.d.tlua +1 -28
- package/types/dpanellist.d.tlua +0 -23
- package/types/dpaneloverlay.d.tlua +1 -14
- package/types/dpanelselect.d.tlua +0 -1
- package/types/dpanpanel.d.tlua +1 -12
- package/types/dprogress.d.tlua +1 -6
- package/types/dproperties.d.tlua +1 -8
- package/types/dproperty_boolean.d.tlua +0 -1
- package/types/dproperty_combo.d.tlua +1 -6
- package/types/dproperty_entity.d.tlua +0 -1
- package/types/dproperty_float.d.tlua +0 -1
- package/types/dproperty_generic.d.tlua +1 -10
- package/types/dproperty_int.d.tlua +0 -1
- package/types/dproperty_vectorcolor.d.tlua +0 -1
- package/types/dpropertysheet.d.tlua +9 -41
- package/types/dragndrop.d.tlua +0 -21
- package/types/draw.d.tlua +0 -22
- package/types/drgbpicker.d.tlua +1 -8
- package/types/drive.d.tlua +6 -31
- package/types/dscrollbargrip.d.tlua +0 -1
- package/types/dscrollpanel.d.tlua +0 -21
- package/types/dshape.d.tlua +1 -14
- package/types/dsizetocontents.d.tlua +1 -10
- package/types/dslider.d.tlua +1 -56
- package/types/dsprite.d.tlua +1 -18
- package/types/dtab.d.tlua +1 -16
- package/types/dtextentry.d.tlua +1 -86
- package/types/dtilelayout.d.tlua +1 -42
- package/types/dtooltip.d.tlua +1 -12
- package/types/dtree.d.tlua +1 -32
- package/types/dtree_node.d.tlua +1 -136
- package/types/dtree_node_button.d.tlua +0 -1
- package/types/duplicator.d.tlua +0 -60
- package/types/dverticaldivider.d.tlua +1 -46
- package/types/dvscrollbar.d.tlua +1 -22
- package/types/editablepanel.d.tlua +0 -1
- package/types/effect.d.tlua +1 -8
- package/types/effects.d.tlua +0 -13
- package/types/engine.d.tlua +0 -43
- package/types/entity.d.tlua +2 -1319
- package/types/ents.d.tlua +0 -44
- package/types/enums.d.tlua +0 -1
- package/types/file.d.tlua +0 -79
- 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 +0 -15
- package/types/game.d.tlua +0 -79
- package/types/gameevent.d.tlua +4 -9
- package/types/gamemode.d.tlua +0 -6
- package/types/global.d.tlua +0 -18
- package/types/gm.d.tlua +0 -535
- package/types/gmod.d.tlua +0 -1
- package/types/gmsave.d.tlua +0 -9
- package/types/gui.d.tlua +0 -43
- package/types/gwen.d.tlua +0 -7
- package/types/halo.d.tlua +0 -5
- package/types/hammer.d.tlua +0 -1
- package/types/hook.d.tlua +0 -9
- package/types/html.d.tlua +0 -1
- package/types/http.d.tlua +0 -3
- package/types/iconeditor.d.tlua +1 -22
- package/types/igmodaudiochannel.d.tlua +0 -83
- package/types/imagecheckbox.d.tlua +1 -8
- package/types/imaterial.d.tlua +0 -53
- package/types/imesh.d.tlua +0 -11
- package/types/input.d.tlua +0 -47
- package/types/invalidateinternalentitycache.d.tlua +0 -1
- package/types/irestore.d.tlua +0 -19
- package/types/isave.d.tlua +0 -19
- package/types/itexture.d.tlua +0 -21
- package/types/ivideowriter.d.tlua +0 -11
- package/types/jit.d.tlua +9 -42
- package/types/killicon.d.tlua +0 -15
- package/types/label.d.tlua +0 -1
- package/types/language.d.tlua +0 -3
- package/types/list.d.tlua +0 -17
- package/types/makeballoon.d.tlua +0 -1
- package/types/markup.d.tlua +0 -5
- package/types/markupobject.d.tlua +0 -11
- package/types/material.d.tlua +0 -1
- package/types/math.d.tlua +200 -371
- package/types/matproxy.d.tlua +0 -7
- package/types/matselect.d.tlua +1 -22
- package/types/menu.d.tlua +0 -1
- package/types/menubar.d.tlua +0 -5
- package/types/mesh.d.tlua +0 -39
- package/types/modelimage.d.tlua +0 -1
- package/types/motionsensor.d.tlua +0 -21
- package/types/navmesh.d.tlua +0 -53
- package/types/net.d.tlua +0 -104
- package/types/nextbot.d.tlua +10 -83
- package/types/notification.d.tlua +0 -5
- package/types/npc.d.tlua +1 -364
- package/types/numpad.d.tlua +0 -15
- package/types/os.d.tlua +0 -8
- package/types/package.d.tlua +0 -1
- package/types/panel.d.tlua +2 -662
- package/types/panellist.d.tlua +0 -1
- package/types/pathfollower.d.tlua +0 -63
- package/types/permissions.d.tlua +0 -13
- package/types/physcollide.d.tlua +0 -7
- package/types/physenv.d.tlua +0 -23
- package/types/physobj.d.tlua +0 -157
- package/types/pixelvis_handle_t.d.tlua +0 -1
- package/types/player.d.tlua +11 -594
- package/types/player_manager.d.tlua +0 -27
- package/types/preseteditor.d.tlua +0 -1
- package/types/presets.d.tlua +0 -13
- package/types/projectedtexture.d.tlua +0 -97
- package/types/properties.d.tlua +0 -11
- package/types/propselect.d.tlua +1 -10
- package/types/radiobutton.d.tlua +0 -1
- package/types/render.d.tlua +0 -285
- package/types/resource.d.tlua +0 -5
- package/types/richtext.d.tlua +0 -1
- package/types/sandbox.d.tlua +1 -108
- package/types/saverestore.d.tlua +0 -25
- package/types/schedule.d.tlua +0 -13
- package/types/scripted_ents.d.tlua +0 -21
- package/types/search.d.tlua +0 -3
- package/types/serverlist.d.tlua +0 -15
- package/types/slidebar.d.tlua +0 -1
- package/types/slider.d.tlua +0 -1
- package/types/sound.d.tlua +0 -21
- package/types/spawnicon.d.tlua +1 -16
- package/types/spawnmenu.d.tlua +0 -48
- package/types/spawnmenucontentpanel.d.tlua +1 -10
- package/types/sql.d.tlua +0 -19
- package/types/stack.d.tlua +0 -11
- package/types/steamworks.d.tlua +0 -37
- package/types/string.d.tlua +0 -96
- package/types/structures.d.tlua +0 -7
- package/types/surface.d.tlua +0 -69
- package/types/surfaceinfo.d.tlua +0 -11
- package/types/system.d.tlua +0 -21
- package/types/table.d.tlua +0 -93
- package/types/task.d.tlua +0 -19
- package/types/team.d.tlua +0 -39
- package/types/textentry.d.tlua +0 -1
- package/types/tgaimage.d.tlua +0 -1
- package/types/timer.d.tlua +0 -29
- package/types/tool.d.tlua +1 -90
- package/types/ugcpublishwindow.d.tlua +1 -18
- package/types/umsg.d.tlua +0 -25
- package/types/undo.d.tlua +0 -21
- package/types/urllabel.d.tlua +0 -1
- package/types/usermessage.d.tlua +0 -5
- package/types/utf8.d.tlua +0 -15
- package/types/util.d.tlua +0 -185
- package/types/vector.d.tlua +0 -73
- package/types/vehicle.d.tlua +2 -102
- package/types/vgui.d.tlua +0 -33
- package/types/video.d.tlua +0 -1
- package/types/vmatrix.d.tlua +0 -71
- package/types/weapon.d.tlua +2 -168
- package/types/weapons.d.tlua +0 -12
- package/types/widgets.d.tlua +0 -3
- package/types/workshopfilebase.d.tlua +0 -11
package/types/color.d.tlua
CHANGED
|
@@ -9,9 +9,7 @@ interface Color {
|
|
|
9
9
|
b: number;
|
|
10
10
|
/** The alpha component of the color. */
|
|
11
11
|
a: number;
|
|
12
|
-
}
|
|
13
12
|
|
|
14
|
-
interface Color {
|
|
15
13
|
/**
|
|
16
14
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model), adds given value to the "blackness" and converts it back into an RGB color.
|
|
17
15
|
*
|
|
@@ -21,9 +19,7 @@ interface Color {
|
|
|
21
19
|
* @source https://wiki.facepunch.com/gmod/COLOR:AddBlackness
|
|
22
20
|
*/
|
|
23
21
|
AddBlackness(self: Color, blackness: number): void;
|
|
24
|
-
}
|
|
25
22
|
|
|
26
|
-
interface Color {
|
|
27
23
|
/**
|
|
28
24
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV), adds given value to the [brightness also known as "value"](https://en.wikipedia.org/wiki/Brightness) and converts it back into an RGB color.
|
|
29
25
|
*
|
|
@@ -35,9 +31,7 @@ interface Color {
|
|
|
35
31
|
* @source https://wiki.facepunch.com/gmod/COLOR:AddBrightness
|
|
36
32
|
*/
|
|
37
33
|
AddBrightness(self: Color, saturation: number): void;
|
|
38
|
-
}
|
|
39
34
|
|
|
40
|
-
interface Color {
|
|
41
35
|
/**
|
|
42
36
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV), adds given value to the [hue](https://en.wikipedia.org/wiki/Hue) and converts it back into an RGB color.
|
|
43
37
|
*
|
|
@@ -49,9 +43,7 @@ interface Color {
|
|
|
49
43
|
* @source https://wiki.facepunch.com/gmod/COLOR:AddHue
|
|
50
44
|
*/
|
|
51
45
|
AddHue(self: Color, hue: number): void;
|
|
52
|
-
}
|
|
53
46
|
|
|
54
|
-
interface Color {
|
|
55
47
|
/**
|
|
56
48
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSL color space](https://en.wikipedia.org/wiki/HSL_and_HSV), adds given value to the ["lightness"](https://en.wikipedia.org/wiki/Lightness) and converts it back into an RGB color.
|
|
57
49
|
*
|
|
@@ -63,9 +55,7 @@ interface Color {
|
|
|
63
55
|
* @source https://wiki.facepunch.com/gmod/COLOR:AddLightness
|
|
64
56
|
*/
|
|
65
57
|
AddLightness(self: Color, lightness: number): void;
|
|
66
|
-
}
|
|
67
58
|
|
|
68
|
-
interface Color {
|
|
69
59
|
/**
|
|
70
60
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV), adds given value to the [saturation](https://en.wikipedia.org/wiki/Colorfulness) and converts it back into an RGB color.
|
|
71
61
|
*
|
|
@@ -77,9 +67,7 @@ interface Color {
|
|
|
77
67
|
* @source https://wiki.facepunch.com/gmod/COLOR:AddSaturation
|
|
78
68
|
*/
|
|
79
69
|
AddSaturation(self: Color, saturation: number): void;
|
|
80
|
-
}
|
|
81
70
|
|
|
82
|
-
interface Color {
|
|
83
71
|
/**
|
|
84
72
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model), adds given value to the "whiteness" and converts it back into an RGB color.
|
|
85
73
|
*
|
|
@@ -89,9 +77,7 @@ interface Color {
|
|
|
89
77
|
* @source https://wiki.facepunch.com/gmod/COLOR:AddWhiteness
|
|
90
78
|
*/
|
|
91
79
|
AddWhiteness(self: Color, whiteness: number): void;
|
|
92
|
-
}
|
|
93
80
|
|
|
94
|
-
interface Color {
|
|
95
81
|
/**
|
|
96
82
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model) and returns the "blackness" of the color.
|
|
97
83
|
*
|
|
@@ -101,9 +87,7 @@ interface Color {
|
|
|
101
87
|
* @source https://wiki.facepunch.com/gmod/COLOR:GetBlackness
|
|
102
88
|
*/
|
|
103
89
|
GetBlackness(self: Color): number;
|
|
104
|
-
}
|
|
105
90
|
|
|
106
|
-
interface Color {
|
|
107
91
|
/**
|
|
108
92
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV) and returns the [brightness also known as "value"](https://en.wikipedia.org/wiki/Brightness).
|
|
109
93
|
*
|
|
@@ -113,9 +97,7 @@ interface Color {
|
|
|
113
97
|
* @source https://wiki.facepunch.com/gmod/COLOR:GetBrightness
|
|
114
98
|
*/
|
|
115
99
|
GetBrightness(self: Color): number;
|
|
116
|
-
}
|
|
117
100
|
|
|
118
|
-
interface Color {
|
|
119
101
|
/**
|
|
120
102
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV) and returns the [hue](https://en.wikipedia.org/wiki/Hue).
|
|
121
103
|
*
|
|
@@ -125,9 +107,7 @@ interface Color {
|
|
|
125
107
|
* @source https://wiki.facepunch.com/gmod/COLOR:GetHue
|
|
126
108
|
*/
|
|
127
109
|
GetHue(self: Color): number;
|
|
128
|
-
}
|
|
129
110
|
|
|
130
|
-
interface Color {
|
|
131
111
|
/**
|
|
132
112
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSL color space](https://en.wikipedia.org/wiki/HSL_and_HSV) and returns the ["lightness"](https://en.wikipedia.org/wiki/Lightness) of the color.
|
|
133
113
|
*
|
|
@@ -137,9 +117,7 @@ interface Color {
|
|
|
137
117
|
* @source https://wiki.facepunch.com/gmod/COLOR:GetLightness
|
|
138
118
|
*/
|
|
139
119
|
GetLightness(self: Color): number;
|
|
140
|
-
}
|
|
141
120
|
|
|
142
|
-
interface Color {
|
|
143
121
|
/**
|
|
144
122
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV) and returns the [saturation](https://en.wikipedia.org/wiki/Colorfulness).
|
|
145
123
|
*
|
|
@@ -149,9 +127,7 @@ interface Color {
|
|
|
149
127
|
* @source https://wiki.facepunch.com/gmod/COLOR:GetSaturation
|
|
150
128
|
*/
|
|
151
129
|
GetSaturation(self: Color): number;
|
|
152
|
-
}
|
|
153
130
|
|
|
154
|
-
interface Color {
|
|
155
131
|
/**
|
|
156
132
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model) and returns the "whiteness" of the color.
|
|
157
133
|
*
|
|
@@ -161,9 +137,7 @@ interface Color {
|
|
|
161
137
|
* @source https://wiki.facepunch.com/gmod/COLOR:GetWhiteness
|
|
162
138
|
*/
|
|
163
139
|
GetWhiteness(self: Color): number;
|
|
164
|
-
}
|
|
165
140
|
|
|
166
|
-
interface Color {
|
|
167
141
|
/**
|
|
168
142
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model), sets the "blackness" and converts it back into an RGB color.
|
|
169
143
|
*
|
|
@@ -171,9 +145,7 @@ interface Color {
|
|
|
171
145
|
* @source https://wiki.facepunch.com/gmod/COLOR:SetBlackness
|
|
172
146
|
*/
|
|
173
147
|
SetBlackness(self: Color, blackness: number): void;
|
|
174
|
-
}
|
|
175
148
|
|
|
176
|
-
interface Color {
|
|
177
149
|
/**
|
|
178
150
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV), sets the [brightness also known as "value"](https://en.wikipedia.org/wiki/Brightness) and converts it back into an RGB color.
|
|
179
151
|
*
|
|
@@ -183,9 +155,7 @@ interface Color {
|
|
|
183
155
|
* @source https://wiki.facepunch.com/gmod/COLOR:SetBrightness
|
|
184
156
|
*/
|
|
185
157
|
SetBrightness(self: Color, saturation: number): void;
|
|
186
|
-
}
|
|
187
158
|
|
|
188
|
-
interface Color {
|
|
189
159
|
/**
|
|
190
160
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV), sets the [hue](https://en.wikipedia.org/wiki/Hue) and converts it back into an RGB color.
|
|
191
161
|
*
|
|
@@ -195,9 +165,7 @@ interface Color {
|
|
|
195
165
|
* @source https://wiki.facepunch.com/gmod/COLOR:SetHue
|
|
196
166
|
*/
|
|
197
167
|
SetHue(self: Color, hue: number): void;
|
|
198
|
-
}
|
|
199
168
|
|
|
200
|
-
interface Color {
|
|
201
169
|
/**
|
|
202
170
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSL color space](https://en.wikipedia.org/wiki/HSL_and_HSV), sets the ["lightness"](https://en.wikipedia.org/wiki/Lightness) and converts it back into an RGB color.
|
|
203
171
|
*
|
|
@@ -207,9 +175,7 @@ interface Color {
|
|
|
207
175
|
* @source https://wiki.facepunch.com/gmod/COLOR:SetLightness
|
|
208
176
|
*/
|
|
209
177
|
SetLightness(self: Color, lightness: number): void;
|
|
210
|
-
}
|
|
211
178
|
|
|
212
|
-
interface Color {
|
|
213
179
|
/**
|
|
214
180
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV), sets the [saturation](https://en.wikipedia.org/wiki/Colorfulness) and converts it back into an RGB color.
|
|
215
181
|
*
|
|
@@ -219,9 +185,7 @@ interface Color {
|
|
|
219
185
|
* @source https://wiki.facepunch.com/gmod/COLOR:SetSaturation
|
|
220
186
|
*/
|
|
221
187
|
SetSaturation(self: Color, saturation: number): void;
|
|
222
|
-
}
|
|
223
188
|
|
|
224
|
-
interface Color {
|
|
225
189
|
/**
|
|
226
190
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model), sets the "whiteness" and converts it back into an RGB color.
|
|
227
191
|
*
|
|
@@ -229,27 +193,21 @@ interface Color {
|
|
|
229
193
|
* @source https://wiki.facepunch.com/gmod/COLOR:SetWhiteness
|
|
230
194
|
*/
|
|
231
195
|
SetWhiteness(self: Color, whiteness: number): void;
|
|
232
|
-
}
|
|
233
196
|
|
|
234
|
-
interface Color {
|
|
235
197
|
/**
|
|
236
198
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model). See [Global.HWBToColor](https://wiki.facepunch.com/gmod/Global.HWBToColor) for more info.
|
|
237
199
|
* @realm shared and menu
|
|
238
200
|
* @source https://wiki.facepunch.com/gmod/COLOR:ToHWB
|
|
239
201
|
*/
|
|
240
202
|
ToHWB(self: Color): (number, number, number);
|
|
241
|
-
}
|
|
242
203
|
|
|
243
|
-
interface Color {
|
|
244
204
|
/**
|
|
245
205
|
* Returns a copy of this color, usually so it can be safely modified later without affecting the original color.
|
|
246
206
|
* @realm shared and menu
|
|
247
207
|
* @source https://wiki.facepunch.com/gmod/Color:Copy
|
|
248
208
|
*/
|
|
249
209
|
Copy(self: Color): Color;
|
|
250
|
-
}
|
|
251
210
|
|
|
252
|
-
interface Color {
|
|
253
211
|
/**
|
|
254
212
|
* Performs linear interpolation between this and given colors.
|
|
255
213
|
*
|
|
@@ -257,18 +215,14 @@ interface Color {
|
|
|
257
215
|
* @source https://wiki.facepunch.com/gmod/Color:Lerp
|
|
258
216
|
*/
|
|
259
217
|
Lerp(self: Color, target: Color, fraction: number): Color;
|
|
260
|
-
}
|
|
261
218
|
|
|
262
|
-
interface Color {
|
|
263
219
|
/**
|
|
264
220
|
* Sets the red, green, blue, and alpha of the color.
|
|
265
221
|
* @realm shared
|
|
266
222
|
* @source https://wiki.facepunch.com/gmod/Color:SetUnpacked
|
|
267
223
|
*/
|
|
268
224
|
SetUnpacked(self: Color, r: number, g: number, b: number, a: number): void;
|
|
269
|
-
}
|
|
270
225
|
|
|
271
|
-
interface Color {
|
|
272
226
|
/**
|
|
273
227
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSL color space](https://en.wikipedia.org/wiki/HSL_and_HSV) .
|
|
274
228
|
*
|
|
@@ -277,9 +231,7 @@ interface Color {
|
|
|
277
231
|
* @source https://wiki.facepunch.com/gmod/Color:ToHSL
|
|
278
232
|
*/
|
|
279
233
|
ToHSL(self: Color): (number, number, number);
|
|
280
|
-
}
|
|
281
234
|
|
|
282
|
-
interface Color {
|
|
283
235
|
/**
|
|
284
236
|
* Encodes a RGB [Color](https://wiki.facepunch.com/gmod/Color) into the [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV).
|
|
285
237
|
*
|
|
@@ -290,9 +242,7 @@ interface Color {
|
|
|
290
242
|
* @source https://wiki.facepunch.com/gmod/Color:ToHSV
|
|
291
243
|
*/
|
|
292
244
|
ToHSV(self: Color): (number, number, number);
|
|
293
|
-
}
|
|
294
245
|
|
|
295
|
-
interface Color {
|
|
296
246
|
/**
|
|
297
247
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) to its hexadecimal representation.
|
|
298
248
|
*
|
|
@@ -300,18 +250,14 @@ interface Color {
|
|
|
300
250
|
* @source https://wiki.facepunch.com/gmod/Color:ToHex
|
|
301
251
|
*/
|
|
302
252
|
ToHex(self: Color, arg0?: boolean): string;
|
|
303
|
-
}
|
|
304
253
|
|
|
305
|
-
interface Color {
|
|
306
254
|
/**
|
|
307
255
|
* Returns the color as a table (an array or a list) with four elements.
|
|
308
256
|
* @realm shared
|
|
309
257
|
* @source https://wiki.facepunch.com/gmod/Color:ToTable
|
|
310
258
|
*/
|
|
311
259
|
ToTable(self: Color): number[];
|
|
312
|
-
}
|
|
313
260
|
|
|
314
|
-
interface Color {
|
|
315
261
|
/**
|
|
316
262
|
* Translates the [Color](https://wiki.facepunch.com/gmod/Color) into a [Vector](https://wiki.facepunch.com/gmod/Vector), losing the alpha channel.
|
|
317
263
|
* This will also range the values from 0 - 255 to 0 - 1
|
|
@@ -326,9 +272,7 @@ interface Color {
|
|
|
326
272
|
* @source https://wiki.facepunch.com/gmod/Color:ToVector
|
|
327
273
|
*/
|
|
328
274
|
ToVector(self: Color): Vector;
|
|
329
|
-
}
|
|
330
275
|
|
|
331
|
-
interface Color {
|
|
332
276
|
/**
|
|
333
277
|
* Returns the red, green, blue, and alpha of the color.
|
|
334
278
|
* @realm shared
|
|
@@ -336,4 +280,3 @@ interface Color {
|
|
|
336
280
|
*/
|
|
337
281
|
Unpack(self: Color): (number, number, number, number);
|
|
338
282
|
}
|
|
339
|
-
|
package/types/concommand.d.tlua
CHANGED
|
@@ -18,9 +18,7 @@ interface ConcommandLib {
|
|
|
18
18
|
* @source https://wiki.facepunch.com/gmod/concommand.Add
|
|
19
19
|
*/
|
|
20
20
|
Add(name: string, callback: (ply: Player, cmd: string, args: table, argStr: string) => void, autoComplete?: (cmd: string, argStr: string, args: table) => table, helpText?: string, flags?: FCVAR | number[]): void;
|
|
21
|
-
}
|
|
22
21
|
|
|
23
|
-
interface ConcommandLib {
|
|
24
22
|
/**
|
|
25
23
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
26
24
|
* Used by the engine to call the autocomplete function for a console command, and retrieve returned options.
|
|
@@ -28,9 +26,7 @@ interface ConcommandLib {
|
|
|
28
26
|
* @source https://wiki.facepunch.com/gmod/concommand.AutoComplete
|
|
29
27
|
*/
|
|
30
28
|
AutoComplete(command: string, arguments: string): table;
|
|
31
|
-
}
|
|
32
29
|
|
|
33
|
-
interface ConcommandLib {
|
|
34
30
|
/**
|
|
35
31
|
* Returns the tables of all console command callbacks, and autocomplete functions, that were added to the game with [concommand.Add](https://wiki.facepunch.com/gmod/concommand.Add).
|
|
36
32
|
*
|
|
@@ -38,9 +34,7 @@ interface ConcommandLib {
|
|
|
38
34
|
* @source https://wiki.facepunch.com/gmod/concommand.GetTable
|
|
39
35
|
*/
|
|
40
36
|
GetTable(): (Table<string, function>, Table<string, function>);
|
|
41
|
-
}
|
|
42
37
|
|
|
43
|
-
interface ConcommandLib {
|
|
44
38
|
/**
|
|
45
39
|
* Removes a console command.
|
|
46
40
|
*
|
|
@@ -50,9 +44,7 @@ interface ConcommandLib {
|
|
|
50
44
|
* @source https://wiki.facepunch.com/gmod/concommand.Remove
|
|
51
45
|
*/
|
|
52
46
|
Remove(name: string): void;
|
|
53
|
-
}
|
|
54
47
|
|
|
55
|
-
interface ConcommandLib {
|
|
56
48
|
/**
|
|
57
49
|
* **INTERNAL**: You might be looking for [Global.RunConsoleCommand](https://wiki.facepunch.com/gmod/Global.RunConsoleCommand) or [Player:ConCommand](https://wiki.facepunch.com/gmod/Player:ConCommand).
|
|
58
50
|
*
|
|
@@ -66,4 +58,3 @@ interface ConcommandLib {
|
|
|
66
58
|
*/
|
|
67
59
|
Run(ply: Player, cmd: string, args: any, argumentString: string): boolean;
|
|
68
60
|
}
|
|
69
|
-
|
package/types/constraint.d.tlua
CHANGED
|
@@ -19,9 +19,7 @@ interface ConstraintLib {
|
|
|
19
19
|
* @source https://wiki.facepunch.com/gmod/constraint.AddConstraintTable
|
|
20
20
|
*/
|
|
21
21
|
AddConstraintTable(ent1: Entity, constrt: Entity, ent2?: Entity, ent3?: Entity, ent4?: Entity): void;
|
|
22
|
-
}
|
|
23
22
|
|
|
24
|
-
interface ConstraintLib {
|
|
25
23
|
/**
|
|
26
24
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
27
25
|
*
|
|
@@ -33,9 +31,7 @@ interface ConstraintLib {
|
|
|
33
31
|
* @source https://wiki.facepunch.com/gmod/constraint.AddConstraintTableNoDelete
|
|
34
32
|
*/
|
|
35
33
|
AddConstraintTableNoDelete(ent1: Entity, constrt: Entity, ent2?: Entity, ent3?: Entity, ent4?: Entity): void;
|
|
36
|
-
}
|
|
37
34
|
|
|
38
|
-
interface ConstraintLib {
|
|
39
35
|
/**
|
|
40
36
|
* Creates an advanced ballsocket (ragdoll) constraint. See [constraint.Ballsocket](https://wiki.facepunch.com/gmod/constraint.Ballsocket) for the simpler version.
|
|
41
37
|
*
|
|
@@ -44,45 +40,35 @@ interface ConstraintLib {
|
|
|
44
40
|
* @source https://wiki.facepunch.com/gmod/constraint.AdvBallsocket
|
|
45
41
|
*/
|
|
46
42
|
AdvBallsocket(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2?: Vector, forceLimit?: number, torqueLimit?: number, xMin?: number, yMin?: number, zMin?: number, xMax?: number, yMax?: number, zMax?: number, xFric?: number, yFric?: number, zFric?: number, onlyRotation?: number, noCollide?: number): Entity;
|
|
47
|
-
}
|
|
48
43
|
|
|
49
|
-
interface ConstraintLib {
|
|
50
44
|
/**
|
|
51
45
|
* Creates an axis constraint.
|
|
52
46
|
* @realm server
|
|
53
47
|
* @source https://wiki.facepunch.com/gmod/constraint.Axis
|
|
54
48
|
*/
|
|
55
49
|
Axis(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, forceLimit?: number, torqueLimit?: number, friction?: number, noCollide?: number, localAxis?: Vector, dontAddTable?: boolean): Entity;
|
|
56
|
-
}
|
|
57
50
|
|
|
58
|
-
interface ConstraintLib {
|
|
59
51
|
/**
|
|
60
52
|
* Creates a ballsocket joint. See See [constraint.AdvBallsocket](https://wiki.facepunch.com/gmod/constraint.AdvBallsocket) if you also wish to limit rotation angles in some way.
|
|
61
53
|
* @realm server
|
|
62
54
|
* @source https://wiki.facepunch.com/gmod/constraint.Ballsocket
|
|
63
55
|
*/
|
|
64
56
|
Ballsocket(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos: Vector, forceLimit?: number, torqueLimit?: number, nocollide?: number): Entity;
|
|
65
|
-
}
|
|
66
57
|
|
|
67
|
-
interface ConstraintLib {
|
|
68
58
|
/**
|
|
69
59
|
* Basic checks to make sure that the specified entity and bone are valid. Returns false if we should not be constraining the entity.
|
|
70
60
|
* @realm server
|
|
71
61
|
* @source https://wiki.facepunch.com/gmod/constraint.CanConstrain
|
|
72
62
|
*/
|
|
73
63
|
CanConstrain(ent: Entity, bone: number): boolean;
|
|
74
|
-
}
|
|
75
64
|
|
|
76
|
-
interface ConstraintLib {
|
|
77
65
|
/**
|
|
78
66
|
* Creates a rope without any constraint.
|
|
79
67
|
* @realm server
|
|
80
68
|
* @source https://wiki.facepunch.com/gmod/constraint.CreateKeyframeRope
|
|
81
69
|
*/
|
|
82
70
|
CreateKeyframeRope(pos: Vector, width: number, material?: string, constraint?: Entity, ent1?: Entity, localPos1?: Vector, bone1?: number, ent2?: Entity, localPos2?: Vector, bone2?: number, keyValues?: table): Entity;
|
|
83
|
-
}
|
|
84
71
|
|
|
85
|
-
interface ConstraintLib {
|
|
86
72
|
/**
|
|
87
73
|
* Creates an invisible, non-moveable anchor point in the world to which things can be attached.
|
|
88
74
|
* **NOTE**: The entity used internally by this function (`gmod_anchor`) only exists in Sandbox derived gamemodes, meaning this function will only work in these gamemodes.
|
|
@@ -94,45 +80,35 @@ interface ConstraintLib {
|
|
|
94
80
|
* @source https://wiki.facepunch.com/gmod/constraint.CreateStaticAnchorPoint
|
|
95
81
|
*/
|
|
96
82
|
CreateStaticAnchorPoint(pos: Vector): (Entity, PhysObj, number, Vector);
|
|
97
|
-
}
|
|
98
83
|
|
|
99
|
-
interface ConstraintLib {
|
|
100
84
|
/**
|
|
101
85
|
* Creates an elastic rope constraint.
|
|
102
86
|
* @realm server
|
|
103
87
|
* @source https://wiki.facepunch.com/gmod/constraint.Elastic
|
|
104
88
|
*/
|
|
105
89
|
Elastic(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, constant: number, damping: number, relDamping: number, material?: string, width?: number, stretchOnly?: boolean, color?: Color): (Entity, Entity);
|
|
106
|
-
}
|
|
107
90
|
|
|
108
|
-
interface ConstraintLib {
|
|
109
91
|
/**
|
|
110
92
|
* Returns the constraint of a specified type between two entities, if it exists
|
|
111
93
|
* @realm server
|
|
112
94
|
* @source https://wiki.facepunch.com/gmod/constraint.Find
|
|
113
95
|
*/
|
|
114
96
|
Find(ent1: Entity, ent2: Entity, type: string, bone1: number, bone2: number): Entity;
|
|
115
|
-
}
|
|
116
97
|
|
|
117
|
-
interface ConstraintLib {
|
|
118
98
|
/**
|
|
119
99
|
* Returns the first constraint of a specific type directly connected to the entity found.
|
|
120
100
|
* @realm server
|
|
121
101
|
* @source https://wiki.facepunch.com/gmod/constraint.FindConstraint
|
|
122
102
|
*/
|
|
123
103
|
FindConstraint(ent: Entity, type: string): table;
|
|
124
|
-
}
|
|
125
104
|
|
|
126
|
-
interface ConstraintLib {
|
|
127
105
|
/**
|
|
128
106
|
* Returns the other entity involved in the first constraint of a specific type directly connected to the entity.
|
|
129
107
|
* @realm server
|
|
130
108
|
* @source https://wiki.facepunch.com/gmod/constraint.FindConstraintEntity
|
|
131
109
|
*/
|
|
132
110
|
FindConstraintEntity(ent: Entity, type: string): Entity;
|
|
133
|
-
}
|
|
134
111
|
|
|
135
|
-
interface ConstraintLib {
|
|
136
112
|
/**
|
|
137
113
|
* Returns a table of all constraints of a specific type directly connected to the entity.
|
|
138
114
|
*
|
|
@@ -141,27 +117,21 @@ interface ConstraintLib {
|
|
|
141
117
|
* @source https://wiki.facepunch.com/gmod/constraint.FindConstraints
|
|
142
118
|
*/
|
|
143
119
|
FindConstraints(ent: Entity, type: string): table;
|
|
144
|
-
}
|
|
145
120
|
|
|
146
|
-
interface ConstraintLib {
|
|
147
121
|
/**
|
|
148
122
|
* Make this entity forget any constraints it knows about. Note that this will not actually remove the constraints.
|
|
149
123
|
* @realm server
|
|
150
124
|
* @source https://wiki.facepunch.com/gmod/constraint.ForgetConstraints
|
|
151
125
|
*/
|
|
152
126
|
ForgetConstraints(ent: Entity): void;
|
|
153
|
-
}
|
|
154
127
|
|
|
155
|
-
interface ConstraintLib {
|
|
156
128
|
/**
|
|
157
129
|
* Returns a table of all entities recursively constrained to an entity.
|
|
158
130
|
* @realm server
|
|
159
131
|
* @source https://wiki.facepunch.com/gmod/constraint.GetAllConstrainedEntities
|
|
160
132
|
*/
|
|
161
133
|
GetAllConstrainedEntities(ent: Entity, resultTable?: table): table;
|
|
162
|
-
}
|
|
163
134
|
|
|
164
|
-
interface ConstraintLib {
|
|
165
135
|
/**
|
|
166
136
|
* Returns a table of all constraints directly connected to the entity.
|
|
167
137
|
*
|
|
@@ -171,27 +141,21 @@ interface ConstraintLib {
|
|
|
171
141
|
* @source https://wiki.facepunch.com/gmod/constraint.GetTable
|
|
172
142
|
*/
|
|
173
143
|
GetTable(ent: Entity): table;
|
|
174
|
-
}
|
|
175
144
|
|
|
176
|
-
interface ConstraintLib {
|
|
177
145
|
/**
|
|
178
146
|
* Returns true if the entity has constraints attached to it
|
|
179
147
|
* @realm server
|
|
180
148
|
* @source https://wiki.facepunch.com/gmod/constraint.HasConstraints
|
|
181
149
|
*/
|
|
182
150
|
HasConstraints(ent: Entity): boolean;
|
|
183
|
-
}
|
|
184
151
|
|
|
185
|
-
interface ConstraintLib {
|
|
186
152
|
/**
|
|
187
153
|
* Creates a controllable [constraint.Elastic](https://wiki.facepunch.com/gmod/constraint.Elastic), aka a Hydraulic constraint.
|
|
188
154
|
* @realm server
|
|
189
155
|
* @source https://wiki.facepunch.com/gmod/constraint.Hydraulic
|
|
190
156
|
*/
|
|
191
157
|
Hydraulic(player: Player, ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, length1: number, length2: number, width: number, key: number, slider: number, speed: number, material?: string, toggle?: boolean, color?: Color): (Entity, Entity, Entity, Entity);
|
|
192
|
-
}
|
|
193
158
|
|
|
194
|
-
interface ConstraintLib {
|
|
195
159
|
/**
|
|
196
160
|
* Creates a keep upright constraint.
|
|
197
161
|
*
|
|
@@ -199,18 +163,14 @@ interface ConstraintLib {
|
|
|
199
163
|
* @source https://wiki.facepunch.com/gmod/constraint.Keepupright
|
|
200
164
|
*/
|
|
201
165
|
Keepupright(ent: Entity, ang: Angle, bone: number, angularLimit: number): Entity;
|
|
202
|
-
}
|
|
203
166
|
|
|
204
|
-
interface ConstraintLib {
|
|
205
167
|
/**
|
|
206
168
|
* Creates a motor constraint, a player controllable [constraint.Axis](https://wiki.facepunch.com/gmod/constraint.Axis).
|
|
207
169
|
* @realm server
|
|
208
170
|
* @source https://wiki.facepunch.com/gmod/constraint.Motor
|
|
209
171
|
*/
|
|
210
172
|
Motor(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, friction: number, torque: number, forcetime: number, nocollide?: number, toggle?: number, player?: Player, forcelimit?: number, key_fwd?: number, key_bwd?: number, direction?: number, localAxis?: Vector): (Entity, Entity);
|
|
211
|
-
}
|
|
212
173
|
|
|
213
|
-
interface ConstraintLib {
|
|
214
174
|
/**
|
|
215
175
|
* Creates a muscle constraint.
|
|
216
176
|
*
|
|
@@ -219,9 +179,7 @@ interface ConstraintLib {
|
|
|
219
179
|
* @source https://wiki.facepunch.com/gmod/constraint.Muscle
|
|
220
180
|
*/
|
|
221
181
|
Muscle(player: Player, ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, length1: number, length2: number, width: number, key: number, fixed: number, period: number, amplitude: number, startOn?: boolean, material?: string, color?: Color): (Entity, Entity, Entity, Entity);
|
|
222
|
-
}
|
|
223
182
|
|
|
224
|
-
interface ConstraintLib {
|
|
225
183
|
/**
|
|
226
184
|
* Creates an no-collide "constraint". Disables collision between two entities.
|
|
227
185
|
* **NOTE**: Does not work with players.
|
|
@@ -231,9 +189,7 @@ interface ConstraintLib {
|
|
|
231
189
|
* @source https://wiki.facepunch.com/gmod/constraint.NoCollide
|
|
232
190
|
*/
|
|
233
191
|
NoCollide(ent1: Entity, ent2: Entity, bone1: number, bone2: number, disableOnRemove?: boolean): Entity;
|
|
234
|
-
}
|
|
235
192
|
|
|
236
|
-
interface ConstraintLib {
|
|
237
193
|
/**
|
|
238
194
|
* Creates a pulley constraint.
|
|
239
195
|
*
|
|
@@ -253,54 +209,42 @@ interface ConstraintLib {
|
|
|
253
209
|
* @source https://wiki.facepunch.com/gmod/constraint.Pulley
|
|
254
210
|
*/
|
|
255
211
|
Pulley(ent1: Entity, ent4: Entity, bone1: number, bone4: number, localPos1: Vector, localPos4: Vector, worldPos2: Vector, worldPos3: Vector, forceLimit: number, rigid?: boolean, width?: number, material?: string, color?: Color): (Entity, Entity, Entity, Entity);
|
|
256
|
-
}
|
|
257
212
|
|
|
258
|
-
interface ConstraintLib {
|
|
259
213
|
/**
|
|
260
214
|
* Attempts to remove all constraints associated with an entity.
|
|
261
215
|
* @realm server
|
|
262
216
|
* @source https://wiki.facepunch.com/gmod/constraint.RemoveAll
|
|
263
217
|
*/
|
|
264
218
|
RemoveAll(ent: Entity): (boolean, number);
|
|
265
|
-
}
|
|
266
219
|
|
|
267
|
-
interface ConstraintLib {
|
|
268
220
|
/**
|
|
269
221
|
* Attempts to remove all constraints of a specified type associated with an entity
|
|
270
222
|
* @realm server
|
|
271
223
|
* @source https://wiki.facepunch.com/gmod/constraint.RemoveConstraints
|
|
272
224
|
*/
|
|
273
225
|
RemoveConstraints(ent: Entity, type: string): (boolean, number);
|
|
274
|
-
}
|
|
275
226
|
|
|
276
|
-
interface ConstraintLib {
|
|
277
227
|
/**
|
|
278
228
|
* Creates a simple rope (length) based constraint.
|
|
279
229
|
* @realm server
|
|
280
230
|
* @source https://wiki.facepunch.com/gmod/constraint.Rope
|
|
281
231
|
*/
|
|
282
232
|
Rope(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, length: number, addLength?: number, forceLimit?: number, width?: number, material?: string, rigid?: boolean, color?: Color): (Entity, Entity);
|
|
283
|
-
}
|
|
284
233
|
|
|
285
|
-
interface ConstraintLib {
|
|
286
234
|
/**
|
|
287
235
|
* Creates a slider constraint. A slider is like a rope, but allows the constrained object to move only in 1 direction.
|
|
288
236
|
* @realm server
|
|
289
237
|
* @source https://wiki.facepunch.com/gmod/constraint.Slider
|
|
290
238
|
*/
|
|
291
239
|
Slider(ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, width: number, material?: string, color?: Color): (Entity, Entity);
|
|
292
|
-
}
|
|
293
240
|
|
|
294
|
-
interface ConstraintLib {
|
|
295
241
|
/**
|
|
296
242
|
* Creates a weld constraint.
|
|
297
243
|
* @realm server
|
|
298
244
|
* @source https://wiki.facepunch.com/gmod/constraint.Weld
|
|
299
245
|
*/
|
|
300
246
|
Weld(ent1: Entity, ent2: Entity, bone1: number, bone2: number, forceLimit?: number, noCollide?: boolean, deleteEnt1OnBreak?: boolean): Entity;
|
|
301
|
-
}
|
|
302
247
|
|
|
303
|
-
interface ConstraintLib {
|
|
304
248
|
/**
|
|
305
249
|
* Creates a winch constraint, a player controllable [constraint.Elastic](https://wiki.facepunch.com/gmod/constraint.Elastic), allowing gradually increasing or decreasing the length.
|
|
306
250
|
* @realm server
|
|
@@ -308,4 +252,3 @@ interface ConstraintLib {
|
|
|
308
252
|
*/
|
|
309
253
|
Winch(player: Player, ent1: Entity, ent2: Entity, bone1: number, bone2: number, localPos1: Vector, localPos2: Vector, width: number, fwdBind: number, bwdBind: number, fwdSpeed: number, bwdSpeed: number, material?: string, toggle?: boolean, color?: Color): (Entity, Entity, Entity);
|
|
310
254
|
}
|
|
311
|
-
|
package/types/construct.d.tlua
CHANGED
|
@@ -13,9 +13,7 @@ interface ConstructLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/construct.Magnet
|
|
14
14
|
*/
|
|
15
15
|
Magnet(ply: Player, pos: Vector, ang: Angle, model: string, material: string, key: number, maxObjects: number, strength: number, nopull?: number, allowrot?: number, startOn?: number, toggle?: number, vel?: Vector, aVel?: Angle, frozen?: boolean): Entity;
|
|
16
|
-
}
|
|
17
16
|
|
|
18
|
-
interface ConstructLib {
|
|
19
17
|
/**
|
|
20
18
|
* Sets props physical properties.
|
|
21
19
|
* @realm server
|
|
@@ -23,4 +21,3 @@ interface ConstructLib {
|
|
|
23
21
|
*/
|
|
24
22
|
SetPhysProp(ply: Player, ent: Entity, physObjID: number, physObj: PhysObj, data: PhysProperties): void;
|
|
25
23
|
}
|
|
26
|
-
|
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
* @realm client
|
|
11
11
|
* @source https://wiki.facepunch.com/gmod/ContentHeader
|
|
12
12
|
*/
|
|
13
|
-
interface ContentHeader extends DLabelEditable {
|
|
14
|
-
|
|
15
|
-
interface ContentHeader {
|
|
13
|
+
interface ContentHeader extends DLabelEditable {
|
|
16
14
|
/**
|
|
17
15
|
* Creates a [Global.DermaMenu](https://wiki.facepunch.com/gmod/Global.DermaMenu) and adds a delete option before opening the menu
|
|
18
16
|
*
|
|
@@ -20,13 +18,10 @@ interface ContentHeader {
|
|
|
20
18
|
* @source https://wiki.facepunch.com/gmod/ContentHeader:OpenMenu
|
|
21
19
|
*/
|
|
22
20
|
OpenMenu(self: ContentHeader, style: string, hookname?: string): void;
|
|
23
|
-
}
|
|
24
21
|
|
|
25
|
-
interface ContentHeader {
|
|
26
22
|
/**
|
|
27
23
|
* @realm client
|
|
28
24
|
* @source https://wiki.facepunch.com/gmod/ContentHeader:ToTable
|
|
29
25
|
*/
|
|
30
26
|
ToTable(self: ContentHeader, bigtable: table): void;
|
|
31
27
|
}
|
|
32
|
-
|