@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/nextbot.d.tlua
CHANGED
|
@@ -18,6 +18,7 @@ interface NEXTBOT extends NextBot {
|
|
|
18
18
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:BehaveStart
|
|
19
19
|
*/
|
|
20
20
|
BehaveStart(self: NEXTBOT): void;
|
|
21
|
+
|
|
21
22
|
/**
|
|
22
23
|
* Called to update the bot's behaviour.
|
|
23
24
|
*
|
|
@@ -26,18 +27,21 @@ interface NEXTBOT extends NextBot {
|
|
|
26
27
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:BehaveUpdate
|
|
27
28
|
*/
|
|
28
29
|
BehaveUpdate(self: NEXTBOT, interval: number): void;
|
|
30
|
+
|
|
29
31
|
/**
|
|
30
32
|
* Called to update the bot's animation.
|
|
31
33
|
* @realm server
|
|
32
34
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:BodyUpdate
|
|
33
35
|
*/
|
|
34
36
|
BodyUpdate(self: NEXTBOT): void;
|
|
37
|
+
|
|
35
38
|
/**
|
|
36
39
|
* Called when the nextbot touches another entity.
|
|
37
40
|
* @realm server
|
|
38
41
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnContact
|
|
39
42
|
*/
|
|
40
43
|
OnContact(self: NEXTBOT, ent: Entity): void;
|
|
44
|
+
|
|
41
45
|
/**
|
|
42
46
|
* Called when the nextbot NPC sees another Nextbot NPC or a Player.
|
|
43
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.
|
|
@@ -47,6 +51,7 @@ interface NEXTBOT extends NextBot {
|
|
|
47
51
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnEntitySight
|
|
48
52
|
*/
|
|
49
53
|
OnEntitySight(self: NEXTBOT, ent: Entity): void;
|
|
54
|
+
|
|
50
55
|
/**
|
|
51
56
|
* Called when the nextbot NPC loses sight of another Nextbot NPC or a Player.
|
|
52
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.
|
|
@@ -56,60 +61,70 @@ interface NEXTBOT extends NextBot {
|
|
|
56
61
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnEntitySightLost
|
|
57
62
|
*/
|
|
58
63
|
OnEntitySightLost(self: NEXTBOT, ent: Entity): void;
|
|
64
|
+
|
|
59
65
|
/**
|
|
60
66
|
* Called when the bot is ignited.
|
|
61
67
|
* @realm server
|
|
62
68
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnIgnite
|
|
63
69
|
*/
|
|
64
70
|
OnIgnite(self: NEXTBOT): void;
|
|
71
|
+
|
|
65
72
|
/**
|
|
66
73
|
* Called when the bot gets hurt. This is a good place to play hurt sounds or voice lines.
|
|
67
74
|
* @realm server
|
|
68
75
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnInjured
|
|
69
76
|
*/
|
|
70
77
|
OnInjured(self: NEXTBOT, info: CTakeDamageInfo): void;
|
|
78
|
+
|
|
71
79
|
/**
|
|
72
80
|
* Called when the bot gets killed.
|
|
73
81
|
* @realm server
|
|
74
82
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnKilled
|
|
75
83
|
*/
|
|
76
84
|
OnKilled(self: NEXTBOT, info: CTakeDamageInfo): void;
|
|
85
|
+
|
|
77
86
|
/**
|
|
78
87
|
* Called when the bot's feet return to the ground.
|
|
79
88
|
* @realm server
|
|
80
89
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnLandOnGround
|
|
81
90
|
*/
|
|
82
91
|
OnLandOnGround(self: NEXTBOT, ent: Entity): void;
|
|
92
|
+
|
|
83
93
|
/**
|
|
84
94
|
* Called when the bot's feet leave the ground - for whatever reason.
|
|
85
95
|
* @realm server
|
|
86
96
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnLeaveGround
|
|
87
97
|
*/
|
|
88
98
|
OnLeaveGround(self: NEXTBOT, ent: Entity): void;
|
|
99
|
+
|
|
89
100
|
/**
|
|
90
101
|
* Called when the nextbot enters a new navigation area.
|
|
91
102
|
* @realm server
|
|
92
103
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnNavAreaChanged
|
|
93
104
|
*/
|
|
94
105
|
OnNavAreaChanged(self: NEXTBOT, old: CNavArea, _new: CNavArea): void;
|
|
106
|
+
|
|
95
107
|
/**
|
|
96
108
|
* Called when someone else or something else has been killed.
|
|
97
109
|
* @realm server
|
|
98
110
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnOtherKilled
|
|
99
111
|
*/
|
|
100
112
|
OnOtherKilled(self: NEXTBOT, victim: Entity, info: CTakeDamageInfo): void;
|
|
113
|
+
|
|
101
114
|
/**
|
|
102
115
|
* Called when the bot thinks it is stuck.
|
|
103
116
|
* @realm server
|
|
104
117
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnStuck
|
|
105
118
|
*/
|
|
106
119
|
OnStuck(self: NEXTBOT): void;
|
|
120
|
+
|
|
107
121
|
/**
|
|
108
122
|
* Called when the bot thinks it is un-stuck.
|
|
109
123
|
* @realm server
|
|
110
124
|
* @source https://wiki.facepunch.com/gmod/NEXTBOT:OnUnStuck
|
|
111
125
|
*/
|
|
112
126
|
OnUnStuck(self: NEXTBOT): void;
|
|
127
|
+
|
|
113
128
|
/**
|
|
114
129
|
* A hook called to process nextbot logic.
|
|
115
130
|
*
|
|
@@ -136,6 +151,7 @@ interface NextBot extends Entity {
|
|
|
136
151
|
* @source https://wiki.facepunch.com/gmod/NextBot:BecomeRagdoll
|
|
137
152
|
*/
|
|
138
153
|
BecomeRagdoll(self: NextBot, info: CTakeDamageInfo): Entity;
|
|
154
|
+
|
|
139
155
|
/**
|
|
140
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).
|
|
141
157
|
*
|
|
@@ -145,48 +161,56 @@ interface NextBot extends Entity {
|
|
|
145
161
|
* @source https://wiki.facepunch.com/gmod/NextBot:BodyMoveXY
|
|
146
162
|
*/
|
|
147
163
|
BodyMoveXY(self: NextBot): void;
|
|
164
|
+
|
|
148
165
|
/**
|
|
149
166
|
* Clears this bot's last known area. See [NextBot:GetLastKnownArea](https://wiki.facepunch.com/gmod/NextBot:GetLastKnownArea).
|
|
150
167
|
* @realm server
|
|
151
168
|
* @source https://wiki.facepunch.com/gmod/NextBot:ClearLastKnownArea
|
|
152
169
|
*/
|
|
153
170
|
ClearLastKnownArea(self: NextBot): void;
|
|
171
|
+
|
|
154
172
|
/**
|
|
155
173
|
* Like [NextBot:FindSpots](https://wiki.facepunch.com/gmod/NextBot:FindSpots) but only returns a vector.
|
|
156
174
|
* @realm server
|
|
157
175
|
* @source https://wiki.facepunch.com/gmod/NextBot:FindSpot
|
|
158
176
|
*/
|
|
159
177
|
FindSpot(self: NextBot, type: string, options: table): Vector;
|
|
178
|
+
|
|
160
179
|
/**
|
|
161
180
|
* Returns a table of hiding spots.
|
|
162
181
|
* @realm server
|
|
163
182
|
* @source https://wiki.facepunch.com/gmod/NextBot:FindSpots
|
|
164
183
|
*/
|
|
165
184
|
FindSpots(self: NextBot, specs: table): table;
|
|
185
|
+
|
|
166
186
|
/**
|
|
167
187
|
* Returns the currently running activity
|
|
168
188
|
* @realm server
|
|
169
189
|
* @source https://wiki.facepunch.com/gmod/NextBot:GetActivity
|
|
170
190
|
*/
|
|
171
191
|
GetActivity(self: NextBot): number;
|
|
192
|
+
|
|
172
193
|
/**
|
|
173
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).
|
|
174
195
|
* @realm server
|
|
175
196
|
* @source https://wiki.facepunch.com/gmod/NextBot:GetFOV
|
|
176
197
|
*/
|
|
177
198
|
GetFOV(self: NextBot): number;
|
|
199
|
+
|
|
178
200
|
/**
|
|
179
201
|
* Returns this bots last known area. See also [NextBot:ClearLastKnownArea](https://wiki.facepunch.com/gmod/NextBot:ClearLastKnownArea).
|
|
180
202
|
* @realm server
|
|
181
203
|
* @source https://wiki.facepunch.com/gmod/NextBot:GetLastKnownArea
|
|
182
204
|
*/
|
|
183
205
|
GetLastKnownArea(self: NextBot): CNavArea;
|
|
206
|
+
|
|
184
207
|
/**
|
|
185
208
|
* Returns the maximum range the nextbot can see other nextbots/players at. See [NextBot:IsAbleToSee](https://wiki.facepunch.com/gmod/NextBot:IsAbleToSee).
|
|
186
209
|
* @realm server
|
|
187
210
|
* @source https://wiki.facepunch.com/gmod/NextBot:GetMaxVisionRange
|
|
188
211
|
*/
|
|
189
212
|
GetMaxVisionRange(self: NextBot): number;
|
|
213
|
+
|
|
190
214
|
/**
|
|
191
215
|
* Returns squared distance to an entity or a position.
|
|
192
216
|
*
|
|
@@ -196,6 +220,7 @@ interface NextBot extends Entity {
|
|
|
196
220
|
* @source https://wiki.facepunch.com/gmod/NextBot:GetRangeSquaredTo
|
|
197
221
|
*/
|
|
198
222
|
GetRangeSquaredTo(self: NextBot, to: Vector): number;
|
|
223
|
+
|
|
199
224
|
/**
|
|
200
225
|
* Returns the distance to an entity or position.
|
|
201
226
|
*
|
|
@@ -205,12 +230,14 @@ interface NextBot extends Entity {
|
|
|
205
230
|
* @source https://wiki.facepunch.com/gmod/NextBot:GetRangeTo
|
|
206
231
|
*/
|
|
207
232
|
GetRangeTo(self: NextBot, to: Vector): number;
|
|
233
|
+
|
|
208
234
|
/**
|
|
209
235
|
* Returns the solid mask for given NextBot.
|
|
210
236
|
* @realm server
|
|
211
237
|
* @source https://wiki.facepunch.com/gmod/NextBot:GetSolidMask
|
|
212
238
|
*/
|
|
213
239
|
GetSolidMask(self: NextBot): number;
|
|
240
|
+
|
|
214
241
|
/**
|
|
215
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.
|
|
216
243
|
*
|
|
@@ -220,6 +247,7 @@ interface NextBot extends Entity {
|
|
|
220
247
|
* @source https://wiki.facepunch.com/gmod/NextBot:HandleStuck
|
|
221
248
|
*/
|
|
222
249
|
HandleStuck(self: NextBot): void;
|
|
250
|
+
|
|
223
251
|
/**
|
|
224
252
|
* Returns if the Nextbot NPC can see the give entity or not.
|
|
225
253
|
*
|
|
@@ -229,30 +257,35 @@ interface NextBot extends Entity {
|
|
|
229
257
|
* @source https://wiki.facepunch.com/gmod/NextBot:IsAbleToSee
|
|
230
258
|
*/
|
|
231
259
|
IsAbleToSee(self: NextBot, ent: Entity, useFOV?: number): boolean;
|
|
260
|
+
|
|
232
261
|
/**
|
|
233
262
|
* To be called in the behaviour coroutine only! Will yield until the bot has reached the goal or is stuck
|
|
234
263
|
* @realm server
|
|
235
264
|
* @source https://wiki.facepunch.com/gmod/NextBot:MoveToPos
|
|
236
265
|
*/
|
|
237
266
|
MoveToPos(self: NextBot, pos: Vector, options: table): string;
|
|
267
|
+
|
|
238
268
|
/**
|
|
239
269
|
* To be called in the behaviour coroutine only! Plays an animation sequence and waits for it to end before returning.
|
|
240
270
|
* @realm server
|
|
241
271
|
* @source https://wiki.facepunch.com/gmod/NextBot:PlaySequenceAndWait
|
|
242
272
|
*/
|
|
243
273
|
PlaySequenceAndWait(self: NextBot, name: string, speed?: number): void;
|
|
274
|
+
|
|
244
275
|
/**
|
|
245
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).
|
|
246
277
|
* @realm server
|
|
247
278
|
* @source https://wiki.facepunch.com/gmod/NextBot:SetFOV
|
|
248
279
|
*/
|
|
249
280
|
SetFOV(self: NextBot, fov: number): void;
|
|
281
|
+
|
|
250
282
|
/**
|
|
251
283
|
* Sets the maximum range the nextbot can see other nextbots/players at. See [NextBot:IsAbleToSee](https://wiki.facepunch.com/gmod/NextBot:IsAbleToSee).
|
|
252
284
|
* @realm server
|
|
253
285
|
* @source https://wiki.facepunch.com/gmod/NextBot:SetMaxVisionRange
|
|
254
286
|
*/
|
|
255
287
|
SetMaxVisionRange(self: NextBot, range: number): void;
|
|
288
|
+
|
|
256
289
|
/**
|
|
257
290
|
* Sets the solid mask for given NextBot.
|
|
258
291
|
*
|
|
@@ -262,6 +295,7 @@ interface NextBot extends Entity {
|
|
|
262
295
|
* @source https://wiki.facepunch.com/gmod/NextBot:SetSolidMask
|
|
263
296
|
*/
|
|
264
297
|
SetSolidMask(self: NextBot, mask: number): void;
|
|
298
|
+
|
|
265
299
|
/**
|
|
266
300
|
* Start doing an activity (animation).
|
|
267
301
|
*
|
|
@@ -271,40 +305,3 @@ interface NextBot extends Entity {
|
|
|
271
305
|
*/
|
|
272
306
|
StartActivity(self: NextBot, activity: number): void;
|
|
273
307
|
}
|
|
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
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
@@ -13,12 +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
|
+
|
|
16
17
|
/**
|
|
17
18
|
* Adds a notification with an animated progress bar.
|
|
18
19
|
* @realm client
|
|
19
20
|
* @source https://wiki.facepunch.com/gmod/notification.AddProgress
|
|
20
21
|
*/
|
|
21
22
|
AddProgress(id: any, strText: string, frac?: number): void;
|
|
23
|
+
|
|
22
24
|
/**
|
|
23
25
|
* Removes the notification after 0.8 seconds.
|
|
24
26
|
* @realm client
|
|
@@ -26,6 +28,3 @@ interface NotificationLib {
|
|
|
26
28
|
*/
|
|
27
29
|
Kill(uid: any): void;
|
|
28
30
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|