@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
@@ -7,37 +7,28 @@
7
7
  *
8
8
  * @source https://wiki.facepunch.com/gmod/Weapon
9
9
  */
10
- interface Weapon extends Entity {}
11
- interface WEAPON extends Weapon {}
12
-
13
- interface Weapon {
10
+ interface Weapon extends Entity {
14
11
  /**
15
12
  * Allows you to adjust the weapon's mouse sensitivity. This hook only works if you haven't overridden [GM:AdjustMouseSensitivity](https://wiki.facepunch.com/gmod/GM:AdjustMouseSensitivity).
16
13
  * @realm client
17
14
  * @source https://wiki.facepunch.com/gmod/WEAPON:AdjustMouseSensitivity
18
15
  */
19
16
  AdjustMouseSensitivity(self: Weapon, defaultSensitivity: number, localFOV: number, defaultFOV: number): number;
20
- }
21
17
 
22
- interface Weapon {
23
18
  /**
24
19
  * Returns how much of primary ammo the player has.
25
20
  * @realm shared
26
21
  * @source https://wiki.facepunch.com/gmod/WEAPON:Ammo1
27
22
  */
28
23
  Ammo1(self: Weapon): number;
29
- }
30
24
 
31
- interface Weapon {
32
25
  /**
33
26
  * Returns how much of secondary ammo the player has.
34
27
  * @realm shared
35
28
  * @source https://wiki.facepunch.com/gmod/WEAPON:Ammo2
36
29
  */
37
30
  Ammo2(self: Weapon): number;
38
- }
39
31
 
40
- interface Weapon {
41
32
  /**
42
33
  * Allows you to adjust player view while this weapon in use.
43
34
  *
@@ -47,45 +38,35 @@ interface Weapon {
47
38
  * @source https://wiki.facepunch.com/gmod/WEAPON:CalcView
48
39
  */
49
40
  CalcView(self: Weapon, ply: Player, pos: Vector, ang: Angle, fov: number): (Vector, Angle, number);
50
- }
51
41
 
52
- interface Weapon {
53
42
  /**
54
43
  * Allows overriding the position and angle of the viewmodel. This hook only works if you haven't overridden [GM:CalcViewModelView](https://wiki.facepunch.com/gmod/GM:CalcViewModelView).
55
44
  * @realm client
56
45
  * @source https://wiki.facepunch.com/gmod/WEAPON:CalcViewModelView
57
46
  */
58
47
  CalcViewModelView(self: Weapon, ViewModel: Entity, OldEyePos: Vector, OldEyeAng: Angle, EyePos: Vector, EyeAng: Angle): (Vector, Angle);
59
- }
60
48
 
61
- interface Weapon {
62
49
  /**
63
50
  * Called when a Citizen NPC is looking around to a (better) weapon to pickup.
64
51
  * @realm server
65
52
  * @source https://wiki.facepunch.com/gmod/WEAPON:CanBePickedUpByNPCs
66
53
  */
67
54
  CanBePickedUpByNPCs(self: Weapon): boolean;
68
- }
69
55
 
70
- interface Weapon {
71
56
  /**
72
57
  * Helper function for checking for no ammo.
73
58
  * @realm shared
74
59
  * @source https://wiki.facepunch.com/gmod/WEAPON:CanPrimaryAttack
75
60
  */
76
61
  CanPrimaryAttack(self: Weapon): boolean;
77
- }
78
62
 
79
- interface Weapon {
80
63
  /**
81
64
  * Helper function for checking for no ammo.
82
65
  * @realm shared
83
66
  * @source https://wiki.facepunch.com/gmod/WEAPON:CanSecondaryAttack
84
67
  */
85
68
  CanSecondaryAttack(self: Weapon): boolean;
86
- }
87
69
 
88
- interface Weapon {
89
70
  /**
90
71
  * Allows you to use any numbers you want for the ammo display on the HUD.
91
72
  *
@@ -95,9 +76,7 @@ interface Weapon {
95
76
  * @source https://wiki.facepunch.com/gmod/WEAPON:CustomAmmoDisplay
96
77
  */
97
78
  CustomAmmoDisplay(self: Weapon): table;
98
- }
99
79
 
100
- interface Weapon {
101
80
  /**
102
81
  * Called when player has just switched to this weapon.
103
82
  *
@@ -108,9 +87,7 @@ interface Weapon {
108
87
  * @source https://wiki.facepunch.com/gmod/WEAPON:Deploy
109
88
  */
110
89
  Deploy(self: Weapon): boolean;
111
- }
112
90
 
113
- interface Weapon {
114
91
  /**
115
92
  * Called when the crosshair is about to get drawn, and allows you to override it.
116
93
  *
@@ -120,9 +97,7 @@ interface Weapon {
120
97
  * @source https://wiki.facepunch.com/gmod/WEAPON:DoDrawCrosshair
121
98
  */
122
99
  DoDrawCrosshair(self: Weapon, x: number, y: number): boolean;
123
- }
124
100
 
125
- interface Weapon {
126
101
  /**
127
102
  * This hook allows you to draw on screen while this weapon is in use.
128
103
  *
@@ -132,27 +107,21 @@ interface Weapon {
132
107
  * @source https://wiki.facepunch.com/gmod/WEAPON:DrawHUD
133
108
  */
134
109
  DrawHUD(self: Weapon): void;
135
- }
136
110
 
137
- interface Weapon {
138
111
  /**
139
112
  * This hook allows you to draw on screen while this weapon is in use. This hook is called **before** [WEAPON:DrawHUD](https://wiki.facepunch.com/gmod/WEAPON:DrawHUD) and is equivalent of [GM:HUDPaintBackground](https://wiki.facepunch.com/gmod/GM:HUDPaintBackground).
140
113
  * @realm client
141
114
  * @source https://wiki.facepunch.com/gmod/WEAPON:DrawHUDBackground
142
115
  */
143
116
  DrawHUDBackground(self: Weapon): void;
144
- }
145
117
 
146
- interface Weapon {
147
118
  /**
148
119
  * This hook draws the selection icon in the weapon selection menu.
149
120
  * @realm client
150
121
  * @source https://wiki.facepunch.com/gmod/WEAPON:DrawWeaponSelection
151
122
  */
152
123
  DrawWeaponSelection(self: Weapon, x: number, y: number, width: number, height: number, alpha: number): void;
153
- }
154
124
 
155
- interface Weapon {
156
125
  /**
157
126
  * Called when we are about to draw the opaque parts of the weapon's world model.
158
127
  *
@@ -165,9 +134,7 @@ interface Weapon {
165
134
  * @source https://wiki.facepunch.com/gmod/WEAPON:DrawWorldModel
166
135
  */
167
136
  DrawWorldModel(self: Weapon, flags: number): void;
168
- }
169
137
 
170
- interface Weapon {
171
138
  /**
172
139
  * Called when we are about to draw the translucent parts of the weapon's world model.
173
140
  *
@@ -180,18 +147,14 @@ interface Weapon {
180
147
  * @source https://wiki.facepunch.com/gmod/WEAPON:DrawWorldModelTranslucent
181
148
  */
182
149
  DrawWorldModelTranslucent(self: Weapon, flags: number): void;
183
- }
184
150
 
185
- interface Weapon {
186
151
  /**
187
152
  * Called when a player or NPC has picked the weapon up.
188
153
  * @realm server
189
154
  * @source https://wiki.facepunch.com/gmod/WEAPON:Equip
190
155
  */
191
156
  Equip(self: Weapon, NewOwner: Entity): void;
192
- }
193
157
 
194
- interface Weapon {
195
158
  /**
196
159
  * The player has picked up the weapon and has taken the ammo from it.
197
160
  * The weapon will be removed immediately after this call.
@@ -200,9 +163,7 @@ interface Weapon {
200
163
  * @source https://wiki.facepunch.com/gmod/WEAPON:EquipAmmo
201
164
  */
202
165
  EquipAmmo(self: Weapon, ply: Player): void;
203
- }
204
166
 
205
- interface Weapon {
206
167
  /**
207
168
  * This hook allows you to freeze players screen.
208
169
  * **NOTE**: Player will still be able to move or shoot
@@ -212,9 +173,7 @@ interface Weapon {
212
173
  * @source https://wiki.facepunch.com/gmod/WEAPON:FreezeMovement
213
174
  */
214
175
  FreezeMovement(self: Weapon): boolean;
215
- }
216
176
 
217
- interface Weapon {
218
177
  /**
219
178
  * This hook is for NPCs, you return what they should try to do with it.
220
179
  * **WARNING**: Calling [NPC:CapabilitiesGet](https://wiki.facepunch.com/gmod/NPC:CapabilitiesGet) in this hook on the same entity can cause infinite loops since that function adds the result of [WEAPON:GetCapabilities](https://wiki.facepunch.com/gmod/WEAPON:GetCapabilities) on top of the return value.
@@ -224,9 +183,7 @@ interface Weapon {
224
183
  * @source https://wiki.facepunch.com/gmod/WEAPON:GetCapabilities
225
184
  */
226
185
  GetCapabilities(self: Weapon): CAP;
227
- }
228
186
 
229
- interface Weapon {
230
187
  /**
231
188
  * Called when the weapon is used by NPCs to determine how accurate the bullets fired should be.
232
189
  *
@@ -236,54 +193,42 @@ interface Weapon {
236
193
  * @source https://wiki.facepunch.com/gmod/WEAPON:GetNPCBulletSpread
237
194
  */
238
195
  GetNPCBulletSpread(self: Weapon, proficiency: number): number;
239
- }
240
196
 
241
- interface Weapon {
242
197
  /**
243
198
  * Called when the weapon is used by NPCs to tell the NPC how to use this weapon. Controls how long the NPC can or should shoot continuously.
244
199
  * @realm server
245
200
  * @source https://wiki.facepunch.com/gmod/WEAPON:GetNPCBurstSettings
246
201
  */
247
202
  GetNPCBurstSettings(self: Weapon): (number, number, number);
248
- }
249
203
 
250
- interface Weapon {
251
204
  /**
252
205
  * Called when the weapon is used by NPCs to tell the NPC how to use this weapon. Controls amount of time the NPC can rest (not shoot) between bursts.
253
206
  * @realm server
254
207
  * @source https://wiki.facepunch.com/gmod/WEAPON:GetNPCRestTimes
255
208
  */
256
209
  GetNPCRestTimes(self: Weapon): (number, number);
257
- }
258
210
 
259
- interface Weapon {
260
211
  /**
261
212
  * Allows you to override where the tracer effect comes from. ( Visual bullets )
262
213
  * @realm client
263
214
  * @source https://wiki.facepunch.com/gmod/WEAPON:GetTracerOrigin
264
215
  */
265
216
  GetTracerOrigin(self: Weapon): Vector;
266
- }
267
217
 
268
- interface Weapon {
269
218
  /**
270
219
  * This hook allows you to adjust view model position and angles.
271
220
  * @realm client
272
221
  * @source https://wiki.facepunch.com/gmod/WEAPON:GetViewModelPosition
273
222
  */
274
223
  GetViewModelPosition(self: Weapon, EyePos: Vector, EyeAng: Angle): (Vector, Angle);
275
- }
276
224
 
277
- interface Weapon {
278
225
  /**
279
226
  * This hook determines which parts of the HUD to draw.
280
227
  * @realm client
281
228
  * @source https://wiki.facepunch.com/gmod/WEAPON:HUDShouldDraw
282
229
  */
283
230
  HUDShouldDraw(self: Weapon, element: string): boolean;
284
- }
285
231
 
286
- interface Weapon {
287
232
  /**
288
233
  * Called when the weapon tries to holster. Return true to allow the weapon to
289
234
  * holster. This has no effect if the weapon was switched away from using
@@ -293,10 +238,7 @@ interface Weapon {
293
238
  * @source https://wiki.facepunch.com/gmod/WEAPON:Holster
294
239
  */
295
240
  Holster(self: Weapon, weapon?: Weapon): boolean;
296
- }
297
-
298
241
 
299
- interface Weapon {
300
242
  /**
301
243
  * Called internally during `TASK_RANGE_ATTACK1 --> OnRangeAttack1`. This allows you to separate your SWEPs primary firing function from players and NPCs.
302
244
  *
@@ -309,9 +251,7 @@ interface Weapon {
309
251
  * @source https://wiki.facepunch.com/gmod/WEAPON:NPCShoot_Primary
310
252
  */
311
253
  NPCShoot_Primary(self: Weapon, shootPos?: Vector, shootDir?: Vector): void;
312
- }
313
254
 
314
- interface Weapon {
315
255
  /**
316
256
  * A utility function to seperate your SWEPs secondary firing from players.
317
257
  *
@@ -322,9 +262,7 @@ interface Weapon {
322
262
  * @source https://wiki.facepunch.com/gmod/WEAPON:NPCShoot_Secondary
323
263
  */
324
264
  NPCShoot_Secondary(self: Weapon, shootPos?: Vector, shootDir?: Vector): void;
325
- }
326
265
 
327
- interface Weapon {
328
266
  /**
329
267
  * Called when weapon is dropped by [Player:DropWeapon](https://wiki.facepunch.com/gmod/Player:DropWeapon).
330
268
  *
@@ -334,9 +272,7 @@ interface Weapon {
334
272
  * @source https://wiki.facepunch.com/gmod/WEAPON:OnDrop
335
273
  */
336
274
  OnDrop(self: Weapon, owner: Entity): void;
337
- }
338
275
 
339
- interface Weapon {
340
276
  /**
341
277
  * Called when weapon is dropped or picked up by a new player. This can be called clientside for all players on the server if the weapon has no owner and is picked up.
342
278
  *
@@ -346,9 +282,7 @@ interface Weapon {
346
282
  * @source https://wiki.facepunch.com/gmod/WEAPON:OwnerChanged
347
283
  */
348
284
  OwnerChanged(self: Weapon): void;
349
- }
350
285
 
351
- interface Weapon {
352
286
  /**
353
287
  * Called after the view model has been drawn while the weapon in use.
354
288
  *
@@ -365,9 +299,7 @@ interface Weapon {
365
299
  * @source https://wiki.facepunch.com/gmod/WEAPON:PostDrawViewModel
366
300
  */
367
301
  PostDrawViewModel(self: Weapon, vm: Entity, weapon: Weapon, ply: Player, flags: number): void;
368
- }
369
302
 
370
- interface Weapon {
371
303
  /**
372
304
  * Allows you to modify viewmodel while the weapon in use before it is drawn.
373
305
  *
@@ -381,9 +313,7 @@ interface Weapon {
381
313
  * @source https://wiki.facepunch.com/gmod/WEAPON:PreDrawViewModel
382
314
  */
383
315
  PreDrawViewModel(self: Weapon, vm: Entity, weapon: Weapon, ply: Player, flags: number): boolean;
384
- }
385
316
 
386
- interface Weapon {
387
317
  /**
388
318
  * Called when primary attack button ( +attack ) is pressed.
389
319
  *
@@ -402,27 +332,21 @@ interface Weapon {
402
332
  * @source https://wiki.facepunch.com/gmod/WEAPON:PrimaryAttack
403
333
  */
404
334
  PrimaryAttack(self: Weapon): void;
405
- }
406
335
 
407
- interface Weapon {
408
336
  /**
409
337
  * A convenience function that draws the weapon info box, used in [WEAPON:DrawWeaponSelection](https://wiki.facepunch.com/gmod/WEAPON:DrawWeaponSelection).
410
338
  * @realm client
411
339
  * @source https://wiki.facepunch.com/gmod/WEAPON:PrintWeaponInfo
412
340
  */
413
341
  PrintWeaponInfo(self: Weapon, x: number, y: number, alpha: number): void;
414
- }
415
342
 
416
- interface Weapon {
417
343
  /**
418
344
  * Called when the reload key ( +reload ) is pressed.
419
345
  * @realm shared
420
346
  * @source https://wiki.facepunch.com/gmod/WEAPON:Reload
421
347
  */
422
348
  Reload(self: Weapon): void;
423
- }
424
349
 
425
- interface Weapon {
426
350
  /**
427
351
  * Called every frame just before [GM:RenderScene](https://wiki.facepunch.com/gmod/GM:RenderScene).
428
352
  *
@@ -436,9 +360,7 @@ interface Weapon {
436
360
  * @source https://wiki.facepunch.com/gmod/WEAPON:RenderScreen
437
361
  */
438
362
  RenderScreen(self: Weapon): void;
439
- }
440
363
 
441
- interface Weapon {
442
364
  /**
443
365
  * Called when secondary attack button ( +attack2 ) is pressed.
444
366
  *
@@ -448,18 +370,14 @@ interface Weapon {
448
370
  * @source https://wiki.facepunch.com/gmod/WEAPON:SecondaryAttack
449
371
  */
450
372
  SecondaryAttack(self: Weapon): void;
451
- }
452
373
 
453
- interface Weapon {
454
374
  /**
455
375
  * Sets the weapon deploy speed. This value needs to match on client and server.
456
376
  * @realm shared
457
377
  * @source https://wiki.facepunch.com/gmod/WEAPON:SetDeploySpeed
458
378
  */
459
379
  SetDeploySpeed(self: Weapon, speed: number): void;
460
- }
461
380
 
462
- interface Weapon {
463
381
  /**
464
382
  * Sets the hold type of the weapon. This must be called on **both** the server and the client to work properly.
465
383
  *
@@ -470,36 +388,28 @@ interface Weapon {
470
388
  * @source https://wiki.facepunch.com/gmod/WEAPON:SetWeaponHoldType
471
389
  */
472
390
  SetWeaponHoldType(self: Weapon, name: string): void;
473
- }
474
391
 
475
- interface Weapon {
476
392
  /**
477
393
  * A convenient function to shoot bullets.
478
394
  * @realm shared
479
395
  * @source https://wiki.facepunch.com/gmod/WEAPON:ShootBullet
480
396
  */
481
397
  ShootBullet(self: Weapon, damage: number, num_bullets: number, aimcone: number, ammo_type?: string, force?: number, tracer?: number): void;
482
- }
483
398
 
484
- interface Weapon {
485
399
  /**
486
400
  * A convenience function to create shoot effects.
487
401
  * @realm shared
488
402
  * @source https://wiki.facepunch.com/gmod/WEAPON:ShootEffects
489
403
  */
490
404
  ShootEffects(self: Weapon): void;
491
- }
492
405
 
493
- interface Weapon {
494
406
  /**
495
407
  * Called to determine if the view model should be drawn or not.
496
408
  * @realm client
497
409
  * @source https://wiki.facepunch.com/gmod/WEAPON:ShouldDrawViewModel
498
410
  */
499
411
  ShouldDrawViewModel(self: Weapon): boolean;
500
- }
501
412
 
502
- interface Weapon {
503
413
  /**
504
414
  * Should this weapon be dropped when its owner dies?
505
415
  *
@@ -509,27 +419,21 @@ interface Weapon {
509
419
  * @source https://wiki.facepunch.com/gmod/WEAPON:ShouldDropOnDie
510
420
  */
511
421
  ShouldDropOnDie(self: Weapon): boolean;
512
- }
513
422
 
514
- interface Weapon {
515
423
  /**
516
424
  * A convenience function to remove primary ammo from clip.
517
425
  * @realm shared
518
426
  * @source https://wiki.facepunch.com/gmod/WEAPON:TakePrimaryAmmo
519
427
  */
520
428
  TakePrimaryAmmo(self: Weapon, amount: number): void;
521
- }
522
429
 
523
- interface Weapon {
524
430
  /**
525
431
  * A convenience function to remove secondary ammo from clip.
526
432
  * @realm shared
527
433
  * @source https://wiki.facepunch.com/gmod/WEAPON:TakeSecondaryAmmo
528
434
  */
529
435
  TakeSecondaryAmmo(self: Weapon, amount: number): void;
530
- }
531
436
 
532
- interface Weapon {
533
437
  /**
534
438
  * Alias of [Weapon:Think](https://wiki.facepunch.com/gmod/Weapon:Think).
535
439
  *
@@ -538,9 +442,7 @@ interface Weapon {
538
442
  * @deprecated Use Weapon:Think instead.
539
443
  */
540
444
  Tick(self: Weapon): void;
541
- }
542
445
 
543
- interface Weapon {
544
446
  /**
545
447
  * Allows to change players field of view while player holds the weapon.
546
448
  *
@@ -551,9 +453,7 @@ interface Weapon {
551
453
  * @source https://wiki.facepunch.com/gmod/WEAPON:TranslateFOV
552
454
  */
553
455
  TranslateFOV(self: Weapon, fov: number): number;
554
- }
555
456
 
556
- interface Weapon {
557
457
  /**
558
458
  * Called straight after the view model has been drawn. This is called before [GM:PostDrawViewModel](https://wiki.facepunch.com/gmod/GM:PostDrawViewModel) and [WEAPON:PostDrawViewModel](https://wiki.facepunch.com/gmod/WEAPON:PostDrawViewModel).
559
459
  *
@@ -567,27 +467,21 @@ interface Weapon {
567
467
  * @source https://wiki.facepunch.com/gmod/WEAPON:ViewModelDrawn
568
468
  */
569
469
  ViewModelDrawn(self: Weapon, ViewModel: Entity, flags: number): void;
570
- }
571
470
 
572
- interface Weapon {
573
471
  /**
574
472
  * Returns whether the weapon allows to being switched from when a better ( [Weapon:GetWeight](https://wiki.facepunch.com/gmod/Weapon:GetWeight) ) weapon is being picked up.
575
473
  * @realm shared
576
474
  * @source https://wiki.facepunch.com/gmod/Weapon:AllowsAutoSwitchFrom
577
475
  */
578
476
  AllowsAutoSwitchFrom(self: Weapon): boolean;
579
- }
580
477
 
581
- interface Weapon {
582
478
  /**
583
479
  * Returns whether the weapon allows to being switched to when a better ([Weapon:GetWeight](https://wiki.facepunch.com/gmod/Weapon:GetWeight)) weapon is being picked up.
584
480
  * @realm shared
585
481
  * @source https://wiki.facepunch.com/gmod/Weapon:AllowsAutoSwitchTo
586
482
  */
587
483
  AllowsAutoSwitchTo(self: Weapon): boolean;
588
- }
589
484
 
590
- interface Weapon {
591
485
  /**
592
486
  * Calls a SWEP function on client. Does nothing on client.
593
487
  *
@@ -598,9 +492,7 @@ interface Weapon {
598
492
  * @source https://wiki.facepunch.com/gmod/Weapon:CallOnClient
599
493
  */
600
494
  CallOnClient(self: Weapon, functionName: string, data?: string): void;
601
- }
602
495
 
603
- interface Weapon {
604
496
  /**
605
497
  * Returns how much primary ammo is in the magazine.
606
498
  * **NOTE**: This is not shared between clients and will instead return the maximum primary clip size.
@@ -610,9 +502,7 @@ interface Weapon {
610
502
  * @source https://wiki.facepunch.com/gmod/Weapon:Clip1
611
503
  */
612
504
  Clip1(self: Weapon): number;
613
- }
614
505
 
615
- interface Weapon {
616
506
  /**
617
507
  * Returns how much secondary ammo is in the magazine.
618
508
  * **NOTE**: This is not shared between clients and will instead return the maximum secondary clip size.
@@ -622,9 +512,7 @@ interface Weapon {
622
512
  * @source https://wiki.facepunch.com/gmod/Weapon:Clip2
623
513
  */
624
514
  Clip2(self: Weapon): number;
625
- }
626
515
 
627
- interface Weapon {
628
516
  /**
629
517
  * Forces the weapon to reload while playing given animation.
630
518
  * **NOTE**: This will stop the [Weapon:Think](https://wiki.facepunch.com/gmod/Weapon:Think) function from getting called while the weapon is reloading!
@@ -634,9 +522,7 @@ interface Weapon {
634
522
  * @source https://wiki.facepunch.com/gmod/Weapon:DefaultReload
635
523
  */
636
524
  DefaultReload(self: Weapon, act: number): boolean;
637
- }
638
525
 
639
- interface Weapon {
640
526
  /**
641
527
  * Returns the sequence enumeration number that the weapon is playing.
642
528
  *
@@ -646,72 +532,56 @@ interface Weapon {
646
532
  * @source https://wiki.facepunch.com/gmod/Weapon:GetActivity
647
533
  */
648
534
  GetActivity(self: Weapon): number;
649
- }
650
535
 
651
- interface Weapon {
652
536
  /**
653
537
  * Returns the weapon deploy speed, as set by [Weapon:SetDeploySpeed](https://wiki.facepunch.com/gmod/Weapon:SetDeploySpeed). If not previously set, the value will be polled from the `sv_defaultdeployspeed` [ConVar](https://wiki.facepunch.com/gmod/ConVar).
654
538
  * @realm shared
655
539
  * @source https://wiki.facepunch.com/gmod/Weapon:GetDeploySpeed
656
540
  */
657
541
  GetDeploySpeed(self: Weapon): number;
658
- }
659
542
 
660
- interface Weapon {
661
543
  /**
662
544
  * Returns the hold type of the weapon.
663
545
  * @realm shared
664
546
  * @source https://wiki.facepunch.com/gmod/Weapon:GetHoldType
665
547
  */
666
548
  GetHoldType(self: Weapon): string;
667
- }
668
549
 
669
- interface Weapon {
670
550
  /**
671
551
  * Returns maximum primary clip size
672
552
  * @realm shared
673
553
  * @source https://wiki.facepunch.com/gmod/Weapon:GetMaxClip1
674
554
  */
675
555
  GetMaxClip1(self: Weapon): number;
676
- }
677
556
 
678
- interface Weapon {
679
557
  /**
680
558
  * Returns maximum secondary clip size
681
559
  * @realm shared
682
560
  * @source https://wiki.facepunch.com/gmod/Weapon:GetMaxClip2
683
561
  */
684
562
  GetMaxClip2(self: Weapon): number;
685
- }
686
563
 
687
- interface Weapon {
688
564
  /**
689
565
  * Gets the next time the weapon can primary fire. ( Can call [WEAPON:PrimaryAttack](https://wiki.facepunch.com/gmod/WEAPON:PrimaryAttack) )
690
566
  * @realm shared
691
567
  * @source https://wiki.facepunch.com/gmod/Weapon:GetNextPrimaryFire
692
568
  */
693
569
  GetNextPrimaryFire(self: Weapon): number;
694
- }
695
570
 
696
- interface Weapon {
697
571
  /**
698
572
  * Gets the next time the weapon can secondary fire. ( Can call [WEAPON:SecondaryAttack](https://wiki.facepunch.com/gmod/WEAPON:SecondaryAttack) )
699
573
  * @realm shared
700
574
  * @source https://wiki.facepunch.com/gmod/Weapon:GetNextSecondaryFire
701
575
  */
702
576
  GetNextSecondaryFire(self: Weapon): number;
703
- }
704
577
 
705
- interface Weapon {
706
578
  /**
707
579
  * Gets the primary ammo type of the given weapon.
708
580
  * @realm shared
709
581
  * @source https://wiki.facepunch.com/gmod/Weapon:GetPrimaryAmmoType
710
582
  */
711
583
  GetPrimaryAmmoType(self: Weapon): number;
712
- }
713
584
 
714
- interface Weapon {
715
585
  /**
716
586
  * Returns the non-internal name of the weapon, that should be for displaying.
717
587
  *
@@ -724,18 +594,14 @@ interface Weapon {
724
594
  * @source https://wiki.facepunch.com/gmod/Weapon:GetPrintName
725
595
  */
726
596
  GetPrintName(self: Weapon): string;
727
- }
728
597
 
729
- interface Weapon {
730
598
  /**
731
599
  * Gets the ammo type of the given weapons secondary fire.
732
600
  * @realm shared
733
601
  * @source https://wiki.facepunch.com/gmod/Weapon:GetSecondaryAmmoType
734
602
  */
735
603
  GetSecondaryAmmoType(self: Weapon): number;
736
- }
737
604
 
738
- interface Weapon {
739
605
  /**
740
606
  * Returns the slot of the weapon.
741
607
  * **NOTE**: The slot numbers start from 0.
@@ -744,45 +610,35 @@ interface Weapon {
744
610
  * @source https://wiki.facepunch.com/gmod/Weapon:GetSlot
745
611
  */
746
612
  GetSlot(self: Weapon): number;
747
- }
748
613
 
749
- interface Weapon {
750
614
  /**
751
615
  * Returns slot position of the weapon
752
616
  * @realm shared
753
617
  * @source https://wiki.facepunch.com/gmod/Weapon:GetSlotPos
754
618
  */
755
619
  GetSlotPos(self: Weapon): number;
756
- }
757
620
 
758
- interface Weapon {
759
621
  /**
760
622
  * Returns the view model of the weapon.
761
623
  * @realm shared
762
624
  * @source https://wiki.facepunch.com/gmod/Weapon:GetWeaponViewModel
763
625
  */
764
626
  GetWeaponViewModel(self: Weapon): string;
765
- }
766
627
 
767
- interface Weapon {
768
628
  /**
769
629
  * Returns the world model of the weapon.
770
630
  * @realm shared
771
631
  * @source https://wiki.facepunch.com/gmod/Weapon:GetWeaponWorldModel
772
632
  */
773
633
  GetWeaponWorldModel(self: Weapon): string;
774
- }
775
634
 
776
- interface Weapon {
777
635
  /**
778
636
  * Returns the "weight" of the weapon, which is used when deciding which [Weapon](https://wiki.facepunch.com/gmod/Weapon) is better by the engine.
779
637
  * @realm shared
780
638
  * @source https://wiki.facepunch.com/gmod/Weapon:GetWeight
781
639
  */
782
640
  GetWeight(self: Weapon): number;
783
- }
784
641
 
785
- interface Weapon {
786
642
  /**
787
643
  * Returns whether the weapon has ammo left or not. It will return false when there's no ammo left in the magazine **and** when there's no reserve ammo left.
788
644
  *
@@ -793,45 +649,35 @@ interface Weapon {
793
649
  * @source https://wiki.facepunch.com/gmod/Weapon:HasAmmo
794
650
  */
795
651
  HasAmmo(self: Weapon): boolean;
796
- }
797
652
 
798
- interface Weapon {
799
653
  /**
800
654
  * Returns whenever the weapon is carried by the local player.
801
655
  * @realm client
802
656
  * @source https://wiki.facepunch.com/gmod/Weapon:IsCarriedByLocalPlayer
803
657
  */
804
658
  IsCarriedByLocalPlayer(self: Weapon): boolean;
805
- }
806
659
 
807
- interface Weapon {
808
660
  /**
809
661
  * Returns whether the weapon is visible. The term visibility is not exactly what gets checked here, first it checks if the owner is a player, then checks if the active view model has EF_NODRAW flag NOT set.
810
662
  * @realm shared
811
663
  * @source https://wiki.facepunch.com/gmod/Weapon:IsWeaponVisible
812
664
  */
813
665
  IsWeaponVisible(self: Weapon): boolean;
814
- }
815
666
 
816
- interface Weapon {
817
667
  /**
818
668
  * Returns the time since this weapon last fired a bullet with [Entity:FireBullets](https://wiki.facepunch.com/gmod/Entity:FireBullets) in seconds. It is not networked.
819
669
  * @realm shared
820
670
  * @source https://wiki.facepunch.com/gmod/Weapon:LastShootTime
821
671
  */
822
672
  LastShootTime(self: Weapon): number;
823
- }
824
673
 
825
- interface Weapon {
826
674
  /**
827
675
  * Forces weapon to play activity/animation.
828
676
  * @realm shared
829
677
  * @source https://wiki.facepunch.com/gmod/Weapon:SendWeaponAnim
830
678
  */
831
679
  SendWeaponAnim(self: Weapon, act: number): void;
832
- }
833
680
 
834
- interface Weapon {
835
681
  /**
836
682
  * Sets the activity the weapon is playing.
837
683
  *
@@ -841,27 +687,21 @@ interface Weapon {
841
687
  * @source https://wiki.facepunch.com/gmod/Weapon:SetActivity
842
688
  */
843
689
  SetActivity(self: Weapon, act: number): void;
844
- }
845
690
 
846
- interface Weapon {
847
691
  /**
848
692
  * Lets you change the number of bullets in the given weapons primary clip.
849
693
  * @realm shared
850
694
  * @source https://wiki.facepunch.com/gmod/Weapon:SetClip1
851
695
  */
852
696
  SetClip1(self: Weapon, ammo: number): void;
853
- }
854
697
 
855
- interface Weapon {
856
698
  /**
857
699
  * Lets you change the number of bullets in the given weapons secondary clip.
858
700
  * @realm shared
859
701
  * @source https://wiki.facepunch.com/gmod/Weapon:SetClip2
860
702
  */
861
703
  SetClip2(self: Weapon, ammo: number): void;
862
- }
863
704
 
864
- interface Weapon {
865
705
  /**
866
706
  * Sets the hold type of the weapon. This function also calls [WEAPON:SetWeaponHoldType](https://wiki.facepunch.com/gmod/WEAPON:SetWeaponHoldType) and properly networks it to all clients.
867
707
  *
@@ -874,9 +714,7 @@ interface Weapon {
874
714
  * @source https://wiki.facepunch.com/gmod/Weapon:SetHoldType
875
715
  */
876
716
  SetHoldType(self: Weapon, name: string): void;
877
- }
878
717
 
879
- interface Weapon {
880
718
  /**
881
719
  * Sets the time since this weapon last fired in seconds. Used in conjunction with [Weapon:LastShootTime](https://wiki.facepunch.com/gmod/Weapon:LastShootTime).
882
720
  *
@@ -886,9 +724,7 @@ interface Weapon {
886
724
  * @source https://wiki.facepunch.com/gmod/Weapon:SetLastShootTime
887
725
  */
888
726
  SetLastShootTime(self: Weapon, time?: number): void;
889
- }
890
727
 
891
- interface Weapon {
892
728
  /**
893
729
  * Sets when the weapon can fire again. Time should be based on [Global.CurTime](https://wiki.facepunch.com/gmod/Global.CurTime).
894
730
  *
@@ -900,9 +736,7 @@ interface Weapon {
900
736
  * @source https://wiki.facepunch.com/gmod/Weapon:SetNextPrimaryFire
901
737
  */
902
738
  SetNextPrimaryFire(self: Weapon, time: number): void;
903
- }
904
739
 
905
- interface Weapon {
906
740
  /**
907
741
  * Sets when the weapon can alt-fire again. Time should be based on [Global.CurTime](https://wiki.facepunch.com/gmod/Global.CurTime).
908
742
  * @realm shared
@@ -910,4 +744,4 @@ interface Weapon {
910
744
  */
911
745
  SetNextSecondaryFire(self: Weapon, time: number): void;
912
746
  }
913
-
747
+ interface WEAPON extends Weapon {}