@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.
- package/package.json +1 -1
- package/types/achievementicon.d.tlua +0 -1
- package/types/achievements.d.tlua +0 -31
- package/types/ai.d.tlua +0 -11
- package/types/ai_schedule.d.tlua +0 -1
- package/types/ai_task.d.tlua +0 -1
- package/types/angle.d.tlua +0 -37
- package/types/avatarimage.d.tlua +0 -1
- package/types/awesomium.d.tlua +0 -1
- package/types/baseclass.d.tlua +0 -4
- package/types/bf_read.d.tlua +0 -23
- package/types/bit.d.tlua +0 -23
- package/types/button.d.tlua +0 -1
- package/types/cam.d.tlua +0 -33
- package/types/ceffectdata.d.tlua +0 -65
- package/types/chat.d.tlua +0 -11
- package/types/checkbutton.d.tlua +0 -1
- package/types/cleanup.d.tlua +0 -15
- package/types/cluaemitter.d.tlua +0 -25
- package/types/clualocomotion.d.tlua +0 -81
- package/types/cluaparticle.d.tlua +0 -89
- package/types/cmovedata.d.tlua +0 -95
- package/types/cnavarea.d.tlua +0 -155
- package/types/cnavladder.d.tlua +0 -45
- package/types/cnewparticleeffect.d.tlua +0 -53
- package/types/color.d.tlua +0 -57
- package/types/concommand.d.tlua +0 -9
- package/types/constraint.d.tlua +0 -57
- package/types/construct.d.tlua +0 -3
- package/types/contentheader.d.tlua +1 -6
- package/types/contenticon.d.tlua +1 -18
- package/types/contentsidebar.d.tlua +1 -8
- package/types/contentsidebartoolbox.d.tlua +0 -1
- package/types/contextbase.d.tlua +1 -8
- package/types/controlpanel.d.tlua +6 -31
- package/types/controlpresets.d.tlua +1 -26
- package/types/convar.d.tlua +0 -33
- package/types/cookie.d.tlua +0 -7
- package/types/coroutine.d.tlua +0 -15
- package/types/crecipientfilter.d.tlua +0 -33
- package/types/csent.d.tlua +0 -1
- package/types/csoundpatch.d.tlua +0 -29
- package/types/ctakedamageinfo.d.tlua +0 -67
- package/types/ctrllistbox.d.tlua +0 -1
- package/types/ctrlnumpad.d.tlua +0 -13
- package/types/cusercmd.d.tlua +0 -55
- package/types/custom_entity_fields.d.tlua +0 -1
- package/types/cvars.d.tlua +0 -13
- package/types/dadjustablemodelpanel.d.tlua +1 -14
- package/types/dalphabar.d.tlua +1 -6
- package/types/dbinder.d.tlua +1 -8
- package/types/dbubblecontainer.d.tlua +1 -4
- package/types/dbutton.d.tlua +1 -16
- package/types/dcategoryheader.d.tlua +0 -1
- package/types/dcategorylist.d.tlua +0 -1
- package/types/dcheckbox.d.tlua +1 -10
- package/types/dcheckboxlabel.d.tlua +0 -19
- package/types/dcollapsiblecategory.d.tlua +1 -46
- package/types/dcolorbutton.d.tlua +1 -14
- package/types/dcolorcombo.d.tlua +1 -10
- package/types/dcolorcube.d.tlua +1 -26
- package/types/dcolormixer.d.tlua +1 -54
- package/types/dcolorpalette.d.tlua +1 -46
- package/types/dcolumnsheet.d.tlua +1 -10
- package/types/dcombobox.d.tlua +1 -34
- package/types/ddragbase.d.tlua +1 -26
- package/types/ddrawer.d.tlua +1 -16
- package/types/debug.d.tlua +25 -60
- package/types/debugoverlay.d.tlua +0 -23
- package/types/dentityproperties.d.tlua +1 -10
- package/types/derma.d.tlua +0 -21
- package/types/dexpandbutton.d.tlua +1 -6
- package/types/dfilebrowser.d.tlua +0 -41
- package/types/dform.d.tlua +1 -36
- package/types/dframe.d.tlua +0 -49
- package/types/dgrid.d.tlua +1 -22
- package/types/dhorizontaldivider.d.tlua +1 -40
- package/types/dhorizontalscroller.d.tlua +1 -22
- package/types/dhscrollbar.d.tlua +1 -22
- package/types/dhtml.d.tlua +1 -16
- package/types/dhtmlcontrols.d.tlua +0 -11
- package/types/diconbrowser.d.tlua +1 -22
- package/types/diconlayout.d.tlua +1 -36
- package/types/dimage.d.tlua +1 -39
- package/types/dimagebutton.d.tlua +0 -19
- package/types/dkillicon.d.tlua +0 -1
- package/types/dlabel.d.tlua +1 -66
- package/types/dlabeleditable.d.tlua +1 -10
- package/types/dlabelurl.d.tlua +1 -20
- package/types/dlistbox.d.tlua +1 -16
- package/types/dlistboxitem.d.tlua +1 -8
- package/types/dlistlayout.d.tlua +0 -1
- package/types/dlistview.d.tlua +1 -68
- package/types/dlistview_column.d.tlua +1 -28
- package/types/dlistview_columnplain.d.tlua +0 -1
- package/types/dlistview_draggerbar.d.tlua +0 -1
- package/types/dlistview_line.d.tlua +1 -26
- 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 +1 -53
- package/types/dmenubar.d.tlua +1 -11
- package/types/dmenuoption.d.tlua +1 -26
- package/types/dmenuoptioncvar.d.tlua +1 -12
- package/types/dmodelpanel.d.tlua +1 -44
- package/types/dmodelselect.d.tlua +1 -4
- package/types/dmodelselectmulti.d.tlua +1 -4
- package/types/dnotify.d.tlua +1 -20
- package/types/dnumberscratch.d.tlua +1 -52
- package/types/dnumberwang.d.tlua +1 -32
- package/types/dnumpad.d.tlua +0 -1
- package/types/dnumslider.d.tlua +0 -35
- package/types/dpanel.d.tlua +1 -28
- package/types/dpanellist.d.tlua +0 -23
- package/types/dpaneloverlay.d.tlua +1 -14
- package/types/dpanelselect.d.tlua +0 -1
- package/types/dpanpanel.d.tlua +1 -12
- package/types/dprogress.d.tlua +1 -6
- package/types/dproperties.d.tlua +1 -8
- package/types/dproperty_boolean.d.tlua +0 -1
- package/types/dproperty_combo.d.tlua +1 -6
- package/types/dproperty_entity.d.tlua +0 -1
- package/types/dproperty_float.d.tlua +0 -1
- package/types/dproperty_generic.d.tlua +1 -10
- package/types/dproperty_int.d.tlua +0 -1
- package/types/dproperty_vectorcolor.d.tlua +0 -1
- package/types/dpropertysheet.d.tlua +9 -41
- package/types/dragndrop.d.tlua +0 -21
- package/types/draw.d.tlua +0 -22
- package/types/drgbpicker.d.tlua +1 -8
- package/types/drive.d.tlua +6 -31
- package/types/dscrollbargrip.d.tlua +0 -1
- package/types/dscrollpanel.d.tlua +0 -21
- package/types/dshape.d.tlua +1 -14
- package/types/dsizetocontents.d.tlua +1 -10
- package/types/dslider.d.tlua +1 -56
- package/types/dsprite.d.tlua +1 -18
- package/types/dtab.d.tlua +1 -16
- package/types/dtextentry.d.tlua +1 -86
- package/types/dtilelayout.d.tlua +1 -42
- package/types/dtooltip.d.tlua +1 -12
- package/types/dtree.d.tlua +1 -32
- package/types/dtree_node.d.tlua +1 -136
- package/types/dtree_node_button.d.tlua +0 -1
- package/types/duplicator.d.tlua +0 -60
- package/types/dverticaldivider.d.tlua +1 -46
- package/types/dvscrollbar.d.tlua +1 -22
- package/types/editablepanel.d.tlua +0 -1
- package/types/effect.d.tlua +1 -8
- package/types/effects.d.tlua +0 -13
- package/types/engine.d.tlua +0 -43
- package/types/entity.d.tlua +2 -1319
- package/types/ents.d.tlua +0 -44
- package/types/enums.d.tlua +0 -1
- package/types/file.d.tlua +0 -79
- 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 +0 -15
- package/types/game.d.tlua +0 -79
- package/types/gameevent.d.tlua +4 -9
- package/types/gamemode.d.tlua +0 -6
- package/types/global.d.tlua +0 -18
- package/types/gm.d.tlua +0 -535
- package/types/gmod.d.tlua +0 -1
- package/types/gmsave.d.tlua +0 -9
- package/types/gui.d.tlua +0 -43
- package/types/gwen.d.tlua +0 -7
- package/types/halo.d.tlua +0 -5
- package/types/hammer.d.tlua +0 -1
- package/types/hook.d.tlua +0 -9
- package/types/html.d.tlua +0 -1
- package/types/http.d.tlua +0 -3
- package/types/iconeditor.d.tlua +1 -22
- package/types/igmodaudiochannel.d.tlua +0 -83
- package/types/imagecheckbox.d.tlua +1 -8
- package/types/imaterial.d.tlua +0 -53
- package/types/imesh.d.tlua +0 -11
- package/types/input.d.tlua +0 -47
- package/types/invalidateinternalentitycache.d.tlua +0 -1
- package/types/irestore.d.tlua +0 -19
- package/types/isave.d.tlua +0 -19
- package/types/itexture.d.tlua +0 -21
- package/types/ivideowriter.d.tlua +0 -11
- package/types/jit.d.tlua +9 -42
- package/types/killicon.d.tlua +0 -15
- package/types/label.d.tlua +0 -1
- package/types/language.d.tlua +0 -3
- package/types/list.d.tlua +0 -17
- package/types/makeballoon.d.tlua +0 -1
- package/types/markup.d.tlua +0 -5
- package/types/markupobject.d.tlua +0 -11
- package/types/material.d.tlua +0 -1
- package/types/math.d.tlua +200 -371
- package/types/matproxy.d.tlua +0 -7
- package/types/matselect.d.tlua +1 -22
- package/types/menu.d.tlua +0 -1
- package/types/menubar.d.tlua +0 -5
- package/types/mesh.d.tlua +0 -39
- package/types/modelimage.d.tlua +0 -1
- package/types/motionsensor.d.tlua +0 -21
- package/types/navmesh.d.tlua +0 -53
- package/types/net.d.tlua +0 -104
- package/types/nextbot.d.tlua +10 -83
- package/types/notification.d.tlua +0 -5
- package/types/npc.d.tlua +1 -364
- package/types/numpad.d.tlua +0 -15
- package/types/os.d.tlua +0 -8
- package/types/package.d.tlua +0 -1
- package/types/panel.d.tlua +2 -662
- package/types/panellist.d.tlua +0 -1
- package/types/pathfollower.d.tlua +0 -63
- package/types/permissions.d.tlua +0 -13
- package/types/physcollide.d.tlua +0 -7
- package/types/physenv.d.tlua +0 -23
- package/types/physobj.d.tlua +0 -157
- package/types/pixelvis_handle_t.d.tlua +0 -1
- package/types/player.d.tlua +11 -594
- package/types/player_manager.d.tlua +0 -27
- package/types/preseteditor.d.tlua +0 -1
- package/types/presets.d.tlua +0 -13
- package/types/projectedtexture.d.tlua +0 -97
- package/types/properties.d.tlua +0 -11
- package/types/propselect.d.tlua +1 -10
- package/types/radiobutton.d.tlua +0 -1
- package/types/render.d.tlua +0 -285
- package/types/resource.d.tlua +0 -5
- package/types/richtext.d.tlua +0 -1
- package/types/sandbox.d.tlua +1 -108
- package/types/saverestore.d.tlua +0 -25
- package/types/schedule.d.tlua +0 -13
- package/types/scripted_ents.d.tlua +0 -21
- package/types/search.d.tlua +0 -3
- package/types/serverlist.d.tlua +0 -15
- package/types/slidebar.d.tlua +0 -1
- package/types/slider.d.tlua +0 -1
- package/types/sound.d.tlua +0 -21
- package/types/spawnicon.d.tlua +1 -16
- package/types/spawnmenu.d.tlua +0 -48
- package/types/spawnmenucontentpanel.d.tlua +1 -10
- package/types/sql.d.tlua +0 -19
- package/types/stack.d.tlua +0 -11
- package/types/steamworks.d.tlua +0 -37
- package/types/string.d.tlua +0 -96
- package/types/structures.d.tlua +0 -7
- package/types/surface.d.tlua +0 -69
- package/types/surfaceinfo.d.tlua +0 -11
- package/types/system.d.tlua +0 -21
- package/types/table.d.tlua +0 -93
- package/types/task.d.tlua +0 -19
- package/types/team.d.tlua +0 -39
- package/types/textentry.d.tlua +0 -1
- package/types/tgaimage.d.tlua +0 -1
- package/types/timer.d.tlua +0 -29
- package/types/tool.d.tlua +1 -90
- package/types/ugcpublishwindow.d.tlua +1 -18
- package/types/umsg.d.tlua +0 -25
- package/types/undo.d.tlua +0 -21
- package/types/urllabel.d.tlua +0 -1
- package/types/usermessage.d.tlua +0 -5
- package/types/utf8.d.tlua +0 -15
- package/types/util.d.tlua +0 -185
- package/types/vector.d.tlua +0 -73
- package/types/vehicle.d.tlua +2 -102
- package/types/vgui.d.tlua +0 -33
- package/types/video.d.tlua +0 -1
- package/types/vmatrix.d.tlua +0 -71
- package/types/weapon.d.tlua +2 -168
- package/types/weapons.d.tlua +0 -12
- package/types/widgets.d.tlua +0 -3
- package/types/workshopfilebase.d.tlua +0 -11
|
@@ -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,63 @@ 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
20
|
|
|
24
|
-
interface CLuaLocomotion {
|
|
25
21
|
/**
|
|
26
22
|
* Removes the stuck status from the bot
|
|
27
23
|
* @realm server
|
|
28
24
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:ClearStuck
|
|
29
25
|
*/
|
|
30
26
|
ClearStuck(self: CLuaLocomotion): void;
|
|
31
|
-
}
|
|
32
27
|
|
|
33
|
-
interface CLuaLocomotion {
|
|
34
28
|
/**
|
|
35
29
|
* Sets the direction we want to face
|
|
36
30
|
* @realm server
|
|
37
31
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:FaceTowards
|
|
38
32
|
*/
|
|
39
33
|
FaceTowards(self: CLuaLocomotion, goal: Vector): void;
|
|
40
|
-
}
|
|
41
34
|
|
|
42
|
-
interface CLuaLocomotion {
|
|
43
35
|
/**
|
|
44
36
|
* Returns the acceleration speed
|
|
45
37
|
* @realm server
|
|
46
38
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetAcceleration
|
|
47
39
|
*/
|
|
48
40
|
GetAcceleration(self: CLuaLocomotion): number;
|
|
49
|
-
}
|
|
50
41
|
|
|
51
|
-
interface CLuaLocomotion {
|
|
52
42
|
/**
|
|
53
43
|
* Returns whether the Nextbot is allowed to avoid obstacles or not.
|
|
54
44
|
* @realm server
|
|
55
45
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetAvoidAllowed
|
|
56
46
|
*/
|
|
57
47
|
GetAvoidAllowed(self: CLuaLocomotion): boolean;
|
|
58
|
-
}
|
|
59
48
|
|
|
60
|
-
interface CLuaLocomotion {
|
|
61
49
|
/**
|
|
62
50
|
* Returns whether the Nextbot is allowed to climb or not.
|
|
63
51
|
* @realm server
|
|
64
52
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetClimbAllowed
|
|
65
53
|
*/
|
|
66
54
|
GetClimbAllowed(self: CLuaLocomotion): boolean;
|
|
67
|
-
}
|
|
68
55
|
|
|
69
|
-
interface CLuaLocomotion {
|
|
70
56
|
/**
|
|
71
57
|
* Returns the current acceleration as a vector
|
|
72
58
|
* @realm server
|
|
73
59
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetCurrentAcceleration
|
|
74
60
|
*/
|
|
75
61
|
GetCurrentAcceleration(self: CLuaLocomotion): Vector;
|
|
76
|
-
}
|
|
77
62
|
|
|
78
|
-
interface CLuaLocomotion {
|
|
79
63
|
/**
|
|
80
64
|
* Gets the height the bot is scared to fall from
|
|
81
65
|
* @realm server
|
|
82
66
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetDeathDropHeight
|
|
83
67
|
*/
|
|
84
68
|
GetDeathDropHeight(self: CLuaLocomotion): number;
|
|
85
|
-
}
|
|
86
69
|
|
|
87
|
-
interface CLuaLocomotion {
|
|
88
70
|
/**
|
|
89
71
|
* Gets the deceleration speed
|
|
90
72
|
* @realm server
|
|
91
73
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetDeceleration
|
|
92
74
|
*/
|
|
93
75
|
GetDeceleration(self: CLuaLocomotion): number;
|
|
94
|
-
}
|
|
95
76
|
|
|
96
|
-
interface CLuaLocomotion {
|
|
97
77
|
/**
|
|
98
78
|
* Returns the desired movement speed set by [CLuaLocomotion:SetDesiredSpeed](https://wiki.facepunch.com/gmod/CLuaLocomotion:SetDesiredSpeed)
|
|
99
79
|
*
|
|
@@ -101,27 +81,21 @@ interface CLuaLocomotion {
|
|
|
101
81
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetDesiredSpeed
|
|
102
82
|
*/
|
|
103
83
|
GetDesiredSpeed(self: CLuaLocomotion): number;
|
|
104
|
-
}
|
|
105
84
|
|
|
106
|
-
interface CLuaLocomotion {
|
|
107
85
|
/**
|
|
108
86
|
* Returns the locomotion's gravity.
|
|
109
87
|
* @realm server
|
|
110
88
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetGravity
|
|
111
89
|
*/
|
|
112
90
|
GetGravity(self: CLuaLocomotion): number;
|
|
113
|
-
}
|
|
114
91
|
|
|
115
|
-
interface CLuaLocomotion {
|
|
116
92
|
/**
|
|
117
93
|
* Return unit vector in XY plane describing our direction of motion - even if we are currently not moving
|
|
118
94
|
* @realm server
|
|
119
95
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetGroundMotionVector
|
|
120
96
|
*/
|
|
121
97
|
GetGroundMotionVector(self: CLuaLocomotion): Vector;
|
|
122
|
-
}
|
|
123
98
|
|
|
124
|
-
interface CLuaLocomotion {
|
|
125
99
|
/**
|
|
126
100
|
* Returns the current ground normal.
|
|
127
101
|
*
|
|
@@ -129,189 +103,147 @@ interface CLuaLocomotion {
|
|
|
129
103
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetGroundNormal
|
|
130
104
|
*/
|
|
131
105
|
GetGroundNormal(self: CLuaLocomotion): Vector;
|
|
132
|
-
}
|
|
133
106
|
|
|
134
|
-
interface CLuaLocomotion {
|
|
135
107
|
/**
|
|
136
108
|
* Returns whether the Nextbot is allowed to jump gaps or not.
|
|
137
109
|
* @realm server
|
|
138
110
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetJumpGapsAllowed
|
|
139
111
|
*/
|
|
140
112
|
GetJumpGapsAllowed(self: CLuaLocomotion): boolean;
|
|
141
|
-
}
|
|
142
113
|
|
|
143
|
-
interface CLuaLocomotion {
|
|
144
114
|
/**
|
|
145
115
|
* Gets the height of the bot's jump
|
|
146
116
|
* @realm server
|
|
147
117
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetJumpHeight
|
|
148
118
|
*/
|
|
149
119
|
GetJumpHeight(self: CLuaLocomotion): number;
|
|
150
|
-
}
|
|
151
120
|
|
|
152
|
-
interface CLuaLocomotion {
|
|
153
121
|
/**
|
|
154
122
|
* Returns maximum jump height of this [CLuaLocomotion](https://wiki.facepunch.com/gmod/CLuaLocomotion).
|
|
155
123
|
* @realm server
|
|
156
124
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetMaxJumpHeight
|
|
157
125
|
*/
|
|
158
126
|
GetMaxJumpHeight(self: CLuaLocomotion): number;
|
|
159
|
-
}
|
|
160
127
|
|
|
161
|
-
interface CLuaLocomotion {
|
|
162
128
|
/**
|
|
163
129
|
* Returns the max rate at which the NextBot can visually rotate.
|
|
164
130
|
* @realm server
|
|
165
131
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetMaxYawRate
|
|
166
132
|
*/
|
|
167
133
|
GetMaxYawRate(self: CLuaLocomotion): number;
|
|
168
|
-
}
|
|
169
134
|
|
|
170
|
-
interface CLuaLocomotion {
|
|
171
135
|
/**
|
|
172
136
|
* Returns the [NextBot](https://wiki.facepunch.com/gmod/NextBot) this locomotion is associated with.
|
|
173
137
|
* @realm server
|
|
174
138
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetNextBot
|
|
175
139
|
*/
|
|
176
140
|
GetNextBot(self: CLuaLocomotion): NextBot;
|
|
177
|
-
}
|
|
178
141
|
|
|
179
|
-
interface CLuaLocomotion {
|
|
180
142
|
/**
|
|
181
143
|
* Gets the max height the bot can step up
|
|
182
144
|
* @realm server
|
|
183
145
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetStepHeight
|
|
184
146
|
*/
|
|
185
147
|
GetStepHeight(self: CLuaLocomotion): number;
|
|
186
|
-
}
|
|
187
148
|
|
|
188
|
-
interface CLuaLocomotion {
|
|
189
149
|
/**
|
|
190
150
|
* Returns the current movement velocity as a vector
|
|
191
151
|
* @realm server
|
|
192
152
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetVelocity
|
|
193
153
|
*/
|
|
194
154
|
GetVelocity(self: CLuaLocomotion): Vector;
|
|
195
|
-
}
|
|
196
155
|
|
|
197
|
-
interface CLuaLocomotion {
|
|
198
156
|
/**
|
|
199
157
|
* 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
158
|
* @realm server
|
|
201
159
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsAreaTraversable
|
|
202
160
|
*/
|
|
203
161
|
IsAreaTraversable(self: CLuaLocomotion, area: CNavArea): boolean;
|
|
204
|
-
}
|
|
205
162
|
|
|
206
|
-
interface CLuaLocomotion {
|
|
207
163
|
/**
|
|
208
164
|
* Returns true if we're trying to move.
|
|
209
165
|
* @realm server
|
|
210
166
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsAttemptingToMove
|
|
211
167
|
*/
|
|
212
168
|
IsAttemptingToMove(self: CLuaLocomotion): boolean;
|
|
213
|
-
}
|
|
214
169
|
|
|
215
|
-
interface CLuaLocomotion {
|
|
216
170
|
/**
|
|
217
171
|
* Returns true of the locomotion engine is jumping or climbing
|
|
218
172
|
* @realm server
|
|
219
173
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsClimbingOrJumping
|
|
220
174
|
*/
|
|
221
175
|
IsClimbingOrJumping(self: CLuaLocomotion): boolean;
|
|
222
|
-
}
|
|
223
176
|
|
|
224
|
-
interface CLuaLocomotion {
|
|
225
177
|
/**
|
|
226
178
|
* Returns whether the nextbot this locomotion is attached to is on ground or not.
|
|
227
179
|
* @realm server
|
|
228
180
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsOnGround
|
|
229
181
|
*/
|
|
230
182
|
IsOnGround(self: CLuaLocomotion): boolean;
|
|
231
|
-
}
|
|
232
183
|
|
|
233
|
-
interface CLuaLocomotion {
|
|
234
184
|
/**
|
|
235
185
|
* Returns true if we're stuck
|
|
236
186
|
* @realm server
|
|
237
187
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsStuck
|
|
238
188
|
*/
|
|
239
189
|
IsStuck(self: CLuaLocomotion): boolean;
|
|
240
|
-
}
|
|
241
190
|
|
|
242
|
-
interface CLuaLocomotion {
|
|
243
191
|
/**
|
|
244
192
|
* Returns whether or not the target in question is on a ladder or not.
|
|
245
193
|
* @realm server
|
|
246
194
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsUsingLadder
|
|
247
195
|
*/
|
|
248
196
|
IsUsingLadder(self: CLuaLocomotion): boolean;
|
|
249
|
-
}
|
|
250
197
|
|
|
251
|
-
interface CLuaLocomotion {
|
|
252
198
|
/**
|
|
253
199
|
* 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
200
|
* @realm server
|
|
255
201
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:Jump
|
|
256
202
|
*/
|
|
257
203
|
Jump(self: CLuaLocomotion, act?: number): void;
|
|
258
|
-
}
|
|
259
204
|
|
|
260
|
-
interface CLuaLocomotion {
|
|
261
205
|
/**
|
|
262
206
|
* 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
207
|
* @realm server
|
|
264
208
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:JumpAcrossGap
|
|
265
209
|
*/
|
|
266
210
|
JumpAcrossGap(self: CLuaLocomotion, landingGoal: Vector, landingForward: Vector): void;
|
|
267
|
-
}
|
|
268
211
|
|
|
269
|
-
interface CLuaLocomotion {
|
|
270
212
|
/**
|
|
271
213
|
* Sets the acceleration speed
|
|
272
214
|
* @realm server
|
|
273
215
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetAcceleration
|
|
274
216
|
*/
|
|
275
217
|
SetAcceleration(self: CLuaLocomotion, speed?: number): void;
|
|
276
|
-
}
|
|
277
218
|
|
|
278
|
-
interface CLuaLocomotion {
|
|
279
219
|
/**
|
|
280
220
|
* 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
221
|
* @realm server
|
|
282
222
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetAvoidAllowed
|
|
283
223
|
*/
|
|
284
224
|
SetAvoidAllowed(self: CLuaLocomotion, allowed: boolean): void;
|
|
285
|
-
}
|
|
286
225
|
|
|
287
|
-
interface CLuaLocomotion {
|
|
288
226
|
/**
|
|
289
227
|
* 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
228
|
* @realm server
|
|
291
229
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetClimbAllowed
|
|
292
230
|
*/
|
|
293
231
|
SetClimbAllowed(self: CLuaLocomotion, allowed: boolean): void;
|
|
294
|
-
}
|
|
295
232
|
|
|
296
|
-
interface CLuaLocomotion {
|
|
297
233
|
/**
|
|
298
234
|
* Sets the height the bot is scared to fall from.
|
|
299
235
|
* @realm server
|
|
300
236
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetDeathDropHeight
|
|
301
237
|
*/
|
|
302
238
|
SetDeathDropHeight(self: CLuaLocomotion, height?: number): void;
|
|
303
|
-
}
|
|
304
239
|
|
|
305
|
-
interface CLuaLocomotion {
|
|
306
240
|
/**
|
|
307
241
|
* Sets the deceleration speed.
|
|
308
242
|
* @realm server
|
|
309
243
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetDeceleration
|
|
310
244
|
*/
|
|
311
245
|
SetDeceleration(self: CLuaLocomotion, deceleration?: number): void;
|
|
312
|
-
}
|
|
313
246
|
|
|
314
|
-
interface CLuaLocomotion {
|
|
315
247
|
/**
|
|
316
248
|
* 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
249
|
*
|
|
@@ -321,9 +253,7 @@ interface CLuaLocomotion {
|
|
|
321
253
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetDesiredSpeed
|
|
322
254
|
*/
|
|
323
255
|
SetDesiredSpeed(self: CLuaLocomotion, speed?: number): void;
|
|
324
|
-
}
|
|
325
256
|
|
|
326
|
-
interface CLuaLocomotion {
|
|
327
257
|
/**
|
|
328
258
|
* Sets the locomotion's gravity.
|
|
329
259
|
*
|
|
@@ -334,45 +264,35 @@ interface CLuaLocomotion {
|
|
|
334
264
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetGravity
|
|
335
265
|
*/
|
|
336
266
|
SetGravity(self: CLuaLocomotion, gravity?: number): void;
|
|
337
|
-
}
|
|
338
267
|
|
|
339
|
-
interface CLuaLocomotion {
|
|
340
268
|
/**
|
|
341
269
|
* 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
270
|
* @realm server
|
|
343
271
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetJumpGapsAllowed
|
|
344
272
|
*/
|
|
345
273
|
SetJumpGapsAllowed(self: CLuaLocomotion, allowed: boolean): void;
|
|
346
|
-
}
|
|
347
274
|
|
|
348
|
-
interface CLuaLocomotion {
|
|
349
275
|
/**
|
|
350
276
|
* Sets the height of the bot's jump
|
|
351
277
|
* @realm server
|
|
352
278
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetJumpHeight
|
|
353
279
|
*/
|
|
354
280
|
SetJumpHeight(self: CLuaLocomotion, height?: number): void;
|
|
355
|
-
}
|
|
356
281
|
|
|
357
|
-
interface CLuaLocomotion {
|
|
358
282
|
/**
|
|
359
283
|
* Sets the max rate at which the NextBot can visually rotate. This will not affect moving or pathing.
|
|
360
284
|
* @realm server
|
|
361
285
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetMaxYawRate
|
|
362
286
|
*/
|
|
363
287
|
SetMaxYawRate(self: CLuaLocomotion, yawRate?: number): void;
|
|
364
|
-
}
|
|
365
288
|
|
|
366
|
-
interface CLuaLocomotion {
|
|
367
289
|
/**
|
|
368
290
|
* Sets the max height the bot can step up
|
|
369
291
|
* @realm server
|
|
370
292
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetStepHeight
|
|
371
293
|
*/
|
|
372
294
|
SetStepHeight(self: CLuaLocomotion, height?: number): void;
|
|
373
|
-
}
|
|
374
295
|
|
|
375
|
-
interface CLuaLocomotion {
|
|
376
296
|
/**
|
|
377
297
|
* Sets the current movement velocity
|
|
378
298
|
* @realm server
|
|
@@ -380,4 +300,3 @@ interface CLuaLocomotion {
|
|
|
380
300
|
*/
|
|
381
301
|
SetVelocity(self: CLuaLocomotion, velocity: Vector): void;
|
|
382
302
|
}
|
|
383
|
-
|