@tlua/gmod 1.0.3 → 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/index.d.tlua +1 -0
- 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 +8 -17
- package/types/hook_events.d.tlua +2412 -0
- 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
package/types/cluaemitter.d.tlua
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
* List of all possible functions available for LuaEmitters. This is the object returned by the [Global.ParticleEmitter](https://wiki.facepunch.com/gmod/Global.ParticleEmitter) function.
|
|
5
5
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter
|
|
6
6
|
*/
|
|
7
|
-
interface CLuaEmitter {}
|
|
8
|
-
|
|
9
7
|
interface CLuaEmitter {
|
|
10
8
|
/**
|
|
11
9
|
* Creates a new [CLuaParticle](https://wiki.facepunch.com/gmod/CLuaParticle) with the given material and position.
|
|
@@ -13,63 +11,42 @@ interface CLuaEmitter {
|
|
|
13
11
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:Add
|
|
14
12
|
*/
|
|
15
13
|
Add(self: CLuaEmitter, material: string, position: Vector): CLuaParticle;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface CLuaEmitter {
|
|
19
14
|
/**
|
|
20
15
|
* Manually renders all particles the emitter has created.
|
|
21
16
|
* @realm client
|
|
22
17
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:Draw
|
|
23
18
|
*/
|
|
24
19
|
Draw(self: CLuaEmitter): void;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface CLuaEmitter {
|
|
28
20
|
/**
|
|
29
21
|
* Removes the emitter, making it no longer usable from Lua. If particles remain, the emitter will be removed when all particles die.
|
|
30
22
|
* @realm client
|
|
31
23
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:Finish
|
|
32
24
|
*/
|
|
33
25
|
Finish(self: CLuaEmitter): void;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
interface CLuaEmitter {
|
|
37
26
|
/**
|
|
38
27
|
* Returns the amount of active particles of this emitter.
|
|
39
28
|
* @realm client
|
|
40
29
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:GetNumActiveParticles
|
|
41
30
|
*/
|
|
42
31
|
GetNumActiveParticles(self: CLuaEmitter): number;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface CLuaEmitter {
|
|
46
32
|
/**
|
|
47
33
|
* Returns the position of this emitter. This is set when creating the emitter with [Global.ParticleEmitter](https://wiki.facepunch.com/gmod/Global.ParticleEmitter).
|
|
48
34
|
* @realm client
|
|
49
35
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:GetPos
|
|
50
36
|
*/
|
|
51
37
|
GetPos(self: CLuaEmitter): Vector;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface CLuaEmitter {
|
|
55
38
|
/**
|
|
56
39
|
* Returns whether this emitter is 3D or not. This is set when creating the emitter with [Global.ParticleEmitter](https://wiki.facepunch.com/gmod/Global.ParticleEmitter).
|
|
57
40
|
* @realm client
|
|
58
41
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:Is3D
|
|
59
42
|
*/
|
|
60
43
|
Is3D(self: CLuaEmitter): boolean;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
interface CLuaEmitter {
|
|
64
44
|
/**
|
|
65
45
|
* Returns whether this [CLuaEmitter](https://wiki.facepunch.com/gmod/CLuaEmitter) is valid or not.
|
|
66
46
|
* @realm client
|
|
67
47
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:IsValid
|
|
68
48
|
*/
|
|
69
49
|
IsValid(self: CLuaEmitter): boolean;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
interface CLuaEmitter {
|
|
73
50
|
/**
|
|
74
51
|
* Sets the bounding box for this emitter.
|
|
75
52
|
*
|
|
@@ -79,36 +56,24 @@ interface CLuaEmitter {
|
|
|
79
56
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:SetBBox
|
|
80
57
|
*/
|
|
81
58
|
SetBBox(self: CLuaEmitter, mins: Vector, maxs: Vector): void;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
interface CLuaEmitter {
|
|
85
59
|
/**
|
|
86
60
|
* This function sets the the distance between the render camera and the emitter at which the particles should start fading and at which distance fade ends ( alpha becomes 0 ).
|
|
87
61
|
* @realm client
|
|
88
62
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:SetNearClip
|
|
89
63
|
*/
|
|
90
64
|
SetNearClip(self: CLuaEmitter, distanceMin: number, distanceMax: number): void;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
interface CLuaEmitter {
|
|
94
65
|
/**
|
|
95
66
|
* Prevents all particles of the emitter from automatically drawing.
|
|
96
67
|
* @realm client
|
|
97
68
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:SetNoDraw
|
|
98
69
|
*/
|
|
99
70
|
SetNoDraw(self: CLuaEmitter, noDraw: boolean): void;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
interface CLuaEmitter {
|
|
103
71
|
/**
|
|
104
72
|
* The function name has not much in common with its actual function, it applies a radius to every particles that affects the building of the bounding box, as it, usually is constructed by the particle that has the lowest x, y and z and the highest x, y and z, this function just adds/subtracts the radius and inflates the bounding box.
|
|
105
73
|
* @realm client
|
|
106
74
|
* @source https://wiki.facepunch.com/gmod/CLuaEmitter:SetParticleCullRadius
|
|
107
75
|
*/
|
|
108
76
|
SetParticleCullRadius(self: CLuaEmitter, radius: number): void;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
interface CLuaEmitter {
|
|
112
77
|
/**
|
|
113
78
|
* Sets the position of the particle emitter.
|
|
114
79
|
* @realm client
|
|
@@ -117,3 +82,15 @@ interface CLuaEmitter {
|
|
|
117
82
|
SetPos(self: CLuaEmitter, position: Vector): void;
|
|
118
83
|
}
|
|
119
84
|
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
* This class is essentially what controls a [NextBot](https://wiki.facepunch.com/gmod/NextBot) NPC. You can access it in a [NextBot](https://wiki.facepunch.com/gmod/NextBot) NPC by using **self.loco** variable.
|
|
5
5
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion
|
|
6
6
|
*/
|
|
7
|
-
interface CLuaLocomotion {}
|
|
8
|
-
|
|
9
7
|
interface CLuaLocomotion {
|
|
10
8
|
/**
|
|
11
9
|
* Moves the [NextBot](https://wiki.facepunch.com/gmod/NextBot) incrementally closer to the provided goal location.
|
|
@@ -19,81 +17,54 @@ interface CLuaLocomotion {
|
|
|
19
17
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:Approach
|
|
20
18
|
*/
|
|
21
19
|
Approach(self: CLuaLocomotion, goal: Vector, goalWeight: number): void;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface CLuaLocomotion {
|
|
25
20
|
/**
|
|
26
21
|
* Removes the stuck status from the bot
|
|
27
22
|
* @realm server
|
|
28
23
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:ClearStuck
|
|
29
24
|
*/
|
|
30
25
|
ClearStuck(self: CLuaLocomotion): void;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface CLuaLocomotion {
|
|
34
26
|
/**
|
|
35
27
|
* Sets the direction we want to face
|
|
36
28
|
* @realm server
|
|
37
29
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:FaceTowards
|
|
38
30
|
*/
|
|
39
31
|
FaceTowards(self: CLuaLocomotion, goal: Vector): void;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
interface CLuaLocomotion {
|
|
43
32
|
/**
|
|
44
33
|
* Returns the acceleration speed
|
|
45
34
|
* @realm server
|
|
46
35
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetAcceleration
|
|
47
36
|
*/
|
|
48
37
|
GetAcceleration(self: CLuaLocomotion): number;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
interface CLuaLocomotion {
|
|
52
38
|
/**
|
|
53
39
|
* Returns whether the Nextbot is allowed to avoid obstacles or not.
|
|
54
40
|
* @realm server
|
|
55
41
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetAvoidAllowed
|
|
56
42
|
*/
|
|
57
43
|
GetAvoidAllowed(self: CLuaLocomotion): boolean;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
interface CLuaLocomotion {
|
|
61
44
|
/**
|
|
62
45
|
* Returns whether the Nextbot is allowed to climb or not.
|
|
63
46
|
* @realm server
|
|
64
47
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetClimbAllowed
|
|
65
48
|
*/
|
|
66
49
|
GetClimbAllowed(self: CLuaLocomotion): boolean;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
interface CLuaLocomotion {
|
|
70
50
|
/**
|
|
71
51
|
* Returns the current acceleration as a vector
|
|
72
52
|
* @realm server
|
|
73
53
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetCurrentAcceleration
|
|
74
54
|
*/
|
|
75
55
|
GetCurrentAcceleration(self: CLuaLocomotion): Vector;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
interface CLuaLocomotion {
|
|
79
56
|
/**
|
|
80
57
|
* Gets the height the bot is scared to fall from
|
|
81
58
|
* @realm server
|
|
82
59
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetDeathDropHeight
|
|
83
60
|
*/
|
|
84
61
|
GetDeathDropHeight(self: CLuaLocomotion): number;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
interface CLuaLocomotion {
|
|
88
62
|
/**
|
|
89
63
|
* Gets the deceleration speed
|
|
90
64
|
* @realm server
|
|
91
65
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetDeceleration
|
|
92
66
|
*/
|
|
93
67
|
GetDeceleration(self: CLuaLocomotion): number;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
interface CLuaLocomotion {
|
|
97
68
|
/**
|
|
98
69
|
* Returns the desired movement speed set by [CLuaLocomotion:SetDesiredSpeed](https://wiki.facepunch.com/gmod/CLuaLocomotion:SetDesiredSpeed)
|
|
99
70
|
*
|
|
@@ -101,27 +72,18 @@ interface CLuaLocomotion {
|
|
|
101
72
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetDesiredSpeed
|
|
102
73
|
*/
|
|
103
74
|
GetDesiredSpeed(self: CLuaLocomotion): number;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
interface CLuaLocomotion {
|
|
107
75
|
/**
|
|
108
76
|
* Returns the locomotion's gravity.
|
|
109
77
|
* @realm server
|
|
110
78
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetGravity
|
|
111
79
|
*/
|
|
112
80
|
GetGravity(self: CLuaLocomotion): number;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
interface CLuaLocomotion {
|
|
116
81
|
/**
|
|
117
82
|
* Return unit vector in XY plane describing our direction of motion - even if we are currently not moving
|
|
118
83
|
* @realm server
|
|
119
84
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetGroundMotionVector
|
|
120
85
|
*/
|
|
121
86
|
GetGroundMotionVector(self: CLuaLocomotion): Vector;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
interface CLuaLocomotion {
|
|
125
87
|
/**
|
|
126
88
|
* Returns the current ground normal.
|
|
127
89
|
*
|
|
@@ -129,189 +91,126 @@ interface CLuaLocomotion {
|
|
|
129
91
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetGroundNormal
|
|
130
92
|
*/
|
|
131
93
|
GetGroundNormal(self: CLuaLocomotion): Vector;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
interface CLuaLocomotion {
|
|
135
94
|
/**
|
|
136
95
|
* Returns whether the Nextbot is allowed to jump gaps or not.
|
|
137
96
|
* @realm server
|
|
138
97
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetJumpGapsAllowed
|
|
139
98
|
*/
|
|
140
99
|
GetJumpGapsAllowed(self: CLuaLocomotion): boolean;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
interface CLuaLocomotion {
|
|
144
100
|
/**
|
|
145
101
|
* Gets the height of the bot's jump
|
|
146
102
|
* @realm server
|
|
147
103
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetJumpHeight
|
|
148
104
|
*/
|
|
149
105
|
GetJumpHeight(self: CLuaLocomotion): number;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
interface CLuaLocomotion {
|
|
153
106
|
/**
|
|
154
107
|
* Returns maximum jump height of this [CLuaLocomotion](https://wiki.facepunch.com/gmod/CLuaLocomotion).
|
|
155
108
|
* @realm server
|
|
156
109
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetMaxJumpHeight
|
|
157
110
|
*/
|
|
158
111
|
GetMaxJumpHeight(self: CLuaLocomotion): number;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
interface CLuaLocomotion {
|
|
162
112
|
/**
|
|
163
113
|
* Returns the max rate at which the NextBot can visually rotate.
|
|
164
114
|
* @realm server
|
|
165
115
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetMaxYawRate
|
|
166
116
|
*/
|
|
167
117
|
GetMaxYawRate(self: CLuaLocomotion): number;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
interface CLuaLocomotion {
|
|
171
118
|
/**
|
|
172
119
|
* Returns the [NextBot](https://wiki.facepunch.com/gmod/NextBot) this locomotion is associated with.
|
|
173
120
|
* @realm server
|
|
174
121
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetNextBot
|
|
175
122
|
*/
|
|
176
123
|
GetNextBot(self: CLuaLocomotion): NextBot;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
interface CLuaLocomotion {
|
|
180
124
|
/**
|
|
181
125
|
* Gets the max height the bot can step up
|
|
182
126
|
* @realm server
|
|
183
127
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetStepHeight
|
|
184
128
|
*/
|
|
185
129
|
GetStepHeight(self: CLuaLocomotion): number;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
interface CLuaLocomotion {
|
|
189
130
|
/**
|
|
190
131
|
* Returns the current movement velocity as a vector
|
|
191
132
|
* @realm server
|
|
192
133
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetVelocity
|
|
193
134
|
*/
|
|
194
135
|
GetVelocity(self: CLuaLocomotion): Vector;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
interface CLuaLocomotion {
|
|
198
136
|
/**
|
|
199
137
|
* Returns whether this [CLuaLocomotion](https://wiki.facepunch.com/gmod/CLuaLocomotion) can reach and/or traverse/move in given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
|
|
200
138
|
* @realm server
|
|
201
139
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsAreaTraversable
|
|
202
140
|
*/
|
|
203
141
|
IsAreaTraversable(self: CLuaLocomotion, area: CNavArea): boolean;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
interface CLuaLocomotion {
|
|
207
142
|
/**
|
|
208
143
|
* Returns true if we're trying to move.
|
|
209
144
|
* @realm server
|
|
210
145
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsAttemptingToMove
|
|
211
146
|
*/
|
|
212
147
|
IsAttemptingToMove(self: CLuaLocomotion): boolean;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
interface CLuaLocomotion {
|
|
216
148
|
/**
|
|
217
149
|
* Returns true of the locomotion engine is jumping or climbing
|
|
218
150
|
* @realm server
|
|
219
151
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsClimbingOrJumping
|
|
220
152
|
*/
|
|
221
153
|
IsClimbingOrJumping(self: CLuaLocomotion): boolean;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
interface CLuaLocomotion {
|
|
225
154
|
/**
|
|
226
155
|
* Returns whether the nextbot this locomotion is attached to is on ground or not.
|
|
227
156
|
* @realm server
|
|
228
157
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsOnGround
|
|
229
158
|
*/
|
|
230
159
|
IsOnGround(self: CLuaLocomotion): boolean;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
interface CLuaLocomotion {
|
|
234
160
|
/**
|
|
235
161
|
* Returns true if we're stuck
|
|
236
162
|
* @realm server
|
|
237
163
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsStuck
|
|
238
164
|
*/
|
|
239
165
|
IsStuck(self: CLuaLocomotion): boolean;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
interface CLuaLocomotion {
|
|
243
166
|
/**
|
|
244
167
|
* Returns whether or not the target in question is on a ladder or not.
|
|
245
168
|
* @realm server
|
|
246
169
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsUsingLadder
|
|
247
170
|
*/
|
|
248
171
|
IsUsingLadder(self: CLuaLocomotion): boolean;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
interface CLuaLocomotion {
|
|
252
172
|
/**
|
|
253
173
|
* Makes the bot jump. It must be on ground ([Entity:IsOnGround](https://wiki.facepunch.com/gmod/Entity:IsOnGround)) and its model must have `ACT_JUMP` activity.
|
|
254
174
|
* @realm server
|
|
255
175
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:Jump
|
|
256
176
|
*/
|
|
257
177
|
Jump(self: CLuaLocomotion, act?: number): void;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
interface CLuaLocomotion {
|
|
261
178
|
/**
|
|
262
179
|
* Makes the bot jump across a gap. The bot must be on ground ([Entity:IsOnGround](https://wiki.facepunch.com/gmod/Entity:IsOnGround)) and its model must have `ACT_JUMP` activity.
|
|
263
180
|
* @realm server
|
|
264
181
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:JumpAcrossGap
|
|
265
182
|
*/
|
|
266
183
|
JumpAcrossGap(self: CLuaLocomotion, landingGoal: Vector, landingForward: Vector): void;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
interface CLuaLocomotion {
|
|
270
184
|
/**
|
|
271
185
|
* Sets the acceleration speed
|
|
272
186
|
* @realm server
|
|
273
187
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetAcceleration
|
|
274
188
|
*/
|
|
275
189
|
SetAcceleration(self: CLuaLocomotion, speed?: number): void;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
interface CLuaLocomotion {
|
|
279
190
|
/**
|
|
280
191
|
* Sets whether the Nextbot is allowed try to to avoid obstacles or not. This is used during path generation. Works similarly to `nb_allow_avoiding` convar. By default bots are allowed to try to avoid obstacles.
|
|
281
192
|
* @realm server
|
|
282
193
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetAvoidAllowed
|
|
283
194
|
*/
|
|
284
195
|
SetAvoidAllowed(self: CLuaLocomotion, allowed: boolean): void;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
interface CLuaLocomotion {
|
|
288
196
|
/**
|
|
289
197
|
* Sets whether the Nextbot is allowed to climb or not. This is used during path generation. Works similarly to `nb_allow_climbing` convar. By default bots are allowed to climb.
|
|
290
198
|
* @realm server
|
|
291
199
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetClimbAllowed
|
|
292
200
|
*/
|
|
293
201
|
SetClimbAllowed(self: CLuaLocomotion, allowed: boolean): void;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
interface CLuaLocomotion {
|
|
297
202
|
/**
|
|
298
203
|
* Sets the height the bot is scared to fall from.
|
|
299
204
|
* @realm server
|
|
300
205
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetDeathDropHeight
|
|
301
206
|
*/
|
|
302
207
|
SetDeathDropHeight(self: CLuaLocomotion, height?: number): void;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
interface CLuaLocomotion {
|
|
306
208
|
/**
|
|
307
209
|
* Sets the deceleration speed.
|
|
308
210
|
* @realm server
|
|
309
211
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetDeceleration
|
|
310
212
|
*/
|
|
311
213
|
SetDeceleration(self: CLuaLocomotion, deceleration?: number): void;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
interface CLuaLocomotion {
|
|
315
214
|
/**
|
|
316
215
|
* Sets how far the NextBot will need to move each time [CLuaLocomotion:Approach](https://wiki.facepunch.com/gmod/CLuaLocomotion:Approach) is called to move at given speed.
|
|
317
216
|
*
|
|
@@ -321,9 +220,6 @@ interface CLuaLocomotion {
|
|
|
321
220
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetDesiredSpeed
|
|
322
221
|
*/
|
|
323
222
|
SetDesiredSpeed(self: CLuaLocomotion, speed?: number): void;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
interface CLuaLocomotion {
|
|
327
223
|
/**
|
|
328
224
|
* Sets the locomotion's gravity.
|
|
329
225
|
*
|
|
@@ -334,45 +230,30 @@ interface CLuaLocomotion {
|
|
|
334
230
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetGravity
|
|
335
231
|
*/
|
|
336
232
|
SetGravity(self: CLuaLocomotion, gravity?: number): void;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
interface CLuaLocomotion {
|
|
340
233
|
/**
|
|
341
234
|
* Sets whether the Nextbot is allowed to jump gaps or not. This is used during path generation. Works similarly to `nb_allow_gap_jumping` convar. By default bots are allowed to jump gaps.
|
|
342
235
|
* @realm server
|
|
343
236
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetJumpGapsAllowed
|
|
344
237
|
*/
|
|
345
238
|
SetJumpGapsAllowed(self: CLuaLocomotion, allowed: boolean): void;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
interface CLuaLocomotion {
|
|
349
239
|
/**
|
|
350
240
|
* Sets the height of the bot's jump
|
|
351
241
|
* @realm server
|
|
352
242
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetJumpHeight
|
|
353
243
|
*/
|
|
354
244
|
SetJumpHeight(self: CLuaLocomotion, height?: number): void;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
interface CLuaLocomotion {
|
|
358
245
|
/**
|
|
359
246
|
* Sets the max rate at which the NextBot can visually rotate. This will not affect moving or pathing.
|
|
360
247
|
* @realm server
|
|
361
248
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetMaxYawRate
|
|
362
249
|
*/
|
|
363
250
|
SetMaxYawRate(self: CLuaLocomotion, yawRate?: number): void;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
interface CLuaLocomotion {
|
|
367
251
|
/**
|
|
368
252
|
* Sets the max height the bot can step up
|
|
369
253
|
* @realm server
|
|
370
254
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetStepHeight
|
|
371
255
|
*/
|
|
372
256
|
SetStepHeight(self: CLuaLocomotion, height?: number): void;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
interface CLuaLocomotion {
|
|
376
257
|
/**
|
|
377
258
|
* Sets the current movement velocity
|
|
378
259
|
* @realm server
|
|
@@ -381,3 +262,43 @@ interface CLuaLocomotion {
|
|
|
381
262
|
SetVelocity(self: CLuaLocomotion, velocity: Vector): void;
|
|
382
263
|
}
|
|
383
264
|
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|