@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/game.d.tlua
CHANGED
|
@@ -21,9 +21,7 @@ interface GameLib {
|
|
|
21
21
|
* @source https://wiki.facepunch.com/gmod/game.AddAmmoType
|
|
22
22
|
*/
|
|
23
23
|
AddAmmoType(ammoData: AmmoData): void;
|
|
24
|
-
}
|
|
25
24
|
|
|
26
|
-
interface GameLib {
|
|
27
25
|
/**
|
|
28
26
|
* Registers a new decal.
|
|
29
27
|
*
|
|
@@ -34,9 +32,7 @@ interface GameLib {
|
|
|
34
32
|
* @source https://wiki.facepunch.com/gmod/game.AddDecal
|
|
35
33
|
*/
|
|
36
34
|
AddDecal(decalName: string, materialName: string): void;
|
|
37
|
-
}
|
|
38
35
|
|
|
39
|
-
interface GameLib {
|
|
40
36
|
/**
|
|
41
37
|
* Loads a particle file. Individual particle systems will still need to be precached with [Global.PrecacheParticleSystem](https://wiki.facepunch.com/gmod/Global.PrecacheParticleSystem).
|
|
42
38
|
*
|
|
@@ -47,9 +43,7 @@ interface GameLib {
|
|
|
47
43
|
* @source https://wiki.facepunch.com/gmod/game.AddParticles
|
|
48
44
|
*/
|
|
49
45
|
AddParticles(particleFileName: string): void;
|
|
50
|
-
}
|
|
51
46
|
|
|
52
|
-
interface GameLib {
|
|
53
47
|
/**
|
|
54
48
|
* **INTERNAL**: Consider using [game.GetAmmoTypes](https://wiki.facepunch.com/gmod/game.GetAmmoTypes) and [game.GetAmmoData](https://wiki.facepunch.com/gmod/game.GetAmmoData) instead.
|
|
55
49
|
*
|
|
@@ -59,9 +53,7 @@ interface GameLib {
|
|
|
59
53
|
* @source https://wiki.facepunch.com/gmod/game.BuildAmmoTypes
|
|
60
54
|
*/
|
|
61
55
|
BuildAmmoTypes(): table;
|
|
62
|
-
}
|
|
63
56
|
|
|
64
|
-
interface GameLib {
|
|
65
57
|
/**
|
|
66
58
|
* Removes most entities, and then respawns entities created by the map, as if the map was just loaded.
|
|
67
59
|
*
|
|
@@ -81,9 +73,7 @@ interface GameLib {
|
|
|
81
73
|
* @source https://wiki.facepunch.com/gmod/game.CleanUpMap
|
|
82
74
|
*/
|
|
83
75
|
CleanUpMap(dontSendToClients?: boolean, extraFilters?: table, callback?: function): void;
|
|
84
|
-
}
|
|
85
76
|
|
|
86
|
-
interface GameLib {
|
|
87
77
|
/**
|
|
88
78
|
* Runs a console command.
|
|
89
79
|
* Make sure to add a newline ("\n") at the end of the command.
|
|
@@ -97,9 +87,7 @@ interface GameLib {
|
|
|
97
87
|
* @source https://wiki.facepunch.com/gmod/game.ConsoleCommand
|
|
98
88
|
*/
|
|
99
89
|
ConsoleCommand(stringCommand: string): void;
|
|
100
|
-
}
|
|
101
90
|
|
|
102
|
-
interface GameLib {
|
|
103
91
|
/**
|
|
104
92
|
* Returns information about the currently active 3D skybox.
|
|
105
93
|
*
|
|
@@ -107,36 +95,28 @@ interface GameLib {
|
|
|
107
95
|
* @source https://wiki.facepunch.com/gmod/game.Get3DSkyboxInfo
|
|
108
96
|
*/
|
|
109
97
|
Get3DSkyboxInfo(): Sky3DParams[];
|
|
110
|
-
}
|
|
111
98
|
|
|
112
|
-
interface GameLib {
|
|
113
99
|
/**
|
|
114
100
|
* Returns the damage type of given ammo type.
|
|
115
101
|
* @realm shared
|
|
116
102
|
* @source https://wiki.facepunch.com/gmod/game.GetAmmoDamageType
|
|
117
103
|
*/
|
|
118
104
|
GetAmmoDamageType(id: number): number;
|
|
119
|
-
}
|
|
120
105
|
|
|
121
|
-
interface GameLib {
|
|
122
106
|
/**
|
|
123
107
|
* Returns the [Structures/AmmoData](https://wiki.facepunch.com/gmod/Structures/AmmoData) for given ID.
|
|
124
108
|
* @realm shared
|
|
125
109
|
* @source https://wiki.facepunch.com/gmod/game.GetAmmoData
|
|
126
110
|
*/
|
|
127
111
|
GetAmmoData(id: number): AmmoData;
|
|
128
|
-
}
|
|
129
112
|
|
|
130
|
-
interface GameLib {
|
|
131
113
|
/**
|
|
132
114
|
* Returns the ammo bullet force that is applied when an entity is hit by a bullet of given ammo type.
|
|
133
115
|
* @realm shared
|
|
134
116
|
* @source https://wiki.facepunch.com/gmod/game.GetAmmoForce
|
|
135
117
|
*/
|
|
136
118
|
GetAmmoForce(id: number): number;
|
|
137
|
-
}
|
|
138
119
|
|
|
139
|
-
interface GameLib {
|
|
140
120
|
/**
|
|
141
121
|
* Returns the ammo type ID for given ammo type name.
|
|
142
122
|
*
|
|
@@ -146,9 +126,7 @@ interface GameLib {
|
|
|
146
126
|
* @source https://wiki.facepunch.com/gmod/game.GetAmmoID
|
|
147
127
|
*/
|
|
148
128
|
GetAmmoID(name: string): number;
|
|
149
|
-
}
|
|
150
129
|
|
|
151
|
-
interface GameLib {
|
|
152
130
|
/**
|
|
153
131
|
* Returns the real maximum amount of ammo of given ammo ID, regardless of the setting of `gmod_maxammo` convar.
|
|
154
132
|
*
|
|
@@ -156,18 +134,14 @@ interface GameLib {
|
|
|
156
134
|
* @source https://wiki.facepunch.com/gmod/game.GetAmmoMax
|
|
157
135
|
*/
|
|
158
136
|
GetAmmoMax(id: number): number;
|
|
159
|
-
}
|
|
160
137
|
|
|
161
|
-
interface GameLib {
|
|
162
138
|
/**
|
|
163
139
|
* Returns the damage given ammo type should do to NPCs.
|
|
164
140
|
* @realm shared
|
|
165
141
|
* @source https://wiki.facepunch.com/gmod/game.GetAmmoNPCDamage
|
|
166
142
|
*/
|
|
167
143
|
GetAmmoNPCDamage(id: number): number;
|
|
168
|
-
}
|
|
169
144
|
|
|
170
|
-
interface GameLib {
|
|
171
145
|
/**
|
|
172
146
|
* Returns the ammo name for given ammo type ID.
|
|
173
147
|
*
|
|
@@ -177,27 +151,21 @@ interface GameLib {
|
|
|
177
151
|
* @source https://wiki.facepunch.com/gmod/game.GetAmmoName
|
|
178
152
|
*/
|
|
179
153
|
GetAmmoName(id: number): string;
|
|
180
|
-
}
|
|
181
154
|
|
|
182
|
-
interface GameLib {
|
|
183
155
|
/**
|
|
184
156
|
* Returns the damage given ammo type should do to players.
|
|
185
157
|
* @realm shared
|
|
186
158
|
* @source https://wiki.facepunch.com/gmod/game.GetAmmoPlayerDamage
|
|
187
159
|
*/
|
|
188
160
|
GetAmmoPlayerDamage(id: number): number;
|
|
189
|
-
}
|
|
190
161
|
|
|
191
|
-
interface GameLib {
|
|
192
162
|
/**
|
|
193
163
|
* Returns a list of all ammo types currently registered.
|
|
194
164
|
* @realm shared
|
|
195
165
|
* @source https://wiki.facepunch.com/gmod/game.GetAmmoTypes
|
|
196
166
|
*/
|
|
197
167
|
GetAmmoTypes(): Table<number, string>;
|
|
198
|
-
}
|
|
199
168
|
|
|
200
|
-
interface GameLib {
|
|
201
169
|
/**
|
|
202
170
|
* Returns the counter of a Global State.
|
|
203
171
|
*
|
|
@@ -207,9 +175,7 @@ interface GameLib {
|
|
|
207
175
|
* @source https://wiki.facepunch.com/gmod/game.GetGlobalCounter
|
|
208
176
|
*/
|
|
209
177
|
GetGlobalCounter(name: string): number;
|
|
210
|
-
}
|
|
211
178
|
|
|
212
|
-
interface GameLib {
|
|
213
179
|
/**
|
|
214
180
|
* Returns whether a Global State is off, active or dead ( inactive ).
|
|
215
181
|
*
|
|
@@ -219,9 +185,7 @@ interface GameLib {
|
|
|
219
185
|
* @source https://wiki.facepunch.com/gmod/game.GetGlobalState
|
|
220
186
|
*/
|
|
221
187
|
GetGlobalState(name: string): number;
|
|
222
|
-
}
|
|
223
188
|
|
|
224
|
-
interface GameLib {
|
|
225
189
|
/**
|
|
226
190
|
* Returns the public IP address and port of the current server. This will return the IP/port that you are connecting through when ran clientside.
|
|
227
191
|
* **NOTE**: Returns "loopback" in singleplayer.
|
|
@@ -233,9 +197,7 @@ interface GameLib {
|
|
|
233
197
|
* @source https://wiki.facepunch.com/gmod/game.GetIPAddress
|
|
234
198
|
*/
|
|
235
199
|
GetIPAddress(): string;
|
|
236
|
-
}
|
|
237
200
|
|
|
238
|
-
interface GameLib {
|
|
239
201
|
/**
|
|
240
202
|
* Returns the name of the current map, without a file extension.
|
|
241
203
|
* On the menu state, returns "menu".
|
|
@@ -246,9 +208,7 @@ interface GameLib {
|
|
|
246
208
|
* @source https://wiki.facepunch.com/gmod/game.GetMap
|
|
247
209
|
*/
|
|
248
210
|
GetMap(): string;
|
|
249
|
-
}
|
|
250
211
|
|
|
251
|
-
interface GameLib {
|
|
252
212
|
/**
|
|
253
213
|
* Returns the current map change count for the server.
|
|
254
214
|
*
|
|
@@ -258,18 +218,14 @@ interface GameLib {
|
|
|
258
218
|
* @source https://wiki.facepunch.com/gmod/game.GetMapChangeCount
|
|
259
219
|
*/
|
|
260
220
|
GetMapChangeCount(): number;
|
|
261
|
-
}
|
|
262
221
|
|
|
263
|
-
interface GameLib {
|
|
264
222
|
/**
|
|
265
223
|
* Returns the next map that would be loaded according to the file that is set by the mapcyclefile convar.
|
|
266
224
|
* @realm server
|
|
267
225
|
* @source https://wiki.facepunch.com/gmod/game.GetMapNext
|
|
268
226
|
*/
|
|
269
227
|
GetMapNext(): string;
|
|
270
|
-
}
|
|
271
228
|
|
|
272
|
-
interface GameLib {
|
|
273
229
|
/**
|
|
274
230
|
* Returns the revision (Not to be confused with [VBSP Version](https://developer.valvesoftware.com/wiki/Source_BSP_File_Format#Versions)) and BSP version of the current map.
|
|
275
231
|
*
|
|
@@ -279,9 +235,7 @@ interface GameLib {
|
|
|
279
235
|
* @source https://wiki.facepunch.com/gmod/game.GetMapVersion
|
|
280
236
|
*/
|
|
281
237
|
GetMapVersion(): (number, number);
|
|
282
|
-
}
|
|
283
238
|
|
|
284
|
-
interface GameLib {
|
|
285
239
|
/**
|
|
286
240
|
* Returns the difficulty level of the game.
|
|
287
241
|
*
|
|
@@ -294,9 +248,7 @@ interface GameLib {
|
|
|
294
248
|
* @source https://wiki.facepunch.com/gmod/game.GetSkillLevel
|
|
295
249
|
*/
|
|
296
250
|
GetSkillLevel(): number;
|
|
297
|
-
}
|
|
298
251
|
|
|
299
|
-
interface GameLib {
|
|
300
252
|
/**
|
|
301
253
|
* Returns the time scale set with [game.SetTimeScale](https://wiki.facepunch.com/gmod/game.SetTimeScale).
|
|
302
254
|
*
|
|
@@ -309,9 +261,7 @@ interface GameLib {
|
|
|
309
261
|
* @source https://wiki.facepunch.com/gmod/game.GetTimeScale
|
|
310
262
|
*/
|
|
311
263
|
GetTimeScale(): number;
|
|
312
|
-
}
|
|
313
264
|
|
|
314
|
-
interface GameLib {
|
|
315
265
|
/**
|
|
316
266
|
* Returns the wind's velocity at a given position, as influenced by current map's [env_wind](https://developer.valvesoftware.com/wiki/Env_wind) entities.
|
|
317
267
|
*
|
|
@@ -319,18 +269,14 @@ interface GameLib {
|
|
|
319
269
|
* @source https://wiki.facepunch.com/gmod/game.GetWindSpeed
|
|
320
270
|
*/
|
|
321
271
|
GetWindSpeed(pos?: Vector): Vector;
|
|
322
|
-
}
|
|
323
272
|
|
|
324
|
-
interface GameLib {
|
|
325
273
|
/**
|
|
326
274
|
* Returns the worldspawn entity.
|
|
327
275
|
* @realm shared
|
|
328
276
|
* @source https://wiki.facepunch.com/gmod/game.GetWorld
|
|
329
277
|
*/
|
|
330
278
|
GetWorld(): Entity;
|
|
331
|
-
}
|
|
332
279
|
|
|
333
|
-
interface GameLib {
|
|
334
280
|
/**
|
|
335
281
|
* Returns true if the server is a dedicated server, false if it is a listen server or a singleplayer game.
|
|
336
282
|
*
|
|
@@ -338,27 +284,21 @@ interface GameLib {
|
|
|
338
284
|
* @source https://wiki.facepunch.com/gmod/game.IsDedicated
|
|
339
285
|
*/
|
|
340
286
|
IsDedicated(): boolean;
|
|
341
|
-
}
|
|
342
287
|
|
|
343
|
-
interface GameLib {
|
|
344
288
|
/**
|
|
345
289
|
* Kicks a player from the server. This can be ran before the player has spawned.
|
|
346
290
|
* @realm server
|
|
347
291
|
* @source https://wiki.facepunch.com/gmod/game.KickID
|
|
348
292
|
*/
|
|
349
293
|
KickID(id: string, reason?: string): void;
|
|
350
|
-
}
|
|
351
294
|
|
|
352
|
-
interface GameLib {
|
|
353
295
|
/**
|
|
354
296
|
* Loads the next map according to the `nextlevel` convar, or from the current `mapcyclefile` set by the respective convar.
|
|
355
297
|
* @realm server
|
|
356
298
|
* @source https://wiki.facepunch.com/gmod/game.LoadNextMap
|
|
357
299
|
*/
|
|
358
300
|
LoadNextMap(): void;
|
|
359
|
-
}
|
|
360
301
|
|
|
361
|
-
interface GameLib {
|
|
362
302
|
/**
|
|
363
303
|
* Returns the map load type of the current map.
|
|
364
304
|
*
|
|
@@ -368,18 +308,14 @@ interface GameLib {
|
|
|
368
308
|
* @source https://wiki.facepunch.com/gmod/game.MapLoadType
|
|
369
309
|
*/
|
|
370
310
|
MapLoadType(): string;
|
|
371
|
-
}
|
|
372
311
|
|
|
373
|
-
interface GameLib {
|
|
374
312
|
/**
|
|
375
313
|
* Returns the maximum amount of players (including bots) that the server can have.
|
|
376
314
|
* @realm shared
|
|
377
315
|
* @source https://wiki.facepunch.com/gmod/game.MaxPlayers
|
|
378
316
|
*/
|
|
379
317
|
MaxPlayers(): number;
|
|
380
|
-
}
|
|
381
318
|
|
|
382
|
-
interface GameLib {
|
|
383
319
|
/**
|
|
384
320
|
* Mounts a GMA addon from the disk.
|
|
385
321
|
* Can be used with [steamworks.DownloadUGC](https://wiki.facepunch.com/gmod/steamworks.DownloadUGC).
|
|
@@ -394,18 +330,14 @@ interface GameLib {
|
|
|
394
330
|
* @source https://wiki.facepunch.com/gmod/game.MountGMA
|
|
395
331
|
*/
|
|
396
332
|
MountGMA(path: string): (boolean, table);
|
|
397
|
-
}
|
|
398
333
|
|
|
399
|
-
interface GameLib {
|
|
400
334
|
/**
|
|
401
335
|
* Removes all the clientside ragdolls. On server, it will remove all `prop_ragdolls` that have the `SF_RAGDOLLPROP_USE_LRU_RETIREMENT` (4096) spawnflag.
|
|
402
336
|
* @realm shared
|
|
403
337
|
* @source https://wiki.facepunch.com/gmod/game.RemoveRagdolls
|
|
404
338
|
*/
|
|
405
339
|
RemoveRagdolls(): void;
|
|
406
|
-
}
|
|
407
340
|
|
|
408
|
-
interface GameLib {
|
|
409
341
|
/**
|
|
410
342
|
* Sets the counter of a Global State.
|
|
411
343
|
*
|
|
@@ -415,9 +347,7 @@ interface GameLib {
|
|
|
415
347
|
* @source https://wiki.facepunch.com/gmod/game.SetGlobalCounter
|
|
416
348
|
*/
|
|
417
349
|
SetGlobalCounter(name: string, count: number): void;
|
|
418
|
-
}
|
|
419
350
|
|
|
420
|
-
interface GameLib {
|
|
421
351
|
/**
|
|
422
352
|
* Sets whether a Global State is off, active or dead ( inactive ).
|
|
423
353
|
*
|
|
@@ -427,9 +357,7 @@ interface GameLib {
|
|
|
427
357
|
* @source https://wiki.facepunch.com/gmod/game.SetGlobalState
|
|
428
358
|
*/
|
|
429
359
|
SetGlobalState(name: string, state: number): void;
|
|
430
|
-
}
|
|
431
360
|
|
|
432
|
-
interface GameLib {
|
|
433
361
|
/**
|
|
434
362
|
* Sets the difficulty level of the game, can be retrieved with [game.GetSkillLevel](https://wiki.facepunch.com/gmod/game.GetSkillLevel).
|
|
435
363
|
*
|
|
@@ -439,9 +367,7 @@ interface GameLib {
|
|
|
439
367
|
* @source https://wiki.facepunch.com/gmod/game.SetSkillLevel
|
|
440
368
|
*/
|
|
441
369
|
SetSkillLevel(level: number): void;
|
|
442
|
-
}
|
|
443
370
|
|
|
444
|
-
interface GameLib {
|
|
445
371
|
/**
|
|
446
372
|
* Sets the time scale of the game logic.
|
|
447
373
|
*
|
|
@@ -458,18 +384,14 @@ interface GameLib {
|
|
|
458
384
|
* @source https://wiki.facepunch.com/gmod/game.SetTimeScale
|
|
459
385
|
*/
|
|
460
386
|
SetTimeScale(timeScale: number): void;
|
|
461
|
-
}
|
|
462
387
|
|
|
463
|
-
interface GameLib {
|
|
464
388
|
/**
|
|
465
389
|
* Returns whether the current session is a single player game.
|
|
466
390
|
* @realm shared
|
|
467
391
|
* @source https://wiki.facepunch.com/gmod/game.SinglePlayer
|
|
468
392
|
*/
|
|
469
393
|
SinglePlayer(): boolean;
|
|
470
|
-
}
|
|
471
394
|
|
|
472
|
-
interface GameLib {
|
|
473
395
|
/**
|
|
474
396
|
* Returns the name of the entity that should be used as player start position.
|
|
475
397
|
*
|
|
@@ -479,4 +401,3 @@ interface GameLib {
|
|
|
479
401
|
*/
|
|
480
402
|
StartSpot(): string;
|
|
481
403
|
}
|
|
482
|
-
|
package/types/gameevent.d.tlua
CHANGED
|
@@ -252,8 +252,7 @@ interface flare_ignite_npc {
|
|
|
252
252
|
* @realm client and menu
|
|
253
253
|
* @source https://wiki.facepunch.com/gmod/gameevent/freezecam_started
|
|
254
254
|
*/
|
|
255
|
-
interface freezecam_started {
|
|
256
|
-
}
|
|
255
|
+
interface freezecam_started {}
|
|
257
256
|
|
|
258
257
|
/**
|
|
259
258
|
* Called when a map is loaded.
|
|
@@ -286,8 +285,7 @@ interface game_newmap {
|
|
|
286
285
|
* @realm client and menu
|
|
287
286
|
* @source https://wiki.facepunch.com/gmod/gameevent/hide_freezepanel
|
|
288
287
|
*/
|
|
289
|
-
interface hide_freezepanel {
|
|
290
|
-
}
|
|
288
|
+
interface hide_freezepanel {}
|
|
291
289
|
|
|
292
290
|
/**
|
|
293
291
|
* Called when a Client becomes the Cameraman.
|
|
@@ -522,8 +520,7 @@ interface hltv_title {
|
|
|
522
520
|
* @realm shared and menu
|
|
523
521
|
* @source https://wiki.facepunch.com/gmod/gameevent/host_quit
|
|
524
522
|
*/
|
|
525
|
-
interface host_quit {
|
|
526
|
-
}
|
|
523
|
+
interface host_quit {}
|
|
527
524
|
|
|
528
525
|
/**
|
|
529
526
|
* Called when a player has entered the game (connected and loaded).
|
|
@@ -951,8 +948,7 @@ interface show_freezepanel {
|
|
|
951
948
|
* @realm menu
|
|
952
949
|
* @source https://wiki.facepunch.com/gmod/gameevent/user_data_downloaded
|
|
953
950
|
*/
|
|
954
|
-
interface user_data_downloaded {
|
|
955
|
-
}
|
|
951
|
+
interface user_data_downloaded {}
|
|
956
952
|
|
|
957
953
|
interface GameeventLib {
|
|
958
954
|
/**
|
|
@@ -965,4 +961,3 @@ interface GameeventLib {
|
|
|
965
961
|
*/
|
|
966
962
|
Listen(eventName: string): void;
|
|
967
963
|
}
|
|
968
|
-
|
package/types/gamemode.d.tlua
CHANGED
|
@@ -18,9 +18,7 @@ interface GamemodeLib {
|
|
|
18
18
|
* @source https://wiki.facepunch.com/gmod/gamemode.Call
|
|
19
19
|
*/
|
|
20
20
|
Call(name: string, ...: any): any;
|
|
21
|
-
}
|
|
22
21
|
|
|
23
|
-
interface GamemodeLib {
|
|
24
22
|
/**
|
|
25
23
|
* INTERNAL: This is used internally - although you're able to use it you
|
|
26
24
|
* probably shouldn't. This returns the internally stored gamemode table.
|
|
@@ -33,10 +31,7 @@ interface GamemodeLib {
|
|
|
33
31
|
* @source https://wiki.facepunch.com/gmod/gamemode.Get
|
|
34
32
|
*/
|
|
35
33
|
Get(name: string): GM;
|
|
36
|
-
}
|
|
37
34
|
|
|
38
|
-
|
|
39
|
-
interface GamemodeLib {
|
|
40
35
|
/**
|
|
41
36
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
42
37
|
* Called by the engine when a gamemode is being loaded.
|
|
@@ -45,4 +40,3 @@ interface GamemodeLib {
|
|
|
45
40
|
*/
|
|
46
41
|
Register(gm: table, name: string, derived: string): void;
|
|
47
42
|
}
|
|
48
|
-
|
package/types/global.d.tlua
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
*/
|
|
10
10
|
declare function AccessorFunc(tab: table, key: any, name: string, force?: FORCE): void;
|
|
11
11
|
|
|
12
|
-
|
|
13
12
|
/**
|
|
14
13
|
* Adds the specified image path to the main menu background pool. Image can be png or jpeg.
|
|
15
14
|
* @realm menu
|
|
@@ -272,7 +271,6 @@ declare function Color(r: number, g: number, b: number, a?: number): Color;
|
|
|
272
271
|
*/
|
|
273
272
|
declare function ColorAlpha(color: Color, alpha: number): Color;
|
|
274
273
|
|
|
275
|
-
|
|
276
274
|
/**
|
|
277
275
|
* Creates a Color with randomized red, green, and blue components. If the alpha
|
|
278
276
|
* argument is true, alpha will also be randomized.
|
|
@@ -282,7 +280,6 @@ declare function ColorAlpha(color: Color, alpha: number): Color;
|
|
|
282
280
|
*/
|
|
283
281
|
declare function ColorRand(a?: boolean): Color;
|
|
284
282
|
|
|
285
|
-
|
|
286
283
|
/**
|
|
287
284
|
* Converts a [Color](https://wiki.facepunch.com/gmod/Color) into HSL color space.
|
|
288
285
|
* @realm shared and menu
|
|
@@ -344,7 +341,6 @@ declare function CreateClientConVar(name: string, _default: string | number, sho
|
|
|
344
341
|
*/
|
|
345
342
|
declare function CreateConVar(name: string, value: string | number, flags?: FCVAR | number[], helptext?: string, min?: number, max?: number): ConVar;
|
|
346
343
|
|
|
347
|
-
|
|
348
344
|
/**
|
|
349
345
|
* Creates a ContextMenu.
|
|
350
346
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
@@ -558,7 +554,6 @@ declare function DeriveGamemode(base: string): void;
|
|
|
558
554
|
*/
|
|
559
555
|
declare function DermaMenu(keepOpen?: boolean, parent?: Panel): DMenu;
|
|
560
556
|
|
|
561
|
-
|
|
562
557
|
/**
|
|
563
558
|
* Creates a new derma animation.
|
|
564
559
|
* @realm client and menu
|
|
@@ -922,7 +917,6 @@ declare function EyeVector(): Vector;
|
|
|
922
917
|
*/
|
|
923
918
|
declare function FindMetaTable<T extends table>(metaName: string): T;
|
|
924
919
|
|
|
925
|
-
|
|
926
920
|
/**
|
|
927
921
|
* Returns the tool-tip text and tool-tip-panel (if any) of the given panel as well as itself
|
|
928
922
|
* @realm client and menu
|
|
@@ -1382,7 +1376,6 @@ declare function HTTP(parameters: HTTPRequestWithParameters): boolean;
|
|
|
1382
1376
|
declare function HTTP(parameters: HTTPRequestWithoutParameters): boolean;
|
|
1383
1377
|
declare function HTTP(parameters: HTTPRequest): boolean;
|
|
1384
1378
|
|
|
1385
|
-
|
|
1386
1379
|
/**
|
|
1387
1380
|
* Converts a color from [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model) (Hue-Whiteness-Blackness) into RGB color space and returns a [Color](https://wiki.facepunch.com/gmod/Color).
|
|
1388
1381
|
*
|
|
@@ -1418,7 +1411,6 @@ declare function IncludeCS(filename: string): (...any);
|
|
|
1418
1411
|
*/
|
|
1419
1412
|
declare function IsColor(value: any): value is Color;
|
|
1420
1413
|
|
|
1421
|
-
|
|
1422
1414
|
/**
|
|
1423
1415
|
* Determines whether or not the provided console command will be blocked if it's ran through Lua functions, such as [Global.RunConsoleCommand](https://wiki.facepunch.com/gmod/Global.RunConsoleCommand) or [Player:ConCommand](https://wiki.facepunch.com/gmod/Player:ConCommand).
|
|
1424
1416
|
*
|
|
@@ -3058,7 +3050,6 @@ declare function include(fileName: string): (...any);
|
|
|
3058
3050
|
*/
|
|
3059
3051
|
declare function isangle(value: any): value is Angle;
|
|
3060
3052
|
|
|
3061
|
-
|
|
3062
3053
|
/**
|
|
3063
3054
|
* Returns whether the given value is a boolean.
|
|
3064
3055
|
* @realm shared
|
|
@@ -3067,7 +3058,6 @@ declare function isangle(value: any): value is Angle;
|
|
|
3067
3058
|
*/
|
|
3068
3059
|
declare function isbool(value: any): value is boolean;
|
|
3069
3060
|
|
|
3070
|
-
|
|
3071
3061
|
/**
|
|
3072
3062
|
* Returns whether the given value is a function.
|
|
3073
3063
|
* @realm shared
|
|
@@ -3076,7 +3066,6 @@ declare function isbool(value: any): value is boolean;
|
|
|
3076
3066
|
*/
|
|
3077
3067
|
declare function isfunction(value: any): value is function;
|
|
3078
3068
|
|
|
3079
|
-
|
|
3080
3069
|
/**
|
|
3081
3070
|
* Returns whether the given value is a VMatrix.
|
|
3082
3071
|
* @realm shared
|
|
@@ -3085,7 +3074,6 @@ declare function isfunction(value: any): value is function;
|
|
|
3085
3074
|
*/
|
|
3086
3075
|
declare function ismatrix(value: any): value is VMatrix;
|
|
3087
3076
|
|
|
3088
|
-
|
|
3089
3077
|
/**
|
|
3090
3078
|
* Returns whether the given value is a number.
|
|
3091
3079
|
* @realm shared
|
|
@@ -3094,7 +3082,6 @@ declare function ismatrix(value: any): value is VMatrix;
|
|
|
3094
3082
|
*/
|
|
3095
3083
|
declare function isnumber(value: any): value is number;
|
|
3096
3084
|
|
|
3097
|
-
|
|
3098
3085
|
/**
|
|
3099
3086
|
* Returns whether the given value is a Panel.
|
|
3100
3087
|
* @realm shared
|
|
@@ -3103,7 +3090,6 @@ declare function isnumber(value: any): value is number;
|
|
|
3103
3090
|
*/
|
|
3104
3091
|
declare function ispanel(value: any): value is Panel;
|
|
3105
3092
|
|
|
3106
|
-
|
|
3107
3093
|
/**
|
|
3108
3094
|
* Returns whether the given value is a string.
|
|
3109
3095
|
* @realm shared
|
|
@@ -3112,7 +3098,6 @@ declare function ispanel(value: any): value is Panel;
|
|
|
3112
3098
|
*/
|
|
3113
3099
|
declare function isstring(value: any): value is string;
|
|
3114
3100
|
|
|
3115
|
-
|
|
3116
3101
|
/**
|
|
3117
3102
|
* Returns whether the given value is a table.
|
|
3118
3103
|
* @realm shared
|
|
@@ -3121,7 +3106,6 @@ declare function isstring(value: any): value is string;
|
|
|
3121
3106
|
*/
|
|
3122
3107
|
declare function istable(value: any): value is table;
|
|
3123
3108
|
|
|
3124
|
-
|
|
3125
3109
|
/**
|
|
3126
3110
|
* Returns whether the given value is a Vector.
|
|
3127
3111
|
* @realm shared
|
|
@@ -3130,7 +3114,6 @@ declare function istable(value: any): value is table;
|
|
|
3130
3114
|
*/
|
|
3131
3115
|
declare function isvector(value: any): value is Vector;
|
|
3132
3116
|
|
|
3133
|
-
|
|
3134
3117
|
/**
|
|
3135
3118
|
* First tries to load a binary module with the given name, if unsuccessful, it tries to load a Lua module with the given name.
|
|
3136
3119
|
*
|
|
@@ -3153,4 +3136,3 @@ declare function require(name: string): void;
|
|
|
3153
3136
|
* @source https://wiki.facepunch.com/gmod/Global.tobool
|
|
3154
3137
|
*/
|
|
3155
3138
|
declare function tobool(input: any): boolean;
|
|
3156
|
-
|