@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.
Files changed (272) hide show
  1. package/package.json +1 -1
  2. package/types/achievementicon.d.tlua +0 -1
  3. package/types/achievements.d.tlua +15 -16
  4. package/types/ai.d.tlua +5 -6
  5. package/types/ai_schedule.d.tlua +0 -1
  6. package/types/ai_task.d.tlua +0 -1
  7. package/types/angle.d.tlua +18 -19
  8. package/types/avatarimage.d.tlua +0 -1
  9. package/types/awesomium.d.tlua +0 -1
  10. package/types/baseclass.d.tlua +1 -3
  11. package/types/bf_read.d.tlua +10 -12
  12. package/types/bit.d.tlua +11 -12
  13. package/types/button.d.tlua +0 -1
  14. package/types/cam.d.tlua +16 -17
  15. package/types/ceffectdata.d.tlua +31 -33
  16. package/types/chat.d.tlua +5 -6
  17. package/types/checkbutton.d.tlua +0 -1
  18. package/types/cleanup.d.tlua +7 -8
  19. package/types/cluaemitter.d.tlua +11 -13
  20. package/types/clualocomotion.d.tlua +39 -41
  21. package/types/cluaparticle.d.tlua +43 -45
  22. package/types/cmovedata.d.tlua +46 -48
  23. package/types/cnavarea.d.tlua +76 -78
  24. package/types/cnavladder.d.tlua +21 -23
  25. package/types/cnewparticleeffect.d.tlua +25 -27
  26. package/types/color.d.tlua +28 -29
  27. package/types/concommand.d.tlua +4 -5
  28. package/types/constraint.d.tlua +28 -29
  29. package/types/construct.d.tlua +1 -2
  30. package/types/contentheader.d.tlua +1 -3
  31. package/types/contenticon.d.tlua +7 -9
  32. package/types/contentsidebar.d.tlua +2 -4
  33. package/types/contentsidebartoolbox.d.tlua +0 -1
  34. package/types/contextbase.d.tlua +2 -4
  35. package/types/controlpanel.d.tlua +11 -14
  36. package/types/controlpresets.d.tlua +11 -13
  37. package/types/convar.d.tlua +15 -17
  38. package/types/cookie.d.tlua +3 -4
  39. package/types/coroutine.d.tlua +7 -8
  40. package/types/crecipientfilter.d.tlua +15 -17
  41. package/types/csent.d.tlua +0 -1
  42. package/types/csoundpatch.d.tlua +13 -15
  43. package/types/ctakedamageinfo.d.tlua +32 -34
  44. package/types/ctrllistbox.d.tlua +0 -1
  45. package/types/ctrlnumpad.d.tlua +5 -7
  46. package/types/cusercmd.d.tlua +26 -28
  47. package/types/custom_entity_fields.d.tlua +0 -1
  48. package/types/cvars.d.tlua +6 -7
  49. package/types/dadjustablemodelpanel.d.tlua +5 -7
  50. package/types/dalphabar.d.tlua +1 -3
  51. package/types/dbinder.d.tlua +2 -4
  52. package/types/dbubblecontainer.d.tlua +0 -2
  53. package/types/dbutton.d.tlua +6 -8
  54. package/types/dcategoryheader.d.tlua +0 -1
  55. package/types/dcategorylist.d.tlua +0 -1
  56. package/types/dcheckbox.d.tlua +3 -5
  57. package/types/dcheckboxlabel.d.tlua +9 -10
  58. package/types/dcollapsiblecategory.d.tlua +21 -23
  59. package/types/dcolorbutton.d.tlua +5 -7
  60. package/types/dcolorcombo.d.tlua +3 -5
  61. package/types/dcolorcube.d.tlua +11 -13
  62. package/types/dcolormixer.d.tlua +25 -27
  63. package/types/dcolorpalette.d.tlua +21 -23
  64. package/types/dcolumnsheet.d.tlua +3 -5
  65. package/types/dcombobox.d.tlua +15 -17
  66. package/types/ddragbase.d.tlua +11 -13
  67. package/types/ddrawer.d.tlua +6 -8
  68. package/types/debug.d.tlua +16 -19
  69. package/types/debugoverlay.d.tlua +11 -12
  70. package/types/dentityproperties.d.tlua +3 -5
  71. package/types/derma.d.tlua +10 -11
  72. package/types/dexpandbutton.d.tlua +1 -3
  73. package/types/dfilebrowser.d.tlua +20 -21
  74. package/types/dform.d.tlua +16 -18
  75. package/types/dframe.d.tlua +24 -25
  76. package/types/dgrid.d.tlua +9 -11
  77. package/types/dhorizontaldivider.d.tlua +18 -20
  78. package/types/dhorizontalscroller.d.tlua +9 -11
  79. package/types/dhscrollbar.d.tlua +9 -11
  80. package/types/dhtml.d.tlua +6 -8
  81. package/types/dhtmlcontrols.d.tlua +5 -6
  82. package/types/diconbrowser.d.tlua +9 -11
  83. package/types/diconlayout.d.tlua +16 -18
  84. package/types/dimage.d.tlua +17 -20
  85. package/types/dimagebutton.d.tlua +9 -10
  86. package/types/dkillicon.d.tlua +0 -1
  87. package/types/dlabel.d.tlua +31 -33
  88. package/types/dlabeleditable.d.tlua +3 -5
  89. package/types/dlabelurl.d.tlua +8 -10
  90. package/types/dlistbox.d.tlua +6 -8
  91. package/types/dlistboxitem.d.tlua +2 -4
  92. package/types/dlistlayout.d.tlua +0 -1
  93. package/types/dlistview.d.tlua +32 -34
  94. package/types/dlistview_column.d.tlua +12 -14
  95. package/types/dlistview_columnplain.d.tlua +0 -1
  96. package/types/dlistview_draggerbar.d.tlua +0 -1
  97. package/types/dlistview_line.d.tlua +11 -13
  98. package/types/dlistviewheaderlabel.d.tlua +0 -1
  99. package/types/dlistviewlabel.d.tlua +0 -1
  100. package/types/dlistviewline.d.tlua +0 -1
  101. package/types/dmenu.d.tlua +23 -28
  102. package/types/dmenubar.d.tlua +2 -7
  103. package/types/dmenuoption.d.tlua +11 -13
  104. package/types/dmenuoptioncvar.d.tlua +4 -6
  105. package/types/dmodelpanel.d.tlua +20 -22
  106. package/types/dmodelselect.d.tlua +0 -2
  107. package/types/dmodelselectmulti.d.tlua +0 -2
  108. package/types/dnotify.d.tlua +8 -10
  109. package/types/dnumberscratch.d.tlua +24 -26
  110. package/types/dnumberwang.d.tlua +14 -16
  111. package/types/dnumpad.d.tlua +0 -1
  112. package/types/dnumslider.d.tlua +17 -18
  113. package/types/dpanel.d.tlua +12 -14
  114. package/types/dpanellist.d.tlua +11 -12
  115. package/types/dpaneloverlay.d.tlua +5 -7
  116. package/types/dpanelselect.d.tlua +0 -1
  117. package/types/dpanpanel.d.tlua +4 -6
  118. package/types/dprogress.d.tlua +1 -3
  119. package/types/dproperties.d.tlua +2 -4
  120. package/types/dproperty_boolean.d.tlua +0 -1
  121. package/types/dproperty_combo.d.tlua +1 -3
  122. package/types/dproperty_entity.d.tlua +0 -1
  123. package/types/dproperty_float.d.tlua +0 -1
  124. package/types/dproperty_generic.d.tlua +3 -5
  125. package/types/dproperty_int.d.tlua +0 -1
  126. package/types/dproperty_vectorcolor.d.tlua +0 -1
  127. package/types/dpropertysheet.d.tlua +15 -17
  128. package/types/dragndrop.d.tlua +10 -11
  129. package/types/draw.d.tlua +10 -12
  130. package/types/drgbpicker.d.tlua +2 -4
  131. package/types/drive.d.tlua +11 -13
  132. package/types/dscrollbargrip.d.tlua +0 -1
  133. package/types/dscrollpanel.d.tlua +10 -11
  134. package/types/dshape.d.tlua +5 -7
  135. package/types/dsizetocontents.d.tlua +3 -5
  136. package/types/dslider.d.tlua +26 -28
  137. package/types/dsprite.d.tlua +7 -9
  138. package/types/dtab.d.tlua +6 -8
  139. package/types/dtextentry.d.tlua +41 -43
  140. package/types/dtilelayout.d.tlua +19 -21
  141. package/types/dtooltip.d.tlua +4 -6
  142. package/types/dtree.d.tlua +14 -16
  143. package/types/dtree_node.d.tlua +66 -68
  144. package/types/dtree_node_button.d.tlua +0 -1
  145. package/types/duplicator.d.tlua +29 -31
  146. package/types/dverticaldivider.d.tlua +21 -23
  147. package/types/dvscrollbar.d.tlua +9 -11
  148. package/types/editablepanel.d.tlua +0 -1
  149. package/types/effect.d.tlua +2 -4
  150. package/types/effects.d.tlua +6 -7
  151. package/types/engine.d.tlua +21 -22
  152. package/types/entity.d.tlua +643 -674
  153. package/types/ents.d.tlua +19 -25
  154. package/types/enums.d.tlua +0 -1
  155. package/types/file.d.tlua +39 -40
  156. package/types/file_class.d.tlua +0 -1
  157. package/types/fingerposer.d.tlua +0 -1
  158. package/types/fingervar.d.tlua +0 -1
  159. package/types/frame.d.tlua +0 -1
  160. package/types/frame_blend.d.tlua +7 -8
  161. package/types/game.d.tlua +39 -40
  162. package/types/gameevent.d.tlua +0 -1
  163. package/types/gamemode.d.tlua +2 -4
  164. package/types/global.d.tlua +0 -18
  165. package/types/gm.d.tlua +266 -268
  166. package/types/gmod.d.tlua +0 -1
  167. package/types/gmsave.d.tlua +4 -5
  168. package/types/gui.d.tlua +21 -22
  169. package/types/gwen.d.tlua +3 -4
  170. package/types/halo.d.tlua +2 -3
  171. package/types/hammer.d.tlua +0 -1
  172. package/types/hook.d.tlua +4 -5
  173. package/types/html.d.tlua +0 -1
  174. package/types/http.d.tlua +1 -2
  175. package/types/iconeditor.d.tlua +9 -11
  176. package/types/igmodaudiochannel.d.tlua +40 -42
  177. package/types/imagecheckbox.d.tlua +2 -4
  178. package/types/imaterial.d.tlua +25 -27
  179. package/types/imesh.d.tlua +4 -6
  180. package/types/input.d.tlua +22 -25
  181. package/types/invalidateinternalentitycache.d.tlua +0 -1
  182. package/types/irestore.d.tlua +8 -10
  183. package/types/isave.d.tlua +8 -10
  184. package/types/itexture.d.tlua +9 -11
  185. package/types/ivideowriter.d.tlua +4 -6
  186. package/types/jit.d.tlua +16 -17
  187. package/types/killicon.d.tlua +7 -8
  188. package/types/label.d.tlua +0 -1
  189. package/types/language.d.tlua +1 -2
  190. package/types/list.d.tlua +8 -9
  191. package/types/makeballoon.d.tlua +0 -1
  192. package/types/markup.d.tlua +2 -3
  193. package/types/markupobject.d.tlua +4 -6
  194. package/types/material.d.tlua +0 -1
  195. package/types/math.d.tlua +83 -84
  196. package/types/matproxy.d.tlua +3 -4
  197. package/types/matselect.d.tlua +9 -11
  198. package/types/menu.d.tlua +0 -1
  199. package/types/menubar.d.tlua +2 -3
  200. package/types/mesh.d.tlua +19 -20
  201. package/types/modelimage.d.tlua +0 -1
  202. package/types/motionsensor.d.tlua +10 -11
  203. package/types/navmesh.d.tlua +26 -27
  204. package/types/net.d.tlua +51 -53
  205. package/types/nextbot.d.tlua +34 -37
  206. package/types/notification.d.tlua +2 -3
  207. package/types/npc.d.tlua +180 -182
  208. package/types/numpad.d.tlua +7 -8
  209. package/types/os.d.tlua +3 -5
  210. package/types/package.d.tlua +0 -1
  211. package/types/panel.d.tlua +329 -331
  212. package/types/panellist.d.tlua +0 -1
  213. package/types/pathfollower.d.tlua +30 -32
  214. package/types/permissions.d.tlua +6 -7
  215. package/types/physcollide.d.tlua +2 -4
  216. package/types/physenv.d.tlua +11 -12
  217. package/types/physobj.d.tlua +77 -79
  218. package/types/pixelvis_handle_t.d.tlua +0 -1
  219. package/types/player.d.tlua +288 -293
  220. package/types/player_manager.d.tlua +13 -14
  221. package/types/preseteditor.d.tlua +0 -1
  222. package/types/presets.d.tlua +6 -7
  223. package/types/projectedtexture.d.tlua +47 -49
  224. package/types/properties.d.tlua +5 -6
  225. package/types/propselect.d.tlua +3 -5
  226. package/types/radiobutton.d.tlua +0 -1
  227. package/types/render.d.tlua +142 -143
  228. package/types/resource.d.tlua +2 -3
  229. package/types/richtext.d.tlua +0 -1
  230. package/types/sandbox.d.tlua +52 -54
  231. package/types/saverestore.d.tlua +12 -13
  232. package/types/schedule.d.tlua +5 -7
  233. package/types/scripted_ents.d.tlua +9 -12
  234. package/types/search.d.tlua +1 -2
  235. package/types/serverlist.d.tlua +7 -8
  236. package/types/slidebar.d.tlua +0 -1
  237. package/types/slider.d.tlua +0 -1
  238. package/types/sound.d.tlua +10 -11
  239. package/types/spawnicon.d.tlua +6 -8
  240. package/types/spawnmenu.d.tlua +23 -25
  241. package/types/spawnmenucontentpanel.d.tlua +3 -5
  242. package/types/sql.d.tlua +9 -10
  243. package/types/stack.d.tlua +4 -6
  244. package/types/steamworks.d.tlua +18 -19
  245. package/types/string.d.tlua +46 -50
  246. package/types/structures.d.tlua +0 -7
  247. package/types/surface.d.tlua +34 -35
  248. package/types/surfaceinfo.d.tlua +4 -6
  249. package/types/system.d.tlua +10 -11
  250. package/types/table.d.tlua +45 -48
  251. package/types/task.d.tlua +8 -10
  252. package/types/team.d.tlua +19 -20
  253. package/types/textentry.d.tlua +0 -1
  254. package/types/tgaimage.d.tlua +0 -1
  255. package/types/timer.d.tlua +14 -15
  256. package/types/tool.d.tlua +42 -46
  257. package/types/ugcpublishwindow.d.tlua +7 -9
  258. package/types/umsg.d.tlua +12 -13
  259. package/types/undo.d.tlua +10 -11
  260. package/types/urllabel.d.tlua +0 -1
  261. package/types/usermessage.d.tlua +2 -3
  262. package/types/utf8.d.tlua +7 -8
  263. package/types/util.d.tlua +90 -95
  264. package/types/vector.d.tlua +36 -37
  265. package/types/vehicle.d.tlua +48 -51
  266. package/types/vgui.d.tlua +14 -19
  267. package/types/video.d.tlua +0 -1
  268. package/types/vmatrix.d.tlua +35 -36
  269. package/types/weapon.d.tlua +81 -84
  270. package/types/weapons.d.tlua +5 -7
  271. package/types/widgets.d.tlua +1 -2
  272. package/types/workshopfilebase.d.tlua +4 -6
@@ -21,6 +21,7 @@ interface MatproxyLib {
21
21
  * @source https://wiki.facepunch.com/gmod/matproxy.Add
22
22
  */
23
23
  Add(matProxyData: MatProxyData): void;
24
+
24
25
  /**
25
26
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
26
27
  *
@@ -30,6 +31,7 @@ interface MatproxyLib {
30
31
  * @source https://wiki.facepunch.com/gmod/matproxy.Call
31
32
  */
32
33
  Call(uname: string, mat: IMaterial, ent: Entity): void;
34
+
33
35
  /**
34
36
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
35
37
  *
@@ -39,6 +41,7 @@ interface MatproxyLib {
39
41
  * @source https://wiki.facepunch.com/gmod/matproxy.Init
40
42
  */
41
43
  Init(name: string, uname: string, mat: IMaterial, values: table): void;
44
+
42
45
  /**
43
46
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
44
47
  *
@@ -48,7 +51,3 @@ interface MatproxyLib {
48
51
  */
49
52
  ShouldOverrideProxy(name: string): boolean;
50
53
  }
51
-
52
-
53
-
54
-
@@ -16,30 +16,35 @@ interface MatSelect extends ContextBase {
16
16
  * @source https://wiki.facepunch.com/gmod/MatSelect:AddMaterial
17
17
  */
18
18
  AddMaterial(self: MatSelect, label: string, path: string): void;
19
+
19
20
  /**
20
21
  * Adds a new material to the selection list, with some extra options.
21
22
  * @realm client
22
23
  * @source https://wiki.facepunch.com/gmod/MatSelect:AddMaterialEx
23
24
  */
24
25
  AddMaterialEx(self: MatSelect, label: string, path: string, value: any, convars: table): void;
26
+
25
27
  /**
26
28
  * Find a material and selects it, if it exists in this panel.
27
29
  * @realm client
28
30
  * @source https://wiki.facepunch.com/gmod/MatSelect:FindAndSelectMaterial
29
31
  */
30
32
  FindAndSelectMaterial(self: MatSelect, mat: string): void;
33
+
31
34
  /**
32
35
  * Find a [DImageButton](https://wiki.facepunch.com/gmod/DImageButton) panel based on the input material path.
33
36
  * @realm client
34
37
  * @source https://wiki.facepunch.com/gmod/MatSelect:FindMaterialByValue
35
38
  */
36
39
  FindMaterialByValue(self: MatSelect, mat: string): DImageButton;
40
+
37
41
  /**
38
42
  * Returns whether the panel would set its own height to fit all materials within its height.
39
43
  * @realm client
40
44
  * @source https://wiki.facepunch.com/gmod/MatSelect:GetAutoHeight
41
45
  */
42
46
  GetAutoHeight(self: MatSelect): boolean;
47
+
43
48
  /**
44
49
  * **INTERNAL**: Use [MatSelect:FindAndSelectMaterial](https://wiki.facepunch.com/gmod/MatSelect:FindAndSelectMaterial) instead.
45
50
  *
@@ -49,24 +54,28 @@ interface MatSelect extends ContextBase {
49
54
  * @source https://wiki.facepunch.com/gmod/MatSelect:SelectMaterial
50
55
  */
51
56
  SelectMaterial(self: MatSelect, mat: DImageButton): void;
57
+
52
58
  /**
53
59
  * Sets whether the panel should set its own height to fit all materials within its height.
54
60
  * @realm client
55
61
  * @source https://wiki.facepunch.com/gmod/MatSelect:SetAutoHeight
56
62
  */
57
63
  SetAutoHeight(self: MatSelect, autoSize: boolean): void;
64
+
58
65
  /**
59
66
  * Sets the height of a single material in pixels.
60
67
  * @realm client
61
68
  * @source https://wiki.facepunch.com/gmod/MatSelect:SetItemHeight
62
69
  */
63
70
  SetItemHeight(self: MatSelect, height: number): void;
71
+
64
72
  /**
65
73
  * Sets the width of a single material in pixels.
66
74
  * @realm client
67
75
  * @source https://wiki.facepunch.com/gmod/MatSelect:SetItemWidth
68
76
  */
69
77
  SetItemWidth(self: MatSelect, width: number): void;
78
+
70
79
  /**
71
80
  * Sets the target height of the panel, in number of rows.
72
81
  * @realm client
@@ -74,14 +83,3 @@ interface MatSelect extends ContextBase {
74
83
  */
75
84
  SetNumRows(self: MatSelect, rows: number): void;
76
85
  }
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
package/types/menu.d.tlua CHANGED
@@ -17,4 +17,3 @@ interface MenuLib {
17
17
  */
18
18
  RecordFrame(): void;
19
19
  }
20
-
@@ -17,12 +17,14 @@ interface MenubarLib {
17
17
  * @source https://wiki.facepunch.com/gmod/menubar.Init
18
18
  */
19
19
  Init(): void;
20
+
20
21
  /**
21
22
  * Checks if the supplied panel is parent to the menubar
22
23
  * @realm client
23
24
  * @source https://wiki.facepunch.com/gmod/menubar.IsParent
24
25
  */
25
26
  IsParent(pnl: Panel): boolean;
27
+
26
28
  /**
27
29
  * Parents the menubar to the panel and displays the menubar.
28
30
  * @realm client
@@ -30,6 +32,3 @@ interface MenubarLib {
30
32
  */
31
33
  ParentTo(pnl: Panel): void;
32
34
  }
33
-
34
-
35
-
package/types/mesh.d.tlua CHANGED
@@ -13,6 +13,7 @@ interface MeshLib {
13
13
  * @source https://wiki.facepunch.com/gmod/mesh.AdvanceVertex
14
14
  */
15
15
  AdvanceVertex(): void;
16
+
16
17
  /**
17
18
  * Begins creating or modifying a 3D mesh constructed from a given quantity and type of primitive 3D shapes such as triangles and quads.
18
19
  *
@@ -22,13 +23,16 @@ interface MeshLib {
22
23
  * @source https://wiki.facepunch.com/gmod/mesh.Begin
23
24
  */
24
25
  Begin(mesh: IMesh, primitiveType: number, primitiveCount: number): void;
26
+
25
27
  Begin(primitiveType: number, primitiveCount: number): void;
28
+
26
29
  /**
27
30
  * Sets the bone matrix ID and bone weight to be used for the next vertex. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
28
31
  * @realm client
29
32
  * @source https://wiki.facepunch.com/gmod/mesh.BoneData
30
33
  */
31
34
  BoneData(index: number, matrixId: number, weight: number): void;
35
+
32
36
  /**
33
37
  * Sets the color to be used for the next vertex. This is `COLOR0` semantic of
34
38
  * Vertex Shader. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
@@ -36,32 +40,39 @@ interface MeshLib {
36
40
  * @source https://wiki.facepunch.com/gmod/mesh.Color
37
41
  */
38
42
  Color(r: number, g: number, b: number, a: number): void;
43
+
39
44
  /**
40
45
  * Ends the mesh (Started with [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin)) and renders it.
41
46
  * @realm client
42
47
  * @source https://wiki.facepunch.com/gmod/mesh.End
43
48
  */
44
49
  End(): void;
50
+
45
51
  /**
46
52
  * Sets the normal to be used for the next vertex. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
47
53
  * @realm client
48
54
  * @source https://wiki.facepunch.com/gmod/mesh.Normal
49
55
  */
50
56
  Normal(normal: Vector): void;
57
+
51
58
  Normal(x: number, y: number, z: number): void;
59
+
52
60
  /**
53
61
  * Sets the position to be used for the next vertex. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
54
62
  * @realm client
55
63
  * @source https://wiki.facepunch.com/gmod/mesh.Position
56
64
  */
57
65
  Position(position: Vector): void;
66
+
58
67
  Position(x: number, y: number, z: number): void;
68
+
59
69
  /**
60
70
  * Adds a quad (4 vertices) to the currently built mesh. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
61
71
  * @realm client
62
72
  * @source https://wiki.facepunch.com/gmod/mesh.Quad
63
73
  */
64
74
  Quad(vertex1: Vector, vertex2: Vector, vertex3: Vector, vertex4: Vector, color: Color): void;
75
+
65
76
  /**
66
77
  * Adds a quad (4 vertices) to the currently built mesh, by using position, normal and sizes. See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin).
67
78
  *
@@ -70,6 +81,7 @@ interface MeshLib {
70
81
  * @source https://wiki.facepunch.com/gmod/mesh.QuadEasy
71
82
  */
72
83
  QuadEasy(position: Vector, normal: Vector, sizeX: number, sizeY: number, color: Color): void;
84
+
73
85
  /**
74
86
  * Sets the specular map values. This is `COLOR1` semantic of Vertex Shader. Allows to blend textures of [Lightmapped_4WayBlend](https://developer.valvesoftware.com/wiki/Lightmapped_4WayBlend). Requires the `VERTEX_SPECULAR` flag to be set in the C++ code of a shader.
75
87
  *
@@ -77,6 +89,7 @@ interface MeshLib {
77
89
  * @source https://wiki.facepunch.com/gmod/mesh.Specular
78
90
  */
79
91
  Specular(r: number, g: number, b: number, a: number): void;
92
+
80
93
  /**
81
94
  * Sets the `S` tangent to be used, also known as "binormal".
82
95
  *
@@ -88,7 +101,9 @@ interface MeshLib {
88
101
  * @source https://wiki.facepunch.com/gmod/mesh.TangentS
89
102
  */
90
103
  TangentS(tangentS: Vector): void;
104
+
91
105
  TangentS(x: number, y: number, z: number): void;
106
+
92
107
  /**
93
108
  * Sets the `T` tangent to be used.
94
109
  *
@@ -100,7 +115,9 @@ interface MeshLib {
100
115
  * @source https://wiki.facepunch.com/gmod/mesh.TangentT
101
116
  */
102
117
  TangentT(tangentT: Vector): void;
118
+
103
119
  TangentT(x: number, y: number, z: number): void;
120
+
104
121
  /**
105
122
  * Sets the texture coordinates for the next vertex for the current mesh. (See [mesh.Begin](https://wiki.facepunch.com/gmod/mesh.Begin))
106
123
  *
@@ -108,6 +125,7 @@ interface MeshLib {
108
125
  * @source https://wiki.facepunch.com/gmod/mesh.TexCoord
109
126
  */
110
127
  TexCoord(set: number, s: number, t: number, u?: number, v?: number): void;
128
+
111
129
  /**
112
130
  * A set of four numbers that can be used for arbitrary purposes by [Material](https://wiki.facepunch.com/gmod/Material) shaders.
113
131
  * This is most commonly used to provide tangent information about each vertex to the Material's shader.
@@ -116,6 +134,7 @@ interface MeshLib {
116
134
  * @source https://wiki.facepunch.com/gmod/mesh.UserData
117
135
  */
118
136
  UserData(tangentX: number, tangentY: number, tangentZ: number, tangentHandedness: number): void;
137
+
119
138
  /**
120
139
  * Returns the amount of vertices that have been pushed via [mesh.AdvanceVertex](https://wiki.facepunch.com/gmod/mesh.AdvanceVertex).
121
140
  * @realm client
@@ -123,23 +142,3 @@ interface MeshLib {
123
142
  */
124
143
  VertexCount(): number;
125
144
  }
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
@@ -9,4 +9,3 @@
9
9
  * @source https://wiki.facepunch.com/gmod/ModelImage
10
10
  */
11
11
  interface ModelImage {}
12
-
@@ -17,35 +17,41 @@ interface MotionsensorLib {
17
17
  * @source https://wiki.facepunch.com/gmod/motionsensor.BuildSkeleton
18
18
  */
19
19
  BuildSkeleton(translator: table, player: Player, rotation: Angle): (Vector, Angle, table);
20
+
20
21
  /**
21
22
  * @realm shared
22
23
  * @source https://wiki.facepunch.com/gmod/motionsensor.ChooseBuilderFromEntity
23
24
  */
24
25
  ChooseBuilderFromEntity(ent: Entity): string;
26
+
25
27
  /**
26
28
  * Returns the depth map material.
27
29
  * @realm client and menu
28
30
  * @source https://wiki.facepunch.com/gmod/motionsensor.GetColourMaterial
29
31
  */
30
32
  GetColourMaterial(): IMaterial;
33
+
31
34
  /**
32
35
  * Returns players skeletal data if they are using Kinect. See [Using The Kinect](https://wiki.facepunch.com/gmod/Using_The_Kinect) and [Kinect developing](https://wiki.facepunch.com/gmod/Kinect_developing).
33
36
  * @realm client
34
37
  * @source https://wiki.facepunch.com/gmod/motionsensor.GetSkeleton
35
38
  */
36
39
  GetSkeleton(): table;
40
+
37
41
  /**
38
42
  * Return whether a kinect is connected - and active (ie - Start has been called).
39
43
  * @realm client
40
44
  * @source https://wiki.facepunch.com/gmod/motionsensor.IsActive
41
45
  */
42
46
  IsActive(): boolean;
47
+
43
48
  /**
44
49
  * Returns true if we have detected that there's a kinect connected to the PC
45
50
  * @realm client and menu
46
51
  * @source https://wiki.facepunch.com/gmod/motionsensor.IsAvailable
47
52
  */
48
53
  IsAvailable(): boolean;
54
+
49
55
  /**
50
56
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
51
57
  * Used internally by [motionsensor.ProcessAnglesTable](https://wiki.facepunch.com/gmod/motionsensor.ProcessAnglesTable). See [Using The Kinect](https://wiki.facepunch.com/gmod/Using_The_Kinect) and [Kinect developing](https://wiki.facepunch.com/gmod/Kinect_developing).
@@ -53,6 +59,7 @@ interface MotionsensorLib {
53
59
  * @source https://wiki.facepunch.com/gmod/motionsensor.ProcessAngle
54
60
  */
55
61
  ProcessAngle(translator: table, sensor: table, pos: Vector, ang: Angle, special_vectors: table, boneid: number, v: table): boolean;
62
+
56
63
  /**
57
64
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
58
65
  * Used internally by [motionsensor.BuildSkeleton](https://wiki.facepunch.com/gmod/motionsensor.BuildSkeleton). See [Using The Kinect](https://wiki.facepunch.com/gmod/Using_The_Kinect) and [Kinect developing](https://wiki.facepunch.com/gmod/Kinect_developing).
@@ -62,6 +69,7 @@ interface MotionsensorLib {
62
69
  * @source https://wiki.facepunch.com/gmod/motionsensor.ProcessAnglesTable
63
70
  */
64
71
  ProcessAnglesTable(translator: table, sensor: table, pos: Vector, rotation: Angle): table;
72
+
65
73
  /**
66
74
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
67
75
  * Used internally by [motionsensor.BuildSkeleton](https://wiki.facepunch.com/gmod/motionsensor.BuildSkeleton). See [Using The Kinect](https://wiki.facepunch.com/gmod/Using_The_Kinect) and [Kinect developing](https://wiki.facepunch.com/gmod/Kinect_developing).
@@ -69,12 +77,14 @@ interface MotionsensorLib {
69
77
  * @source https://wiki.facepunch.com/gmod/motionsensor.ProcessPositionTable
70
78
  */
71
79
  ProcessPositionTable(translator: table, sensor: table): table;
80
+
72
81
  /**
73
82
  * This starts access to the kinect sensor. Note that this usually freezes the game for a couple of seconds.
74
83
  * @realm client and menu
75
84
  * @source https://wiki.facepunch.com/gmod/motionsensor.Start
76
85
  */
77
86
  Start(): boolean;
87
+
78
88
  /**
79
89
  * Stops the motion capture.
80
90
  * @realm client
@@ -82,14 +92,3 @@ interface MotionsensorLib {
82
92
  */
83
93
  Stop(): void;
84
94
  }
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
@@ -15,6 +15,7 @@ interface NavmeshLib {
15
15
  * @source https://wiki.facepunch.com/gmod/navmesh.AddWalkableSeed
16
16
  */
17
17
  AddWalkableSeed(pos: Vector, dir: Vector): void;
18
+
18
19
  /**
19
20
  * Starts the generation of a new navmesh.
20
21
  *
@@ -25,54 +26,63 @@ interface NavmeshLib {
25
26
  * @source https://wiki.facepunch.com/gmod/navmesh.BeginGeneration
26
27
  */
27
28
  BeginGeneration(): void;
29
+
28
30
  /**
29
31
  * Clears all the walkable positions, used before calling [navmesh.BeginGeneration](https://wiki.facepunch.com/gmod/navmesh.BeginGeneration).
30
32
  * @realm server
31
33
  * @source https://wiki.facepunch.com/gmod/navmesh.ClearWalkableSeeds
32
34
  */
33
35
  ClearWalkableSeeds(): void;
36
+
34
37
  /**
35
38
  * Creates a new [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
36
39
  * @realm server
37
40
  * @source https://wiki.facepunch.com/gmod/navmesh.CreateNavArea
38
41
  */
39
42
  CreateNavArea(corner: Vector, opposite_corner: Vector): CNavArea;
43
+
40
44
  /**
41
45
  * Creates a new [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder).
42
46
  * @realm server
43
47
  * @source https://wiki.facepunch.com/gmod/navmesh.CreateNavLadder
44
48
  */
45
49
  CreateNavLadder(top: Vector, bottom: Vector, width: number, dir: Vector, maxHeightAboveTopArea?: number): CNavLadder;
50
+
46
51
  /**
47
52
  * Returns a list of areas within distance, used to find hiding spots by [NextBot](https://wiki.facepunch.com/gmod/NextBot)s for example.
48
53
  * @realm server
49
54
  * @source https://wiki.facepunch.com/gmod/navmesh.Find
50
55
  */
51
56
  Find(pos: Vector, radius: number, stepHeight: number, dropHeight: number): table;
57
+
52
58
  /**
53
59
  * Returns a list of [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s overlapping the given cube extents.
54
60
  * @realm server
55
61
  * @source https://wiki.facepunch.com/gmod/navmesh.FindInBox
56
62
  */
57
63
  FindInBox(pos1: Vector, pos2: Vector): table;
64
+
58
65
  /**
59
66
  * Returns an integer indexed table of all [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s on the current map. If the map doesn't have a navmesh generated then this will return an empty table.
60
67
  * @realm server
61
68
  * @source https://wiki.facepunch.com/gmod/navmesh.GetAllNavAreas
62
69
  */
63
70
  GetAllNavAreas(): CNavArea[];
71
+
64
72
  /**
65
73
  * Returns a table of all blocked [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s on the current map. See [CNavArea:MarkAsBlocked](https://wiki.facepunch.com/gmod/CNavArea:MarkAsBlocked).
66
74
  * @realm server
67
75
  * @source https://wiki.facepunch.com/gmod/navmesh.GetBlockedAreas
68
76
  */
69
77
  GetBlockedAreas(): table;
78
+
70
79
  /**
71
80
  * Returns the position of the edit cursor when nav_edit is set to 1.
72
81
  * @realm server
73
82
  * @source https://wiki.facepunch.com/gmod/navmesh.GetEditCursorPosition
74
83
  */
75
84
  GetEditCursorPosition(): Vector;
85
+
76
86
  /**
77
87
  * Finds the closest standable ground at, above, or below the provided position.
78
88
  *
@@ -83,18 +93,21 @@ interface NavmeshLib {
83
93
  * @source https://wiki.facepunch.com/gmod/navmesh.GetGroundHeight
84
94
  */
85
95
  GetGroundHeight(pos: Vector): (number, Vector);
96
+
86
97
  /**
87
98
  * Returns the currently marked [CNavArea](https://wiki.facepunch.com/gmod/CNavArea), for use with editing console commands.
88
99
  * @realm server
89
100
  * @source https://wiki.facepunch.com/gmod/navmesh.GetMarkedArea
90
101
  */
91
102
  GetMarkedArea(): CNavArea;
103
+
92
104
  /**
93
105
  * Returns the currently marked [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder), for use with editing console commands.
94
106
  * @realm server
95
107
  * @source https://wiki.facepunch.com/gmod/navmesh.GetMarkedLadder
96
108
  */
97
109
  GetMarkedLadder(): CNavLadder;
110
+
98
111
  /**
99
112
  * Returns the Nav Area contained in this position that also satisfies the elevation limit.
100
113
  *
@@ -104,6 +117,7 @@ interface NavmeshLib {
104
117
  * @source https://wiki.facepunch.com/gmod/navmesh.GetNavArea
105
118
  */
106
119
  GetNavArea(pos: Vector, beneathLimit: number): CNavArea;
120
+
107
121
  /**
108
122
  * Returns a [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) by the given ID.
109
123
  *
@@ -114,18 +128,21 @@ interface NavmeshLib {
114
128
  * @source https://wiki.facepunch.com/gmod/navmesh.GetNavAreaByID
115
129
  */
116
130
  GetNavAreaByID(id: number): CNavArea;
131
+
117
132
  /**
118
133
  * Returns the total count of nav areas on the map. If you want to get all nav areas, use [navmesh.GetAllNavAreas](https://wiki.facepunch.com/gmod/navmesh.GetAllNavAreas) instead as nav areas IDs are not always sequential.
119
134
  * @realm server
120
135
  * @source https://wiki.facepunch.com/gmod/navmesh.GetNavAreaCount
121
136
  */
122
137
  GetNavAreaCount(): number;
138
+
123
139
  /**
124
140
  * Returns a [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder) by the given ID.
125
141
  * @realm server
126
142
  * @source https://wiki.facepunch.com/gmod/navmesh.GetNavLadderByID
127
143
  */
128
144
  GetNavLadderByID(id: number): CNavLadder;
145
+
129
146
  /**
130
147
  * Returns the closest [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) to given position at the same height, or beneath it.
131
148
  *
@@ -135,24 +152,28 @@ interface NavmeshLib {
135
152
  * @source https://wiki.facepunch.com/gmod/navmesh.GetNearestNavArea
136
153
  */
137
154
  GetNearestNavArea(pos: Vector, anyZ?: boolean, maxDist?: number, checkLOS?: boolean, checkGround?: boolean, team?: number): CNavArea;
155
+
138
156
  /**
139
157
  * Returns the classname of the player spawn entity.
140
158
  * @realm server
141
159
  * @source https://wiki.facepunch.com/gmod/navmesh.GetPlayerSpawnName
142
160
  */
143
161
  GetPlayerSpawnName(): string;
162
+
144
163
  /**
145
164
  * Whether we're currently generating a new navmesh with [navmesh.BeginGeneration](https://wiki.facepunch.com/gmod/navmesh.BeginGeneration).
146
165
  * @realm server
147
166
  * @source https://wiki.facepunch.com/gmod/navmesh.IsGenerating
148
167
  */
149
168
  IsGenerating(): boolean;
169
+
150
170
  /**
151
171
  * Returns true if a navmesh has been loaded when loading the map.
152
172
  * @realm server
153
173
  * @source https://wiki.facepunch.com/gmod/navmesh.IsLoaded
154
174
  */
155
175
  IsLoaded(): boolean;
176
+
156
177
  /**
157
178
  * Loads a new navmesh from the .nav file for current map discarding any changes made to the navmesh previously.
158
179
  * **WARNING**: Calling this function too soon, causes the Server to crash!
@@ -162,30 +183,35 @@ interface NavmeshLib {
162
183
  * @source https://wiki.facepunch.com/gmod/navmesh.Load
163
184
  */
164
185
  Load(): void;
186
+
165
187
  /**
166
188
  * Deletes every [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) and [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder) on the map **without saving the changes**.
167
189
  * @realm server
168
190
  * @source https://wiki.facepunch.com/gmod/navmesh.Reset
169
191
  */
170
192
  Reset(): void;
193
+
171
194
  /**
172
195
  * Saves any changes made to navmesh to the .nav file.
173
196
  * @realm server
174
197
  * @source https://wiki.facepunch.com/gmod/navmesh.Save
175
198
  */
176
199
  Save(): void;
200
+
177
201
  /**
178
202
  * Sets the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) as marked, so it can be used with editing console commands.
179
203
  * @realm server
180
204
  * @source https://wiki.facepunch.com/gmod/navmesh.SetMarkedArea
181
205
  */
182
206
  SetMarkedArea(area: CNavArea): void;
207
+
183
208
  /**
184
209
  * Sets the [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder) as marked, so it can be used with editing console commands.
185
210
  * @realm server
186
211
  * @source https://wiki.facepunch.com/gmod/navmesh.SetMarkedLadder
187
212
  */
188
213
  SetMarkedLadder(area: CNavLadder): void;
214
+
189
215
  /**
190
216
  * Sets the classname of the default spawn point entity, used before generating a new navmesh with [navmesh.BeginGeneration](https://wiki.facepunch.com/gmod/navmesh.BeginGeneration).
191
217
  * @realm server
@@ -193,30 +219,3 @@ interface NavmeshLib {
193
219
  */
194
220
  SetPlayerSpawnName(spawnPointClass: string): void;
195
221
  }
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
-
222
-