@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.
- package/package.json +1 -1
- package/types/achievements.d.tlua +15 -45
- package/types/ai.d.tlua +5 -15
- package/types/angle.d.tlua +18 -54
- package/types/baseclass.d.tlua +2 -4
- package/types/bf_read.d.tlua +11 -32
- package/types/bit.d.tlua +11 -33
- package/types/cam.d.tlua +16 -48
- package/types/ceffectdata.d.tlua +32 -95
- package/types/chat.d.tlua +5 -15
- package/types/cleanup.d.tlua +7 -21
- package/types/cluaemitter.d.tlua +12 -35
- package/types/clualocomotion.d.tlua +40 -119
- package/types/cluaparticle.d.tlua +44 -131
- package/types/cmovedata.d.tlua +47 -140
- package/types/cnavarea.d.tlua +77 -230
- package/types/cnavladder.d.tlua +22 -65
- package/types/cnewparticleeffect.d.tlua +26 -77
- package/types/color.d.tlua +28 -84
- package/types/concommand.d.tlua +4 -12
- package/types/constraint.d.tlua +28 -84
- package/types/construct.d.tlua +1 -3
- package/types/contentheader.d.tlua +3 -6
- package/types/contenticon.d.tlua +9 -24
- package/types/contentsidebar.d.tlua +4 -9
- package/types/contextbase.d.tlua +4 -9
- package/types/controlpanel.d.tlua +18 -40
- package/types/controlpresets.d.tlua +13 -36
- package/types/convar.d.tlua +16 -47
- package/types/cookie.d.tlua +3 -9
- package/types/coroutine.d.tlua +7 -21
- package/types/crecipientfilter.d.tlua +16 -47
- package/types/csoundpatch.d.tlua +14 -41
- package/types/ctakedamageinfo.d.tlua +33 -98
- package/types/ctrlnumpad.d.tlua +6 -17
- package/types/cusercmd.d.tlua +27 -80
- package/types/cvars.d.tlua +6 -18
- package/types/dadjustablemodelpanel.d.tlua +7 -18
- package/types/dalphabar.d.tlua +3 -6
- package/types/dbinder.d.tlua +4 -9
- package/types/dbubblecontainer.d.tlua +2 -3
- package/types/dbutton.d.tlua +8 -21
- package/types/dcheckbox.d.tlua +5 -12
- package/types/dcheckboxlabel.d.tlua +9 -27
- package/types/dcollapsiblecategory.d.tlua +23 -66
- package/types/dcolorbutton.d.tlua +7 -18
- package/types/dcolorcombo.d.tlua +5 -12
- package/types/dcolorcube.d.tlua +13 -36
- package/types/dcolormixer.d.tlua +27 -78
- package/types/dcolorpalette.d.tlua +23 -66
- package/types/dcolumnsheet.d.tlua +5 -12
- package/types/dcombobox.d.tlua +17 -48
- package/types/ddragbase.d.tlua +13 -36
- package/types/ddrawer.d.tlua +8 -21
- package/types/debug.d.tlua +44 -76
- package/types/debugoverlay.d.tlua +11 -33
- package/types/dentityproperties.d.tlua +5 -12
- package/types/derma.d.tlua +10 -30
- package/types/dexpandbutton.d.tlua +3 -6
- package/types/dfilebrowser.d.tlua +20 -60
- package/types/dform.d.tlua +18 -51
- package/types/dframe.d.tlua +24 -72
- package/types/dgrid.d.tlua +11 -30
- package/types/dhorizontaldivider.d.tlua +20 -57
- package/types/dhorizontalscroller.d.tlua +11 -30
- package/types/dhscrollbar.d.tlua +11 -30
- package/types/dhtml.d.tlua +8 -21
- package/types/dhtmlcontrols.d.tlua +5 -15
- package/types/diconbrowser.d.tlua +11 -30
- package/types/diconlayout.d.tlua +18 -51
- package/types/dimage.d.tlua +20 -55
- package/types/dimagebutton.d.tlua +9 -27
- package/types/dlabel.d.tlua +33 -96
- package/types/dlabeleditable.d.tlua +5 -12
- package/types/dlabelurl.d.tlua +10 -27
- package/types/dlistbox.d.tlua +8 -21
- package/types/dlistboxitem.d.tlua +4 -9
- package/types/dlistview.d.tlua +34 -99
- package/types/dlistview_column.d.tlua +14 -39
- package/types/dlistview_line.d.tlua +13 -36
- package/types/dmenu.d.tlua +28 -75
- package/types/dmenubar.d.tlua +6 -11
- package/types/dmenuoption.d.tlua +13 -36
- package/types/dmenuoptioncvar.d.tlua +6 -15
- package/types/dmodelpanel.d.tlua +22 -63
- package/types/dmodelselect.d.tlua +2 -3
- package/types/dmodelselectmulti.d.tlua +2 -3
- package/types/dnotify.d.tlua +10 -27
- package/types/dnumberscratch.d.tlua +26 -75
- package/types/dnumberwang.d.tlua +16 -45
- package/types/dnumslider.d.tlua +17 -51
- package/types/dpanel.d.tlua +14 -39
- package/types/dpanellist.d.tlua +11 -33
- package/types/dpaneloverlay.d.tlua +7 -18
- package/types/dpanpanel.d.tlua +6 -15
- package/types/dprogress.d.tlua +3 -6
- package/types/dproperties.d.tlua +4 -9
- package/types/dproperty_combo.d.tlua +3 -6
- package/types/dproperty_generic.d.tlua +5 -12
- package/types/dpropertysheet.d.tlua +26 -56
- package/types/dragndrop.d.tlua +10 -30
- package/types/draw.d.tlua +11 -31
- package/types/drgbpicker.d.tlua +4 -9
- package/types/drive.d.tlua +18 -41
- package/types/dscrollpanel.d.tlua +10 -30
- package/types/dshape.d.tlua +7 -18
- package/types/dsizetocontents.d.tlua +5 -12
- package/types/dslider.d.tlua +28 -81
- package/types/dsprite.d.tlua +9 -24
- package/types/dtab.d.tlua +8 -21
- package/types/dtextentry.d.tlua +43 -126
- package/types/dtilelayout.d.tlua +21 -60
- package/types/dtooltip.d.tlua +6 -15
- package/types/dtree.d.tlua +16 -45
- package/types/dtree_node.d.tlua +68 -201
- package/types/duplicator.d.tlua +30 -88
- package/types/dverticaldivider.d.tlua +23 -66
- package/types/dvscrollbar.d.tlua +11 -30
- package/types/effect.d.tlua +4 -9
- package/types/effects.d.tlua +6 -18
- package/types/engine.d.tlua +21 -63
- package/types/entity.d.tlua +676 -1962
- package/types/ents.d.tlua +23 -61
- package/types/file.d.tlua +39 -117
- package/types/frame_blend.d.tlua +7 -21
- package/types/game.d.tlua +39 -117
- package/types/gameevent.d.tlua +4 -8
- package/types/gamemode.d.tlua +3 -7
- package/types/gm.d.tlua +267 -800
- package/types/gmsave.d.tlua +4 -12
- package/types/gui.d.tlua +21 -63
- package/types/gwen.d.tlua +3 -9
- package/types/halo.d.tlua +2 -6
- package/types/hook.d.tlua +4 -12
- package/types/http.d.tlua +1 -3
- package/types/iconeditor.d.tlua +11 -30
- package/types/igmodaudiochannel.d.tlua +41 -122
- package/types/imagecheckbox.d.tlua +4 -9
- package/types/imaterial.d.tlua +26 -77
- package/types/imesh.d.tlua +5 -14
- package/types/input.d.tlua +24 -68
- package/types/irestore.d.tlua +9 -26
- package/types/isave.d.tlua +9 -26
- package/types/itexture.d.tlua +10 -29
- package/types/ivideowriter.d.tlua +5 -14
- package/types/jit.d.tlua +21 -53
- package/types/killicon.d.tlua +7 -21
- package/types/language.d.tlua +1 -3
- package/types/list.d.tlua +8 -24
- package/types/markup.d.tlua +2 -6
- package/types/markupobject.d.tlua +5 -14
- package/types/math.d.tlua +277 -447
- package/types/matproxy.d.tlua +3 -9
- package/types/matselect.d.tlua +11 -30
- package/types/menubar.d.tlua +2 -6
- package/types/mesh.d.tlua +19 -57
- package/types/motionsensor.d.tlua +10 -30
- package/types/navmesh.d.tlua +26 -78
- package/types/net.d.tlua +52 -154
- package/types/nextbot.d.tlua +46 -116
- package/types/notification.d.tlua +2 -6
- package/types/npc.d.tlua +182 -543
- package/types/numpad.d.tlua +7 -21
- package/types/os.d.tlua +4 -10
- package/types/panel.d.tlua +333 -991
- package/types/pathfollower.d.tlua +31 -92
- package/types/permissions.d.tlua +6 -18
- package/types/physcollide.d.tlua +3 -8
- package/types/physenv.d.tlua +11 -33
- package/types/physobj.d.tlua +78 -233
- package/types/player.d.tlua +302 -880
- package/types/player_manager.d.tlua +13 -39
- package/types/presets.d.tlua +6 -18
- package/types/projectedtexture.d.tlua +48 -143
- package/types/properties.d.tlua +5 -15
- package/types/propselect.d.tlua +5 -12
- package/types/render.d.tlua +142 -426
- package/types/resource.d.tlua +2 -6
- package/types/sandbox.d.tlua +54 -159
- package/types/saverestore.d.tlua +12 -36
- package/types/schedule.d.tlua +6 -17
- package/types/scripted_ents.d.tlua +11 -29
- package/types/search.d.tlua +1 -3
- package/types/serverlist.d.tlua +7 -21
- package/types/sound.d.tlua +10 -30
- package/types/spawnicon.d.tlua +8 -21
- package/types/spawnmenu.d.tlua +24 -70
- package/types/spawnmenucontentpanel.d.tlua +5 -12
- package/types/sql.d.tlua +9 -27
- package/types/stack.d.tlua +5 -14
- package/types/steamworks.d.tlua +18 -54
- package/types/string.d.tlua +49 -141
- package/types/surface.d.tlua +34 -102
- package/types/surfaceinfo.d.tlua +5 -14
- package/types/system.d.tlua +10 -30
- package/types/table.d.tlua +47 -137
- package/types/task.d.tlua +9 -26
- package/types/team.d.tlua +19 -57
- package/types/timer.d.tlua +14 -42
- package/types/tool.d.tlua +46 -131
- package/types/ugcpublishwindow.d.tlua +9 -24
- package/types/umsg.d.tlua +12 -36
- package/types/undo.d.tlua +10 -30
- package/types/usermessage.d.tlua +2 -6
- package/types/utf8.d.tlua +7 -21
- package/types/util.d.tlua +94 -274
- package/types/vector.d.tlua +36 -108
- package/types/vehicle.d.tlua +52 -149
- package/types/vgui.d.tlua +18 -46
- package/types/vmatrix.d.tlua +35 -105
- package/types/weapon.d.tlua +85 -248
- package/types/weapons.d.tlua +6 -16
- package/types/widgets.d.tlua +1 -3
- package/types/workshopfilebase.d.tlua +5 -14
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
* Path object for a NextBot NPC and bots created by [player.CreateNextbot](https://wiki.facepunch.com/gmod/player.CreateNextbot). Returned by [Global.Path](https://wiki.facepunch.com/gmod/Global.Path).
|
|
5
5
|
* @source https://wiki.facepunch.com/gmod/PathFollower
|
|
6
6
|
*/
|
|
7
|
-
interface PathFollower {}
|
|
8
|
-
|
|
9
7
|
interface PathFollower {
|
|
10
8
|
/**
|
|
11
9
|
* Computes the shortest path to the provided entity arg. PathFollower Object must have `Chase` type.
|
|
@@ -15,9 +13,6 @@ interface PathFollower {
|
|
|
15
13
|
* @source https://wiki.facepunch.com/gmod/PathFollower:Chase
|
|
16
14
|
*/
|
|
17
15
|
Chase(self: PathFollower, bot: NextBot, ent: Entity, generator?: (area: CNavArea, fromArea: CNavArea, ladder: CNavLadder, elevator: Entity, length: number) => number): void;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface PathFollower {
|
|
21
16
|
/**
|
|
22
17
|
* Compute shortest path from bot to 'goal' via A* algorithm. This only works if the PathFollower is the `Follow` Type.
|
|
23
18
|
*
|
|
@@ -26,99 +21,66 @@ interface PathFollower {
|
|
|
26
21
|
* @source https://wiki.facepunch.com/gmod/PathFollower:Compute
|
|
27
22
|
*/
|
|
28
23
|
Compute(self: PathFollower, bot: NextBot, goal: Vector, generator?: (area: CNavArea, fromArea: CNavArea, ladder: CNavLadder, elevator: Entity, length: number) => number): boolean;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface PathFollower {
|
|
32
24
|
/**
|
|
33
25
|
* Draws the path. This is meant for debugging - and uses [debugoverlay](https://wiki.facepunch.com/gmod/debugoverlay).
|
|
34
26
|
* @realm server
|
|
35
27
|
* @source https://wiki.facepunch.com/gmod/PathFollower:Draw
|
|
36
28
|
*/
|
|
37
29
|
Draw(self: PathFollower): void;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface PathFollower {
|
|
41
30
|
/**
|
|
42
31
|
* Returns the first segment of the path.
|
|
43
32
|
* @realm server
|
|
44
33
|
* @source https://wiki.facepunch.com/gmod/PathFollower:FirstSegment
|
|
45
34
|
*/
|
|
46
35
|
FirstSegment(self: PathFollower): table;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
interface PathFollower {
|
|
50
36
|
/**
|
|
51
37
|
* Returns the age since the path was built
|
|
52
38
|
* @realm server
|
|
53
39
|
* @source https://wiki.facepunch.com/gmod/PathFollower:GetAge
|
|
54
40
|
*/
|
|
55
41
|
GetAge(self: PathFollower): number;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
interface PathFollower {
|
|
59
42
|
/**
|
|
60
43
|
* Returns all of the segments of the given path.
|
|
61
44
|
* @realm server
|
|
62
45
|
* @source https://wiki.facepunch.com/gmod/PathFollower:GetAllSegments
|
|
63
46
|
*/
|
|
64
47
|
GetAllSegments(self: PathFollower): PathSegment;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
interface PathFollower {
|
|
68
48
|
/**
|
|
69
49
|
* The closest position along the path to a position
|
|
70
50
|
* @realm server
|
|
71
51
|
* @source https://wiki.facepunch.com/gmod/PathFollower:GetClosestPosition
|
|
72
52
|
*/
|
|
73
53
|
GetClosestPosition(self: PathFollower, position: Vector): Vector;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
interface PathFollower {
|
|
77
54
|
/**
|
|
78
55
|
* Returns the current goal data. Can return nil if the current goal is invalid, for example immediately after [PathFollower:Update](https://wiki.facepunch.com/gmod/PathFollower:Update).
|
|
79
56
|
* @realm server
|
|
80
57
|
* @source https://wiki.facepunch.com/gmod/PathFollower:GetCurrentGoal
|
|
81
58
|
*/
|
|
82
59
|
GetCurrentGoal(self: PathFollower): table;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
interface PathFollower {
|
|
86
60
|
/**
|
|
87
61
|
* Returns the cursor data
|
|
88
62
|
* @realm server
|
|
89
63
|
* @source https://wiki.facepunch.com/gmod/PathFollower:GetCursorData
|
|
90
64
|
*/
|
|
91
65
|
GetCursorData(self: PathFollower): table;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
interface PathFollower {
|
|
95
66
|
/**
|
|
96
67
|
* Returns the current progress along the path
|
|
97
68
|
* @realm server
|
|
98
69
|
* @source https://wiki.facepunch.com/gmod/PathFollower:GetCursorPosition
|
|
99
70
|
*/
|
|
100
71
|
GetCursorPosition(self: PathFollower): number;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
interface PathFollower {
|
|
104
72
|
/**
|
|
105
73
|
* Returns the path end position
|
|
106
74
|
* @realm server
|
|
107
75
|
* @source https://wiki.facepunch.com/gmod/PathFollower:GetEnd
|
|
108
76
|
*/
|
|
109
77
|
GetEnd(self: PathFollower): Vector;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
interface PathFollower {
|
|
113
78
|
/**
|
|
114
79
|
* Returns how close we can get to the goal to call it done.
|
|
115
80
|
* @realm server
|
|
116
81
|
* @source https://wiki.facepunch.com/gmod/PathFollower:GetGoalTolerance
|
|
117
82
|
*/
|
|
118
83
|
GetGoalTolerance(self: PathFollower): number;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
interface PathFollower {
|
|
122
84
|
/**
|
|
123
85
|
* Returns the entity the bot is currently trying to avoid.
|
|
124
86
|
* @realm server
|
|
@@ -126,72 +88,48 @@ interface PathFollower {
|
|
|
126
88
|
* @deprecated Currently always returns NULL due to internal implementation of Lua Nextbots, where nothing is considered a hindrance, so do not try to use.
|
|
127
89
|
*/
|
|
128
90
|
GetHindrance(self: PathFollower): Entity;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
interface PathFollower {
|
|
132
91
|
/**
|
|
133
92
|
* Returns the total length of the path
|
|
134
93
|
* @realm server
|
|
135
94
|
* @source https://wiki.facepunch.com/gmod/PathFollower:GetLength
|
|
136
95
|
*/
|
|
137
96
|
GetLength(self: PathFollower): number;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
interface PathFollower {
|
|
141
97
|
/**
|
|
142
98
|
* Returns the minimum range movement goal must be along path.
|
|
143
99
|
* @realm server
|
|
144
100
|
* @source https://wiki.facepunch.com/gmod/PathFollower:GetMinLookAheadDistance
|
|
145
101
|
*/
|
|
146
102
|
GetMinLookAheadDistance(self: PathFollower): number;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
interface PathFollower {
|
|
150
103
|
/**
|
|
151
104
|
* Returns the vector position of distance along path
|
|
152
105
|
* @realm server
|
|
153
106
|
* @source https://wiki.facepunch.com/gmod/PathFollower:GetPositionOnPath
|
|
154
107
|
*/
|
|
155
108
|
GetPositionOnPath(self: PathFollower, distance: number): Vector;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
interface PathFollower {
|
|
159
109
|
/**
|
|
160
110
|
* Returns the path start position
|
|
161
111
|
* @realm server
|
|
162
112
|
* @source https://wiki.facepunch.com/gmod/PathFollower:GetStart
|
|
163
113
|
*/
|
|
164
114
|
GetStart(self: PathFollower): Vector;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
interface PathFollower {
|
|
168
115
|
/**
|
|
169
116
|
* Invalidates the current path
|
|
170
117
|
* @realm server
|
|
171
118
|
* @source https://wiki.facepunch.com/gmod/PathFollower:Invalidate
|
|
172
119
|
*/
|
|
173
120
|
Invalidate(self: PathFollower): void;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
interface PathFollower {
|
|
177
121
|
/**
|
|
178
122
|
* Returns true if the path is valid
|
|
179
123
|
* @realm server
|
|
180
124
|
* @source https://wiki.facepunch.com/gmod/PathFollower:IsValid
|
|
181
125
|
*/
|
|
182
126
|
IsValid(self: PathFollower): boolean;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
interface PathFollower {
|
|
186
127
|
/**
|
|
187
128
|
* Returns the last segment of the path.
|
|
188
129
|
* @realm server
|
|
189
130
|
* @source https://wiki.facepunch.com/gmod/PathFollower:LastSegment
|
|
190
131
|
*/
|
|
191
132
|
LastSegment(self: PathFollower): table;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
interface PathFollower {
|
|
195
133
|
/**
|
|
196
134
|
* Moves the cursor by give distance.
|
|
197
135
|
*
|
|
@@ -201,9 +139,6 @@ interface PathFollower {
|
|
|
201
139
|
* @source https://wiki.facepunch.com/gmod/PathFollower:MoveCursor
|
|
202
140
|
*/
|
|
203
141
|
MoveCursor(self: PathFollower, distance: number): void;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
interface PathFollower {
|
|
207
142
|
/**
|
|
208
143
|
* Sets the cursor position to given distance.
|
|
209
144
|
*
|
|
@@ -213,81 +148,54 @@ interface PathFollower {
|
|
|
213
148
|
* @source https://wiki.facepunch.com/gmod/PathFollower:MoveCursorTo
|
|
214
149
|
*/
|
|
215
150
|
MoveCursorTo(self: PathFollower, distance: number): void;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
interface PathFollower {
|
|
219
151
|
/**
|
|
220
152
|
* Moves the cursor of the path to the closest position compared to given vector.
|
|
221
153
|
* @realm server
|
|
222
154
|
* @source https://wiki.facepunch.com/gmod/PathFollower:MoveCursorToClosestPosition
|
|
223
155
|
*/
|
|
224
156
|
MoveCursorToClosestPosition(self: PathFollower, pos: Vector, type?: number, alongLimit?: number): void;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
interface PathFollower {
|
|
228
157
|
/**
|
|
229
158
|
* Moves the cursor to the end of the path
|
|
230
159
|
* @realm server
|
|
231
160
|
* @source https://wiki.facepunch.com/gmod/PathFollower:MoveCursorToEnd
|
|
232
161
|
*/
|
|
233
162
|
MoveCursorToEnd(self: PathFollower): void;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
interface PathFollower {
|
|
237
163
|
/**
|
|
238
164
|
* Moves the cursor to the end of the path
|
|
239
165
|
* @realm server
|
|
240
166
|
* @source https://wiki.facepunch.com/gmod/PathFollower:MoveCursorToStart
|
|
241
167
|
*/
|
|
242
168
|
MoveCursorToStart(self: PathFollower): void;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
interface PathFollower {
|
|
246
169
|
/**
|
|
247
170
|
* Returns the next segment of the path.
|
|
248
171
|
* @realm server
|
|
249
172
|
* @source https://wiki.facepunch.com/gmod/PathFollower:NextSegment
|
|
250
173
|
*/
|
|
251
174
|
NextSegment(self: PathFollower): table;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
interface PathFollower {
|
|
255
175
|
/**
|
|
256
176
|
* Returns the previous segment of the path.
|
|
257
177
|
* @realm server
|
|
258
178
|
* @source https://wiki.facepunch.com/gmod/PathFollower:PriorSegment
|
|
259
179
|
*/
|
|
260
180
|
PriorSegment(self: PathFollower): table;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
interface PathFollower {
|
|
264
181
|
/**
|
|
265
182
|
* Resets the age which is retrieved by [PathFollower:GetAge](https://wiki.facepunch.com/gmod/PathFollower:GetAge) to 0.
|
|
266
183
|
* @realm server
|
|
267
184
|
* @source https://wiki.facepunch.com/gmod/PathFollower:ResetAge
|
|
268
185
|
*/
|
|
269
186
|
ResetAge(self: PathFollower): void;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
interface PathFollower {
|
|
273
187
|
/**
|
|
274
188
|
* How close we can get to the goal to call it done
|
|
275
189
|
* @realm server
|
|
276
190
|
* @source https://wiki.facepunch.com/gmod/PathFollower:SetGoalTolerance
|
|
277
191
|
*/
|
|
278
192
|
SetGoalTolerance(self: PathFollower, distance: number): void;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
interface PathFollower {
|
|
282
193
|
/**
|
|
283
194
|
* Sets minimum range movement goal must be along path
|
|
284
195
|
* @realm server
|
|
285
196
|
* @source https://wiki.facepunch.com/gmod/PathFollower:SetMinLookAheadDistance
|
|
286
197
|
*/
|
|
287
198
|
SetMinLookAheadDistance(self: PathFollower, mindist: number): void;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
interface PathFollower {
|
|
291
199
|
/**
|
|
292
200
|
* Move the bot along the path.
|
|
293
201
|
* **NOTE**: player nextbots require [CUserCmd:SetForwardMove](https://wiki.facepunch.com/gmod/CUserCmd:SetForwardMove) to move forward along the path
|
|
@@ -299,3 +207,34 @@ interface PathFollower {
|
|
|
299
207
|
Update(self: PathFollower, bot: NextBot): void;
|
|
300
208
|
}
|
|
301
209
|
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
package/types/permissions.d.tlua
CHANGED
|
@@ -14,9 +14,6 @@ interface PermissionsLib {
|
|
|
14
14
|
* @source https://wiki.facepunch.com/gmod/permissions.AskToConnect
|
|
15
15
|
*/
|
|
16
16
|
AskToConnect(address: string): void;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface PermissionsLib {
|
|
20
17
|
/**
|
|
21
18
|
* Connects player to the server. This is what [permissions.AskToConnect](https://wiki.facepunch.com/gmod/permissions.AskToConnect) uses internally.
|
|
22
19
|
*
|
|
@@ -24,9 +21,6 @@ interface PermissionsLib {
|
|
|
24
21
|
* @source https://wiki.facepunch.com/gmod/permissions.Connect
|
|
25
22
|
*/
|
|
26
23
|
Connect(ip: string): void;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface PermissionsLib {
|
|
30
24
|
/**
|
|
31
25
|
* Activates player's microphone as if they pressed the speak button themself. The player will be prompted with a confirmation window which grants permission temporarily/permanently(depending on checkbox state) for the connected server (revokable).
|
|
32
26
|
* This is used for TTT's traitor voice channel.
|
|
@@ -35,9 +29,6 @@ interface PermissionsLib {
|
|
|
35
29
|
* @source https://wiki.facepunch.com/gmod/permissions.EnableVoiceChat
|
|
36
30
|
*/
|
|
37
31
|
EnableVoiceChat(enable: boolean): void;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface PermissionsLib {
|
|
41
32
|
/**
|
|
42
33
|
* Returns all permissions per server. Permanent permissions are stored in `settings/permissions.bin`.
|
|
43
34
|
*
|
|
@@ -45,18 +36,12 @@ interface PermissionsLib {
|
|
|
45
36
|
* @source https://wiki.facepunch.com/gmod/permissions.GetAll
|
|
46
37
|
*/
|
|
47
38
|
GetAll(): Table<string, table>;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
interface PermissionsLib {
|
|
51
39
|
/**
|
|
52
40
|
* Grants permission to the current connected server.
|
|
53
41
|
* @realm menu
|
|
54
42
|
* @source https://wiki.facepunch.com/gmod/permissions.Grant
|
|
55
43
|
*/
|
|
56
44
|
Grant(permission: string, temporary: boolean): void;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
interface PermissionsLib {
|
|
60
45
|
/**
|
|
61
46
|
* Returns whether the player has granted the current server a specific permission.
|
|
62
47
|
*
|
|
@@ -64,9 +49,6 @@ interface PermissionsLib {
|
|
|
64
49
|
* @source https://wiki.facepunch.com/gmod/permissions.IsGranted
|
|
65
50
|
*/
|
|
66
51
|
IsGranted(permission: string): boolean;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
interface PermissionsLib {
|
|
70
52
|
/**
|
|
71
53
|
* Revokes permission from the server.
|
|
72
54
|
* @realm menu
|
|
@@ -75,3 +57,9 @@ interface PermissionsLib {
|
|
|
75
57
|
Revoke(permission: string, ip: string): void;
|
|
76
58
|
}
|
|
77
59
|
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
package/types/physcollide.d.tlua
CHANGED
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
* Created by [Global.CreatePhysCollideBox](https://wiki.facepunch.com/gmod/Global.CreatePhysCollideBox) or [Global.CreatePhysCollidesFromModel](https://wiki.facepunch.com/gmod/Global.CreatePhysCollidesFromModel).
|
|
7
7
|
* @source https://wiki.facepunch.com/gmod/PhysCollide
|
|
8
8
|
*/
|
|
9
|
-
interface PhysCollide {}
|
|
10
|
-
|
|
11
9
|
interface PhysCollide {
|
|
12
10
|
/**
|
|
13
11
|
* Destroys the [PhysCollide](https://wiki.facepunch.com/gmod/PhysCollide) object.
|
|
@@ -15,9 +13,6 @@ interface PhysCollide {
|
|
|
15
13
|
* @source https://wiki.facepunch.com/gmod/PhysCollide:Destroy
|
|
16
14
|
*/
|
|
17
15
|
Destroy(self: PhysCollide): void;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface PhysCollide {
|
|
21
16
|
/**
|
|
22
17
|
* Checks whether this [PhysCollide](https://wiki.facepunch.com/gmod/PhysCollide) object is valid or not.
|
|
23
18
|
*
|
|
@@ -27,9 +22,6 @@ interface PhysCollide {
|
|
|
27
22
|
* @source https://wiki.facepunch.com/gmod/PhysCollide:IsValid
|
|
28
23
|
*/
|
|
29
24
|
IsValid(self: PhysCollide): boolean;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface PhysCollide {
|
|
33
25
|
/**
|
|
34
26
|
* Performs a trace against this PhysCollide with the given parameters. This can be used for both line traces and box traces.
|
|
35
27
|
* @realm shared
|
|
@@ -38,3 +30,6 @@ interface PhysCollide {
|
|
|
38
30
|
TraceBox(self: PhysCollide, origin: Vector, angles: Angle, rayStart: Vector, rayEnd: Vector, rayMins: Vector, rayMaxs: Vector): (Vector, Vector, number);
|
|
39
31
|
}
|
|
40
32
|
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
package/types/physenv.d.tlua
CHANGED
|
@@ -21,9 +21,6 @@ interface PhysenvLib {
|
|
|
21
21
|
* @source https://wiki.facepunch.com/gmod/physenv.AddSurfaceData
|
|
22
22
|
*/
|
|
23
23
|
AddSurfaceData(properties: string): void;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
interface PhysenvLib {
|
|
27
24
|
/**
|
|
28
25
|
* Returns the air density used to calculate drag on physics objects.
|
|
29
26
|
* The unit is in `kg/m³`.
|
|
@@ -32,18 +29,12 @@ interface PhysenvLib {
|
|
|
32
29
|
* @source https://wiki.facepunch.com/gmod/physenv.GetAirDensity
|
|
33
30
|
*/
|
|
34
31
|
GetAirDensity(): number;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface PhysenvLib {
|
|
38
32
|
/**
|
|
39
33
|
* Gets the gravitational acceleration used for physics objects in `source_unit/s^2`.
|
|
40
34
|
* @realm shared
|
|
41
35
|
* @source https://wiki.facepunch.com/gmod/physenv.GetGravity
|
|
42
36
|
*/
|
|
43
37
|
GetGravity(): Vector;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
interface PhysenvLib {
|
|
47
38
|
/**
|
|
48
39
|
* Returns the last simulation duration of the in-game physics.
|
|
49
40
|
*
|
|
@@ -51,27 +42,18 @@ interface PhysenvLib {
|
|
|
51
42
|
* @source https://wiki.facepunch.com/gmod/physenv.GetLastSimulationTime
|
|
52
43
|
*/
|
|
53
44
|
GetLastSimulationTime(): number;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
interface PhysenvLib {
|
|
57
45
|
/**
|
|
58
46
|
* Gets the current performance settings in table form.
|
|
59
47
|
* @realm shared
|
|
60
48
|
* @source https://wiki.facepunch.com/gmod/physenv.GetPerformanceSettings
|
|
61
49
|
*/
|
|
62
50
|
GetPerformanceSettings(): table;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
interface PhysenvLib {
|
|
66
51
|
/**
|
|
67
52
|
* Returns the pause status of global physics simulation. See [physenv.SetPhysicsPaused](https://wiki.facepunch.com/gmod/physenv.SetPhysicsPaused) for the setter.
|
|
68
53
|
* @realm shared
|
|
69
54
|
* @source https://wiki.facepunch.com/gmod/physenv.GetPhysicsPaused
|
|
70
55
|
*/
|
|
71
56
|
GetPhysicsPaused(): boolean;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface PhysenvLib {
|
|
75
57
|
/**
|
|
76
58
|
* Returns the physics time scale set with [physenv.SetTimeScale](https://wiki.facepunch.com/gmod/physenv.SetTimeScale).
|
|
77
59
|
*
|
|
@@ -79,18 +61,12 @@ interface PhysenvLib {
|
|
|
79
61
|
* @source https://wiki.facepunch.com/gmod/physenv.GetTimeScale
|
|
80
62
|
*/
|
|
81
63
|
GetTimeScale(): number;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
interface PhysenvLib {
|
|
85
64
|
/**
|
|
86
65
|
* Sets the air density.
|
|
87
66
|
* @realm shared
|
|
88
67
|
* @source https://wiki.facepunch.com/gmod/physenv.SetAirDensity
|
|
89
68
|
*/
|
|
90
69
|
SetAirDensity(airDensity: number): void;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
interface PhysenvLib {
|
|
94
70
|
/**
|
|
95
71
|
* Sets the gravitational acceleration used for physics objects. Does not affect players.
|
|
96
72
|
*
|
|
@@ -98,27 +74,18 @@ interface PhysenvLib {
|
|
|
98
74
|
* @source https://wiki.facepunch.com/gmod/physenv.SetGravity
|
|
99
75
|
*/
|
|
100
76
|
SetGravity(gravAccel: Vector): void;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
interface PhysenvLib {
|
|
104
77
|
/**
|
|
105
78
|
* Sets the performance settings.
|
|
106
79
|
* @realm shared
|
|
107
80
|
* @source https://wiki.facepunch.com/gmod/physenv.SetPerformanceSettings
|
|
108
81
|
*/
|
|
109
82
|
SetPerformanceSettings(performanceSettings: PhysEnvPerformanceSettings): void;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
interface PhysenvLib {
|
|
113
83
|
/**
|
|
114
84
|
* Pauses or unpauses the physics simulation globally. See [physenv.GetPhysicsPaused](https://wiki.facepunch.com/gmod/physenv.GetPhysicsPaused) for the getter.
|
|
115
85
|
* @realm shared
|
|
116
86
|
* @source https://wiki.facepunch.com/gmod/physenv.SetPhysicsPaused
|
|
117
87
|
*/
|
|
118
88
|
SetPhysicsPaused(pause: boolean): void;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
interface PhysenvLib {
|
|
122
89
|
/**
|
|
123
90
|
* Sets the time scale of the physics simulation.
|
|
124
91
|
*
|
|
@@ -134,3 +101,14 @@ interface PhysenvLib {
|
|
|
134
101
|
SetTimeScale(timeScale: number): void;
|
|
135
102
|
}
|
|
136
103
|
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|