@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
@@ -14,126 +14,147 @@ interface CNavLadder {
14
14
  * @source https://wiki.facepunch.com/gmod/CNavLadder:ConnectTo
15
15
  */
16
16
  ConnectTo(self: CNavLadder, area: CNavArea): void;
17
+
17
18
  /**
18
19
  * Disconnects this ladder from given area in a single direction.
19
20
  * @realm server
20
21
  * @source https://wiki.facepunch.com/gmod/CNavLadder:Disconnect
21
22
  */
22
23
  Disconnect(self: CNavLadder, area: CNavArea): void;
24
+
23
25
  /**
24
26
  * Returns the bottom most position of the ladder.
25
27
  * @realm server
26
28
  * @source https://wiki.facepunch.com/gmod/CNavLadder:GetBottom
27
29
  */
28
30
  GetBottom(self: CNavLadder): Vector;
31
+
29
32
  /**
30
33
  * Returns the bottom area of the [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder).
31
34
  * @realm server
32
35
  * @source https://wiki.facepunch.com/gmod/CNavLadder:GetBottomArea
33
36
  */
34
37
  GetBottomArea(self: CNavLadder): CNavArea;
38
+
35
39
  /**
36
40
  * Returns this [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder)s unique ID.
37
41
  * @realm server
38
42
  * @source https://wiki.facepunch.com/gmod/CNavLadder:GetID
39
43
  */
40
44
  GetID(self: CNavLadder): number;
45
+
41
46
  /**
42
47
  * Returns the length of the ladder.
43
48
  * @realm server
44
49
  * @source https://wiki.facepunch.com/gmod/CNavLadder:GetLength
45
50
  */
46
51
  GetLength(self: CNavLadder): number;
52
+
47
53
  /**
48
54
  * Returns the direction of this [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder). ( The direction in which players back will be facing if they are looking directly at the ladder )
49
55
  * @realm server
50
56
  * @source https://wiki.facepunch.com/gmod/CNavLadder:GetNormal
51
57
  */
52
58
  GetNormal(self: CNavLadder): Vector;
59
+
53
60
  /**
54
61
  * Returns the world position based on given height relative to the ladder.
55
62
  * @realm server
56
63
  * @source https://wiki.facepunch.com/gmod/CNavLadder:GetPosAtHeight
57
64
  */
58
65
  GetPosAtHeight(self: CNavLadder, height: number): Vector;
66
+
59
67
  /**
60
68
  * Returns the topmost position of the ladder.
61
69
  * @realm server
62
70
  * @source https://wiki.facepunch.com/gmod/CNavLadder:GetTop
63
71
  */
64
72
  GetTop(self: CNavLadder): Vector;
73
+
65
74
  /**
66
75
  * Returns the top behind [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) of the [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder).
67
76
  * @realm server
68
77
  * @source https://wiki.facepunch.com/gmod/CNavLadder:GetTopBehindArea
69
78
  */
70
79
  GetTopBehindArea(self: CNavLadder): CNavArea;
80
+
71
81
  /**
72
82
  * Returns the top forward [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) of the [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder).
73
83
  * @realm server
74
84
  * @source https://wiki.facepunch.com/gmod/CNavLadder:GetTopForwardArea
75
85
  */
76
86
  GetTopForwardArea(self: CNavLadder): CNavArea;
87
+
77
88
  /**
78
89
  * Returns the top left [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) of the [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder).
79
90
  * @realm server
80
91
  * @source https://wiki.facepunch.com/gmod/CNavLadder:GetTopLeftArea
81
92
  */
82
93
  GetTopLeftArea(self: CNavLadder): CNavArea;
94
+
83
95
  /**
84
96
  * Returns the top right [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) of the [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder).
85
97
  * @realm server
86
98
  * @source https://wiki.facepunch.com/gmod/CNavLadder:GetTopRightArea
87
99
  */
88
100
  GetTopRightArea(self: CNavLadder): CNavArea;
101
+
89
102
  /**
90
103
  * Returns the width of the ladder in Hammer Units.
91
104
  * @realm server
92
105
  * @source https://wiki.facepunch.com/gmod/CNavLadder:GetWidth
93
106
  */
94
107
  GetWidth(self: CNavLadder): number;
108
+
95
109
  /**
96
110
  * Returns whether this [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder) has an outgoing ( one or two way ) connection **to** given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) in given direction.
97
111
  * @realm server
98
112
  * @source https://wiki.facepunch.com/gmod/CNavLadder:IsConnectedAtSide
99
113
  */
100
114
  IsConnectedAtSide(self: CNavLadder, navArea: CNavArea, navDirType: number): boolean;
115
+
101
116
  /**
102
117
  * Returns whether this [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder) is valid or not.
103
118
  * @realm server
104
119
  * @source https://wiki.facepunch.com/gmod/CNavLadder:IsValid
105
120
  */
106
121
  IsValid(self: CNavLadder): boolean;
122
+
107
123
  /**
108
124
  * Removes the given nav ladder.
109
125
  * @realm server
110
126
  * @source https://wiki.facepunch.com/gmod/CNavLadder:Remove
111
127
  */
112
128
  Remove(self: CNavLadder): void;
129
+
113
130
  /**
114
131
  * Sets the bottom area of the [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder).
115
132
  * @realm server
116
133
  * @source https://wiki.facepunch.com/gmod/CNavLadder:SetBottomArea
117
134
  */
118
135
  SetBottomArea(self: CNavLadder, area: CNavArea): void;
136
+
119
137
  /**
120
138
  * Sets the top behind area of the [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder).
121
139
  * @realm server
122
140
  * @source https://wiki.facepunch.com/gmod/CNavLadder:SetTopBehindArea
123
141
  */
124
142
  SetTopBehindArea(self: CNavLadder, area: CNavArea): void;
143
+
125
144
  /**
126
145
  * Sets the top forward area of the [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder).
127
146
  * @realm server
128
147
  * @source https://wiki.facepunch.com/gmod/CNavLadder:SetTopForwardArea
129
148
  */
130
149
  SetTopForwardArea(self: CNavLadder, area: CNavArea): void;
150
+
131
151
  /**
132
152
  * Sets the top left area of the [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder).
133
153
  * @realm server
134
154
  * @source https://wiki.facepunch.com/gmod/CNavLadder:SetTopLeftArea
135
155
  */
136
156
  SetTopLeftArea(self: CNavLadder, area: CNavArea): void;
157
+
137
158
  /**
138
159
  * Sets the top right area of the [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder).
139
160
  * @realm server
@@ -141,26 +162,3 @@ interface CNavLadder {
141
162
  */
142
163
  SetTopRightArea(self: CNavLadder, area: CNavArea): void;
143
164
  }
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
@@ -15,59 +15,69 @@ interface CNewParticleEffect {
15
15
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:AddControlPoint
16
16
  */
17
17
  AddControlPoint(self: CNewParticleEffect, cpID: number, ent: Entity, partAttachment: number, entAttachment?: string, offset?: Vector): void;
18
+
18
19
  /**
19
20
  * @realm client
20
21
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:GetAutoUpdateBBox
21
22
  */
22
23
  GetAutoUpdateBBox(self: CNewParticleEffect): boolean;
24
+
23
25
  /**
24
26
  * Returns the name of the particle effect this system is set to emit.
25
27
  * @realm client
26
28
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:GetEffectName
27
29
  */
28
30
  GetEffectName(self: CNewParticleEffect): string;
31
+
29
32
  /**
30
33
  * Returns the highest control point number for given particle system.
31
34
  * @realm client
32
35
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:GetHighestControlPoint
33
36
  */
34
37
  GetHighestControlPoint(self: CNewParticleEffect): boolean;
38
+
35
39
  /**
36
40
  * Returns the owner of the particle system, the entity the particle system is attached to.
37
41
  * @realm client
38
42
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:GetOwner
39
43
  */
40
44
  GetOwner(self: CNewParticleEffect): Entity;
45
+
41
46
  /**
42
47
  * Returns the bounding box of the particle effect, including all the particles it emitted.
43
48
  * @realm client
44
49
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:GetRenderBounds
45
50
  */
46
51
  GetRenderBounds(self: CNewParticleEffect): (Vector, Vector);
52
+
47
53
  /**
48
54
  * Returns whether the particle system simulation was paused by [CNewParticleEffect:SetShouldSimulate](https://wiki.facepunch.com/gmod/CNewParticleEffect:SetShouldSimulate).
49
55
  * @realm client
50
56
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:GetShouldSimulate
51
57
  */
52
58
  GetShouldSimulate(self: CNewParticleEffect): boolean;
59
+
53
60
  /**
54
61
  * Returns whether the particle system has finished emitting particles or not.
55
62
  * @realm client
56
63
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:IsFinished
57
64
  */
58
65
  IsFinished(self: CNewParticleEffect): boolean;
66
+
59
67
  /**
60
68
  * Returns whether the particle system is valid or not.
61
69
  * @realm client
62
70
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:IsValid
63
71
  */
64
72
  IsValid(self: CNewParticleEffect): boolean;
73
+
65
74
  /**
66
75
  * Returns whether the particle system is intended to be used on a view model?
67
76
  * @realm client
68
77
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:IsViewModelEffect
69
78
  */
70
79
  IsViewModelEffect(self: CNewParticleEffect): boolean;
80
+
71
81
  /**
72
82
  * Forces the particle system to render using current rendering context.
73
83
  *
@@ -79,60 +89,70 @@ interface CNewParticleEffect {
79
89
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:Render
80
90
  */
81
91
  Render(self: CNewParticleEffect): void;
92
+
82
93
  /**
83
94
  * Forces the particle system to restart emitting particles.
84
95
  * @realm client
85
96
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:Restart
86
97
  */
87
98
  Restart(self: CNewParticleEffect): void;
99
+
88
100
  /**
89
101
  * Sets a value for given control point.
90
102
  * @realm client
91
103
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:SetControlPoint
92
104
  */
93
105
  SetControlPoint(self: CNewParticleEffect, cpID: number, value: Vector): void;
106
+
94
107
  /**
95
108
  * Sets an entity to given control point for particle to use.
96
109
  * @realm client
97
110
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:SetControlPointEntity
98
111
  */
99
112
  SetControlPointEntity(self: CNewParticleEffect, cpID: number, parent: Entity): void;
113
+
100
114
  /**
101
115
  * Sets the forward direction for given control point.
102
116
  * @realm client
103
117
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:SetControlPointForwardVector
104
118
  */
105
119
  SetControlPointForwardVector(self: CNewParticleEffect, cpID: number, forward: Vector): void;
120
+
106
121
  /**
107
122
  * Sets the orientation for given control point.
108
123
  * @realm client
109
124
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:SetControlPointOrientation
110
125
  */
111
126
  SetControlPointOrientation(self: CNewParticleEffect, cpID: number, forward: Vector, right: Vector, up: Vector): void;
127
+
112
128
  /**
113
129
  * Essentially makes child control point follow the parent control point.
114
130
  * @realm client
115
131
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:SetControlPointParent
116
132
  */
117
133
  SetControlPointParent(self: CNewParticleEffect, childID: number, parentID: number): void;
134
+
118
135
  /**
119
136
  * Sets the right direction for given control point.
120
137
  * @realm client
121
138
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:SetControlPointRightVector
122
139
  */
123
140
  SetControlPointRightVector(self: CNewParticleEffect, cpID: number, right: Vector): void;
141
+
124
142
  /**
125
143
  * Sets the upward direction for given control point.
126
144
  * @realm client
127
145
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:SetControlPointUpVector
128
146
  */
129
147
  SetControlPointUpVector(self: CNewParticleEffect, cpID: number, upward: Vector): void;
148
+
130
149
  /**
131
150
  * Set whether this particle effect is a view model effect or not. This will have an effect on attachment positioning and other things.
132
151
  * @realm client
133
152
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:SetIsViewModelEffect
134
153
  */
135
154
  SetIsViewModelEffect(self: CNewParticleEffect, isViewModel: boolean): void;
155
+
136
156
  /**
137
157
  * Forces the particle system to stop automatically rendering.
138
158
  *
@@ -142,30 +162,35 @@ interface CNewParticleEffect {
142
162
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:SetShouldDraw
143
163
  */
144
164
  SetShouldDraw(self: CNewParticleEffect, should: boolean): void;
165
+
145
166
  /**
146
167
  * Sets whether the particle system should continue simulation or not. If simulation is paused, all currently active particles will be frozen in place.
147
168
  * @realm client
148
169
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:SetShouldSimulate
149
170
  */
150
171
  SetShouldSimulate(self: CNewParticleEffect, simulate: boolean): void;
172
+
151
173
  /**
152
174
  * Sets the sort origin for given particle system. This is used as a helper to determine which particles are in front of which.
153
175
  * @realm client
154
176
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:SetSortOrigin
155
177
  */
156
178
  SetSortOrigin(self: CNewParticleEffect, origin: Vector): void;
179
+
157
180
  /**
158
181
  * Starts the particle emission.
159
182
  * @realm client
160
183
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:StartEmission
161
184
  */
162
185
  StartEmission(self: CNewParticleEffect, infiniteOnly?: boolean): void;
186
+
163
187
  /**
164
188
  * Stops the particle emission.
165
189
  * @realm client
166
190
  * @source https://wiki.facepunch.com/gmod/CNewParticleEffect:StopEmission
167
191
  */
168
192
  StopEmission(self: CNewParticleEffect, infiniteOnly?: boolean, removeAllParticles?: boolean, wakeOnStop?: boolean): void;
193
+
169
194
  /**
170
195
  * Stops particle emission and destroys all particles instantly. Also detaches the particle effect from the entity it was attached to.
171
196
  *
@@ -179,30 +204,3 @@ interface CNewParticleEffect {
179
204
  */
180
205
  StopEmissionAndDestroyImmediately(self: CNewParticleEffect): void;
181
206
  }
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
@@ -9,6 +9,7 @@ interface Color {
9
9
  b: number;
10
10
  /** The alpha component of the color. */
11
11
  a: number;
12
+
12
13
  /**
13
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.
14
15
  *
@@ -18,6 +19,7 @@ interface Color {
18
19
  * @source https://wiki.facepunch.com/gmod/COLOR:AddBlackness
19
20
  */
20
21
  AddBlackness(self: Color, blackness: number): void;
22
+
21
23
  /**
22
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.
23
25
  *
@@ -29,6 +31,7 @@ interface Color {
29
31
  * @source https://wiki.facepunch.com/gmod/COLOR:AddBrightness
30
32
  */
31
33
  AddBrightness(self: Color, saturation: number): void;
34
+
32
35
  /**
33
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.
34
37
  *
@@ -40,6 +43,7 @@ interface Color {
40
43
  * @source https://wiki.facepunch.com/gmod/COLOR:AddHue
41
44
  */
42
45
  AddHue(self: Color, hue: number): void;
46
+
43
47
  /**
44
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.
45
49
  *
@@ -51,6 +55,7 @@ interface Color {
51
55
  * @source https://wiki.facepunch.com/gmod/COLOR:AddLightness
52
56
  */
53
57
  AddLightness(self: Color, lightness: number): void;
58
+
54
59
  /**
55
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.
56
61
  *
@@ -62,6 +67,7 @@ interface Color {
62
67
  * @source https://wiki.facepunch.com/gmod/COLOR:AddSaturation
63
68
  */
64
69
  AddSaturation(self: Color, saturation: number): void;
70
+
65
71
  /**
66
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.
67
73
  *
@@ -71,6 +77,7 @@ interface Color {
71
77
  * @source https://wiki.facepunch.com/gmod/COLOR:AddWhiteness
72
78
  */
73
79
  AddWhiteness(self: Color, whiteness: number): void;
80
+
74
81
  /**
75
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.
76
83
  *
@@ -80,6 +87,7 @@ interface Color {
80
87
  * @source https://wiki.facepunch.com/gmod/COLOR:GetBlackness
81
88
  */
82
89
  GetBlackness(self: Color): number;
90
+
83
91
  /**
84
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).
85
93
  *
@@ -89,6 +97,7 @@ interface Color {
89
97
  * @source https://wiki.facepunch.com/gmod/COLOR:GetBrightness
90
98
  */
91
99
  GetBrightness(self: Color): number;
100
+
92
101
  /**
93
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).
94
103
  *
@@ -98,6 +107,7 @@ interface Color {
98
107
  * @source https://wiki.facepunch.com/gmod/COLOR:GetHue
99
108
  */
100
109
  GetHue(self: Color): number;
110
+
101
111
  /**
102
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.
103
113
  *
@@ -107,6 +117,7 @@ interface Color {
107
117
  * @source https://wiki.facepunch.com/gmod/COLOR:GetLightness
108
118
  */
109
119
  GetLightness(self: Color): number;
120
+
110
121
  /**
111
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).
112
123
  *
@@ -116,6 +127,7 @@ interface Color {
116
127
  * @source https://wiki.facepunch.com/gmod/COLOR:GetSaturation
117
128
  */
118
129
  GetSaturation(self: Color): number;
130
+
119
131
  /**
120
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.
121
133
  *
@@ -125,6 +137,7 @@ interface Color {
125
137
  * @source https://wiki.facepunch.com/gmod/COLOR:GetWhiteness
126
138
  */
127
139
  GetWhiteness(self: Color): number;
140
+
128
141
  /**
129
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.
130
143
  *
@@ -132,6 +145,7 @@ interface Color {
132
145
  * @source https://wiki.facepunch.com/gmod/COLOR:SetBlackness
133
146
  */
134
147
  SetBlackness(self: Color, blackness: number): void;
148
+
135
149
  /**
136
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.
137
151
  *
@@ -141,6 +155,7 @@ interface Color {
141
155
  * @source https://wiki.facepunch.com/gmod/COLOR:SetBrightness
142
156
  */
143
157
  SetBrightness(self: Color, saturation: number): void;
158
+
144
159
  /**
145
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.
146
161
  *
@@ -150,6 +165,7 @@ interface Color {
150
165
  * @source https://wiki.facepunch.com/gmod/COLOR:SetHue
151
166
  */
152
167
  SetHue(self: Color, hue: number): void;
168
+
153
169
  /**
154
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.
155
171
  *
@@ -159,6 +175,7 @@ interface Color {
159
175
  * @source https://wiki.facepunch.com/gmod/COLOR:SetLightness
160
176
  */
161
177
  SetLightness(self: Color, lightness: number): void;
178
+
162
179
  /**
163
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.
164
181
  *
@@ -168,6 +185,7 @@ interface Color {
168
185
  * @source https://wiki.facepunch.com/gmod/COLOR:SetSaturation
169
186
  */
170
187
  SetSaturation(self: Color, saturation: number): void;
188
+
171
189
  /**
172
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.
173
191
  *
@@ -175,18 +193,21 @@ interface Color {
175
193
  * @source https://wiki.facepunch.com/gmod/COLOR:SetWhiteness
176
194
  */
177
195
  SetWhiteness(self: Color, whiteness: number): void;
196
+
178
197
  /**
179
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.
180
199
  * @realm shared and menu
181
200
  * @source https://wiki.facepunch.com/gmod/COLOR:ToHWB
182
201
  */
183
202
  ToHWB(self: Color): (number, number, number);
203
+
184
204
  /**
185
205
  * Returns a copy of this color, usually so it can be safely modified later without affecting the original color.
186
206
  * @realm shared and menu
187
207
  * @source https://wiki.facepunch.com/gmod/Color:Copy
188
208
  */
189
209
  Copy(self: Color): Color;
210
+
190
211
  /**
191
212
  * Performs linear interpolation between this and given colors.
192
213
  *
@@ -194,12 +215,14 @@ interface Color {
194
215
  * @source https://wiki.facepunch.com/gmod/Color:Lerp
195
216
  */
196
217
  Lerp(self: Color, target: Color, fraction: number): Color;
218
+
197
219
  /**
198
220
  * Sets the red, green, blue, and alpha of the color.
199
221
  * @realm shared
200
222
  * @source https://wiki.facepunch.com/gmod/Color:SetUnpacked
201
223
  */
202
224
  SetUnpacked(self: Color, r: number, g: number, b: number, a: number): void;
225
+
203
226
  /**
204
227
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into [HSL color space](https://en.wikipedia.org/wiki/HSL_and_HSV) .
205
228
  *
@@ -208,6 +231,7 @@ interface Color {
208
231
  * @source https://wiki.facepunch.com/gmod/Color:ToHSL
209
232
  */
210
233
  ToHSL(self: Color): (number, number, number);
234
+
211
235
  /**
212
236
  * Encodes a RGB [Color](https://wiki.facepunch.com/gmod/Color) into the [HSV color space](https://en.wikipedia.org/wiki/HSL_and_HSV).
213
237
  *
@@ -218,6 +242,7 @@ interface Color {
218
242
  * @source https://wiki.facepunch.com/gmod/Color:ToHSV
219
243
  */
220
244
  ToHSV(self: Color): (number, number, number);
245
+
221
246
  /**
222
247
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) to its hexadecimal representation.
223
248
  *
@@ -225,12 +250,14 @@ interface Color {
225
250
  * @source https://wiki.facepunch.com/gmod/Color:ToHex
226
251
  */
227
252
  ToHex(self: Color, arg0?: boolean): string;
253
+
228
254
  /**
229
255
  * Returns the color as a table (an array or a list) with four elements.
230
256
  * @realm shared
231
257
  * @source https://wiki.facepunch.com/gmod/Color:ToTable
232
258
  */
233
259
  ToTable(self: Color): number[];
260
+
234
261
  /**
235
262
  * Translates the [Color](https://wiki.facepunch.com/gmod/Color) into a [Vector](https://wiki.facepunch.com/gmod/Vector), losing the alpha channel.
236
263
  * This will also range the values from 0 - 255 to 0 - 1
@@ -245,6 +272,7 @@ interface Color {
245
272
  * @source https://wiki.facepunch.com/gmod/Color:ToVector
246
273
  */
247
274
  ToVector(self: Color): Vector;
275
+
248
276
  /**
249
277
  * Returns the red, green, blue, and alpha of the color.
250
278
  * @realm shared
@@ -252,32 +280,3 @@ interface Color {
252
280
  */
253
281
  Unpack(self: Color): (number, number, number, number);
254
282
  }
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
-
263
-
264
-
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
-
278
-
279
-
280
-
281
-
282
-
283
-
@@ -18,6 +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
+
21
22
  /**
22
23
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
23
24
  * Used by the engine to call the autocomplete function for a console command, and retrieve returned options.
@@ -25,6 +26,7 @@ interface ConcommandLib {
25
26
  * @source https://wiki.facepunch.com/gmod/concommand.AutoComplete
26
27
  */
27
28
  AutoComplete(command: string, arguments: string): table;
29
+
28
30
  /**
29
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).
30
32
  *
@@ -32,6 +34,7 @@ interface ConcommandLib {
32
34
  * @source https://wiki.facepunch.com/gmod/concommand.GetTable
33
35
  */
34
36
  GetTable(): (Table<string, function>, Table<string, function>);
37
+
35
38
  /**
36
39
  * Removes a console command.
37
40
  *
@@ -41,6 +44,7 @@ interface ConcommandLib {
41
44
  * @source https://wiki.facepunch.com/gmod/concommand.Remove
42
45
  */
43
46
  Remove(name: string): void;
47
+
44
48
  /**
45
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).
46
50
  *
@@ -54,8 +58,3 @@ interface ConcommandLib {
54
58
  */
55
59
  Run(ply: Player, cmd: string, args: any, argumentString: string): boolean;
56
60
  }
57
-
58
-
59
-
60
-
61
-