@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
package/types/nextbot.d.tlua
CHANGED
|
@@ -5,19 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT_Hooks
|
|
7
7
|
*/
|
|
8
|
-
interface NEXTBOT extends NextBot {
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* NextBots are a new system to create NPCs in the Source Engine, utilizing the more powerful [navmesh](https://wiki.facepunch.com/gmod/navmesh) system for navigation over the old node based system.
|
|
12
|
-
*
|
|
13
|
-
* This page lists all possible functions usable with NextBots.
|
|
14
|
-
*
|
|
15
|
-
* See [NextBot NPC Creation](https://wiki.facepunch.com/gmod/NextBot_NPC_Creation) for more information on how to create NextBot NPCs.
|
|
16
|
-
* @source https://wiki.facepunch.com/gmod/NextBot
|
|
17
|
-
*/
|
|
18
|
-
interface NextBot extends Entity {}
|
|
19
|
-
|
|
20
|
-
interface NEXTBOT {
|
|
8
|
+
interface NEXTBOT extends NextBot {
|
|
21
9
|
/**
|
|
22
10
|
* Called to initialize the behaviour.
|
|
23
11
|
*
|
|
@@ -30,9 +18,7 @@ interface NEXTBOT {
|
|
|
30
18
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:BehaveStart
|
|
31
19
|
*/
|
|
32
20
|
BehaveStart(self: NEXTBOT): void;
|
|
33
|
-
}
|
|
34
21
|
|
|
35
|
-
interface NEXTBOT {
|
|
36
22
|
/**
|
|
37
23
|
* Called to update the bot's behaviour.
|
|
38
24
|
*
|
|
@@ -41,27 +27,21 @@ interface NEXTBOT {
|
|
|
41
27
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:BehaveUpdate
|
|
42
28
|
*/
|
|
43
29
|
BehaveUpdate(self: NEXTBOT, interval: number): void;
|
|
44
|
-
}
|
|
45
30
|
|
|
46
|
-
interface NEXTBOT {
|
|
47
31
|
/**
|
|
48
32
|
* Called to update the bot's animation.
|
|
49
33
|
* @realm server
|
|
50
34
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:BodyUpdate
|
|
51
35
|
*/
|
|
52
36
|
BodyUpdate(self: NEXTBOT): void;
|
|
53
|
-
}
|
|
54
37
|
|
|
55
|
-
interface NEXTBOT {
|
|
56
38
|
/**
|
|
57
39
|
* Called when the nextbot touches another entity.
|
|
58
40
|
* @realm server
|
|
59
41
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnContact
|
|
60
42
|
*/
|
|
61
43
|
OnContact(self: NEXTBOT, ent: Entity): void;
|
|
62
|
-
}
|
|
63
44
|
|
|
64
|
-
interface NEXTBOT {
|
|
65
45
|
/**
|
|
66
46
|
* Called when the nextbot NPC sees another Nextbot NPC or a Player.
|
|
67
47
|
* **NOTE**: This hook will only run after [NextBot:SetFOV](https://wiki.facepunch.com/gmod/NextBot:SetFOV) or other vision related function is called on the nextbot. See [NextBot:IsAbleToSee](https://wiki.facepunch.com/gmod/NextBot:IsAbleToSee) for more details.
|
|
@@ -71,9 +51,7 @@ interface NEXTBOT {
|
|
|
71
51
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnEntitySight
|
|
72
52
|
*/
|
|
73
53
|
OnEntitySight(self: NEXTBOT, ent: Entity): void;
|
|
74
|
-
}
|
|
75
54
|
|
|
76
|
-
interface NEXTBOT {
|
|
77
55
|
/**
|
|
78
56
|
* Called when the nextbot NPC loses sight of another Nextbot NPC or a Player.
|
|
79
57
|
* **NOTE**: This hook will only run after [NextBot:SetFOV](https://wiki.facepunch.com/gmod/NextBot:SetFOV) or other vision related function is called on the nextbot. See [NextBot:IsAbleToSee](https://wiki.facepunch.com/gmod/NextBot:IsAbleToSee) for more details.
|
|
@@ -83,90 +61,70 @@ interface NEXTBOT {
|
|
|
83
61
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnEntitySightLost
|
|
84
62
|
*/
|
|
85
63
|
OnEntitySightLost(self: NEXTBOT, ent: Entity): void;
|
|
86
|
-
}
|
|
87
64
|
|
|
88
|
-
interface NEXTBOT {
|
|
89
65
|
/**
|
|
90
66
|
* Called when the bot is ignited.
|
|
91
67
|
* @realm server
|
|
92
68
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnIgnite
|
|
93
69
|
*/
|
|
94
70
|
OnIgnite(self: NEXTBOT): void;
|
|
95
|
-
}
|
|
96
71
|
|
|
97
|
-
interface NEXTBOT {
|
|
98
72
|
/**
|
|
99
73
|
* Called when the bot gets hurt. This is a good place to play hurt sounds or voice lines.
|
|
100
74
|
* @realm server
|
|
101
75
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnInjured
|
|
102
76
|
*/
|
|
103
77
|
OnInjured(self: NEXTBOT, info: CTakeDamageInfo): void;
|
|
104
|
-
}
|
|
105
78
|
|
|
106
|
-
interface NEXTBOT {
|
|
107
79
|
/**
|
|
108
80
|
* Called when the bot gets killed.
|
|
109
81
|
* @realm server
|
|
110
82
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnKilled
|
|
111
83
|
*/
|
|
112
84
|
OnKilled(self: NEXTBOT, info: CTakeDamageInfo): void;
|
|
113
|
-
}
|
|
114
85
|
|
|
115
|
-
interface NEXTBOT {
|
|
116
86
|
/**
|
|
117
87
|
* Called when the bot's feet return to the ground.
|
|
118
88
|
* @realm server
|
|
119
89
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnLandOnGround
|
|
120
90
|
*/
|
|
121
91
|
OnLandOnGround(self: NEXTBOT, ent: Entity): void;
|
|
122
|
-
}
|
|
123
92
|
|
|
124
|
-
interface NEXTBOT {
|
|
125
93
|
/**
|
|
126
94
|
* Called when the bot's feet leave the ground - for whatever reason.
|
|
127
95
|
* @realm server
|
|
128
96
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnLeaveGround
|
|
129
97
|
*/
|
|
130
98
|
OnLeaveGround(self: NEXTBOT, ent: Entity): void;
|
|
131
|
-
}
|
|
132
99
|
|
|
133
|
-
interface NEXTBOT {
|
|
134
100
|
/**
|
|
135
101
|
* Called when the nextbot enters a new navigation area.
|
|
136
102
|
* @realm server
|
|
137
103
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnNavAreaChanged
|
|
138
104
|
*/
|
|
139
105
|
OnNavAreaChanged(self: NEXTBOT, old: CNavArea, _new: CNavArea): void;
|
|
140
|
-
}
|
|
141
106
|
|
|
142
|
-
interface NEXTBOT {
|
|
143
107
|
/**
|
|
144
108
|
* Called when someone else or something else has been killed.
|
|
145
109
|
* @realm server
|
|
146
110
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnOtherKilled
|
|
147
111
|
*/
|
|
148
112
|
OnOtherKilled(self: NEXTBOT, victim: Entity, info: CTakeDamageInfo): void;
|
|
149
|
-
}
|
|
150
113
|
|
|
151
|
-
interface NEXTBOT {
|
|
152
114
|
/**
|
|
153
115
|
* Called when the bot thinks it is stuck.
|
|
154
116
|
* @realm server
|
|
155
117
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnStuck
|
|
156
118
|
*/
|
|
157
119
|
OnStuck(self: NEXTBOT): void;
|
|
158
|
-
}
|
|
159
120
|
|
|
160
|
-
interface NEXTBOT {
|
|
161
121
|
/**
|
|
162
122
|
* Called when the bot thinks it is un-stuck.
|
|
163
123
|
* @realm server
|
|
164
124
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnUnStuck
|
|
165
125
|
*/
|
|
166
126
|
OnUnStuck(self: NEXTBOT): void;
|
|
167
|
-
}
|
|
168
127
|
|
|
169
|
-
interface NEXTBOT {
|
|
170
128
|
/**
|
|
171
129
|
* A hook called to process nextbot logic.
|
|
172
130
|
*
|
|
@@ -178,16 +136,22 @@ interface NEXTBOT {
|
|
|
178
136
|
RunBehaviour(self: NEXTBOT): void;
|
|
179
137
|
}
|
|
180
138
|
|
|
181
|
-
|
|
139
|
+
/**
|
|
140
|
+
* NextBots are a new system to create NPCs in the Source Engine, utilizing the more powerful [navmesh](https://wiki.facepunch.com/gmod/navmesh) system for navigation over the old node based system.
|
|
141
|
+
*
|
|
142
|
+
* This page lists all possible functions usable with NextBots.
|
|
143
|
+
*
|
|
144
|
+
* See [NextBot NPC Creation](https://wiki.facepunch.com/gmod/NextBot_NPC_Creation) for more information on how to create NextBot NPCs.
|
|
145
|
+
* @source https://wiki.facepunch.com/gmod/NextBot
|
|
146
|
+
*/
|
|
147
|
+
interface NextBot extends Entity {
|
|
182
148
|
/**
|
|
183
149
|
* Become a ragdoll and remove the entity.
|
|
184
150
|
* @realm server
|
|
185
151
|
* @source https://wiki.facepunch.com/gmod/NextBot:BecomeRagdoll
|
|
186
152
|
*/
|
|
187
153
|
BecomeRagdoll(self: NextBot, info: CTakeDamageInfo): Entity;
|
|
188
|
-
}
|
|
189
154
|
|
|
190
|
-
interface NextBot {
|
|
191
155
|
/**
|
|
192
156
|
* Should only be called in [NEXTBOT:BodyUpdate](https://wiki.facepunch.com/gmod/NEXTBOT:BodyUpdate). This sets the `move_x` and `move_y` pose parameters of the bot to fit how they're currently moving, sets the animation speed ([Entity:GetPlaybackRate](https://wiki.facepunch.com/gmod/Entity:GetPlaybackRate)) to suit the ground speed, and calls [Entity:FrameAdvance](https://wiki.facepunch.com/gmod/Entity:FrameAdvance).
|
|
193
157
|
*
|
|
@@ -197,72 +161,56 @@ interface NextBot {
|
|
|
197
161
|
* @source https://wiki.facepunch.com/gmod/NextBot:BodyMoveXY
|
|
198
162
|
*/
|
|
199
163
|
BodyMoveXY(self: NextBot): void;
|
|
200
|
-
}
|
|
201
164
|
|
|
202
|
-
interface NextBot {
|
|
203
165
|
/**
|
|
204
166
|
* Clears this bot's last known area. See [NextBot:GetLastKnownArea](https://wiki.facepunch.com/gmod/NextBot:GetLastKnownArea).
|
|
205
167
|
* @realm server
|
|
206
168
|
* @source https://wiki.facepunch.com/gmod/NextBot:ClearLastKnownArea
|
|
207
169
|
*/
|
|
208
170
|
ClearLastKnownArea(self: NextBot): void;
|
|
209
|
-
}
|
|
210
171
|
|
|
211
|
-
interface NextBot {
|
|
212
172
|
/**
|
|
213
173
|
* Like [NextBot:FindSpots](https://wiki.facepunch.com/gmod/NextBot:FindSpots) but only returns a vector.
|
|
214
174
|
* @realm server
|
|
215
175
|
* @source https://wiki.facepunch.com/gmod/NextBot:FindSpot
|
|
216
176
|
*/
|
|
217
177
|
FindSpot(self: NextBot, type: string, options: table): Vector;
|
|
218
|
-
}
|
|
219
178
|
|
|
220
|
-
interface NextBot {
|
|
221
179
|
/**
|
|
222
180
|
* Returns a table of hiding spots.
|
|
223
181
|
* @realm server
|
|
224
182
|
* @source https://wiki.facepunch.com/gmod/NextBot:FindSpots
|
|
225
183
|
*/
|
|
226
184
|
FindSpots(self: NextBot, specs: table): table;
|
|
227
|
-
}
|
|
228
185
|
|
|
229
|
-
interface NextBot {
|
|
230
186
|
/**
|
|
231
187
|
* Returns the currently running activity
|
|
232
188
|
* @realm server
|
|
233
189
|
* @source https://wiki.facepunch.com/gmod/NextBot:GetActivity
|
|
234
190
|
*/
|
|
235
191
|
GetActivity(self: NextBot): number;
|
|
236
|
-
}
|
|
237
192
|
|
|
238
|
-
interface NextBot {
|
|
239
193
|
/**
|
|
240
194
|
* Returns the Field of View of the Nextbot NPC, used for its vision functionality, such as [NextBot:IsAbleToSee](https://wiki.facepunch.com/gmod/NextBot:IsAbleToSee).
|
|
241
195
|
* @realm server
|
|
242
196
|
* @source https://wiki.facepunch.com/gmod/NextBot:GetFOV
|
|
243
197
|
*/
|
|
244
198
|
GetFOV(self: NextBot): number;
|
|
245
|
-
}
|
|
246
199
|
|
|
247
|
-
interface NextBot {
|
|
248
200
|
/**
|
|
249
201
|
* Returns this bots last known area. See also [NextBot:ClearLastKnownArea](https://wiki.facepunch.com/gmod/NextBot:ClearLastKnownArea).
|
|
250
202
|
* @realm server
|
|
251
203
|
* @source https://wiki.facepunch.com/gmod/NextBot:GetLastKnownArea
|
|
252
204
|
*/
|
|
253
205
|
GetLastKnownArea(self: NextBot): CNavArea;
|
|
254
|
-
}
|
|
255
206
|
|
|
256
|
-
interface NextBot {
|
|
257
207
|
/**
|
|
258
208
|
* Returns the maximum range the nextbot can see other nextbots/players at. See [NextBot:IsAbleToSee](https://wiki.facepunch.com/gmod/NextBot:IsAbleToSee).
|
|
259
209
|
* @realm server
|
|
260
210
|
* @source https://wiki.facepunch.com/gmod/NextBot:GetMaxVisionRange
|
|
261
211
|
*/
|
|
262
212
|
GetMaxVisionRange(self: NextBot): number;
|
|
263
|
-
}
|
|
264
213
|
|
|
265
|
-
interface NextBot {
|
|
266
214
|
/**
|
|
267
215
|
* Returns squared distance to an entity or a position.
|
|
268
216
|
*
|
|
@@ -272,9 +220,7 @@ interface NextBot {
|
|
|
272
220
|
* @source https://wiki.facepunch.com/gmod/NextBot:GetRangeSquaredTo
|
|
273
221
|
*/
|
|
274
222
|
GetRangeSquaredTo(self: NextBot, to: Vector): number;
|
|
275
|
-
}
|
|
276
223
|
|
|
277
|
-
interface NextBot {
|
|
278
224
|
/**
|
|
279
225
|
* Returns the distance to an entity or position.
|
|
280
226
|
*
|
|
@@ -284,18 +230,14 @@ interface NextBot {
|
|
|
284
230
|
* @source https://wiki.facepunch.com/gmod/NextBot:GetRangeTo
|
|
285
231
|
*/
|
|
286
232
|
GetRangeTo(self: NextBot, to: Vector): number;
|
|
287
|
-
}
|
|
288
233
|
|
|
289
|
-
interface NextBot {
|
|
290
234
|
/**
|
|
291
235
|
* Returns the solid mask for given NextBot.
|
|
292
236
|
* @realm server
|
|
293
237
|
* @source https://wiki.facepunch.com/gmod/NextBot:GetSolidMask
|
|
294
238
|
*/
|
|
295
239
|
GetSolidMask(self: NextBot): number;
|
|
296
|
-
}
|
|
297
240
|
|
|
298
|
-
interface NextBot {
|
|
299
241
|
/**
|
|
300
242
|
* Called from Lua when the NPC is stuck. This should only be called from the behaviour coroutine - so if you want to override this function and do something special that yields - then go for it.
|
|
301
243
|
*
|
|
@@ -305,9 +247,7 @@ interface NextBot {
|
|
|
305
247
|
* @source https://wiki.facepunch.com/gmod/NextBot:HandleStuck
|
|
306
248
|
*/
|
|
307
249
|
HandleStuck(self: NextBot): void;
|
|
308
|
-
}
|
|
309
250
|
|
|
310
|
-
interface NextBot {
|
|
311
251
|
/**
|
|
312
252
|
* Returns if the Nextbot NPC can see the give entity or not.
|
|
313
253
|
*
|
|
@@ -317,45 +257,35 @@ interface NextBot {
|
|
|
317
257
|
* @source https://wiki.facepunch.com/gmod/NextBot:IsAbleToSee
|
|
318
258
|
*/
|
|
319
259
|
IsAbleToSee(self: NextBot, ent: Entity, useFOV?: number): boolean;
|
|
320
|
-
}
|
|
321
260
|
|
|
322
|
-
interface NextBot {
|
|
323
261
|
/**
|
|
324
262
|
* To be called in the behaviour coroutine only! Will yield until the bot has reached the goal or is stuck
|
|
325
263
|
* @realm server
|
|
326
264
|
* @source https://wiki.facepunch.com/gmod/NextBot:MoveToPos
|
|
327
265
|
*/
|
|
328
266
|
MoveToPos(self: NextBot, pos: Vector, options: table): string;
|
|
329
|
-
}
|
|
330
267
|
|
|
331
|
-
interface NextBot {
|
|
332
268
|
/**
|
|
333
269
|
* To be called in the behaviour coroutine only! Plays an animation sequence and waits for it to end before returning.
|
|
334
270
|
* @realm server
|
|
335
271
|
* @source https://wiki.facepunch.com/gmod/NextBot:PlaySequenceAndWait
|
|
336
272
|
*/
|
|
337
273
|
PlaySequenceAndWait(self: NextBot, name: string, speed?: number): void;
|
|
338
|
-
}
|
|
339
274
|
|
|
340
|
-
interface NextBot {
|
|
341
275
|
/**
|
|
342
276
|
* Sets the Field of View for the Nextbot NPC, used for its vision functionality, such as [NextBot:IsAbleToSee](https://wiki.facepunch.com/gmod/NextBot:IsAbleToSee).
|
|
343
277
|
* @realm server
|
|
344
278
|
* @source https://wiki.facepunch.com/gmod/NextBot:SetFOV
|
|
345
279
|
*/
|
|
346
280
|
SetFOV(self: NextBot, fov: number): void;
|
|
347
|
-
}
|
|
348
281
|
|
|
349
|
-
interface NextBot {
|
|
350
282
|
/**
|
|
351
283
|
* Sets the maximum range the nextbot can see other nextbots/players at. See [NextBot:IsAbleToSee](https://wiki.facepunch.com/gmod/NextBot:IsAbleToSee).
|
|
352
284
|
* @realm server
|
|
353
285
|
* @source https://wiki.facepunch.com/gmod/NextBot:SetMaxVisionRange
|
|
354
286
|
*/
|
|
355
287
|
SetMaxVisionRange(self: NextBot, range: number): void;
|
|
356
|
-
}
|
|
357
288
|
|
|
358
|
-
interface NextBot {
|
|
359
289
|
/**
|
|
360
290
|
* Sets the solid mask for given NextBot.
|
|
361
291
|
*
|
|
@@ -365,9 +295,7 @@ interface NextBot {
|
|
|
365
295
|
* @source https://wiki.facepunch.com/gmod/NextBot:SetSolidMask
|
|
366
296
|
*/
|
|
367
297
|
SetSolidMask(self: NextBot, mask: number): void;
|
|
368
|
-
}
|
|
369
298
|
|
|
370
|
-
interface NextBot {
|
|
371
299
|
/**
|
|
372
300
|
* Start doing an activity (animation).
|
|
373
301
|
*
|
|
@@ -377,4 +305,3 @@ interface NextBot {
|
|
|
377
305
|
*/
|
|
378
306
|
StartActivity(self: NextBot, activity: number): void;
|
|
379
307
|
}
|
|
380
|
-
|
|
@@ -13,18 +13,14 @@ interface NotificationLib {
|
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/notification.AddLegacy
|
|
14
14
|
*/
|
|
15
15
|
AddLegacy(text: string, type: number, length: number): void;
|
|
16
|
-
}
|
|
17
16
|
|
|
18
|
-
interface NotificationLib {
|
|
19
17
|
/**
|
|
20
18
|
* Adds a notification with an animated progress bar.
|
|
21
19
|
* @realm client
|
|
22
20
|
* @source https://wiki.facepunch.com/gmod/notification.AddProgress
|
|
23
21
|
*/
|
|
24
22
|
AddProgress(id: any, strText: string, frac?: number): void;
|
|
25
|
-
}
|
|
26
23
|
|
|
27
|
-
interface NotificationLib {
|
|
28
24
|
/**
|
|
29
25
|
* Removes the notification after 0.8 seconds.
|
|
30
26
|
* @realm client
|
|
@@ -32,4 +28,3 @@ interface NotificationLib {
|
|
|
32
28
|
*/
|
|
33
29
|
Kill(uid: any): void;
|
|
34
30
|
}
|
|
35
|
-
|