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