@tlua/gmod 1.0.4 → 1.0.5

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