@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/cam.d.tlua
CHANGED
|
@@ -15,6 +15,7 @@ interface CamLib {
|
|
|
15
15
|
* @source https://wiki.facepunch.com/gmod/cam.ApplyShake
|
|
16
16
|
*/
|
|
17
17
|
ApplyShake(pos: Vector, angles: Angle, factor: number): void;
|
|
18
|
+
|
|
18
19
|
/**
|
|
19
20
|
* Switches the renderer back to the previous drawing mode from a 3D context.
|
|
20
21
|
*
|
|
@@ -24,6 +25,7 @@ interface CamLib {
|
|
|
24
25
|
* @source https://wiki.facepunch.com/gmod/cam.End
|
|
25
26
|
*/
|
|
26
27
|
End(): void;
|
|
28
|
+
|
|
27
29
|
/**
|
|
28
30
|
* Switches the renderer back to the previous drawing mode from a 2D context.
|
|
29
31
|
*
|
|
@@ -31,6 +33,7 @@ interface CamLib {
|
|
|
31
33
|
* @source https://wiki.facepunch.com/gmod/cam.End2D
|
|
32
34
|
*/
|
|
33
35
|
End2D(): void;
|
|
36
|
+
|
|
34
37
|
/**
|
|
35
38
|
* Switches the renderer back to the previous drawing mode from a 3D context.
|
|
36
39
|
*
|
|
@@ -38,6 +41,7 @@ interface CamLib {
|
|
|
38
41
|
* @source https://wiki.facepunch.com/gmod/cam.End3D
|
|
39
42
|
*/
|
|
40
43
|
End3D(): void;
|
|
44
|
+
|
|
41
45
|
/**
|
|
42
46
|
* Switches the renderer back to the previous drawing mode from a 3D2D context.
|
|
43
47
|
*
|
|
@@ -45,12 +49,14 @@ interface CamLib {
|
|
|
45
49
|
* @source https://wiki.facepunch.com/gmod/cam.End3D2D
|
|
46
50
|
*/
|
|
47
51
|
End3D2D(): void;
|
|
52
|
+
|
|
48
53
|
/**
|
|
49
54
|
* Switches the renderer back to the previous drawing mode from a 3D orthographic rendering context.
|
|
50
55
|
* @realm client
|
|
51
56
|
* @source https://wiki.facepunch.com/gmod/cam.EndOrthoView
|
|
52
57
|
*/
|
|
53
58
|
EndOrthoView(): void;
|
|
59
|
+
|
|
54
60
|
/**
|
|
55
61
|
* Returns a copy of the model matrix that is at the top of the stack.
|
|
56
62
|
* **NOTE**: Editing the matrix **will not** edit the current view. To do so, you will have to use [cam.PushModelMatrix](https://wiki.facepunch.com/gmod/cam.PushModelMatrix).
|
|
@@ -60,6 +66,7 @@ interface CamLib {
|
|
|
60
66
|
* @source https://wiki.facepunch.com/gmod/cam.GetModelMatrix
|
|
61
67
|
*/
|
|
62
68
|
GetModelMatrix(): VMatrix;
|
|
69
|
+
|
|
63
70
|
/**
|
|
64
71
|
* Returns a copy of the projection matrix. Also see [cam.GetViewMatrix](https://wiki.facepunch.com/gmod/cam.GetViewMatrix).
|
|
65
72
|
*
|
|
@@ -69,6 +76,7 @@ interface CamLib {
|
|
|
69
76
|
* @source https://wiki.facepunch.com/gmod/cam.GetProjectionMatrix
|
|
70
77
|
*/
|
|
71
78
|
GetProjectionMatrix(): VMatrix;
|
|
79
|
+
|
|
72
80
|
/**
|
|
73
81
|
* Returns a copy of the view matrix. Also see [cam.GetProjectionMatrix](https://wiki.facepunch.com/gmod/cam.GetProjectionMatrix).
|
|
74
82
|
*
|
|
@@ -78,6 +86,7 @@ interface CamLib {
|
|
|
78
86
|
* @source https://wiki.facepunch.com/gmod/cam.GetViewMatrix
|
|
79
87
|
*/
|
|
80
88
|
GetViewMatrix(): VMatrix;
|
|
89
|
+
|
|
81
90
|
/**
|
|
82
91
|
* Tells the renderer to ignore the depth buffer and draw any upcoming operation "ontop" of everything that was drawn yet.
|
|
83
92
|
*
|
|
@@ -87,12 +96,14 @@ interface CamLib {
|
|
|
87
96
|
* @source https://wiki.facepunch.com/gmod/cam.IgnoreZ
|
|
88
97
|
*/
|
|
89
98
|
IgnoreZ(ignoreZ: boolean): void;
|
|
99
|
+
|
|
90
100
|
/**
|
|
91
101
|
* Removes the currently active model matrix (pushed previously with [cam.PushModelMatrix](https://wiki.facepunch.com/gmod/cam.PushModelMatrix)) from the stack and reinstates the previous one.
|
|
92
102
|
* @realm client
|
|
93
103
|
* @source https://wiki.facepunch.com/gmod/cam.PopModelMatrix
|
|
94
104
|
*/
|
|
95
105
|
PopModelMatrix(): void;
|
|
106
|
+
|
|
96
107
|
/**
|
|
97
108
|
* Pushes the specified matrix onto the render matrix stack. Each pushed matrix must be popped via [cam.PopModelMatrix](https://wiki.facepunch.com/gmod/cam.PopModelMatrix).
|
|
98
109
|
*
|
|
@@ -104,6 +115,7 @@ interface CamLib {
|
|
|
104
115
|
* @source https://wiki.facepunch.com/gmod/cam.PushModelMatrix
|
|
105
116
|
*/
|
|
106
117
|
PushModelMatrix(matrix: VMatrix, multiply?: boolean): void;
|
|
118
|
+
|
|
107
119
|
/**
|
|
108
120
|
* Sets up a new rendering context. This is an extended version of [cam.Start3D](https://wiki.facepunch.com/gmod/cam.Start3D) and [cam.Start2D](https://wiki.facepunch.com/gmod/cam.Start2D). Must be finished by [cam.End3D](https://wiki.facepunch.com/gmod/cam.End3D) or [cam.End2D](https://wiki.facepunch.com/gmod/cam.End2D).
|
|
109
121
|
*
|
|
@@ -113,6 +125,7 @@ interface CamLib {
|
|
|
113
125
|
* @source https://wiki.facepunch.com/gmod/cam.Start
|
|
114
126
|
*/
|
|
115
127
|
Start(dataTbl: RenderCamData): void;
|
|
128
|
+
|
|
116
129
|
/**
|
|
117
130
|
* Sets up a new 2D rendering context. Must be finished by [cam.End2D](https://wiki.facepunch.com/gmod/cam.End2D).
|
|
118
131
|
*
|
|
@@ -126,6 +139,7 @@ interface CamLib {
|
|
|
126
139
|
* @source https://wiki.facepunch.com/gmod/cam.Start2D
|
|
127
140
|
*/
|
|
128
141
|
Start2D(): void;
|
|
142
|
+
|
|
129
143
|
/**
|
|
130
144
|
* Sets up a new 3D rendering context. Must be finished by [cam.End3D](https://wiki.facepunch.com/gmod/cam.End3D).
|
|
131
145
|
*
|
|
@@ -143,6 +157,7 @@ interface CamLib {
|
|
|
143
157
|
* @source https://wiki.facepunch.com/gmod/cam.Start3D
|
|
144
158
|
*/
|
|
145
159
|
Start3D(pos?: Vector, angles?: Angle, fov?: number, x?: number, y?: number, w?: number, h?: number, zNear?: number, zFar?: number): void;
|
|
160
|
+
|
|
146
161
|
/**
|
|
147
162
|
* Sets up the model transformation matrix to draw 2D content in 3D space and pushes it into the stack ([cam.PushModelMatrix](https://wiki.facepunch.com/gmod/cam.PushModelMatrix)).
|
|
148
163
|
*
|
|
@@ -162,6 +177,7 @@ interface CamLib {
|
|
|
162
177
|
* @source https://wiki.facepunch.com/gmod/cam.Start3D2D
|
|
163
178
|
*/
|
|
164
179
|
Start3D2D(pos: Vector, angles: Angle, scale: number): void;
|
|
180
|
+
|
|
165
181
|
/**
|
|
166
182
|
* Sets up a new 3d context using orthographic projection.
|
|
167
183
|
* @realm client
|
|
@@ -169,20 +185,3 @@ interface CamLib {
|
|
|
169
185
|
*/
|
|
170
186
|
StartOrthoView(leftOffset: number, topOffset: number, rightOffset: number, bottomOffset: number): void;
|
|
171
187
|
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
package/types/ceffectdata.d.tlua
CHANGED
|
@@ -11,90 +11,105 @@ interface CEffectData {
|
|
|
11
11
|
* @source https://wiki.facepunch.com/gmod/CEffectData:GetAngles
|
|
12
12
|
*/
|
|
13
13
|
GetAngles(self: CEffectData): Angle;
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* Returns the attachment ID for the effect.
|
|
16
17
|
* @realm shared
|
|
17
18
|
* @source https://wiki.facepunch.com/gmod/CEffectData:GetAttachment
|
|
18
19
|
*/
|
|
19
20
|
GetAttachment(self: CEffectData): number;
|
|
21
|
+
|
|
20
22
|
/**
|
|
21
23
|
* Returns byte which represents the color of the effect.
|
|
22
24
|
* @realm shared
|
|
23
25
|
* @source https://wiki.facepunch.com/gmod/CEffectData:GetColor
|
|
24
26
|
*/
|
|
25
27
|
GetColor(self: CEffectData): number;
|
|
28
|
+
|
|
26
29
|
/**
|
|
27
30
|
* Returns the damage type of the effect
|
|
28
31
|
* @realm shared
|
|
29
32
|
* @source https://wiki.facepunch.com/gmod/CEffectData:GetDamageType
|
|
30
33
|
*/
|
|
31
34
|
GetDamageType(self: CEffectData): number;
|
|
35
|
+
|
|
32
36
|
/**
|
|
33
37
|
* Returns the entity index of the entity set for the effect.
|
|
34
38
|
* @realm server
|
|
35
39
|
* @source https://wiki.facepunch.com/gmod/CEffectData:GetEntIndex
|
|
36
40
|
*/
|
|
37
41
|
GetEntIndex(self: CEffectData): number;
|
|
42
|
+
|
|
38
43
|
/**
|
|
39
44
|
* Returns the entity assigned to the effect.
|
|
40
45
|
* @realm shared
|
|
41
46
|
* @source https://wiki.facepunch.com/gmod/CEffectData:GetEntity
|
|
42
47
|
*/
|
|
43
48
|
GetEntity(self: CEffectData): Entity;
|
|
49
|
+
|
|
44
50
|
/**
|
|
45
51
|
* Returns the flags of the effect.
|
|
46
52
|
* @realm shared
|
|
47
53
|
* @source https://wiki.facepunch.com/gmod/CEffectData:GetFlags
|
|
48
54
|
*/
|
|
49
55
|
GetFlags(self: CEffectData): number;
|
|
56
|
+
|
|
50
57
|
/**
|
|
51
58
|
* Returns the hit box ID of the effect.
|
|
52
59
|
* @realm shared
|
|
53
60
|
* @source https://wiki.facepunch.com/gmod/CEffectData:GetHitBox
|
|
54
61
|
*/
|
|
55
62
|
GetHitBox(self: CEffectData): number;
|
|
63
|
+
|
|
56
64
|
/**
|
|
57
65
|
* Returns the magnitude of the effect.
|
|
58
66
|
* @realm shared
|
|
59
67
|
* @source https://wiki.facepunch.com/gmod/CEffectData:GetMagnitude
|
|
60
68
|
*/
|
|
61
69
|
GetMagnitude(self: CEffectData): number;
|
|
70
|
+
|
|
62
71
|
/**
|
|
63
72
|
* Returns the material ID of the effect.
|
|
64
73
|
* @realm shared
|
|
65
74
|
* @source https://wiki.facepunch.com/gmod/CEffectData:GetMaterialIndex
|
|
66
75
|
*/
|
|
67
76
|
GetMaterialIndex(self: CEffectData): number;
|
|
77
|
+
|
|
68
78
|
/**
|
|
69
79
|
* Returns the normalized direction vector of the effect.
|
|
70
80
|
* @realm shared
|
|
71
81
|
* @source https://wiki.facepunch.com/gmod/CEffectData:GetNormal
|
|
72
82
|
*/
|
|
73
83
|
GetNormal(self: CEffectData): Vector;
|
|
84
|
+
|
|
74
85
|
/**
|
|
75
86
|
* Returns the origin position of the effect.
|
|
76
87
|
* @realm shared
|
|
77
88
|
* @source https://wiki.facepunch.com/gmod/CEffectData:GetOrigin
|
|
78
89
|
*/
|
|
79
90
|
GetOrigin(self: CEffectData): Vector;
|
|
91
|
+
|
|
80
92
|
/**
|
|
81
93
|
* Returns the radius of the effect.
|
|
82
94
|
* @realm shared
|
|
83
95
|
* @source https://wiki.facepunch.com/gmod/CEffectData:GetRadius
|
|
84
96
|
*/
|
|
85
97
|
GetRadius(self: CEffectData): number;
|
|
98
|
+
|
|
86
99
|
/**
|
|
87
100
|
* Returns the scale of the effect.
|
|
88
101
|
* @realm shared
|
|
89
102
|
* @source https://wiki.facepunch.com/gmod/CEffectData:GetScale
|
|
90
103
|
*/
|
|
91
104
|
GetScale(self: CEffectData): number;
|
|
105
|
+
|
|
92
106
|
/**
|
|
93
107
|
* Returns the start position of the effect.
|
|
94
108
|
* @realm shared
|
|
95
109
|
* @source https://wiki.facepunch.com/gmod/CEffectData:GetStart
|
|
96
110
|
*/
|
|
97
111
|
GetStart(self: CEffectData): Vector;
|
|
112
|
+
|
|
98
113
|
/**
|
|
99
114
|
* Returns the surface property index of the effect. See [util.GetSurfaceData](https://wiki.facepunch.com/gmod/util.GetSurfaceData) for more details about what they are.
|
|
100
115
|
*
|
|
@@ -104,12 +119,14 @@ interface CEffectData {
|
|
|
104
119
|
* @source https://wiki.facepunch.com/gmod/CEffectData:GetSurfaceProp
|
|
105
120
|
*/
|
|
106
121
|
GetSurfaceProp(self: CEffectData): number;
|
|
122
|
+
|
|
107
123
|
/**
|
|
108
124
|
* Sets the angles of the effect.
|
|
109
125
|
* @realm shared
|
|
110
126
|
* @source https://wiki.facepunch.com/gmod/CEffectData:SetAngles
|
|
111
127
|
*/
|
|
112
128
|
SetAngles(self: CEffectData, ang: Angle): void;
|
|
129
|
+
|
|
113
130
|
/**
|
|
114
131
|
* Sets the attachment id of the effect to be created with this effect data.
|
|
115
132
|
*
|
|
@@ -120,6 +137,7 @@ interface CEffectData {
|
|
|
120
137
|
* @source https://wiki.facepunch.com/gmod/CEffectData:SetAttachment
|
|
121
138
|
*/
|
|
122
139
|
SetAttachment(self: CEffectData, attachment: number): void;
|
|
140
|
+
|
|
123
141
|
/**
|
|
124
142
|
* Sets the "color" of the effect.
|
|
125
143
|
*
|
|
@@ -132,24 +150,28 @@ interface CEffectData {
|
|
|
132
150
|
* @source https://wiki.facepunch.com/gmod/CEffectData:SetColor
|
|
133
151
|
*/
|
|
134
152
|
SetColor(self: CEffectData, color: number): void;
|
|
153
|
+
|
|
135
154
|
/**
|
|
136
155
|
* Sets the damage type of the effect to be created with this effect data.
|
|
137
156
|
* @realm shared
|
|
138
157
|
* @source https://wiki.facepunch.com/gmod/CEffectData:SetDamageType
|
|
139
158
|
*/
|
|
140
159
|
SetDamageType(self: CEffectData, damageType: number): void;
|
|
160
|
+
|
|
141
161
|
/**
|
|
142
162
|
* Sets the entity of the effect via its index.
|
|
143
163
|
* @realm server
|
|
144
164
|
* @source https://wiki.facepunch.com/gmod/CEffectData:SetEntIndex
|
|
145
165
|
*/
|
|
146
166
|
SetEntIndex(self: CEffectData, entIndex: number): void;
|
|
167
|
+
|
|
147
168
|
/**
|
|
148
169
|
* Sets the entity of the effect to be created with this effect data.
|
|
149
170
|
* @realm shared
|
|
150
171
|
* @source https://wiki.facepunch.com/gmod/CEffectData:SetEntity
|
|
151
172
|
*/
|
|
152
173
|
SetEntity(self: CEffectData, entity: Entity): void;
|
|
174
|
+
|
|
153
175
|
/**
|
|
154
176
|
* Sets the flags for the effect. What flags do depends entirely on the effect. See [Default Effects](https://wiki.facepunch.com/gmod/Default_Effects).
|
|
155
177
|
*
|
|
@@ -160,6 +182,7 @@ interface CEffectData {
|
|
|
160
182
|
* @source https://wiki.facepunch.com/gmod/CEffectData:SetFlags
|
|
161
183
|
*/
|
|
162
184
|
SetFlags(self: CEffectData, flags: number): void;
|
|
185
|
+
|
|
163
186
|
/**
|
|
164
187
|
* Sets the hit box index of the effect. Used by various effects for various purposes.
|
|
165
188
|
*
|
|
@@ -170,6 +193,7 @@ interface CEffectData {
|
|
|
170
193
|
* @source https://wiki.facepunch.com/gmod/CEffectData:SetHitBox
|
|
171
194
|
*/
|
|
172
195
|
SetHitBox(self: CEffectData, hitBoxIndex: number): void;
|
|
196
|
+
|
|
173
197
|
/**
|
|
174
198
|
* Sets the magnitude of the effect.
|
|
175
199
|
* **NOTE**: Internally stored as a float with 12 bit precision for networking purposes, limited to range of 0-1023.
|
|
@@ -178,6 +202,7 @@ interface CEffectData {
|
|
|
178
202
|
* @source https://wiki.facepunch.com/gmod/CEffectData:SetMagnitude
|
|
179
203
|
*/
|
|
180
204
|
SetMagnitude(self: CEffectData, magnitude: number): void;
|
|
205
|
+
|
|
181
206
|
/**
|
|
182
207
|
* Sets the material index of the effect.
|
|
183
208
|
*
|
|
@@ -188,12 +213,14 @@ interface CEffectData {
|
|
|
188
213
|
* @source https://wiki.facepunch.com/gmod/CEffectData:SetMaterialIndex
|
|
189
214
|
*/
|
|
190
215
|
SetMaterialIndex(self: CEffectData, materialIndex: number): void;
|
|
216
|
+
|
|
191
217
|
/**
|
|
192
218
|
* Sets the normalized (length=1) direction vector of the effect to be created with this effect data. This **must** be a normalized vector for networking purposes.
|
|
193
219
|
* @realm shared
|
|
194
220
|
* @source https://wiki.facepunch.com/gmod/CEffectData:SetNormal
|
|
195
221
|
*/
|
|
196
222
|
SetNormal(self: CEffectData, normal: Vector): void;
|
|
223
|
+
|
|
197
224
|
/**
|
|
198
225
|
* Sets the origin of the effect to be created with this effect data.
|
|
199
226
|
* **NOTE**: Limited to world bounds (+-16386 on every axis) and has horrible networking precision. (17 bit float per component)
|
|
@@ -203,6 +230,7 @@ interface CEffectData {
|
|
|
203
230
|
* @source https://wiki.facepunch.com/gmod/CEffectData:SetOrigin
|
|
204
231
|
*/
|
|
205
232
|
SetOrigin(self: CEffectData, origin: Vector): void;
|
|
233
|
+
|
|
206
234
|
/**
|
|
207
235
|
* Sets the radius of the effect to be created with this effect data.
|
|
208
236
|
*
|
|
@@ -213,12 +241,14 @@ interface CEffectData {
|
|
|
213
241
|
* @source https://wiki.facepunch.com/gmod/CEffectData:SetRadius
|
|
214
242
|
*/
|
|
215
243
|
SetRadius(self: CEffectData, radius: number): void;
|
|
244
|
+
|
|
216
245
|
/**
|
|
217
246
|
* Sets the scale of the effect to be created with this effect data.
|
|
218
247
|
* @realm shared
|
|
219
248
|
* @source https://wiki.facepunch.com/gmod/CEffectData:SetScale
|
|
220
249
|
*/
|
|
221
250
|
SetScale(self: CEffectData, scale: number): void;
|
|
251
|
+
|
|
222
252
|
/**
|
|
223
253
|
* Sets the start of the effect to be created with this effect data.
|
|
224
254
|
* **NOTE**: Limited to world bounds (+-16386 on every axis) and has horrible networking precision. (17 bit float per component)
|
|
@@ -228,6 +258,7 @@ interface CEffectData {
|
|
|
228
258
|
* @source https://wiki.facepunch.com/gmod/CEffectData:SetStart
|
|
229
259
|
*/
|
|
230
260
|
SetStart(self: CEffectData, start: Vector): void;
|
|
261
|
+
|
|
231
262
|
/**
|
|
232
263
|
* Sets the surface property index of the effect. See [util.GetSurfaceData](https://wiki.facepunch.com/gmod/util.GetSurfaceData) for more details about what they are.
|
|
233
264
|
*
|
|
@@ -239,36 +270,3 @@ interface CEffectData {
|
|
|
239
270
|
*/
|
|
240
271
|
SetSurfaceProp(self: CEffectData, surfaceProperties: number): void;
|
|
241
272
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
package/types/chat.d.tlua
CHANGED
|
@@ -13,30 +13,35 @@ interface ChatLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/chat.AddText
|
|
14
14
|
*/
|
|
15
15
|
AddText(...: any): void;
|
|
16
|
+
|
|
16
17
|
/**
|
|
17
18
|
* Closes the chat window.
|
|
18
19
|
* @realm client
|
|
19
20
|
* @source https://wiki.facepunch.com/gmod/chat.Close
|
|
20
21
|
*/
|
|
21
22
|
Close(): void;
|
|
23
|
+
|
|
22
24
|
/**
|
|
23
25
|
* Returns the chatbox position.
|
|
24
26
|
* @realm client
|
|
25
27
|
* @source https://wiki.facepunch.com/gmod/chat.GetChatBoxPos
|
|
26
28
|
*/
|
|
27
29
|
GetChatBoxPos(): (number, number);
|
|
30
|
+
|
|
28
31
|
/**
|
|
29
32
|
* Returns the chatbox size.
|
|
30
33
|
* @realm client
|
|
31
34
|
* @source https://wiki.facepunch.com/gmod/chat.GetChatBoxSize
|
|
32
35
|
*/
|
|
33
36
|
GetChatBoxSize(): (number, number);
|
|
37
|
+
|
|
34
38
|
/**
|
|
35
39
|
* Opens the chat window.
|
|
36
40
|
* @realm client
|
|
37
41
|
* @source https://wiki.facepunch.com/gmod/chat.Open
|
|
38
42
|
*/
|
|
39
43
|
Open(mode: number): void;
|
|
44
|
+
|
|
40
45
|
/**
|
|
41
46
|
* Plays the chat "tick" sound.
|
|
42
47
|
* @realm client
|
|
@@ -44,9 +49,3 @@ interface ChatLib {
|
|
|
44
49
|
*/
|
|
45
50
|
PlaySound(): void;
|
|
46
51
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
package/types/checkbutton.d.tlua
CHANGED
package/types/cleanup.d.tlua
CHANGED
|
@@ -13,6 +13,7 @@ interface CleanupLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/cleanup.Add
|
|
14
14
|
*/
|
|
15
15
|
Add(pl: Player, type: string, ent: Entity): void;
|
|
16
|
+
|
|
16
17
|
/**
|
|
17
18
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
18
19
|
* Called by the `gmod_admin_cleanup` console command. Allows admins to clean up the server.
|
|
@@ -20,6 +21,7 @@ interface CleanupLib {
|
|
|
20
21
|
* @source https://wiki.facepunch.com/gmod/cleanup.CC_AdminCleanup
|
|
21
22
|
*/
|
|
22
23
|
CC_AdminCleanup(pl: Player, command: string, args: table): void;
|
|
24
|
+
|
|
23
25
|
/**
|
|
24
26
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
25
27
|
* Called by the `gmod_cleanup` console command. Allows players to cleanup their own props.
|
|
@@ -27,24 +29,28 @@ interface CleanupLib {
|
|
|
27
29
|
* @source https://wiki.facepunch.com/gmod/cleanup.CC_Cleanup
|
|
28
30
|
*/
|
|
29
31
|
CC_Cleanup(pl: Player, command: string, args: table): void;
|
|
32
|
+
|
|
30
33
|
/**
|
|
31
34
|
* Gets the cleanup list.
|
|
32
35
|
* @realm server
|
|
33
36
|
* @source https://wiki.facepunch.com/gmod/cleanup.GetList
|
|
34
37
|
*/
|
|
35
38
|
GetList(): void;
|
|
39
|
+
|
|
36
40
|
/**
|
|
37
41
|
* Gets the table of cleanup types.
|
|
38
42
|
* @realm shared
|
|
39
43
|
* @source https://wiki.facepunch.com/gmod/cleanup.GetTable
|
|
40
44
|
*/
|
|
41
45
|
GetTable(): table;
|
|
46
|
+
|
|
42
47
|
/**
|
|
43
48
|
* Registers a new cleanup type.
|
|
44
49
|
* @realm shared
|
|
45
50
|
* @source https://wiki.facepunch.com/gmod/cleanup.Register
|
|
46
51
|
*/
|
|
47
52
|
Register(type: string): void;
|
|
53
|
+
|
|
48
54
|
/**
|
|
49
55
|
* Replaces one entity in the cleanup module with another.
|
|
50
56
|
*
|
|
@@ -54,6 +60,7 @@ interface CleanupLib {
|
|
|
54
60
|
* @source https://wiki.facepunch.com/gmod/cleanup.ReplaceEntity
|
|
55
61
|
*/
|
|
56
62
|
ReplaceEntity(from: Entity, to: Entity | nil): boolean;
|
|
63
|
+
|
|
57
64
|
/**
|
|
58
65
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
59
66
|
*
|
|
@@ -64,11 +71,3 @@ interface CleanupLib {
|
|
|
64
71
|
*/
|
|
65
72
|
UpdateUI(): void;
|
|
66
73
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
package/types/cluaemitter.d.tlua
CHANGED
|
@@ -11,42 +11,49 @@ interface CLuaEmitter {
|
|
|
11
11
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:Add
|
|
12
12
|
*/
|
|
13
13
|
Add(self: CLuaEmitter, material: string, position: Vector): CLuaParticle;
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* Manually renders all particles the emitter has created.
|
|
16
17
|
* @realm client
|
|
17
18
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:Draw
|
|
18
19
|
*/
|
|
19
20
|
Draw(self: CLuaEmitter): void;
|
|
21
|
+
|
|
20
22
|
/**
|
|
21
23
|
* Removes the emitter, making it no longer usable from Lua. If particles remain, the emitter will be removed when all particles die.
|
|
22
24
|
* @realm client
|
|
23
25
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:Finish
|
|
24
26
|
*/
|
|
25
27
|
Finish(self: CLuaEmitter): void;
|
|
28
|
+
|
|
26
29
|
/**
|
|
27
30
|
* Returns the amount of active particles of this emitter.
|
|
28
31
|
* @realm client
|
|
29
32
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:GetNumActiveParticles
|
|
30
33
|
*/
|
|
31
34
|
GetNumActiveParticles(self: CLuaEmitter): number;
|
|
35
|
+
|
|
32
36
|
/**
|
|
33
37
|
* Returns the position of this emitter. This is set when creating the emitter with [Global.ParticleEmitter](https://wiki.facepunch.com/gmod/Global.ParticleEmitter).
|
|
34
38
|
* @realm client
|
|
35
39
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:GetPos
|
|
36
40
|
*/
|
|
37
41
|
GetPos(self: CLuaEmitter): Vector;
|
|
42
|
+
|
|
38
43
|
/**
|
|
39
44
|
* Returns whether this emitter is 3D or not. This is set when creating the emitter with [Global.ParticleEmitter](https://wiki.facepunch.com/gmod/Global.ParticleEmitter).
|
|
40
45
|
* @realm client
|
|
41
46
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:Is3D
|
|
42
47
|
*/
|
|
43
48
|
Is3D(self: CLuaEmitter): boolean;
|
|
49
|
+
|
|
44
50
|
/**
|
|
45
51
|
* Returns whether this [CLuaEmitter](https://wiki.facepunch.com/gmod/CLuaEmitter) is valid or not.
|
|
46
52
|
* @realm client
|
|
47
53
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:IsValid
|
|
48
54
|
*/
|
|
49
55
|
IsValid(self: CLuaEmitter): boolean;
|
|
56
|
+
|
|
50
57
|
/**
|
|
51
58
|
* Sets the bounding box for this emitter.
|
|
52
59
|
*
|
|
@@ -56,24 +63,28 @@ interface CLuaEmitter {
|
|
|
56
63
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:SetBBox
|
|
57
64
|
*/
|
|
58
65
|
SetBBox(self: CLuaEmitter, mins: Vector, maxs: Vector): void;
|
|
66
|
+
|
|
59
67
|
/**
|
|
60
68
|
* This function sets the the distance between the render camera and the emitter at which the particles should start fading and at which distance fade ends ( alpha becomes 0 ).
|
|
61
69
|
* @realm client
|
|
62
70
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:SetNearClip
|
|
63
71
|
*/
|
|
64
72
|
SetNearClip(self: CLuaEmitter, distanceMin: number, distanceMax: number): void;
|
|
73
|
+
|
|
65
74
|
/**
|
|
66
75
|
* Prevents all particles of the emitter from automatically drawing.
|
|
67
76
|
* @realm client
|
|
68
77
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:SetNoDraw
|
|
69
78
|
*/
|
|
70
79
|
SetNoDraw(self: CLuaEmitter, noDraw: boolean): void;
|
|
80
|
+
|
|
71
81
|
/**
|
|
72
82
|
* The function name has not much in common with its actual function, it applies a radius to every particles that affects the building of the bounding box, as it, usually is constructed by the particle that has the lowest x, y and z and the highest x, y and z, this function just adds/subtracts the radius and inflates the bounding box.
|
|
73
83
|
* @realm client
|
|
74
84
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:SetParticleCullRadius
|
|
75
85
|
*/
|
|
76
86
|
SetParticleCullRadius(self: CLuaEmitter, radius: number): void;
|
|
87
|
+
|
|
77
88
|
/**
|
|
78
89
|
* Sets the position of the particle emitter.
|
|
79
90
|
* @realm client
|
|
@@ -81,16 +92,3 @@ interface CLuaEmitter {
|
|
|
81
92
|
*/
|
|
82
93
|
SetPos(self: CLuaEmitter, position: Vector): void;
|
|
83
94
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|