@tlua/gmod 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +0 -31
  4. package/types/ai.d.tlua +0 -11
  5. package/types/ai_schedule.d.tlua +0 -1
  6. package/types/ai_task.d.tlua +0 -1
  7. package/types/angle.d.tlua +0 -37
  8. package/types/avatarimage.d.tlua +0 -1
  9. package/types/awesomium.d.tlua +0 -1
  10. package/types/baseclass.d.tlua +0 -4
  11. package/types/bf_read.d.tlua +0 -23
  12. package/types/bit.d.tlua +0 -23
  13. package/types/button.d.tlua +0 -1
  14. package/types/cam.d.tlua +0 -33
  15. package/types/ceffectdata.d.tlua +0 -65
  16. package/types/chat.d.tlua +0 -11
  17. package/types/checkbutton.d.tlua +0 -1
  18. package/types/cleanup.d.tlua +0 -15
  19. package/types/cluaemitter.d.tlua +0 -25
  20. package/types/clualocomotion.d.tlua +0 -81
  21. package/types/cluaparticle.d.tlua +0 -89
  22. package/types/cmovedata.d.tlua +0 -95
  23. package/types/cnavarea.d.tlua +0 -155
  24. package/types/cnavladder.d.tlua +0 -45
  25. package/types/cnewparticleeffect.d.tlua +0 -53
  26. package/types/color.d.tlua +0 -57
  27. package/types/concommand.d.tlua +0 -9
  28. package/types/constraint.d.tlua +0 -57
  29. package/types/construct.d.tlua +0 -3
  30. package/types/contentheader.d.tlua +1 -6
  31. package/types/contenticon.d.tlua +1 -18
  32. package/types/contentsidebar.d.tlua +1 -8
  33. package/types/contentsidebartoolbox.d.tlua +0 -1
  34. package/types/contextbase.d.tlua +1 -8
  35. package/types/controlpanel.d.tlua +6 -31
  36. package/types/controlpresets.d.tlua +1 -26
  37. package/types/convar.d.tlua +0 -33
  38. package/types/cookie.d.tlua +0 -7
  39. package/types/coroutine.d.tlua +0 -15
  40. package/types/crecipientfilter.d.tlua +0 -33
  41. package/types/csent.d.tlua +0 -1
  42. package/types/csoundpatch.d.tlua +0 -29
  43. package/types/ctakedamageinfo.d.tlua +0 -67
  44. package/types/ctrllistbox.d.tlua +0 -1
  45. package/types/ctrlnumpad.d.tlua +0 -13
  46. package/types/cusercmd.d.tlua +0 -55
  47. package/types/custom_entity_fields.d.tlua +0 -1
  48. package/types/cvars.d.tlua +0 -13
  49. package/types/dadjustablemodelpanel.d.tlua +1 -14
  50. package/types/dalphabar.d.tlua +1 -6
  51. package/types/dbinder.d.tlua +1 -8
  52. package/types/dbubblecontainer.d.tlua +1 -4
  53. package/types/dbutton.d.tlua +1 -16
  54. package/types/dcategoryheader.d.tlua +0 -1
  55. package/types/dcategorylist.d.tlua +0 -1
  56. package/types/dcheckbox.d.tlua +1 -10
  57. package/types/dcheckboxlabel.d.tlua +0 -19
  58. package/types/dcollapsiblecategory.d.tlua +1 -46
  59. package/types/dcolorbutton.d.tlua +1 -14
  60. package/types/dcolorcombo.d.tlua +1 -10
  61. package/types/dcolorcube.d.tlua +1 -26
  62. package/types/dcolormixer.d.tlua +1 -54
  63. package/types/dcolorpalette.d.tlua +1 -46
  64. package/types/dcolumnsheet.d.tlua +1 -10
  65. package/types/dcombobox.d.tlua +1 -34
  66. package/types/ddragbase.d.tlua +1 -26
  67. package/types/ddrawer.d.tlua +1 -16
  68. package/types/debug.d.tlua +25 -60
  69. package/types/debugoverlay.d.tlua +0 -23
  70. package/types/dentityproperties.d.tlua +1 -10
  71. package/types/derma.d.tlua +0 -21
  72. package/types/dexpandbutton.d.tlua +1 -6
  73. package/types/dfilebrowser.d.tlua +0 -41
  74. package/types/dform.d.tlua +1 -36
  75. package/types/dframe.d.tlua +0 -49
  76. package/types/dgrid.d.tlua +1 -22
  77. package/types/dhorizontaldivider.d.tlua +1 -40
  78. package/types/dhorizontalscroller.d.tlua +1 -22
  79. package/types/dhscrollbar.d.tlua +1 -22
  80. package/types/dhtml.d.tlua +1 -16
  81. package/types/dhtmlcontrols.d.tlua +0 -11
  82. package/types/diconbrowser.d.tlua +1 -22
  83. package/types/diconlayout.d.tlua +1 -36
  84. package/types/dimage.d.tlua +1 -39
  85. package/types/dimagebutton.d.tlua +0 -19
  86. package/types/dkillicon.d.tlua +0 -1
  87. package/types/dlabel.d.tlua +1 -66
  88. package/types/dlabeleditable.d.tlua +1 -10
  89. package/types/dlabelurl.d.tlua +1 -20
  90. package/types/dlistbox.d.tlua +1 -16
  91. package/types/dlistboxitem.d.tlua +1 -8
  92. package/types/dlistlayout.d.tlua +0 -1
  93. package/types/dlistview.d.tlua +1 -68
  94. package/types/dlistview_column.d.tlua +1 -28
  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 +1 -26
  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 +1 -53
  102. package/types/dmenubar.d.tlua +1 -11
  103. package/types/dmenuoption.d.tlua +1 -26
  104. package/types/dmenuoptioncvar.d.tlua +1 -12
  105. package/types/dmodelpanel.d.tlua +1 -44
  106. package/types/dmodelselect.d.tlua +1 -4
  107. package/types/dmodelselectmulti.d.tlua +1 -4
  108. package/types/dnotify.d.tlua +1 -20
  109. package/types/dnumberscratch.d.tlua +1 -52
  110. package/types/dnumberwang.d.tlua +1 -32
  111. package/types/dnumpad.d.tlua +0 -1
  112. package/types/dnumslider.d.tlua +0 -35
  113. package/types/dpanel.d.tlua +1 -28
  114. package/types/dpanellist.d.tlua +0 -23
  115. package/types/dpaneloverlay.d.tlua +1 -14
  116. package/types/dpanelselect.d.tlua +0 -1
  117. package/types/dpanpanel.d.tlua +1 -12
  118. package/types/dprogress.d.tlua +1 -6
  119. package/types/dproperties.d.tlua +1 -8
  120. package/types/dproperty_boolean.d.tlua +0 -1
  121. package/types/dproperty_combo.d.tlua +1 -6
  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 +1 -10
  125. package/types/dproperty_int.d.tlua +0 -1
  126. package/types/dproperty_vectorcolor.d.tlua +0 -1
  127. package/types/dpropertysheet.d.tlua +9 -41
  128. package/types/dragndrop.d.tlua +0 -21
  129. package/types/draw.d.tlua +0 -22
  130. package/types/drgbpicker.d.tlua +1 -8
  131. package/types/drive.d.tlua +6 -31
  132. package/types/dscrollbargrip.d.tlua +0 -1
  133. package/types/dscrollpanel.d.tlua +0 -21
  134. package/types/dshape.d.tlua +1 -14
  135. package/types/dsizetocontents.d.tlua +1 -10
  136. package/types/dslider.d.tlua +1 -56
  137. package/types/dsprite.d.tlua +1 -18
  138. package/types/dtab.d.tlua +1 -16
  139. package/types/dtextentry.d.tlua +1 -86
  140. package/types/dtilelayout.d.tlua +1 -42
  141. package/types/dtooltip.d.tlua +1 -12
  142. package/types/dtree.d.tlua +1 -32
  143. package/types/dtree_node.d.tlua +1 -136
  144. package/types/dtree_node_button.d.tlua +0 -1
  145. package/types/duplicator.d.tlua +0 -60
  146. package/types/dverticaldivider.d.tlua +1 -46
  147. package/types/dvscrollbar.d.tlua +1 -22
  148. package/types/editablepanel.d.tlua +0 -1
  149. package/types/effect.d.tlua +1 -8
  150. package/types/effects.d.tlua +0 -13
  151. package/types/engine.d.tlua +0 -43
  152. package/types/entity.d.tlua +2 -1319
  153. package/types/ents.d.tlua +0 -44
  154. package/types/enums.d.tlua +0 -1
  155. package/types/file.d.tlua +0 -79
  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 +0 -15
  161. package/types/game.d.tlua +0 -79
  162. package/types/gameevent.d.tlua +4 -9
  163. package/types/gamemode.d.tlua +0 -6
  164. package/types/global.d.tlua +0 -18
  165. package/types/gm.d.tlua +0 -535
  166. package/types/gmod.d.tlua +0 -1
  167. package/types/gmsave.d.tlua +0 -9
  168. package/types/gui.d.tlua +0 -43
  169. package/types/gwen.d.tlua +0 -7
  170. package/types/halo.d.tlua +0 -5
  171. package/types/hammer.d.tlua +0 -1
  172. package/types/hook.d.tlua +0 -9
  173. package/types/html.d.tlua +0 -1
  174. package/types/http.d.tlua +0 -3
  175. package/types/iconeditor.d.tlua +1 -22
  176. package/types/igmodaudiochannel.d.tlua +0 -83
  177. package/types/imagecheckbox.d.tlua +1 -8
  178. package/types/imaterial.d.tlua +0 -53
  179. package/types/imesh.d.tlua +0 -11
  180. package/types/input.d.tlua +0 -47
  181. package/types/invalidateinternalentitycache.d.tlua +0 -1
  182. package/types/irestore.d.tlua +0 -19
  183. package/types/isave.d.tlua +0 -19
  184. package/types/itexture.d.tlua +0 -21
  185. package/types/ivideowriter.d.tlua +0 -11
  186. package/types/jit.d.tlua +9 -42
  187. package/types/killicon.d.tlua +0 -15
  188. package/types/label.d.tlua +0 -1
  189. package/types/language.d.tlua +0 -3
  190. package/types/list.d.tlua +0 -17
  191. package/types/makeballoon.d.tlua +0 -1
  192. package/types/markup.d.tlua +0 -5
  193. package/types/markupobject.d.tlua +0 -11
  194. package/types/material.d.tlua +0 -1
  195. package/types/math.d.tlua +200 -371
  196. package/types/matproxy.d.tlua +0 -7
  197. package/types/matselect.d.tlua +1 -22
  198. package/types/menu.d.tlua +0 -1
  199. package/types/menubar.d.tlua +0 -5
  200. package/types/mesh.d.tlua +0 -39
  201. package/types/modelimage.d.tlua +0 -1
  202. package/types/motionsensor.d.tlua +0 -21
  203. package/types/navmesh.d.tlua +0 -53
  204. package/types/net.d.tlua +0 -104
  205. package/types/nextbot.d.tlua +10 -83
  206. package/types/notification.d.tlua +0 -5
  207. package/types/npc.d.tlua +1 -364
  208. package/types/numpad.d.tlua +0 -15
  209. package/types/os.d.tlua +0 -8
  210. package/types/package.d.tlua +0 -1
  211. package/types/panel.d.tlua +2 -662
  212. package/types/panellist.d.tlua +0 -1
  213. package/types/pathfollower.d.tlua +0 -63
  214. package/types/permissions.d.tlua +0 -13
  215. package/types/physcollide.d.tlua +0 -7
  216. package/types/physenv.d.tlua +0 -23
  217. package/types/physobj.d.tlua +0 -157
  218. package/types/pixelvis_handle_t.d.tlua +0 -1
  219. package/types/player.d.tlua +11 -594
  220. package/types/player_manager.d.tlua +0 -27
  221. package/types/preseteditor.d.tlua +0 -1
  222. package/types/presets.d.tlua +0 -13
  223. package/types/projectedtexture.d.tlua +0 -97
  224. package/types/properties.d.tlua +0 -11
  225. package/types/propselect.d.tlua +1 -10
  226. package/types/radiobutton.d.tlua +0 -1
  227. package/types/render.d.tlua +0 -285
  228. package/types/resource.d.tlua +0 -5
  229. package/types/richtext.d.tlua +0 -1
  230. package/types/sandbox.d.tlua +1 -108
  231. package/types/saverestore.d.tlua +0 -25
  232. package/types/schedule.d.tlua +0 -13
  233. package/types/scripted_ents.d.tlua +0 -21
  234. package/types/search.d.tlua +0 -3
  235. package/types/serverlist.d.tlua +0 -15
  236. package/types/slidebar.d.tlua +0 -1
  237. package/types/slider.d.tlua +0 -1
  238. package/types/sound.d.tlua +0 -21
  239. package/types/spawnicon.d.tlua +1 -16
  240. package/types/spawnmenu.d.tlua +0 -48
  241. package/types/spawnmenucontentpanel.d.tlua +1 -10
  242. package/types/sql.d.tlua +0 -19
  243. package/types/stack.d.tlua +0 -11
  244. package/types/steamworks.d.tlua +0 -37
  245. package/types/string.d.tlua +0 -96
  246. package/types/structures.d.tlua +0 -7
  247. package/types/surface.d.tlua +0 -69
  248. package/types/surfaceinfo.d.tlua +0 -11
  249. package/types/system.d.tlua +0 -21
  250. package/types/table.d.tlua +0 -93
  251. package/types/task.d.tlua +0 -19
  252. package/types/team.d.tlua +0 -39
  253. package/types/textentry.d.tlua +0 -1
  254. package/types/tgaimage.d.tlua +0 -1
  255. package/types/timer.d.tlua +0 -29
  256. package/types/tool.d.tlua +1 -90
  257. package/types/ugcpublishwindow.d.tlua +1 -18
  258. package/types/umsg.d.tlua +0 -25
  259. package/types/undo.d.tlua +0 -21
  260. package/types/urllabel.d.tlua +0 -1
  261. package/types/usermessage.d.tlua +0 -5
  262. package/types/utf8.d.tlua +0 -15
  263. package/types/util.d.tlua +0 -185
  264. package/types/vector.d.tlua +0 -73
  265. package/types/vehicle.d.tlua +2 -102
  266. package/types/vgui.d.tlua +0 -33
  267. package/types/video.d.tlua +0 -1
  268. package/types/vmatrix.d.tlua +0 -71
  269. package/types/weapon.d.tlua +2 -168
  270. package/types/weapons.d.tlua +0 -12
  271. package/types/widgets.d.tlua +0 -3
  272. package/types/workshopfilebase.d.tlua +0 -11
@@ -5,19 +5,7 @@
5
5
  *
6
6
  * @source https://wiki.facepunch.com/gmod/NEXTBOT_Hooks
7
7
  */
8
- interface NEXTBOT extends NextBot {}
9
-
10
- /**
11
- * NextBots are a new system to create NPCs in the Source Engine, utilizing the more powerful [navmesh](https://wiki.facepunch.com/gmod/navmesh) system for navigation over the old node based system.
12
- *
13
- * This page lists all possible functions usable with NextBots.
14
- *
15
- * See [NextBot NPC Creation](https://wiki.facepunch.com/gmod/NextBot_NPC_Creation) for more information on how to create NextBot NPCs.
16
- * @source https://wiki.facepunch.com/gmod/NextBot
17
- */
18
- interface NextBot extends Entity {}
19
-
20
- interface NEXTBOT {
8
+ interface NEXTBOT extends NextBot {
21
9
  /**
22
10
  * Called to initialize the behaviour.
23
11
  *
@@ -30,9 +18,7 @@ interface NEXTBOT {
30
18
  * @source https://wiki.facepunch.com/gmod/NEXTBOT:BehaveStart
31
19
  */
32
20
  BehaveStart(self: NEXTBOT): void;
33
- }
34
21
 
35
- interface NEXTBOT {
36
22
  /**
37
23
  * Called to update the bot's behaviour.
38
24
  *
@@ -41,27 +27,21 @@ interface NEXTBOT {
41
27
  * @source https://wiki.facepunch.com/gmod/NEXTBOT:BehaveUpdate
42
28
  */
43
29
  BehaveUpdate(self: NEXTBOT, interval: number): void;
44
- }
45
30
 
46
- interface NEXTBOT {
47
31
  /**
48
32
  * Called to update the bot's animation.
49
33
  * @realm server
50
34
  * @source https://wiki.facepunch.com/gmod/NEXTBOT:BodyUpdate
51
35
  */
52
36
  BodyUpdate(self: NEXTBOT): void;
53
- }
54
37
 
55
- interface NEXTBOT {
56
38
  /**
57
39
  * Called when the nextbot touches another entity.
58
40
  * @realm server
59
41
  * @source https://wiki.facepunch.com/gmod/NEXTBOT:OnContact
60
42
  */
61
43
  OnContact(self: NEXTBOT, ent: Entity): void;
62
- }
63
44
 
64
- interface NEXTBOT {
65
45
  /**
66
46
  * Called when the nextbot NPC sees another Nextbot NPC or a Player.
67
47
  * **NOTE**: This hook will only run after [NextBot:SetFOV](https://wiki.facepunch.com/gmod/NextBot:SetFOV) or other vision related function is called on the nextbot. See [NextBot:IsAbleToSee](https://wiki.facepunch.com/gmod/NextBot:IsAbleToSee) for more details.
@@ -71,9 +51,7 @@ interface NEXTBOT {
71
51
  * @source https://wiki.facepunch.com/gmod/NEXTBOT:OnEntitySight
72
52
  */
73
53
  OnEntitySight(self: NEXTBOT, ent: Entity): void;
74
- }
75
54
 
76
- interface NEXTBOT {
77
55
  /**
78
56
  * Called when the nextbot NPC loses sight of another Nextbot NPC or a Player.
79
57
  * **NOTE**: This hook will only run after [NextBot:SetFOV](https://wiki.facepunch.com/gmod/NextBot:SetFOV) or other vision related function is called on the nextbot. See [NextBot:IsAbleToSee](https://wiki.facepunch.com/gmod/NextBot:IsAbleToSee) for more details.
@@ -83,90 +61,70 @@ interface NEXTBOT {
83
61
  * @source https://wiki.facepunch.com/gmod/NEXTBOT:OnEntitySightLost
84
62
  */
85
63
  OnEntitySightLost(self: NEXTBOT, ent: Entity): void;
86
- }
87
64
 
88
- interface NEXTBOT {
89
65
  /**
90
66
  * Called when the bot is ignited.
91
67
  * @realm server
92
68
  * @source https://wiki.facepunch.com/gmod/NEXTBOT:OnIgnite
93
69
  */
94
70
  OnIgnite(self: NEXTBOT): void;
95
- }
96
71
 
97
- interface NEXTBOT {
98
72
  /**
99
73
  * Called when the bot gets hurt. This is a good place to play hurt sounds or voice lines.
100
74
  * @realm server
101
75
  * @source https://wiki.facepunch.com/gmod/NEXTBOT:OnInjured
102
76
  */
103
77
  OnInjured(self: NEXTBOT, info: CTakeDamageInfo): void;
104
- }
105
78
 
106
- interface NEXTBOT {
107
79
  /**
108
80
  * Called when the bot gets killed.
109
81
  * @realm server
110
82
  * @source https://wiki.facepunch.com/gmod/NEXTBOT:OnKilled
111
83
  */
112
84
  OnKilled(self: NEXTBOT, info: CTakeDamageInfo): void;
113
- }
114
85
 
115
- interface NEXTBOT {
116
86
  /**
117
87
  * Called when the bot's feet return to the ground.
118
88
  * @realm server
119
89
  * @source https://wiki.facepunch.com/gmod/NEXTBOT:OnLandOnGround
120
90
  */
121
91
  OnLandOnGround(self: NEXTBOT, ent: Entity): void;
122
- }
123
92
 
124
- interface NEXTBOT {
125
93
  /**
126
94
  * Called when the bot's feet leave the ground - for whatever reason.
127
95
  * @realm server
128
96
  * @source https://wiki.facepunch.com/gmod/NEXTBOT:OnLeaveGround
129
97
  */
130
98
  OnLeaveGround(self: NEXTBOT, ent: Entity): void;
131
- }
132
99
 
133
- interface NEXTBOT {
134
100
  /**
135
101
  * Called when the nextbot enters a new navigation area.
136
102
  * @realm server
137
103
  * @source https://wiki.facepunch.com/gmod/NEXTBOT:OnNavAreaChanged
138
104
  */
139
105
  OnNavAreaChanged(self: NEXTBOT, old: CNavArea, _new: CNavArea): void;
140
- }
141
106
 
142
- interface NEXTBOT {
143
107
  /**
144
108
  * Called when someone else or something else has been killed.
145
109
  * @realm server
146
110
  * @source https://wiki.facepunch.com/gmod/NEXTBOT:OnOtherKilled
147
111
  */
148
112
  OnOtherKilled(self: NEXTBOT, victim: Entity, info: CTakeDamageInfo): void;
149
- }
150
113
 
151
- interface NEXTBOT {
152
114
  /**
153
115
  * Called when the bot thinks it is stuck.
154
116
  * @realm server
155
117
  * @source https://wiki.facepunch.com/gmod/NEXTBOT:OnStuck
156
118
  */
157
119
  OnStuck(self: NEXTBOT): void;
158
- }
159
120
 
160
- interface NEXTBOT {
161
121
  /**
162
122
  * Called when the bot thinks it is un-stuck.
163
123
  * @realm server
164
124
  * @source https://wiki.facepunch.com/gmod/NEXTBOT:OnUnStuck
165
125
  */
166
126
  OnUnStuck(self: NEXTBOT): void;
167
- }
168
127
 
169
- interface NEXTBOT {
170
128
  /**
171
129
  * A hook called to process nextbot logic.
172
130
  *
@@ -178,16 +136,22 @@ interface NEXTBOT {
178
136
  RunBehaviour(self: NEXTBOT): void;
179
137
  }
180
138
 
181
- interface NextBot {
139
+ /**
140
+ * NextBots are a new system to create NPCs in the Source Engine, utilizing the more powerful [navmesh](https://wiki.facepunch.com/gmod/navmesh) system for navigation over the old node based system.
141
+ *
142
+ * This page lists all possible functions usable with NextBots.
143
+ *
144
+ * See [NextBot NPC Creation](https://wiki.facepunch.com/gmod/NextBot_NPC_Creation) for more information on how to create NextBot NPCs.
145
+ * @source https://wiki.facepunch.com/gmod/NextBot
146
+ */
147
+ interface NextBot extends Entity {
182
148
  /**
183
149
  * Become a ragdoll and remove the entity.
184
150
  * @realm server
185
151
  * @source https://wiki.facepunch.com/gmod/NextBot:BecomeRagdoll
186
152
  */
187
153
  BecomeRagdoll(self: NextBot, info: CTakeDamageInfo): Entity;
188
- }
189
154
 
190
- interface NextBot {
191
155
  /**
192
156
  * Should only be called in [NEXTBOT:BodyUpdate](https://wiki.facepunch.com/gmod/NEXTBOT:BodyUpdate). This sets the `move_x` and `move_y` pose parameters of the bot to fit how they're currently moving, sets the animation speed ([Entity:GetPlaybackRate](https://wiki.facepunch.com/gmod/Entity:GetPlaybackRate)) to suit the ground speed, and calls [Entity:FrameAdvance](https://wiki.facepunch.com/gmod/Entity:FrameAdvance).
193
157
  *
@@ -197,72 +161,56 @@ interface NextBot {
197
161
  * @source https://wiki.facepunch.com/gmod/NextBot:BodyMoveXY
198
162
  */
199
163
  BodyMoveXY(self: NextBot): void;
200
- }
201
164
 
202
- interface NextBot {
203
165
  /**
204
166
  * Clears this bot's last known area. See [NextBot:GetLastKnownArea](https://wiki.facepunch.com/gmod/NextBot:GetLastKnownArea).
205
167
  * @realm server
206
168
  * @source https://wiki.facepunch.com/gmod/NextBot:ClearLastKnownArea
207
169
  */
208
170
  ClearLastKnownArea(self: NextBot): void;
209
- }
210
171
 
211
- interface NextBot {
212
172
  /**
213
173
  * Like [NextBot:FindSpots](https://wiki.facepunch.com/gmod/NextBot:FindSpots) but only returns a vector.
214
174
  * @realm server
215
175
  * @source https://wiki.facepunch.com/gmod/NextBot:FindSpot
216
176
  */
217
177
  FindSpot(self: NextBot, type: string, options: table): Vector;
218
- }
219
178
 
220
- interface NextBot {
221
179
  /**
222
180
  * Returns a table of hiding spots.
223
181
  * @realm server
224
182
  * @source https://wiki.facepunch.com/gmod/NextBot:FindSpots
225
183
  */
226
184
  FindSpots(self: NextBot, specs: table): table;
227
- }
228
185
 
229
- interface NextBot {
230
186
  /**
231
187
  * Returns the currently running activity
232
188
  * @realm server
233
189
  * @source https://wiki.facepunch.com/gmod/NextBot:GetActivity
234
190
  */
235
191
  GetActivity(self: NextBot): number;
236
- }
237
192
 
238
- interface NextBot {
239
193
  /**
240
194
  * Returns the Field of View of the Nextbot NPC, used for its vision functionality, such as [NextBot:IsAbleToSee](https://wiki.facepunch.com/gmod/NextBot:IsAbleToSee).
241
195
  * @realm server
242
196
  * @source https://wiki.facepunch.com/gmod/NextBot:GetFOV
243
197
  */
244
198
  GetFOV(self: NextBot): number;
245
- }
246
199
 
247
- interface NextBot {
248
200
  /**
249
201
  * Returns this bots last known area. See also [NextBot:ClearLastKnownArea](https://wiki.facepunch.com/gmod/NextBot:ClearLastKnownArea).
250
202
  * @realm server
251
203
  * @source https://wiki.facepunch.com/gmod/NextBot:GetLastKnownArea
252
204
  */
253
205
  GetLastKnownArea(self: NextBot): CNavArea;
254
- }
255
206
 
256
- interface NextBot {
257
207
  /**
258
208
  * Returns the maximum range the nextbot can see other nextbots/players at. See [NextBot:IsAbleToSee](https://wiki.facepunch.com/gmod/NextBot:IsAbleToSee).
259
209
  * @realm server
260
210
  * @source https://wiki.facepunch.com/gmod/NextBot:GetMaxVisionRange
261
211
  */
262
212
  GetMaxVisionRange(self: NextBot): number;
263
- }
264
213
 
265
- interface NextBot {
266
214
  /**
267
215
  * Returns squared distance to an entity or a position.
268
216
  *
@@ -272,9 +220,7 @@ interface NextBot {
272
220
  * @source https://wiki.facepunch.com/gmod/NextBot:GetRangeSquaredTo
273
221
  */
274
222
  GetRangeSquaredTo(self: NextBot, to: Vector): number;
275
- }
276
223
 
277
- interface NextBot {
278
224
  /**
279
225
  * Returns the distance to an entity or position.
280
226
  *
@@ -284,18 +230,14 @@ interface NextBot {
284
230
  * @source https://wiki.facepunch.com/gmod/NextBot:GetRangeTo
285
231
  */
286
232
  GetRangeTo(self: NextBot, to: Vector): number;
287
- }
288
233
 
289
- interface NextBot {
290
234
  /**
291
235
  * Returns the solid mask for given NextBot.
292
236
  * @realm server
293
237
  * @source https://wiki.facepunch.com/gmod/NextBot:GetSolidMask
294
238
  */
295
239
  GetSolidMask(self: NextBot): number;
296
- }
297
240
 
298
- interface NextBot {
299
241
  /**
300
242
  * Called from Lua when the NPC is stuck. This should only be called from the behaviour coroutine - so if you want to override this function and do something special that yields - then go for it.
301
243
  *
@@ -305,9 +247,7 @@ interface NextBot {
305
247
  * @source https://wiki.facepunch.com/gmod/NextBot:HandleStuck
306
248
  */
307
249
  HandleStuck(self: NextBot): void;
308
- }
309
250
 
310
- interface NextBot {
311
251
  /**
312
252
  * Returns if the Nextbot NPC can see the give entity or not.
313
253
  *
@@ -317,45 +257,35 @@ interface NextBot {
317
257
  * @source https://wiki.facepunch.com/gmod/NextBot:IsAbleToSee
318
258
  */
319
259
  IsAbleToSee(self: NextBot, ent: Entity, useFOV?: number): boolean;
320
- }
321
260
 
322
- interface NextBot {
323
261
  /**
324
262
  * To be called in the behaviour coroutine only! Will yield until the bot has reached the goal or is stuck
325
263
  * @realm server
326
264
  * @source https://wiki.facepunch.com/gmod/NextBot:MoveToPos
327
265
  */
328
266
  MoveToPos(self: NextBot, pos: Vector, options: table): string;
329
- }
330
267
 
331
- interface NextBot {
332
268
  /**
333
269
  * To be called in the behaviour coroutine only! Plays an animation sequence and waits for it to end before returning.
334
270
  * @realm server
335
271
  * @source https://wiki.facepunch.com/gmod/NextBot:PlaySequenceAndWait
336
272
  */
337
273
  PlaySequenceAndWait(self: NextBot, name: string, speed?: number): void;
338
- }
339
274
 
340
- interface NextBot {
341
275
  /**
342
276
  * Sets the Field of View for the Nextbot NPC, used for its vision functionality, such as [NextBot:IsAbleToSee](https://wiki.facepunch.com/gmod/NextBot:IsAbleToSee).
343
277
  * @realm server
344
278
  * @source https://wiki.facepunch.com/gmod/NextBot:SetFOV
345
279
  */
346
280
  SetFOV(self: NextBot, fov: number): void;
347
- }
348
281
 
349
- interface NextBot {
350
282
  /**
351
283
  * Sets the maximum range the nextbot can see other nextbots/players at. See [NextBot:IsAbleToSee](https://wiki.facepunch.com/gmod/NextBot:IsAbleToSee).
352
284
  * @realm server
353
285
  * @source https://wiki.facepunch.com/gmod/NextBot:SetMaxVisionRange
354
286
  */
355
287
  SetMaxVisionRange(self: NextBot, range: number): void;
356
- }
357
288
 
358
- interface NextBot {
359
289
  /**
360
290
  * Sets the solid mask for given NextBot.
361
291
  *
@@ -365,9 +295,7 @@ interface NextBot {
365
295
  * @source https://wiki.facepunch.com/gmod/NextBot:SetSolidMask
366
296
  */
367
297
  SetSolidMask(self: NextBot, mask: number): void;
368
- }
369
298
 
370
- interface NextBot {
371
299
  /**
372
300
  * Start doing an activity (animation).
373
301
  *
@@ -377,4 +305,3 @@ interface NextBot {
377
305
  */
378
306
  StartActivity(self: NextBot, activity: number): void;
379
307
  }
380
-
@@ -13,18 +13,14 @@ interface NotificationLib {
13
13
  * @source https://wiki.facepunch.com/gmod/notification.AddLegacy
14
14
  */
15
15
  AddLegacy(text: string, type: number, length: number): void;
16
- }
17
16
 
18
- interface NotificationLib {
19
17
  /**
20
18
  * Adds a notification with an animated progress bar.
21
19
  * @realm client
22
20
  * @source https://wiki.facepunch.com/gmod/notification.AddProgress
23
21
  */
24
22
  AddProgress(id: any, strText: string, frac?: number): void;
25
- }
26
23
 
27
- interface NotificationLib {
28
24
  /**
29
25
  * Removes the notification after 0.8 seconds.
30
26
  * @realm client
@@ -32,4 +28,3 @@ interface NotificationLib {
32
28
  */
33
29
  Kill(uid: any): void;
34
30
  }
35
-