@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/cnavarea.d.tlua
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
* An object returned by [navmesh](https://wiki.facepunch.com/gmod/navmesh) functions.
|
|
5
5
|
* @source https://wiki.facepunch.com/gmod/CNavArea
|
|
6
6
|
*/
|
|
7
|
-
interface CNavArea {}
|
|
8
|
-
|
|
9
7
|
interface CNavArea {
|
|
10
8
|
/**
|
|
11
9
|
* Adds given attributes to given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea). See [CNavArea:HasAttributes](https://wiki.facepunch.com/gmod/CNavArea:HasAttributes) and [CNavArea:SetAttributes](https://wiki.facepunch.com/gmod/CNavArea:SetAttributes).
|
|
@@ -13,9 +11,6 @@ interface CNavArea {
|
|
|
13
11
|
* @source https://wiki.facepunch.com/gmod/CNavArea:AddAttributes
|
|
14
12
|
*/
|
|
15
13
|
AddAttributes(self: CNavArea, attribs: number): void;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface CNavArea {
|
|
19
14
|
/**
|
|
20
15
|
* Adds a hiding spot onto this nav area.
|
|
21
16
|
*
|
|
@@ -25,9 +20,6 @@ interface CNavArea {
|
|
|
25
20
|
* @source https://wiki.facepunch.com/gmod/CNavArea:AddHidingSpot
|
|
26
21
|
*/
|
|
27
22
|
AddHidingSpot(self: CNavArea, pos: Vector, flags?: number): void;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
interface CNavArea {
|
|
31
23
|
/**
|
|
32
24
|
* Adds this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) to the closed list, a list of areas that have been checked by A* pathfinding algorithm.
|
|
33
25
|
*
|
|
@@ -40,9 +32,6 @@ interface CNavArea {
|
|
|
40
32
|
* @source https://wiki.facepunch.com/gmod/CNavArea:AddToClosedList
|
|
41
33
|
*/
|
|
42
34
|
AddToClosedList(self: CNavArea): void;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface CNavArea {
|
|
46
35
|
/**
|
|
47
36
|
* Adds this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) to the Open List.
|
|
48
37
|
*
|
|
@@ -55,9 +44,6 @@ interface CNavArea {
|
|
|
55
44
|
* @source https://wiki.facepunch.com/gmod/CNavArea:AddToOpenList
|
|
56
45
|
*/
|
|
57
46
|
AddToOpenList(self: CNavArea): void;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
interface CNavArea {
|
|
61
47
|
/**
|
|
62
48
|
* Clears the open and closed lists for a new search.
|
|
63
49
|
*
|
|
@@ -70,36 +56,24 @@ interface CNavArea {
|
|
|
70
56
|
* @source https://wiki.facepunch.com/gmod/CNavArea:ClearSearchLists
|
|
71
57
|
*/
|
|
72
58
|
ClearSearchLists(self: CNavArea): void;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
interface CNavArea {
|
|
76
59
|
/**
|
|
77
60
|
* Returns the height difference between the edges of two connected navareas.
|
|
78
61
|
* @realm server
|
|
79
62
|
* @source https://wiki.facepunch.com/gmod/CNavArea:ComputeAdjacentConnectionHeightChange
|
|
80
63
|
*/
|
|
81
64
|
ComputeAdjacentConnectionHeightChange(self: CNavArea, navarea: CNavArea): number;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
interface CNavArea {
|
|
85
65
|
/**
|
|
86
66
|
* Returns the [Enums/NavDir](https://wiki.facepunch.com/gmod/Enums/NavDir) direction that the given vector faces on this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
|
|
87
67
|
* @realm server
|
|
88
68
|
* @source https://wiki.facepunch.com/gmod/CNavArea:ComputeDirection
|
|
89
69
|
*/
|
|
90
70
|
ComputeDirection(self: CNavArea, pos: Vector): number;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
interface CNavArea {
|
|
94
71
|
/**
|
|
95
72
|
* Returns the height difference on the Z axis of the two [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s. This is calculated from the center most point on both [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s.
|
|
96
73
|
* @realm server
|
|
97
74
|
* @source https://wiki.facepunch.com/gmod/CNavArea:ComputeGroundHeightChange
|
|
98
75
|
*/
|
|
99
76
|
ComputeGroundHeightChange(self: CNavArea, navArea: CNavArea): number;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
interface CNavArea {
|
|
103
77
|
/**
|
|
104
78
|
* Connects this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) to another [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) or [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder) with a one way connection. ( From this area to the target )
|
|
105
79
|
*
|
|
@@ -109,45 +83,30 @@ interface CNavArea {
|
|
|
109
83
|
* @source https://wiki.facepunch.com/gmod/CNavArea:ConnectTo
|
|
110
84
|
*/
|
|
111
85
|
ConnectTo(self: CNavArea, area: CNavArea): void;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
interface CNavArea {
|
|
115
86
|
/**
|
|
116
87
|
* Returns true if this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) contains the given vector.
|
|
117
88
|
* @realm server
|
|
118
89
|
* @source https://wiki.facepunch.com/gmod/CNavArea:Contains
|
|
119
90
|
*/
|
|
120
91
|
Contains(self: CNavArea, pos: Vector): boolean;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
interface CNavArea {
|
|
124
92
|
/**
|
|
125
93
|
* Disconnects this nav area from given area or ladder. (Only disconnects one way)
|
|
126
94
|
* @realm server
|
|
127
95
|
* @source https://wiki.facepunch.com/gmod/CNavArea:Disconnect
|
|
128
96
|
*/
|
|
129
97
|
Disconnect(self: CNavArea, area: CNavArea): void;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
interface CNavArea {
|
|
133
98
|
/**
|
|
134
99
|
* Draws this navarea on debug overlay. (So limitations of [debugoverlay](https://wiki.facepunch.com/gmod/debugoverlay) library apply)
|
|
135
100
|
* @realm server
|
|
136
101
|
* @source https://wiki.facepunch.com/gmod/CNavArea:Draw
|
|
137
102
|
*/
|
|
138
103
|
Draw(self: CNavArea): void;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
interface CNavArea {
|
|
142
104
|
/**
|
|
143
105
|
* Draws the hiding spots on debug overlay. This includes sniper/exposed spots too!
|
|
144
106
|
* @realm server
|
|
145
107
|
* @source https://wiki.facepunch.com/gmod/CNavArea:DrawSpots
|
|
146
108
|
*/
|
|
147
109
|
DrawSpots(self: CNavArea): void;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
interface CNavArea {
|
|
151
110
|
/**
|
|
152
111
|
* Returns a list of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a (one and two way) connection **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) and their pre-computed distances.
|
|
153
112
|
*
|
|
@@ -157,9 +116,6 @@ interface CNavArea {
|
|
|
157
116
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentAreaDistances
|
|
158
117
|
*/
|
|
159
118
|
GetAdjacentAreaDistances(self: CNavArea, dir?: number): table;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
interface CNavArea {
|
|
163
119
|
/**
|
|
164
120
|
* Returns a list of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a (one and two way) connection **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
|
|
165
121
|
*
|
|
@@ -171,9 +127,6 @@ interface CNavArea {
|
|
|
171
127
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentAreas
|
|
172
128
|
*/
|
|
173
129
|
GetAdjacentAreas(self: CNavArea): table;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
interface CNavArea {
|
|
177
130
|
/**
|
|
178
131
|
* Returns a table of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a ( one and two way ) connection **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) in given direction.
|
|
179
132
|
*
|
|
@@ -185,9 +138,6 @@ interface CNavArea {
|
|
|
185
138
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentAreasAtSide
|
|
186
139
|
*/
|
|
187
140
|
GetAdjacentAreasAtSide(self: CNavArea, navDir: number): table;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
interface CNavArea {
|
|
191
141
|
/**
|
|
192
142
|
* Returns the amount of [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a connection ( one and two way ) **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
|
|
193
143
|
*
|
|
@@ -197,9 +147,6 @@ interface CNavArea {
|
|
|
197
147
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentCount
|
|
198
148
|
*/
|
|
199
149
|
GetAdjacentCount(self: CNavArea): number;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
interface CNavArea {
|
|
203
150
|
/**
|
|
204
151
|
* Returns the amount of [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a connection ( one or two way ) **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) in given direction.
|
|
205
152
|
*
|
|
@@ -209,45 +156,30 @@ interface CNavArea {
|
|
|
209
156
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetAdjacentCountAtSide
|
|
210
157
|
*/
|
|
211
158
|
GetAdjacentCountAtSide(self: CNavArea, navDir: number): number;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
interface CNavArea {
|
|
215
159
|
/**
|
|
216
160
|
* Returns the attribute mask for the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
|
|
217
161
|
* @realm server
|
|
218
162
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetAttributes
|
|
219
163
|
*/
|
|
220
164
|
GetAttributes(self: CNavArea): number;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
interface CNavArea {
|
|
224
165
|
/**
|
|
225
166
|
* Returns the center most vector point for the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
|
|
226
167
|
* @realm server
|
|
227
168
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetCenter
|
|
228
169
|
*/
|
|
229
170
|
GetCenter(self: CNavArea): Vector;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
interface CNavArea {
|
|
233
171
|
/**
|
|
234
172
|
* Returns the closest point of this Nav Area from the given position.
|
|
235
173
|
* @realm server
|
|
236
174
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetClosestPointOnArea
|
|
237
175
|
*/
|
|
238
176
|
GetClosestPointOnArea(self: CNavArea, pos: Vector): Vector;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
interface CNavArea {
|
|
242
177
|
/**
|
|
243
178
|
* Returns the vector position of the corner for the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
|
|
244
179
|
* @realm server
|
|
245
180
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetCorner
|
|
246
181
|
*/
|
|
247
182
|
GetCorner(self: CNavArea, cornerid: number): Vector;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
interface CNavArea {
|
|
251
183
|
/**
|
|
252
184
|
* Returns the cost from starting area this area when pathfinding. Set by [CNavArea:SetCostSoFar](https://wiki.facepunch.com/gmod/CNavArea:SetCostSoFar).
|
|
253
185
|
*
|
|
@@ -260,9 +192,6 @@ interface CNavArea {
|
|
|
260
192
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetCostSoFar
|
|
261
193
|
*/
|
|
262
194
|
GetCostSoFar(self: CNavArea): number;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
interface CNavArea {
|
|
266
195
|
/**
|
|
267
196
|
* Returns a table of very bad hiding spots in this area.
|
|
268
197
|
*
|
|
@@ -273,18 +202,12 @@ interface CNavArea {
|
|
|
273
202
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetExposedSpots
|
|
274
203
|
*/
|
|
275
204
|
GetExposedSpots(self: CNavArea): table;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
interface CNavArea {
|
|
279
205
|
/**
|
|
280
206
|
* Returns size info about the nav area.
|
|
281
207
|
* @realm server
|
|
282
208
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetExtentInfo
|
|
283
209
|
*/
|
|
284
210
|
GetExtentInfo(self: CNavArea): table;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
interface CNavArea {
|
|
288
211
|
/**
|
|
289
212
|
* Returns a table of good hiding spots in this area.
|
|
290
213
|
*
|
|
@@ -294,18 +217,12 @@ interface CNavArea {
|
|
|
294
217
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetHidingSpots
|
|
295
218
|
*/
|
|
296
219
|
GetHidingSpots(self: CNavArea, type?: number): table;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
interface CNavArea {
|
|
300
220
|
/**
|
|
301
221
|
* Returns this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s unique ID.
|
|
302
222
|
* @realm server
|
|
303
223
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetID
|
|
304
224
|
*/
|
|
305
225
|
GetID(self: CNavArea): number;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
interface CNavArea {
|
|
309
226
|
/**
|
|
310
227
|
* Returns a table of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a one-way connection **to** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) and their pre-computed distances.
|
|
311
228
|
*
|
|
@@ -315,9 +232,6 @@ interface CNavArea {
|
|
|
315
232
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetIncomingConnectionDistances
|
|
316
233
|
*/
|
|
317
234
|
GetIncomingConnectionDistances(self: CNavArea, dir?: number): table;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
interface CNavArea {
|
|
321
235
|
/**
|
|
322
236
|
* Returns a table of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a one-way connection **to** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
|
|
323
237
|
*
|
|
@@ -329,9 +243,6 @@ interface CNavArea {
|
|
|
329
243
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetIncomingConnections
|
|
330
244
|
*/
|
|
331
245
|
GetIncomingConnections(self: CNavArea): CNavArea[];
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
interface CNavArea {
|
|
335
246
|
/**
|
|
336
247
|
* Returns a table of all the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that have a one-way connection **to** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) from given direction.
|
|
337
248
|
*
|
|
@@ -343,9 +254,6 @@ interface CNavArea {
|
|
|
343
254
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetIncomingConnectionsAtSide
|
|
344
255
|
*/
|
|
345
256
|
GetIncomingConnectionsAtSide(self: CNavArea, navDir: number): table;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
interface CNavArea {
|
|
349
257
|
/**
|
|
350
258
|
* Returns all [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder)s that have a ( one or two way ) connection **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
|
|
351
259
|
*
|
|
@@ -355,9 +263,6 @@ interface CNavArea {
|
|
|
355
263
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetLadders
|
|
356
264
|
*/
|
|
357
265
|
GetLadders(self: CNavArea): CNavLadder[];
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
interface CNavArea {
|
|
361
266
|
/**
|
|
362
267
|
* Returns all [CNavLadder](https://wiki.facepunch.com/gmod/CNavLadder)s that have a ( one or two way ) connection **from** ( one and two way ) this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) in given direction.
|
|
363
268
|
*
|
|
@@ -367,72 +272,48 @@ interface CNavArea {
|
|
|
367
272
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetLaddersAtSide
|
|
368
273
|
*/
|
|
369
274
|
GetLaddersAtSide(self: CNavArea, navDir: number): table;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
interface CNavArea {
|
|
373
275
|
/**
|
|
374
276
|
* Returns the parent [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)
|
|
375
277
|
* @realm server
|
|
376
278
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetParent
|
|
377
279
|
*/
|
|
378
280
|
GetParent(self: CNavArea): CNavArea;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
interface CNavArea {
|
|
382
281
|
/**
|
|
383
282
|
* Returns how this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) is connected to its parent.
|
|
384
283
|
* @realm server
|
|
385
284
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetParentHow
|
|
386
285
|
*/
|
|
387
286
|
GetParentHow(self: CNavArea): number;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
interface CNavArea {
|
|
391
287
|
/**
|
|
392
288
|
* Returns the Place of the nav area.
|
|
393
289
|
* @realm server
|
|
394
290
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetPlace
|
|
395
291
|
*/
|
|
396
292
|
GetPlace(self: CNavArea): string;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
interface CNavArea {
|
|
400
293
|
/**
|
|
401
294
|
* Returns a random [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) that has an outgoing ( one or two way ) connection **from** this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) in given direction.
|
|
402
295
|
* @realm server
|
|
403
296
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetRandomAdjacentAreaAtSide
|
|
404
297
|
*/
|
|
405
298
|
GetRandomAdjacentAreaAtSide(self: CNavArea, navDir: number): CNavArea;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
interface CNavArea {
|
|
409
299
|
/**
|
|
410
300
|
* Returns a random point on the nav area.
|
|
411
301
|
* @realm server
|
|
412
302
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetRandomPoint
|
|
413
303
|
*/
|
|
414
304
|
GetRandomPoint(self: CNavArea): Vector;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
interface CNavArea {
|
|
418
305
|
/**
|
|
419
306
|
* Returns the width this Nav Area.
|
|
420
307
|
* @realm server
|
|
421
308
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetSizeX
|
|
422
309
|
*/
|
|
423
310
|
GetSizeX(self: CNavArea): number;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
interface CNavArea {
|
|
427
311
|
/**
|
|
428
312
|
* Returns the height of this Nav Area.
|
|
429
313
|
* @realm server
|
|
430
314
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetSizeY
|
|
431
315
|
*/
|
|
432
316
|
GetSizeY(self: CNavArea): number;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
interface CNavArea {
|
|
436
317
|
/**
|
|
437
318
|
* Returns all possible path segments through a [CNavArea](https://wiki.facepunch.com/gmod/CNavArea), and the dangerous spots to look at as we traverse that path segment.
|
|
438
319
|
*
|
|
@@ -440,9 +321,6 @@ interface CNavArea {
|
|
|
440
321
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetSpotEncounters
|
|
441
322
|
*/
|
|
442
323
|
GetSpotEncounters(self: CNavArea): table;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
interface CNavArea {
|
|
446
324
|
/**
|
|
447
325
|
* Returns the total cost when passing from starting area to the goal area through this node. Set by [CNavArea:SetTotalCost](https://wiki.facepunch.com/gmod/CNavArea:SetTotalCost).
|
|
448
326
|
*
|
|
@@ -455,9 +333,6 @@ interface CNavArea {
|
|
|
455
333
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetTotalCost
|
|
456
334
|
*/
|
|
457
335
|
GetTotalCost(self: CNavArea): number;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
interface CNavArea {
|
|
461
336
|
/**
|
|
462
337
|
* Returns all [CNavArea](https://wiki.facepunch.com/gmod/CNavArea)s that are visible from this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
|
|
463
338
|
*
|
|
@@ -465,36 +340,24 @@ interface CNavArea {
|
|
|
465
340
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetVisibleAreas
|
|
466
341
|
*/
|
|
467
342
|
GetVisibleAreas(self: CNavArea): table;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
interface CNavArea {
|
|
471
343
|
/**
|
|
472
344
|
* Returns the elevation of this Nav Area at the given position.
|
|
473
345
|
* @realm server
|
|
474
346
|
* @source https://wiki.facepunch.com/gmod/CNavArea:GetZ
|
|
475
347
|
*/
|
|
476
348
|
GetZ(self: CNavArea, pos: Vector): number;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
interface CNavArea {
|
|
480
349
|
/**
|
|
481
350
|
* Returns true if the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) has this attribute flag set.
|
|
482
351
|
* @realm server
|
|
483
352
|
* @source https://wiki.facepunch.com/gmod/CNavArea:HasAttributes
|
|
484
353
|
*/
|
|
485
354
|
HasAttributes(self: CNavArea, attribs: number): boolean;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
interface CNavArea {
|
|
489
355
|
/**
|
|
490
356
|
* Returns whether the nav area is blocked or not, i.e. whether it can be walked through or not.
|
|
491
357
|
* @realm server
|
|
492
358
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsBlocked
|
|
493
359
|
*/
|
|
494
360
|
IsBlocked(self: CNavArea, teamID?: number, ignoreNavBlockers?: boolean): boolean;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
interface CNavArea {
|
|
498
361
|
/**
|
|
499
362
|
* Returns whether this node is in the Closed List.
|
|
500
363
|
*
|
|
@@ -507,9 +370,6 @@ interface CNavArea {
|
|
|
507
370
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsClosed
|
|
508
371
|
*/
|
|
509
372
|
IsClosed(self: CNavArea): boolean;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
interface CNavArea {
|
|
513
373
|
/**
|
|
514
374
|
* Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) can completely (i.e. all corners of this area can see all corners of the given area) see the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
|
|
515
375
|
*
|
|
@@ -517,9 +377,6 @@ interface CNavArea {
|
|
|
517
377
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsCompletelyVisible
|
|
518
378
|
*/
|
|
519
379
|
IsCompletelyVisible(self: CNavArea, area: CNavArea): boolean;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
interface CNavArea {
|
|
523
380
|
/**
|
|
524
381
|
* Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) has an outgoing ( one or two way ) connection **to** given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
|
|
525
382
|
*
|
|
@@ -529,9 +386,6 @@ interface CNavArea {
|
|
|
529
386
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsConnected
|
|
530
387
|
*/
|
|
531
388
|
IsConnected(self: CNavArea, navArea: CNavArea): boolean;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
interface CNavArea {
|
|
535
389
|
/**
|
|
536
390
|
* Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) has an outgoing ( one or two way ) connection **to** given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) in given direction.
|
|
537
391
|
*
|
|
@@ -541,36 +395,24 @@ interface CNavArea {
|
|
|
541
395
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsConnectedAtSide
|
|
542
396
|
*/
|
|
543
397
|
IsConnectedAtSide(self: CNavArea, navArea: CNavArea, navDirType: number): boolean;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
interface CNavArea {
|
|
547
398
|
/**
|
|
548
399
|
* Returns whether this Nav Area is in the same plane as the given one.
|
|
549
400
|
* @realm server
|
|
550
401
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsCoplanar
|
|
551
402
|
*/
|
|
552
403
|
IsCoplanar(self: CNavArea, navArea: CNavArea): boolean;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
interface CNavArea {
|
|
556
404
|
/**
|
|
557
405
|
* Returns whether the [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) would damage if traversed, as set by [CNavArea:MarkAsDamaging](https://wiki.facepunch.com/gmod/CNavArea:MarkAsDamaging).
|
|
558
406
|
* @realm server
|
|
559
407
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsDamaging
|
|
560
408
|
*/
|
|
561
409
|
IsDamaging(self: CNavArea): boolean;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
interface CNavArea {
|
|
565
410
|
/**
|
|
566
411
|
* Returns whether this Nav Area is flat within the tolerance of the **nav_coplanar_slope_limit_displacement** and **nav_coplanar_slope_limit** convars.
|
|
567
412
|
* @realm server
|
|
568
413
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsFlat
|
|
569
414
|
*/
|
|
570
415
|
IsFlat(self: CNavArea): boolean;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
interface CNavArea {
|
|
574
416
|
/**
|
|
575
417
|
* Returns whether this area is in the Open List.
|
|
576
418
|
*
|
|
@@ -583,9 +425,6 @@ interface CNavArea {
|
|
|
583
425
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsOpen
|
|
584
426
|
*/
|
|
585
427
|
IsOpen(self: CNavArea): boolean;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
interface CNavArea {
|
|
589
428
|
/**
|
|
590
429
|
* Returns whether the Open List is empty or not.
|
|
591
430
|
*
|
|
@@ -598,27 +437,18 @@ interface CNavArea {
|
|
|
598
437
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsOpenListEmpty
|
|
599
438
|
*/
|
|
600
439
|
IsOpenListEmpty(self: CNavArea): boolean;
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
interface CNavArea {
|
|
604
440
|
/**
|
|
605
441
|
* Returns if this position overlaps the Nav Area within the given tolerance.
|
|
606
442
|
* @realm server
|
|
607
443
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsOverlapping
|
|
608
444
|
*/
|
|
609
445
|
IsOverlapping(self: CNavArea, pos: Vector, tolerance?: number): boolean;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
interface CNavArea {
|
|
613
446
|
/**
|
|
614
447
|
* Returns true if this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) is overlapping the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
|
|
615
448
|
* @realm server
|
|
616
449
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsOverlappingArea
|
|
617
450
|
*/
|
|
618
451
|
IsOverlappingArea(self: CNavArea, navArea: CNavArea): boolean;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
interface CNavArea {
|
|
622
452
|
/**
|
|
623
453
|
* Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) can see given position.
|
|
624
454
|
*
|
|
@@ -626,9 +456,6 @@ interface CNavArea {
|
|
|
626
456
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsPartiallyVisible
|
|
627
457
|
*/
|
|
628
458
|
IsPartiallyVisible(self: CNavArea, pos: Vector, ignoreEnt?: Entity): boolean;
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
interface CNavArea {
|
|
632
459
|
/**
|
|
633
460
|
* Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) can potentially see the given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
|
|
634
461
|
*
|
|
@@ -636,81 +463,54 @@ interface CNavArea {
|
|
|
636
463
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsPotentiallyVisible
|
|
637
464
|
*/
|
|
638
465
|
IsPotentiallyVisible(self: CNavArea, area: CNavArea): boolean;
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
interface CNavArea {
|
|
642
466
|
/**
|
|
643
467
|
* Returns if we're shaped like a square.
|
|
644
468
|
* @realm server
|
|
645
469
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsRoughlySquare
|
|
646
470
|
*/
|
|
647
471
|
IsRoughlySquare(self: CNavArea): boolean;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
interface CNavArea {
|
|
651
472
|
/**
|
|
652
473
|
* Whether this Nav Area is placed underwater.
|
|
653
474
|
* @realm server
|
|
654
475
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsUnderwater
|
|
655
476
|
*/
|
|
656
477
|
IsUnderwater(self: CNavArea): boolean;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
interface CNavArea {
|
|
660
478
|
/**
|
|
661
479
|
* Returns whether this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) is valid or not.
|
|
662
480
|
* @realm server
|
|
663
481
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsValid
|
|
664
482
|
*/
|
|
665
483
|
IsValid(self: CNavArea): boolean;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
interface CNavArea {
|
|
669
484
|
/**
|
|
670
485
|
* Returns whether we can be seen from the given position.
|
|
671
486
|
* @realm server
|
|
672
487
|
* @source https://wiki.facepunch.com/gmod/CNavArea:IsVisible
|
|
673
488
|
*/
|
|
674
489
|
IsVisible(self: CNavArea, pos: Vector): (boolean, Vector);
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
interface CNavArea {
|
|
678
490
|
/**
|
|
679
491
|
* Marks the area as blocked and unable to be traversed. See [CNavArea:IsBlocked](https://wiki.facepunch.com/gmod/CNavArea:IsBlocked) and [CNavArea:MarkAsUnblocked](https://wiki.facepunch.com/gmod/CNavArea:MarkAsUnblocked).
|
|
680
492
|
* @realm server
|
|
681
493
|
* @source https://wiki.facepunch.com/gmod/CNavArea:MarkAsBlocked
|
|
682
494
|
*/
|
|
683
495
|
MarkAsBlocked(self: CNavArea, teamID?: number): void;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
interface CNavArea {
|
|
687
496
|
/**
|
|
688
497
|
* Marks the area as damaging if traversed, for example when, for example having poisonous or no atmosphere, or a temporary fire present. See [CNavArea:IsDamaging](https://wiki.facepunch.com/gmod/CNavArea:IsDamaging).
|
|
689
498
|
* @realm server
|
|
690
499
|
* @source https://wiki.facepunch.com/gmod/CNavArea:MarkAsDamaging
|
|
691
500
|
*/
|
|
692
501
|
MarkAsDamaging(self: CNavArea, duration: number): void;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
interface CNavArea {
|
|
696
502
|
/**
|
|
697
503
|
* Unblocked this area if it was previously blocked by [CNavArea:MarkAsBlocked](https://wiki.facepunch.com/gmod/CNavArea:MarkAsBlocked).
|
|
698
504
|
* @realm server
|
|
699
505
|
* @source https://wiki.facepunch.com/gmod/CNavArea:MarkAsUnblocked
|
|
700
506
|
*/
|
|
701
507
|
MarkAsUnblocked(self: CNavArea, teamID?: number): void;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
interface CNavArea {
|
|
705
508
|
/**
|
|
706
509
|
* Drops a corner or all corners of a [CNavArea](https://wiki.facepunch.com/gmod/CNavArea) to the ground below it.
|
|
707
510
|
* @realm server
|
|
708
511
|
* @source https://wiki.facepunch.com/gmod/CNavArea:PlaceOnGround
|
|
709
512
|
*/
|
|
710
513
|
PlaceOnGround(self: CNavArea, corner: number): void;
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
interface CNavArea {
|
|
714
514
|
/**
|
|
715
515
|
* Removes a CNavArea from the Open List with the lowest cost to traverse to from the starting node, and returns it.
|
|
716
516
|
*
|
|
@@ -723,27 +523,18 @@ interface CNavArea {
|
|
|
723
523
|
* @source https://wiki.facepunch.com/gmod/CNavArea:PopOpenList
|
|
724
524
|
*/
|
|
725
525
|
PopOpenList(self: CNavArea): CNavArea;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
interface CNavArea {
|
|
729
526
|
/**
|
|
730
527
|
* Removes the given nav area.
|
|
731
528
|
* @realm server
|
|
732
529
|
* @source https://wiki.facepunch.com/gmod/CNavArea:Remove
|
|
733
530
|
*/
|
|
734
531
|
Remove(self: CNavArea): void;
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
interface CNavArea {
|
|
738
532
|
/**
|
|
739
533
|
* Removes given attributes from given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea). See also [CNavArea:SetAttributes](https://wiki.facepunch.com/gmod/CNavArea:SetAttributes).
|
|
740
534
|
* @realm server
|
|
741
535
|
* @source https://wiki.facepunch.com/gmod/CNavArea:RemoveAttributes
|
|
742
536
|
*/
|
|
743
537
|
RemoveAttributes(self: CNavArea, attribs: number): void;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
interface CNavArea {
|
|
747
538
|
/**
|
|
748
539
|
* Removes this node from the Closed List.
|
|
749
540
|
*
|
|
@@ -757,27 +548,18 @@ interface CNavArea {
|
|
|
757
548
|
* @deprecated Does nothing
|
|
758
549
|
*/
|
|
759
550
|
RemoveFromClosedList(self: CNavArea): void;
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
interface CNavArea {
|
|
763
551
|
/**
|
|
764
552
|
* Sets the attributes for given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea). See [CNavArea:HasAttributes](https://wiki.facepunch.com/gmod/CNavArea:HasAttributes).
|
|
765
553
|
* @realm server
|
|
766
554
|
* @source https://wiki.facepunch.com/gmod/CNavArea:SetAttributes
|
|
767
555
|
*/
|
|
768
556
|
SetAttributes(self: CNavArea, attribs: number): void;
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
interface CNavArea {
|
|
772
557
|
/**
|
|
773
558
|
* Sets the position of a corner of a nav area.
|
|
774
559
|
* @realm server
|
|
775
560
|
* @source https://wiki.facepunch.com/gmod/CNavArea:SetCorner
|
|
776
561
|
*/
|
|
777
562
|
SetCorner(self: CNavArea, corner: number, position: Vector): void;
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
interface CNavArea {
|
|
781
563
|
/**
|
|
782
564
|
* Sets the cost from starting area this area when pathfinding.
|
|
783
565
|
*
|
|
@@ -790,18 +572,12 @@ interface CNavArea {
|
|
|
790
572
|
* @source https://wiki.facepunch.com/gmod/CNavArea:SetCostSoFar
|
|
791
573
|
*/
|
|
792
574
|
SetCostSoFar(self: CNavArea, cost: number): void;
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
interface CNavArea {
|
|
796
575
|
/**
|
|
797
576
|
* Sets the new parent of this [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
|
|
798
577
|
* @realm server
|
|
799
578
|
* @source https://wiki.facepunch.com/gmod/CNavArea:SetParent
|
|
800
579
|
*/
|
|
801
580
|
SetParent(self: CNavArea, parent: CNavArea, how: number): void;
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
interface CNavArea {
|
|
805
581
|
/**
|
|
806
582
|
* Sets the Place of the nav area.
|
|
807
583
|
*
|
|
@@ -811,9 +587,6 @@ interface CNavArea {
|
|
|
811
587
|
* @source https://wiki.facepunch.com/gmod/CNavArea:SetPlace
|
|
812
588
|
*/
|
|
813
589
|
SetPlace(self: CNavArea, place: string): boolean;
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
interface CNavArea {
|
|
817
590
|
/**
|
|
818
591
|
* Sets the total cost when passing from starting area to the goal area through this node.
|
|
819
592
|
*
|
|
@@ -826,9 +599,6 @@ interface CNavArea {
|
|
|
826
599
|
* @source https://wiki.facepunch.com/gmod/CNavArea:SetTotalCost
|
|
827
600
|
*/
|
|
828
601
|
SetTotalCost(self: CNavArea, cost: number): void;
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
interface CNavArea {
|
|
832
602
|
/**
|
|
833
603
|
* Moves this open list to appropriate position based on its [CNavArea:GetTotalCost](https://wiki.facepunch.com/gmod/CNavArea:GetTotalCost) compared to the total cost of other areas in the open list.
|
|
834
604
|
*
|
|
@@ -843,3 +613,80 @@ interface CNavArea {
|
|
|
843
613
|
UpdateOnOpenList(self: CNavArea): void;
|
|
844
614
|
}
|
|
845
615
|
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
|