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