@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
@@ -11,6 +11,7 @@ interface CNavArea {
11
11
  * @source https://wiki.facepunch.com/gmod/CNavArea:AddAttributes
12
12
  */
13
13
  AddAttributes(self: CNavArea, attribs: number): void;
14
+
14
15
  /**
15
16
  * Adds a hiding spot onto this nav area.
16
17
  *
@@ -20,6 +21,7 @@ interface CNavArea {
20
21
  * @source https://wiki.facepunch.com/gmod/CNavArea:AddHidingSpot
21
22
  */
22
23
  AddHidingSpot(self: CNavArea, pos: Vector, flags?: number): void;
24
+
23
25
  /**
24
26
  * Adds this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) to the closed list, a list of areas that have been checked by A* pathfinding algorithm.
25
27
  *
@@ -32,6 +34,7 @@ interface CNavArea {
32
34
  * @source https://wiki.facepunch.com/gmod/CNavArea:AddToClosedList
33
35
  */
34
36
  AddToClosedList(self: CNavArea): void;
37
+
35
38
  /**
36
39
  * Adds this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) to the Open List.
37
40
  *
@@ -44,6 +47,7 @@ interface CNavArea {
44
47
  * @source https://wiki.facepunch.com/gmod/CNavArea:AddToOpenList
45
48
  */
46
49
  AddToOpenList(self: CNavArea): void;
50
+
47
51
  /**
48
52
  * Clears the open and closed lists for a new search.
49
53
  *
@@ -56,24 +60,28 @@ interface CNavArea {
56
60
  * @source https://wiki.facepunch.com/gmod/CNavArea:ClearSearchLists
57
61
  */
58
62
  ClearSearchLists(self: CNavArea): void;
63
+
59
64
  /**
60
65
  * Returns the height difference between the edges of two connected navareas.
61
66
  * @realm server
62
67
  * @source https://wiki.facepunch.com/gmod/CNavArea:ComputeAdjacentConnectionHeightChange
63
68
  */
64
69
  ComputeAdjacentConnectionHeightChange(self: CNavArea, navarea: CNavArea): number;
70
+
65
71
  /**
66
72
  * Returns the [Enums/NavDir](https://wiki.facepunch.com/gmod/Enums/NavDir) direction that the given vector faces on this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
67
73
  * @realm server
68
74
  * @source https://wiki.facepunch.com/gmod/CNavArea:ComputeDirection
69
75
  */
70
76
  ComputeDirection(self: CNavArea, pos: Vector): number;
77
+
71
78
  /**
72
79
  * Returns the height difference on the Z axis of the two [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s. This is calculated from the center most point on both [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s.
73
80
  * @realm server
74
81
  * @source https://wiki.facepunch.com/gmod/CNavArea:ComputeGroundHeightChange
75
82
  */
76
83
  ComputeGroundHeightChange(self: CNavArea, navArea: CNavArea): number;
84
+
77
85
  /**
78
86
  * Connects this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) to another [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) or [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder) with a one way connection. ( From this area to the target )
79
87
  *
@@ -83,30 +91,35 @@ interface CNavArea {
83
91
  * @source https://wiki.facepunch.com/gmod/CNavArea:ConnectTo
84
92
  */
85
93
  ConnectTo(self: CNavArea, area: CNavArea): void;
94
+
86
95
  /**
87
96
  * Returns true if this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) contains the given vector.
88
97
  * @realm server
89
98
  * @source https://wiki.facepunch.com/gmod/CNavArea:Contains
90
99
  */
91
100
  Contains(self: CNavArea, pos: Vector): boolean;
101
+
92
102
  /**
93
103
  * Disconnects this nav area from given area or ladder. (Only disconnects one way)
94
104
  * @realm server
95
105
  * @source https://wiki.facepunch.com/gmod/CNavArea:Disconnect
96
106
  */
97
107
  Disconnect(self: CNavArea, area: CNavArea): void;
108
+
98
109
  /**
99
110
  * Draws this navarea on debug overlay. (So limitations of [debugoverlay](https://wiki.facepunch.com/gmod/debugoverlay) library apply)
100
111
  * @realm server
101
112
  * @source https://wiki.facepunch.com/gmod/CNavArea:Draw
102
113
  */
103
114
  Draw(self: CNavArea): void;
115
+
104
116
  /**
105
117
  * Draws the hiding spots on debug overlay. This includes sniper/exposed spots too!
106
118
  * @realm server
107
119
  * @source https://wiki.facepunch.com/gmod/CNavArea:DrawSpots
108
120
  */
109
121
  DrawSpots(self: CNavArea): void;
122
+
110
123
  /**
111
124
  * Returns a list of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a (one and two way) connection **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) and their pre-computed distances.
112
125
  *
@@ -116,6 +129,7 @@ interface CNavArea {
116
129
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentAreaDistances
117
130
  */
118
131
  GetAdjacentAreaDistances(self: CNavArea, dir?: number): table;
132
+
119
133
  /**
120
134
  * Returns a list of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a (one and two way) connection **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
121
135
  *
@@ -127,6 +141,7 @@ interface CNavArea {
127
141
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentAreas
128
142
  */
129
143
  GetAdjacentAreas(self: CNavArea): table;
144
+
130
145
  /**
131
146
  * Returns a table of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a ( one and two way ) connection **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) in given direction.
132
147
  *
@@ -138,6 +153,7 @@ interface CNavArea {
138
153
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentAreasAtSide
139
154
  */
140
155
  GetAdjacentAreasAtSide(self: CNavArea, navDir: number): table;
156
+
141
157
  /**
142
158
  * Returns the amount of [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a connection ( one and two way ) **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
143
159
  *
@@ -147,6 +163,7 @@ interface CNavArea {
147
163
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentCount
148
164
  */
149
165
  GetAdjacentCount(self: CNavArea): number;
166
+
150
167
  /**
151
168
  * Returns the amount of [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a connection ( one or two way ) **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) in given direction.
152
169
  *
@@ -156,30 +173,35 @@ interface CNavArea {
156
173
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentCountAtSide
157
174
  */
158
175
  GetAdjacentCountAtSide(self: CNavArea, navDir: number): number;
176
+
159
177
  /**
160
178
  * Returns the attribute mask for the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
161
179
  * @realm server
162
180
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetAttributes
163
181
  */
164
182
  GetAttributes(self: CNavArea): number;
183
+
165
184
  /**
166
185
  * Returns the center most vector point for the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
167
186
  * @realm server
168
187
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetCenter
169
188
  */
170
189
  GetCenter(self: CNavArea): Vector;
190
+
171
191
  /**
172
192
  * Returns the closest point of this Nav Area from the given position.
173
193
  * @realm server
174
194
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetClosestPointOnArea
175
195
  */
176
196
  GetClosestPointOnArea(self: CNavArea, pos: Vector): Vector;
197
+
177
198
  /**
178
199
  * Returns the vector position of the corner for the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
179
200
  * @realm server
180
201
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetCorner
181
202
  */
182
203
  GetCorner(self: CNavArea, cornerid: number): Vector;
204
+
183
205
  /**
184
206
  * Returns the cost from starting area this area when pathfinding. Set by [CNavArea:SetCostSoFar](https://wiki.facepunch.com/gmod/CNavArea:SetCostSoFar).
185
207
  *
@@ -192,6 +214,7 @@ interface CNavArea {
192
214
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetCostSoFar
193
215
  */
194
216
  GetCostSoFar(self: CNavArea): number;
217
+
195
218
  /**
196
219
  * Returns a table of very bad hiding spots in this area.
197
220
  *
@@ -202,12 +225,14 @@ interface CNavArea {
202
225
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetExposedSpots
203
226
  */
204
227
  GetExposedSpots(self: CNavArea): table;
228
+
205
229
  /**
206
230
  * Returns size info about the nav area.
207
231
  * @realm server
208
232
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetExtentInfo
209
233
  */
210
234
  GetExtentInfo(self: CNavArea): table;
235
+
211
236
  /**
212
237
  * Returns a table of good hiding spots in this area.
213
238
  *
@@ -217,12 +242,14 @@ interface CNavArea {
217
242
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetHidingSpots
218
243
  */
219
244
  GetHidingSpots(self: CNavArea, type?: number): table;
245
+
220
246
  /**
221
247
  * Returns this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s unique ID.
222
248
  * @realm server
223
249
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetID
224
250
  */
225
251
  GetID(self: CNavArea): number;
252
+
226
253
  /**
227
254
  * Returns a table of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a one-way connection **to** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) and their pre-computed distances.
228
255
  *
@@ -232,6 +259,7 @@ interface CNavArea {
232
259
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetIncomingConnectionDistances
233
260
  */
234
261
  GetIncomingConnectionDistances(self: CNavArea, dir?: number): table;
262
+
235
263
  /**
236
264
  * Returns a table of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a one-way connection **to** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
237
265
  *
@@ -243,6 +271,7 @@ interface CNavArea {
243
271
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetIncomingConnections
244
272
  */
245
273
  GetIncomingConnections(self: CNavArea): CNavArea[];
274
+
246
275
  /**
247
276
  * Returns a table of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a one-way connection **to** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) from given direction.
248
277
  *
@@ -254,6 +283,7 @@ interface CNavArea {
254
283
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetIncomingConnectionsAtSide
255
284
  */
256
285
  GetIncomingConnectionsAtSide(self: CNavArea, navDir: number): table;
286
+
257
287
  /**
258
288
  * Returns all [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder)s that have a ( one or two way ) connection **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
259
289
  *
@@ -263,6 +293,7 @@ interface CNavArea {
263
293
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetLadders
264
294
  */
265
295
  GetLadders(self: CNavArea): CNavLadder[];
296
+
266
297
  /**
267
298
  * Returns all [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder)s that have a ( one or two way ) connection **from** ( one and two way ) this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) in given direction.
268
299
  *
@@ -272,48 +303,56 @@ interface CNavArea {
272
303
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetLaddersAtSide
273
304
  */
274
305
  GetLaddersAtSide(self: CNavArea, navDir: number): table;
306
+
275
307
  /**
276
308
  * Returns the parent [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)
277
309
  * @realm server
278
310
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetParent
279
311
  */
280
312
  GetParent(self: CNavArea): CNavArea;
313
+
281
314
  /**
282
315
  * Returns how this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) is connected to its parent.
283
316
  * @realm server
284
317
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetParentHow
285
318
  */
286
319
  GetParentHow(self: CNavArea): number;
320
+
287
321
  /**
288
322
  * Returns the Place of the nav area.
289
323
  * @realm server
290
324
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetPlace
291
325
  */
292
326
  GetPlace(self: CNavArea): string;
327
+
293
328
  /**
294
329
  * Returns a random [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) that has an outgoing ( one or two way ) connection **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) in given direction.
295
330
  * @realm server
296
331
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetRandomAdjacentAreaAtSide
297
332
  */
298
333
  GetRandomAdjacentAreaAtSide(self: CNavArea, navDir: number): CNavArea;
334
+
299
335
  /**
300
336
  * Returns a random point on the nav area.
301
337
  * @realm server
302
338
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetRandomPoint
303
339
  */
304
340
  GetRandomPoint(self: CNavArea): Vector;
341
+
305
342
  /**
306
343
  * Returns the width this Nav Area.
307
344
  * @realm server
308
345
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetSizeX
309
346
  */
310
347
  GetSizeX(self: CNavArea): number;
348
+
311
349
  /**
312
350
  * Returns the height of this Nav Area.
313
351
  * @realm server
314
352
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetSizeY
315
353
  */
316
354
  GetSizeY(self: CNavArea): number;
355
+
317
356
  /**
318
357
  * Returns all possible path segments through a [CNavArea](https://wiki.facepunch.com/gmod/CNavArea), and the dangerous spots to look at as we traverse that path segment.
319
358
  *
@@ -321,6 +360,7 @@ interface CNavArea {
321
360
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetSpotEncounters
322
361
  */
323
362
  GetSpotEncounters(self: CNavArea): table;
363
+
324
364
  /**
325
365
  * Returns the total cost when passing from starting area to the goal area through this node. Set by [CNavArea:SetTotalCost](https://wiki.facepunch.com/gmod/CNavArea:SetTotalCost).
326
366
  *
@@ -333,6 +373,7 @@ interface CNavArea {
333
373
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetTotalCost
334
374
  */
335
375
  GetTotalCost(self: CNavArea): number;
376
+
336
377
  /**
337
378
  * Returns all [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that are visible from this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
338
379
  *
@@ -340,24 +381,28 @@ interface CNavArea {
340
381
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetVisibleAreas
341
382
  */
342
383
  GetVisibleAreas(self: CNavArea): table;
384
+
343
385
  /**
344
386
  * Returns the elevation of this Nav Area at the given position.
345
387
  * @realm server
346
388
  * @source https://wiki.facepunch.com/gmod/CNavArea:GetZ
347
389
  */
348
390
  GetZ(self: CNavArea, pos: Vector): number;
391
+
349
392
  /**
350
393
  * Returns true if the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) has this attribute flag set.
351
394
  * @realm server
352
395
  * @source https://wiki.facepunch.com/gmod/CNavArea:HasAttributes
353
396
  */
354
397
  HasAttributes(self: CNavArea, attribs: number): boolean;
398
+
355
399
  /**
356
400
  * Returns whether the nav area is blocked or not, i.e. whether it can be walked through or not.
357
401
  * @realm server
358
402
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsBlocked
359
403
  */
360
404
  IsBlocked(self: CNavArea, teamID?: number, ignoreNavBlockers?: boolean): boolean;
405
+
361
406
  /**
362
407
  * Returns whether this node is in the Closed List.
363
408
  *
@@ -370,6 +415,7 @@ interface CNavArea {
370
415
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsClosed
371
416
  */
372
417
  IsClosed(self: CNavArea): boolean;
418
+
373
419
  /**
374
420
  * Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) can completely (i.e. all corners of this area can see all corners of the given area) see the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
375
421
  *
@@ -377,6 +423,7 @@ interface CNavArea {
377
423
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsCompletelyVisible
378
424
  */
379
425
  IsCompletelyVisible(self: CNavArea, area: CNavArea): boolean;
426
+
380
427
  /**
381
428
  * Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) has an outgoing ( one or two way ) connection **to** given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
382
429
  *
@@ -386,6 +433,7 @@ interface CNavArea {
386
433
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsConnected
387
434
  */
388
435
  IsConnected(self: CNavArea, navArea: CNavArea): boolean;
436
+
389
437
  /**
390
438
  * Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) has an outgoing ( one or two way ) connection **to** given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) in given direction.
391
439
  *
@@ -395,24 +443,28 @@ interface CNavArea {
395
443
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsConnectedAtSide
396
444
  */
397
445
  IsConnectedAtSide(self: CNavArea, navArea: CNavArea, navDirType: number): boolean;
446
+
398
447
  /**
399
448
  * Returns whether this Nav Area is in the same plane as the given one.
400
449
  * @realm server
401
450
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsCoplanar
402
451
  */
403
452
  IsCoplanar(self: CNavArea, navArea: CNavArea): boolean;
453
+
404
454
  /**
405
455
  * Returns whether the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) would damage if traversed, as set by [CNavArea:MarkAsDamaging](https://wiki.facepunch.com/gmod/CNavArea:MarkAsDamaging).
406
456
  * @realm server
407
457
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsDamaging
408
458
  */
409
459
  IsDamaging(self: CNavArea): boolean;
460
+
410
461
  /**
411
462
  * Returns whether this Nav Area is flat within the tolerance of the **nav_coplanar_slope_limit_displacement** and **nav_coplanar_slope_limit** convars.
412
463
  * @realm server
413
464
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsFlat
414
465
  */
415
466
  IsFlat(self: CNavArea): boolean;
467
+
416
468
  /**
417
469
  * Returns whether this area is in the Open List.
418
470
  *
@@ -425,6 +477,7 @@ interface CNavArea {
425
477
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsOpen
426
478
  */
427
479
  IsOpen(self: CNavArea): boolean;
480
+
428
481
  /**
429
482
  * Returns whether the Open List is empty or not.
430
483
  *
@@ -437,18 +490,21 @@ interface CNavArea {
437
490
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsOpenListEmpty
438
491
  */
439
492
  IsOpenListEmpty(self: CNavArea): boolean;
493
+
440
494
  /**
441
495
  * Returns if this position overlaps the Nav Area within the given tolerance.
442
496
  * @realm server
443
497
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsOverlapping
444
498
  */
445
499
  IsOverlapping(self: CNavArea, pos: Vector, tolerance?: number): boolean;
500
+
446
501
  /**
447
502
  * Returns true if this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) is overlapping the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
448
503
  * @realm server
449
504
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsOverlappingArea
450
505
  */
451
506
  IsOverlappingArea(self: CNavArea, navArea: CNavArea): boolean;
507
+
452
508
  /**
453
509
  * Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) can see given position.
454
510
  *
@@ -456,6 +512,7 @@ interface CNavArea {
456
512
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsPartiallyVisible
457
513
  */
458
514
  IsPartiallyVisible(self: CNavArea, pos: Vector, ignoreEnt?: Entity): boolean;
515
+
459
516
  /**
460
517
  * Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) can potentially see the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
461
518
  *
@@ -463,54 +520,63 @@ interface CNavArea {
463
520
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsPotentiallyVisible
464
521
  */
465
522
  IsPotentiallyVisible(self: CNavArea, area: CNavArea): boolean;
523
+
466
524
  /**
467
525
  * Returns if we're shaped like a square.
468
526
  * @realm server
469
527
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsRoughlySquare
470
528
  */
471
529
  IsRoughlySquare(self: CNavArea): boolean;
530
+
472
531
  /**
473
532
  * Whether this Nav Area is placed underwater.
474
533
  * @realm server
475
534
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsUnderwater
476
535
  */
477
536
  IsUnderwater(self: CNavArea): boolean;
537
+
478
538
  /**
479
539
  * Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) is valid or not.
480
540
  * @realm server
481
541
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsValid
482
542
  */
483
543
  IsValid(self: CNavArea): boolean;
544
+
484
545
  /**
485
546
  * Returns whether we can be seen from the given position.
486
547
  * @realm server
487
548
  * @source https://wiki.facepunch.com/gmod/CNavArea:IsVisible
488
549
  */
489
550
  IsVisible(self: CNavArea, pos: Vector): (boolean, Vector);
551
+
490
552
  /**
491
553
  * Marks the area as blocked and unable to be traversed. See [CNavArea:IsBlocked](https://wiki.facepunch.com/gmod/CNavArea:IsBlocked) and [CNavArea:MarkAsUnblocked](https://wiki.facepunch.com/gmod/CNavArea:MarkAsUnblocked).
492
554
  * @realm server
493
555
  * @source https://wiki.facepunch.com/gmod/CNavArea:MarkAsBlocked
494
556
  */
495
557
  MarkAsBlocked(self: CNavArea, teamID?: number): void;
558
+
496
559
  /**
497
560
  * Marks the area as damaging if traversed, for example when, for example having poisonous or no atmosphere, or a temporary fire present. See [CNavArea:IsDamaging](https://wiki.facepunch.com/gmod/CNavArea:IsDamaging).
498
561
  * @realm server
499
562
  * @source https://wiki.facepunch.com/gmod/CNavArea:MarkAsDamaging
500
563
  */
501
564
  MarkAsDamaging(self: CNavArea, duration: number): void;
565
+
502
566
  /**
503
567
  * Unblocked this area if it was previously blocked by [CNavArea:MarkAsBlocked](https://wiki.facepunch.com/gmod/CNavArea:MarkAsBlocked).
504
568
  * @realm server
505
569
  * @source https://wiki.facepunch.com/gmod/CNavArea:MarkAsUnblocked
506
570
  */
507
571
  MarkAsUnblocked(self: CNavArea, teamID?: number): void;
572
+
508
573
  /**
509
574
  * Drops a corner or all corners of a [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) to the ground below it.
510
575
  * @realm server
511
576
  * @source https://wiki.facepunch.com/gmod/CNavArea:PlaceOnGround
512
577
  */
513
578
  PlaceOnGround(self: CNavArea, corner: number): void;
579
+
514
580
  /**
515
581
  * Removes a CNavArea from the Open List with the lowest cost to traverse to from the starting node, and returns it.
516
582
  *
@@ -523,18 +589,21 @@ interface CNavArea {
523
589
  * @source https://wiki.facepunch.com/gmod/CNavArea:PopOpenList
524
590
  */
525
591
  PopOpenList(self: CNavArea): CNavArea;
592
+
526
593
  /**
527
594
  * Removes the given nav area.
528
595
  * @realm server
529
596
  * @source https://wiki.facepunch.com/gmod/CNavArea:Remove
530
597
  */
531
598
  Remove(self: CNavArea): void;
599
+
532
600
  /**
533
601
  * Removes given attributes from given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea). See also [CNavArea:SetAttributes](https://wiki.facepunch.com/gmod/CNavArea:SetAttributes).
534
602
  * @realm server
535
603
  * @source https://wiki.facepunch.com/gmod/CNavArea:RemoveAttributes
536
604
  */
537
605
  RemoveAttributes(self: CNavArea, attribs: number): void;
606
+
538
607
  /**
539
608
  * Removes this node from the Closed List.
540
609
  *
@@ -548,18 +617,21 @@ interface CNavArea {
548
617
  * @deprecated Does nothing
549
618
  */
550
619
  RemoveFromClosedList(self: CNavArea): void;
620
+
551
621
  /**
552
622
  * Sets the attributes for given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea). See [CNavArea:HasAttributes](https://wiki.facepunch.com/gmod/CNavArea:HasAttributes).
553
623
  * @realm server
554
624
  * @source https://wiki.facepunch.com/gmod/CNavArea:SetAttributes
555
625
  */
556
626
  SetAttributes(self: CNavArea, attribs: number): void;
627
+
557
628
  /**
558
629
  * Sets the position of a corner of a nav area.
559
630
  * @realm server
560
631
  * @source https://wiki.facepunch.com/gmod/CNavArea:SetCorner
561
632
  */
562
633
  SetCorner(self: CNavArea, corner: number, position: Vector): void;
634
+
563
635
  /**
564
636
  * Sets the cost from starting area this area when pathfinding.
565
637
  *
@@ -572,12 +644,14 @@ interface CNavArea {
572
644
  * @source https://wiki.facepunch.com/gmod/CNavArea:SetCostSoFar
573
645
  */
574
646
  SetCostSoFar(self: CNavArea, cost: number): void;
647
+
575
648
  /**
576
649
  * Sets the new parent of this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
577
650
  * @realm server
578
651
  * @source https://wiki.facepunch.com/gmod/CNavArea:SetParent
579
652
  */
580
653
  SetParent(self: CNavArea, parent: CNavArea, how: number): void;
654
+
581
655
  /**
582
656
  * Sets the Place of the nav area.
583
657
  *
@@ -587,6 +661,7 @@ interface CNavArea {
587
661
  * @source https://wiki.facepunch.com/gmod/CNavArea:SetPlace
588
662
  */
589
663
  SetPlace(self: CNavArea, place: string): boolean;
664
+
590
665
  /**
591
666
  * Sets the total cost when passing from starting area to the goal area through this node.
592
667
  *
@@ -599,6 +674,7 @@ interface CNavArea {
599
674
  * @source https://wiki.facepunch.com/gmod/CNavArea:SetTotalCost
600
675
  */
601
676
  SetTotalCost(self: CNavArea, cost: number): void;
677
+
602
678
  /**
603
679
  * Moves this open list to appropriate position based on its [CNavArea:GetTotalCost](https://wiki.facepunch.com/gmod/CNavArea:GetTotalCost) compared to the total cost of other areas in the open list.
604
680
  *
@@ -612,81 +688,3 @@ interface CNavArea {
612
688
  */
613
689
  UpdateOnOpenList(self: CNavArea): void;
614
690
  }
615
-
616
-
617
-
618
-
619
-
620
-
621
-
622
-
623
-
624
-
625
-
626
-
627
-
628
-
629
-
630
-
631
-
632
-
633
-
634
-
635
-
636
-
637
-
638
-
639
-
640
-
641
-
642
-
643
-
644
-
645
-
646
-
647
-
648
-
649
-
650
-
651
-
652
-
653
-
654
-
655
-
656
-
657
-
658
-
659
-
660
-
661
-
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
-
672
-
673
-
674
-
675
-
676
-
677
-
678
-
679
-
680
-
681
-
682
-
683
-
684
-
685
-
686
-
687
-
688
-
689
-
690
-
691
-
692
-