@tlua/gmod 1.0.4 → 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/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 +4 -12
- 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/player.d.tlua
CHANGED
|
@@ -12,20 +12,6 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @source https://wiki.facepunch.com/gmod/PLAYER_Hooks
|
|
14
14
|
*/
|
|
15
|
-
interface PLAYER {}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* This is a list of all methods only available for players. It is also possible to call [Entity](https://wiki.facepunch.com/gmod/Entity) functions on the Player.
|
|
19
|
-
* @source https://wiki.facepunch.com/gmod/Player
|
|
20
|
-
*/
|
|
21
|
-
interface Player extends Entity {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* The player library is used to get the Lua objects that represent players in-game.
|
|
25
|
-
* @source https://wiki.facepunch.com/gmod/player(library)
|
|
26
|
-
*/
|
|
27
|
-
declare player: PlayerLib;
|
|
28
|
-
|
|
29
15
|
interface PLAYER {
|
|
30
16
|
/**
|
|
31
17
|
* Called when the player's class was changed from this class.
|
|
@@ -33,18 +19,12 @@ interface PLAYER {
|
|
|
33
19
|
* @source https://wiki.facepunch.com/gmod/PLAYER:ClassChanged
|
|
34
20
|
*/
|
|
35
21
|
ClassChanged(self: PLAYER): void;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface PLAYER {
|
|
39
22
|
/**
|
|
40
23
|
* Called when the player dies
|
|
41
24
|
* @realm server
|
|
42
25
|
* @source https://wiki.facepunch.com/gmod/PLAYER:Death
|
|
43
26
|
*/
|
|
44
27
|
Death(self: PLAYER): void;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface PLAYER {
|
|
48
28
|
/**
|
|
49
29
|
* Called from [GM:FinishMove](https://wiki.facepunch.com/gmod/GM:FinishMove).
|
|
50
30
|
*
|
|
@@ -58,36 +38,24 @@ interface PLAYER {
|
|
|
58
38
|
* @source https://wiki.facepunch.com/gmod/PLAYER:FinishMove
|
|
59
39
|
*/
|
|
60
40
|
FinishMove(self: PLAYER, mv: CMoveData): boolean;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
interface PLAYER {
|
|
64
41
|
/**
|
|
65
42
|
* Called on player spawn to determine which hand model to use
|
|
66
43
|
* @realm server
|
|
67
44
|
* @source https://wiki.facepunch.com/gmod/PLAYER:GetHandsModel
|
|
68
45
|
*/
|
|
69
46
|
GetHandsModel(self: PLAYER): table;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
interface PLAYER {
|
|
73
47
|
/**
|
|
74
48
|
* Called when the class object is created
|
|
75
49
|
* @realm shared
|
|
76
50
|
* @source https://wiki.facepunch.com/gmod/PLAYER:Init
|
|
77
51
|
*/
|
|
78
52
|
Init(self: PLAYER): void;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
interface PLAYER {
|
|
82
53
|
/**
|
|
83
54
|
* Called on spawn to give the player their default loadout
|
|
84
55
|
* @realm server
|
|
85
56
|
* @source https://wiki.facepunch.com/gmod/PLAYER:Loadout
|
|
86
57
|
*/
|
|
87
58
|
Loadout(self: PLAYER): void;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
interface PLAYER {
|
|
91
59
|
/**
|
|
92
60
|
* Called from [GM:Move](https://wiki.facepunch.com/gmod/GM:Move).
|
|
93
61
|
*
|
|
@@ -101,27 +69,18 @@ interface PLAYER {
|
|
|
101
69
|
* @source https://wiki.facepunch.com/gmod/PLAYER:Move
|
|
102
70
|
*/
|
|
103
71
|
Move(self: PLAYER, mv: CMoveData): boolean;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
interface PLAYER {
|
|
107
72
|
/**
|
|
108
73
|
* Called after the viewmodel has been drawn
|
|
109
74
|
* @realm client
|
|
110
75
|
* @source https://wiki.facepunch.com/gmod/PLAYER:PostDrawViewModel
|
|
111
76
|
*/
|
|
112
77
|
PostDrawViewModel(self: PLAYER, viewmodel: Entity, weapon: Entity): void;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
interface PLAYER {
|
|
116
78
|
/**
|
|
117
79
|
* Called before the viewmodel is drawn
|
|
118
80
|
* @realm client
|
|
119
81
|
* @source https://wiki.facepunch.com/gmod/PLAYER:PreDrawViewModel
|
|
120
82
|
*/
|
|
121
83
|
PreDrawViewModel(self: PLAYER, viewmodel: Entity, weapon: Entity): void;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
interface PLAYER {
|
|
125
84
|
/**
|
|
126
85
|
* Called when we need to set player model from the class.
|
|
127
86
|
*
|
|
@@ -132,27 +91,18 @@ interface PLAYER {
|
|
|
132
91
|
* @source https://wiki.facepunch.com/gmod/PLAYER:SetModel
|
|
133
92
|
*/
|
|
134
93
|
SetModel(self: PLAYER): void;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
interface PLAYER {
|
|
138
94
|
/**
|
|
139
95
|
* Setup the network table accessors.
|
|
140
96
|
* @realm shared
|
|
141
97
|
* @source https://wiki.facepunch.com/gmod/PLAYER:SetupDataTables
|
|
142
98
|
*/
|
|
143
99
|
SetupDataTables(self: PLAYER): void;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
interface PLAYER {
|
|
147
100
|
/**
|
|
148
101
|
* Called when the player spawns
|
|
149
102
|
* @realm server
|
|
150
103
|
* @source https://wiki.facepunch.com/gmod/PLAYER:Spawn
|
|
151
104
|
*/
|
|
152
105
|
Spawn(self: PLAYER): void;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
interface PLAYER {
|
|
156
106
|
/**
|
|
157
107
|
* Called from [GM:CreateMove](https://wiki.facepunch.com/gmod/GM:CreateMove).
|
|
158
108
|
*
|
|
@@ -166,9 +116,6 @@ interface PLAYER {
|
|
|
166
116
|
* @source https://wiki.facepunch.com/gmod/PLAYER:StartMove
|
|
167
117
|
*/
|
|
168
118
|
StartMove(self: PLAYER, mv: CMoveData, cmd: CUserCmd): boolean;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
interface PLAYER {
|
|
172
119
|
/**
|
|
173
120
|
* Called when the player changes their weapon to another one causing their viewmodel model to change
|
|
174
121
|
* @realm client
|
|
@@ -177,7 +124,11 @@ interface PLAYER {
|
|
|
177
124
|
ViewModelChanged(self: PLAYER, viewmodel: Entity, old: string, _new: string): void;
|
|
178
125
|
}
|
|
179
126
|
|
|
180
|
-
|
|
127
|
+
/**
|
|
128
|
+
* This is a list of all methods only available for players. It is also possible to call [Entity](https://wiki.facepunch.com/gmod/Entity) functions on the Player.
|
|
129
|
+
* @source https://wiki.facepunch.com/gmod/Player
|
|
130
|
+
*/
|
|
131
|
+
interface Player extends Entity {
|
|
181
132
|
/**
|
|
182
133
|
* Returns the player's AccountID part of their full SteamID.
|
|
183
134
|
*
|
|
@@ -195,9 +146,6 @@ interface Player {
|
|
|
195
146
|
* @source https://wiki.facepunch.com/gmod/Player:AccountID
|
|
196
147
|
*/
|
|
197
148
|
AccountID(self: Player): number;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
interface Player {
|
|
201
149
|
/**
|
|
202
150
|
* **NOTE**: This function is only available in Sandbox and its derivatives.
|
|
203
151
|
* Adds an entity to the player's clean up list. This uses [cleanup.Add](https://wiki.facepunch.com/gmod/cleanup.Add) internally.
|
|
@@ -205,9 +153,6 @@ interface Player {
|
|
|
205
153
|
* @source https://wiki.facepunch.com/gmod/Player:AddCleanup
|
|
206
154
|
*/
|
|
207
155
|
AddCleanup(self: Player, type: string, ent: Entity): void;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
interface Player {
|
|
211
156
|
/**
|
|
212
157
|
* **NOTE**: This function is only available in Sandbox and its derivatives.
|
|
213
158
|
* Adds an entity to the player's list of entities of the same type. See [Player:GetCount](https://wiki.facepunch.com/gmod/Player:GetCount) to get the current count of entities of an entity type added with this function.
|
|
@@ -215,36 +160,24 @@ interface Player {
|
|
|
215
160
|
* @source https://wiki.facepunch.com/gmod/Player:AddCount
|
|
216
161
|
*/
|
|
217
162
|
AddCount(self: Player, str: string, ent: Entity): void;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
interface Player {
|
|
221
163
|
/**
|
|
222
164
|
* Adds the provided amount to the player's death count.
|
|
223
165
|
* @realm server
|
|
224
166
|
* @source https://wiki.facepunch.com/gmod/Player:AddDeaths
|
|
225
167
|
*/
|
|
226
168
|
AddDeaths(self: Player, count: number): void;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
interface Player {
|
|
230
169
|
/**
|
|
231
170
|
* Adds the provided amount to the player's frag/kill count.
|
|
232
171
|
* @realm server
|
|
233
172
|
* @source https://wiki.facepunch.com/gmod/Player:AddFrags
|
|
234
173
|
*/
|
|
235
174
|
AddFrags(self: Player, count: number): void;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
interface Player {
|
|
239
175
|
/**
|
|
240
176
|
* Adds an entity to the player's list of frozen objects.
|
|
241
177
|
* @realm server
|
|
242
178
|
* @source https://wiki.facepunch.com/gmod/Player:AddFrozenPhysicsObject
|
|
243
179
|
*/
|
|
244
180
|
AddFrozenPhysicsObject(self: Player, ent: Entity, physobj: PhysObj): void;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
interface Player {
|
|
248
181
|
/**
|
|
249
182
|
* Sets up the voting system for the player.
|
|
250
183
|
* This is a really barebone system. By calling this a vote gets started, when the player presses 0-9 the callback function gets called along with the key the player pressed. Use the draw callback to draw the vote panel.
|
|
@@ -253,9 +186,6 @@ interface Player {
|
|
|
253
186
|
* @source https://wiki.facepunch.com/gmod/Player:AddPlayerOption
|
|
254
187
|
*/
|
|
255
188
|
AddPlayerOption(self: Player, name: string, timeout: number, vote_callback: (voteNum: number) => boolean, draw_callback: function): void;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
interface Player {
|
|
259
189
|
/**
|
|
260
190
|
* Plays a sequence directly from a sequence number, similar to [Player:AnimRestartGesture](https://wiki.facepunch.com/gmod/Player:AnimRestartGesture). This function has the advantage to play sequences that haven't been bound to an existing [Enums/ACT](https://wiki.facepunch.com/gmod/Enums/ACT)
|
|
261
191
|
* **WARNING**: This is not automatically networked. This function has to be called on the client to be seen by said client.
|
|
@@ -265,9 +195,6 @@ interface Player {
|
|
|
265
195
|
* @source https://wiki.facepunch.com/gmod/Player:AddVCDSequenceToGestureSlot
|
|
266
196
|
*/
|
|
267
197
|
AddVCDSequenceToGestureSlot(self: Player, slot: number, sequenceId: number, cycle: number, autokill?: boolean): void;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
interface Player {
|
|
271
198
|
/**
|
|
272
199
|
* Sets if the player can toggle their flashlight. Function exists on both the server and client but has no effect when ran on the client.
|
|
273
200
|
*
|
|
@@ -277,27 +204,18 @@ interface Player {
|
|
|
277
204
|
* @source https://wiki.facepunch.com/gmod/Player:AllowFlashlight
|
|
278
205
|
*/
|
|
279
206
|
AllowFlashlight(self: Player, canFlashlight: boolean): void;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
interface Player {
|
|
283
207
|
/**
|
|
284
208
|
* Lets the player spray their decal without delay
|
|
285
209
|
* @realm server
|
|
286
210
|
* @source https://wiki.facepunch.com/gmod/Player:AllowImmediateDecalPainting
|
|
287
211
|
*/
|
|
288
212
|
AllowImmediateDecalPainting(self: Player, allow: boolean): void;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
interface Player {
|
|
292
213
|
/**
|
|
293
214
|
* Resets player gesture in selected slot.
|
|
294
215
|
* @realm shared
|
|
295
216
|
* @source https://wiki.facepunch.com/gmod/Player:AnimResetGestureSlot
|
|
296
217
|
*/
|
|
297
218
|
AnimResetGestureSlot(self: Player, slot: number): void;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
interface Player {
|
|
301
219
|
/**
|
|
302
220
|
* Restart a gesture on a player, within a gesture slot.
|
|
303
221
|
*
|
|
@@ -308,54 +226,36 @@ interface Player {
|
|
|
308
226
|
* @source https://wiki.facepunch.com/gmod/Player:AnimRestartGesture
|
|
309
227
|
*/
|
|
310
228
|
AnimRestartGesture(self: Player, slot: number, activity: number, autokill?: boolean): void;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
interface Player {
|
|
314
229
|
/**
|
|
315
230
|
* Restarts the main animation on the player, has the same effect as calling [Entity:SetCycle](https://wiki.facepunch.com/gmod/Entity:SetCycle)( 0 ).
|
|
316
231
|
* @realm shared
|
|
317
232
|
* @source https://wiki.facepunch.com/gmod/Player:AnimRestartMainSequence
|
|
318
233
|
*/
|
|
319
234
|
AnimRestartMainSequence(self: Player): void;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
interface Player {
|
|
323
235
|
/**
|
|
324
236
|
* Sets the sequence of the animation playing in the given gesture slot.
|
|
325
237
|
* @realm shared
|
|
326
238
|
* @source https://wiki.facepunch.com/gmod/Player:AnimSetGestureSequence
|
|
327
239
|
*/
|
|
328
240
|
AnimSetGestureSequence(self: Player, slot: number, sequenceID: number): void;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
interface Player {
|
|
332
241
|
/**
|
|
333
242
|
* Sets the weight of the animation playing in the given gesture slot.
|
|
334
243
|
* @realm shared
|
|
335
244
|
* @source https://wiki.facepunch.com/gmod/Player:AnimSetGestureWeight
|
|
336
245
|
*/
|
|
337
246
|
AnimSetGestureWeight(self: Player, slot: number, weight: number): void;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
interface Player {
|
|
341
247
|
/**
|
|
342
248
|
* Returns the player's armor.
|
|
343
249
|
* @realm shared
|
|
344
250
|
* @source https://wiki.facepunch.com/gmod/Player:Armor
|
|
345
251
|
*/
|
|
346
252
|
Armor(self: Player): number;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
interface Player {
|
|
350
253
|
/**
|
|
351
254
|
* Bans the player from the server for a certain amount of minutes.
|
|
352
255
|
* @realm server
|
|
353
256
|
* @source https://wiki.facepunch.com/gmod/Player:Ban
|
|
354
257
|
*/
|
|
355
258
|
Ban(self: Player, minutes: number, kick?: boolean): void;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
interface Player {
|
|
359
259
|
/**
|
|
360
260
|
* Returns true if the player's flashlight hasn't been disabled by [Player:AllowFlashlight](https://wiki.facepunch.com/gmod/Player:AllowFlashlight).
|
|
361
261
|
*
|
|
@@ -366,9 +266,6 @@ interface Player {
|
|
|
366
266
|
* @source https://wiki.facepunch.com/gmod/Player:CanUseFlashlight
|
|
367
267
|
*/
|
|
368
268
|
CanUseFlashlight(self: Player): boolean;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
interface Player {
|
|
372
269
|
/**
|
|
373
270
|
* Prints a string to the chatbox of the client.
|
|
374
271
|
*
|
|
@@ -379,9 +276,6 @@ interface Player {
|
|
|
379
276
|
* @source https://wiki.facepunch.com/gmod/Player:ChatPrint
|
|
380
277
|
*/
|
|
381
278
|
ChatPrint(self: Player, message: string): void;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
interface Player {
|
|
385
279
|
/**
|
|
386
280
|
* Checks if the limit of an entity type added by [Player:AddCount](https://wiki.facepunch.com/gmod/Player:AddCount) is hit or not. If it's hit, it will call the [GM:PlayerCheckLimit](https://wiki.facepunch.com/gmod/GM:PlayerCheckLimit) hook, and call [Player:LimitHit](https://wiki.facepunch.com/gmod/Player:LimitHit) if the hook doesn't return `false`.
|
|
387
281
|
*
|
|
@@ -394,9 +288,6 @@ interface Player {
|
|
|
394
288
|
* @source https://wiki.facepunch.com/gmod/Player:CheckLimit
|
|
395
289
|
*/
|
|
396
290
|
CheckLimit(self: Player, str: string): boolean;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
interface Player {
|
|
400
291
|
/**
|
|
401
292
|
* Runs the concommand on the player. This does not work on bots. If used clientside, always runs the command on the local player.
|
|
402
293
|
*
|
|
@@ -409,9 +300,6 @@ interface Player {
|
|
|
409
300
|
* @source https://wiki.facepunch.com/gmod/Player:ConCommand
|
|
410
301
|
*/
|
|
411
302
|
ConCommand(self: Player, command: string): void;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
interface Player {
|
|
415
303
|
/**
|
|
416
304
|
* Creates the player's death ragdoll entity and deletes the old one.
|
|
417
305
|
*
|
|
@@ -425,72 +313,48 @@ interface Player {
|
|
|
425
313
|
* @source https://wiki.facepunch.com/gmod/Player:CreateRagdoll
|
|
426
314
|
*/
|
|
427
315
|
CreateRagdoll(self: Player): void;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
interface Player {
|
|
431
316
|
/**
|
|
432
317
|
* Disables the default player's crosshair. Can be reenabled with [Player:CrosshairEnable](https://wiki.facepunch.com/gmod/Player:CrosshairEnable). This will affect [WEAPON:DoDrawCrosshair](https://wiki.facepunch.com/gmod/WEAPON:DoDrawCrosshair).
|
|
433
318
|
* @realm server
|
|
434
319
|
* @source https://wiki.facepunch.com/gmod/Player:CrosshairDisable
|
|
435
320
|
*/
|
|
436
321
|
CrosshairDisable(self: Player): void;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
interface Player {
|
|
440
322
|
/**
|
|
441
323
|
* Enables the player's crosshair, if it was previously disabled via [Player:CrosshairDisable](https://wiki.facepunch.com/gmod/Player:CrosshairDisable).
|
|
442
324
|
* @realm server
|
|
443
325
|
* @source https://wiki.facepunch.com/gmod/Player:CrosshairEnable
|
|
444
326
|
*/
|
|
445
327
|
CrosshairEnable(self: Player): void;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
interface Player {
|
|
449
328
|
/**
|
|
450
329
|
* Returns whether the player is crouching or not ([FL_DUCKING](https://wiki.facepunch.com/gmod/Enums/FL) flag).
|
|
451
330
|
* @realm shared
|
|
452
331
|
* @source https://wiki.facepunch.com/gmod/Player:Crouching
|
|
453
332
|
*/
|
|
454
333
|
Crouching(self: Player): boolean;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
interface Player {
|
|
458
334
|
/**
|
|
459
335
|
* Returns the player's death count
|
|
460
336
|
* @realm shared
|
|
461
337
|
* @source https://wiki.facepunch.com/gmod/Player:Deaths
|
|
462
338
|
*/
|
|
463
339
|
Deaths(self: Player): number;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
interface Player {
|
|
467
340
|
/**
|
|
468
341
|
* Prints the players' name and position to the console.
|
|
469
342
|
* @realm shared
|
|
470
343
|
* @source https://wiki.facepunch.com/gmod/Player:DebugInfo
|
|
471
344
|
*/
|
|
472
345
|
DebugInfo(self: Player): void;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
interface Player {
|
|
476
346
|
/**
|
|
477
347
|
* Detonates all tripmines belonging to the player.
|
|
478
348
|
* @realm server
|
|
479
349
|
* @source https://wiki.facepunch.com/gmod/Player:DetonateTripmines
|
|
480
350
|
*/
|
|
481
351
|
DetonateTripmines(self: Player): void;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
interface Player {
|
|
485
352
|
/**
|
|
486
353
|
* Disables world clicking for given player. See [Panel:SetWorldClicker](https://wiki.facepunch.com/gmod/Panel:SetWorldClicker) and [Player:IsWorldClickingDisabled](https://wiki.facepunch.com/gmod/Player:IsWorldClickingDisabled).
|
|
487
354
|
* @realm server
|
|
488
355
|
* @source https://wiki.facepunch.com/gmod/Player:DisableWorldClicking
|
|
489
356
|
*/
|
|
490
357
|
DisableWorldClicking(self: Player, disable: boolean): void;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
interface Player {
|
|
494
358
|
/**
|
|
495
359
|
* Sends a third person animation event to the player.
|
|
496
360
|
*
|
|
@@ -500,9 +364,6 @@ interface Player {
|
|
|
500
364
|
* @source https://wiki.facepunch.com/gmod/Player:DoAnimationEvent
|
|
501
365
|
*/
|
|
502
366
|
DoAnimationEvent(self: Player, data: number): void;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
interface Player {
|
|
506
367
|
/**
|
|
507
368
|
* Starts the player's attack animation. The attack animation is determined by the weapon's HoldType.
|
|
508
369
|
*
|
|
@@ -512,9 +373,6 @@ interface Player {
|
|
|
512
373
|
* @source https://wiki.facepunch.com/gmod/Player:DoAttackEvent
|
|
513
374
|
*/
|
|
514
375
|
DoAttackEvent(self: Player): void;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
interface Player {
|
|
518
376
|
/**
|
|
519
377
|
* Sends a specified third person animation event to the player.
|
|
520
378
|
*
|
|
@@ -524,9 +382,6 @@ interface Player {
|
|
|
524
382
|
* @source https://wiki.facepunch.com/gmod/Player:DoCustomAnimEvent
|
|
525
383
|
*/
|
|
526
384
|
DoCustomAnimEvent(self: Player, event: number, data: number): void;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
interface Player {
|
|
530
385
|
/**
|
|
531
386
|
* Sends a third person reload animation event to the player.
|
|
532
387
|
*
|
|
@@ -536,9 +391,6 @@ interface Player {
|
|
|
536
391
|
* @source https://wiki.facepunch.com/gmod/Player:DoReloadEvent
|
|
537
392
|
*/
|
|
538
393
|
DoReloadEvent(self: Player): void;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
interface Player {
|
|
542
394
|
/**
|
|
543
395
|
* Sends a third person secondary fire animation event to the player.
|
|
544
396
|
*
|
|
@@ -548,36 +400,24 @@ interface Player {
|
|
|
548
400
|
* @source https://wiki.facepunch.com/gmod/Player:DoSecondaryAttack
|
|
549
401
|
*/
|
|
550
402
|
DoSecondaryAttack(self: Player): void;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
interface Player {
|
|
554
403
|
/**
|
|
555
404
|
* Show/Hide the player's weapon's viewmodel.
|
|
556
405
|
* @realm shared
|
|
557
406
|
* @source https://wiki.facepunch.com/gmod/Player:DrawViewModel
|
|
558
407
|
*/
|
|
559
408
|
DrawViewModel(self: Player, draw: boolean, vm?: number): void;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
interface Player {
|
|
563
409
|
/**
|
|
564
410
|
* Show/Hide the player's weapon's worldmodel.
|
|
565
411
|
* @realm server
|
|
566
412
|
* @source https://wiki.facepunch.com/gmod/Player:DrawWorldModel
|
|
567
413
|
*/
|
|
568
414
|
DrawWorldModel(self: Player, draw: boolean): void;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
interface Player {
|
|
572
415
|
/**
|
|
573
416
|
* Drops the players' weapon of a specific class.
|
|
574
417
|
* @realm server
|
|
575
418
|
* @source https://wiki.facepunch.com/gmod/Player:DropNamedWeapon
|
|
576
419
|
*/
|
|
577
420
|
DropNamedWeapon(self: Player, _class: string, target?: Vector, velocity?: Vector): void;
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
interface Player {
|
|
581
421
|
/**
|
|
582
422
|
* Drops any object the player is currently holding with either Gravity Gun, Physics Gun or `+use` (E key)
|
|
583
423
|
*
|
|
@@ -587,18 +427,12 @@ interface Player {
|
|
|
587
427
|
* @source https://wiki.facepunch.com/gmod/Player:DropObject
|
|
588
428
|
*/
|
|
589
429
|
DropObject(self: Player, entity?: Entity): void;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
interface Player {
|
|
593
430
|
/**
|
|
594
431
|
* Forces the player to drop the specified weapon
|
|
595
432
|
* @realm server
|
|
596
433
|
* @source https://wiki.facepunch.com/gmod/Player:DropWeapon
|
|
597
434
|
*/
|
|
598
435
|
DropWeapon(self: Player, weapon?: Weapon, target?: Vector, velocity?: Vector): void;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
interface Player {
|
|
602
436
|
/**
|
|
603
437
|
* Force puts the player into a specified vehicle.
|
|
604
438
|
* This **does not** bypass [GM:CanPlayerEnterVehicle](https://wiki.facepunch.com/gmod/GM:CanPlayerEnterVehicle).
|
|
@@ -607,9 +441,6 @@ interface Player {
|
|
|
607
441
|
* @source https://wiki.facepunch.com/gmod/Player:EnterVehicle
|
|
608
442
|
*/
|
|
609
443
|
EnterVehicle(self: Player, vehicle: Vehicle): void;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
interface Player {
|
|
613
444
|
/**
|
|
614
445
|
* Equips the player with the HEV suit.
|
|
615
446
|
*
|
|
@@ -622,18 +453,12 @@ interface Player {
|
|
|
622
453
|
* @source https://wiki.facepunch.com/gmod/Player:EquipSuit
|
|
623
454
|
*/
|
|
624
455
|
EquipSuit(self: Player): void;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
interface Player {
|
|
628
456
|
/**
|
|
629
457
|
* Forces the player off the current ladder if they are on one.
|
|
630
458
|
* @realm server
|
|
631
459
|
* @source https://wiki.facepunch.com/gmod/Player:ExitLadder
|
|
632
460
|
*/
|
|
633
461
|
ExitLadder(self: Player): void;
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
interface Player {
|
|
637
462
|
/**
|
|
638
463
|
* Forces the player to exit the vehicle if they're in one.
|
|
639
464
|
*
|
|
@@ -643,9 +468,6 @@ interface Player {
|
|
|
643
468
|
* @source https://wiki.facepunch.com/gmod/Player:ExitVehicle
|
|
644
469
|
*/
|
|
645
470
|
ExitVehicle(self: Player): void;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
interface Player {
|
|
649
471
|
/**
|
|
650
472
|
* Enables/Disables the player's flashlight.
|
|
651
473
|
*
|
|
@@ -662,18 +484,12 @@ interface Player {
|
|
|
662
484
|
* @source https://wiki.facepunch.com/gmod/Player:Flashlight
|
|
663
485
|
*/
|
|
664
486
|
Flashlight(self: Player, isOn: boolean): void;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
interface Player {
|
|
668
487
|
/**
|
|
669
488
|
* Returns true if the player's flashlight is on.
|
|
670
489
|
* @realm shared
|
|
671
490
|
* @source https://wiki.facepunch.com/gmod/Player:FlashlightIsOn
|
|
672
491
|
*/
|
|
673
492
|
FlashlightIsOn(self: Player): boolean;
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
interface Player {
|
|
677
493
|
/**
|
|
678
494
|
* Returns the amount of frags a player has.
|
|
679
495
|
*
|
|
@@ -684,9 +500,6 @@ interface Player {
|
|
|
684
500
|
* @source https://wiki.facepunch.com/gmod/Player:Frags
|
|
685
501
|
*/
|
|
686
502
|
Frags(self: Player): number;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
interface Player {
|
|
690
503
|
/**
|
|
691
504
|
* Freeze the player. Frozen players cannot move, look around, or attack. Key bindings are still called. Similar to [Player:Lock](https://wiki.facepunch.com/gmod/Player:Lock) but the player can still take damage.
|
|
692
505
|
*
|
|
@@ -697,9 +510,6 @@ interface Player {
|
|
|
697
510
|
* @source https://wiki.facepunch.com/gmod/Player:Freeze
|
|
698
511
|
*/
|
|
699
512
|
Freeze(self: Player, frozen?: boolean): void;
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
interface Player {
|
|
703
513
|
/**
|
|
704
514
|
* Returns the player's active weapon.
|
|
705
515
|
*
|
|
@@ -709,99 +519,66 @@ interface Player {
|
|
|
709
519
|
* @source https://wiki.facepunch.com/gmod/Player:GetActiveWeapon
|
|
710
520
|
*/
|
|
711
521
|
GetActiveWeapon(self: Player): Weapon;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
interface Player {
|
|
715
522
|
/**
|
|
716
523
|
* Returns the player's current activity.
|
|
717
524
|
* @realm server
|
|
718
525
|
* @source https://wiki.facepunch.com/gmod/Player:GetActivity
|
|
719
526
|
*/
|
|
720
527
|
GetActivity(self: Player): number;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
interface Player {
|
|
724
528
|
/**
|
|
725
529
|
* Returns the direction that the player is aiming.
|
|
726
530
|
* @realm shared
|
|
727
531
|
* @source https://wiki.facepunch.com/gmod/Player:GetAimVector
|
|
728
532
|
*/
|
|
729
533
|
GetAimVector(self: Player): Vector;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
interface Player {
|
|
733
534
|
/**
|
|
734
535
|
* Returns true if the players' model is allowed to rotate around the pitch and roll axis.
|
|
735
536
|
* @realm shared
|
|
736
537
|
* @source https://wiki.facepunch.com/gmod/Player:GetAllowFullRotation
|
|
737
538
|
*/
|
|
738
539
|
GetAllowFullRotation(self: Player): boolean;
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
interface Player {
|
|
742
540
|
/**
|
|
743
541
|
* Returns whether the player is allowed to use their weapons in a vehicle or not.
|
|
744
542
|
* @realm shared
|
|
745
543
|
* @source https://wiki.facepunch.com/gmod/Player:GetAllowWeaponsInVehicle
|
|
746
544
|
*/
|
|
747
545
|
GetAllowWeaponsInVehicle(self: Player): boolean;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
interface Player {
|
|
751
546
|
/**
|
|
752
547
|
* Returns a table of all ammo the player has.
|
|
753
548
|
* @realm shared
|
|
754
549
|
* @source https://wiki.facepunch.com/gmod/Player:GetAmmo
|
|
755
550
|
*/
|
|
756
551
|
GetAmmo(self: Player): table;
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
interface Player {
|
|
760
552
|
/**
|
|
761
553
|
* Gets the amount of ammo the player has.
|
|
762
554
|
* @realm shared
|
|
763
555
|
* @source https://wiki.facepunch.com/gmod/Player:GetAmmoCount
|
|
764
556
|
*/
|
|
765
557
|
GetAmmoCount(self: Player, ammotype: any): number;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
interface Player {
|
|
769
558
|
/**
|
|
770
559
|
* Gets if the player will be pushed out of nocollided players.
|
|
771
560
|
* @realm shared
|
|
772
561
|
* @source https://wiki.facepunch.com/gmod/Player:GetAvoidPlayers
|
|
773
562
|
*/
|
|
774
563
|
GetAvoidPlayers(self: Player): boolean;
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
interface Player {
|
|
778
564
|
/**
|
|
779
565
|
* Returns true if the player is able to walk using the (default) alt key.
|
|
780
566
|
* @realm shared
|
|
781
567
|
* @source https://wiki.facepunch.com/gmod/Player:GetCanWalk
|
|
782
568
|
*/
|
|
783
569
|
GetCanWalk(self: Player): boolean;
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
interface Player {
|
|
787
570
|
/**
|
|
788
571
|
* Determines whenever the player is allowed to use the zoom functionality.
|
|
789
572
|
* @realm shared
|
|
790
573
|
* @source https://wiki.facepunch.com/gmod/Player:GetCanZoom
|
|
791
574
|
*/
|
|
792
575
|
GetCanZoom(self: Player): boolean;
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
interface Player {
|
|
796
576
|
/**
|
|
797
577
|
* Returns the player's class id.
|
|
798
578
|
* @realm shared
|
|
799
579
|
* @source https://wiki.facepunch.com/gmod/Player:GetClassID
|
|
800
580
|
*/
|
|
801
581
|
GetClassID(self: Player): number;
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
interface Player {
|
|
805
582
|
/**
|
|
806
583
|
* **NOTE**: This function is only available in Sandbox and its derivatives.
|
|
807
584
|
* Gets the total amount of entities of an entity type added by [Player:AddCount](https://wiki.facepunch.com/gmod/Player:AddCount).
|
|
@@ -829,9 +606,6 @@ interface Player {
|
|
|
829
606
|
* @source https://wiki.facepunch.com/gmod/Player:GetCount
|
|
830
607
|
*/
|
|
831
608
|
GetCount(self: Player, type: string, minus?: number): number;
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
interface Player {
|
|
835
609
|
/**
|
|
836
610
|
* Returns the crouched walk speed multiplier.
|
|
837
611
|
*
|
|
@@ -841,9 +615,6 @@ interface Player {
|
|
|
841
615
|
* @source https://wiki.facepunch.com/gmod/Player:GetCrouchedWalkSpeed
|
|
842
616
|
*/
|
|
843
617
|
GetCrouchedWalkSpeed(self: Player): number;
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
interface Player {
|
|
847
618
|
/**
|
|
848
619
|
* Returns the last command which was sent by the specified player. This can only be called on the player which [Global.GetPredictionPlayer](https://wiki.facepunch.com/gmod/Global.GetPredictionPlayer)() returns.
|
|
849
620
|
*
|
|
@@ -856,9 +627,6 @@ interface Player {
|
|
|
856
627
|
* @source https://wiki.facepunch.com/gmod/Player:GetCurrentCommand
|
|
857
628
|
*/
|
|
858
629
|
GetCurrentCommand(self: Player): CUserCmd;
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
interface Player {
|
|
862
630
|
/**
|
|
863
631
|
* Gets the current applied view offset, which transitions between the player's standing and ducked view offset depending on their duck state.
|
|
864
632
|
*
|
|
@@ -868,45 +636,30 @@ interface Player {
|
|
|
868
636
|
* @source https://wiki.facepunch.com/gmod/Player:GetCurrentViewOffset
|
|
869
637
|
*/
|
|
870
638
|
GetCurrentViewOffset(self: Player): Vector;
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
interface Player {
|
|
874
639
|
/**
|
|
875
640
|
* Gets the entity the player is currently driving via the [drive](https://wiki.facepunch.com/gmod/drive) library.
|
|
876
641
|
* @realm shared
|
|
877
642
|
* @source https://wiki.facepunch.com/gmod/Player:GetDrivingEntity
|
|
878
643
|
*/
|
|
879
644
|
GetDrivingEntity(self: Player): Entity;
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
interface Player {
|
|
883
645
|
/**
|
|
884
646
|
* Returns driving mode of the player. See [Entity Driving](https://wiki.facepunch.com/gmod/Entity_Driving).
|
|
885
647
|
* @realm shared
|
|
886
648
|
* @source https://wiki.facepunch.com/gmod/Player:GetDrivingMode
|
|
887
649
|
*/
|
|
888
650
|
GetDrivingMode(self: Player): number;
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
interface Player {
|
|
892
651
|
/**
|
|
893
652
|
* Returns a player's duck speed (in seconds)
|
|
894
653
|
* @realm shared
|
|
895
654
|
* @source https://wiki.facepunch.com/gmod/Player:GetDuckSpeed
|
|
896
655
|
*/
|
|
897
656
|
GetDuckSpeed(self: Player): number;
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
interface Player {
|
|
901
657
|
/**
|
|
902
658
|
* Returns the entity the player is currently using, like func_tank mounted turrets or +use prop pickups.
|
|
903
659
|
* @realm shared
|
|
904
660
|
* @source https://wiki.facepunch.com/gmod/Player:GetEntityInUse
|
|
905
661
|
*/
|
|
906
662
|
GetEntityInUse(self: Player): Entity;
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
interface Player {
|
|
910
663
|
/**
|
|
911
664
|
* Returns a table with information of what the player is looking at.
|
|
912
665
|
*
|
|
@@ -920,9 +673,6 @@ interface Player {
|
|
|
920
673
|
* @source https://wiki.facepunch.com/gmod/Player:GetEyeTrace
|
|
921
674
|
*/
|
|
922
675
|
GetEyeTrace(self: Player): TraceResult;
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
interface Player {
|
|
926
676
|
/**
|
|
927
677
|
* Returns the trace according to the players view direction, ignoring their mouse (holding C and moving the mouse in Sandbox).
|
|
928
678
|
*
|
|
@@ -936,18 +686,12 @@ interface Player {
|
|
|
936
686
|
* @source https://wiki.facepunch.com/gmod/Player:GetEyeTraceNoCursor
|
|
937
687
|
*/
|
|
938
688
|
GetEyeTraceNoCursor(self: Player): TraceResult;
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
interface Player {
|
|
942
689
|
/**
|
|
943
690
|
* Returns the FOV of the player.
|
|
944
691
|
* @realm shared
|
|
945
692
|
* @source https://wiki.facepunch.com/gmod/Player:GetFOV
|
|
946
693
|
*/
|
|
947
694
|
GetFOV(self: Player): number;
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
interface Player {
|
|
951
695
|
/**
|
|
952
696
|
* Returns the color of a player's flashlight.
|
|
953
697
|
*
|
|
@@ -955,36 +699,24 @@ interface Player {
|
|
|
955
699
|
* @source https://wiki.facepunch.com/gmod/Player:GetFlashlightColor
|
|
956
700
|
*/
|
|
957
701
|
GetFlashlightColor(self: Player): Color;
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
interface Player {
|
|
961
702
|
/**
|
|
962
703
|
* Returns the steam "relationship" towards the player.
|
|
963
704
|
* @realm client
|
|
964
705
|
* @source https://wiki.facepunch.com/gmod/Player:GetFriendStatus
|
|
965
706
|
*/
|
|
966
707
|
GetFriendStatus(self: Player): string;
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
interface Player {
|
|
970
708
|
/**
|
|
971
709
|
* Gets the hands entity of a player
|
|
972
710
|
* @realm shared
|
|
973
711
|
* @source https://wiki.facepunch.com/gmod/Player:GetHands
|
|
974
712
|
*/
|
|
975
713
|
GetHands(self: Player): Entity;
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
interface Player {
|
|
979
714
|
/**
|
|
980
715
|
* Returns the widget the player is hovering with their mouse.
|
|
981
716
|
* @realm shared
|
|
982
717
|
* @source https://wiki.facepunch.com/gmod/Player:GetHoveredWidget
|
|
983
718
|
*/
|
|
984
719
|
GetHoveredWidget(self: Player): Entity;
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
interface Player {
|
|
988
720
|
/**
|
|
989
721
|
* Retrieves the minimum and maximum [Vectors](https://wiki.facepunch.com/gmod/Vector) of the [Axis-Aligned Bounding Box (AABB)](https://en.wikipedia.org/wiki/Minimum_bounding_box) used for the [Player's](https://wiki.facepunch.com/gmod/Player) physics and movement [Hull Traces](https://wiki.facepunch.com/gmod/util.TraceHull).
|
|
990
722
|
*
|
|
@@ -994,9 +726,6 @@ interface Player {
|
|
|
994
726
|
* @source https://wiki.facepunch.com/gmod/Player:GetHull
|
|
995
727
|
*/
|
|
996
728
|
GetHull(self: Player): (Vector, Vector);
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
interface Player {
|
|
1000
729
|
/**
|
|
1001
730
|
* Retrieves the minimum and maximum [Vectors](https://wiki.facepunch.com/gmod/Vector) of the [Axis-Aligned Bounding Box (AABB)](https://en.wikipedia.org/wiki/Minimum_bounding_box) used for the [Player's](https://wiki.facepunch.com/gmod/Player) physics and movement [Hull Traces](https://wiki.facepunch.com/gmod/util.TraceHull) while they are crouching (or "Ducking").
|
|
1002
731
|
*
|
|
@@ -1006,9 +735,6 @@ interface Player {
|
|
|
1006
735
|
* @source https://wiki.facepunch.com/gmod/Player:GetHullDuck
|
|
1007
736
|
*/
|
|
1008
737
|
GetHullDuck(self: Player): (Vector, Vector);
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
interface Player {
|
|
1012
738
|
/**
|
|
1013
739
|
* Retrieves the value of a client-side [ConVar](https://wiki.facepunch.com/gmod/ConVar). The [ConVar](https://wiki.facepunch.com/gmod/ConVar) must have a [FCVAR_USERINFO](https://wiki.facepunch.com/gmod/Enums/FCVAR) flag for this to work.
|
|
1014
740
|
*
|
|
@@ -1020,27 +746,18 @@ interface Player {
|
|
|
1020
746
|
* @source https://wiki.facepunch.com/gmod/Player:GetInfo
|
|
1021
747
|
*/
|
|
1022
748
|
GetInfo(self: Player, cVarName: string): string;
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
interface Player {
|
|
1026
749
|
/**
|
|
1027
750
|
* Retrieves the numeric value of a client-side convar, returns nil if value is not convertible to a number. The [ConVar](https://wiki.facepunch.com/gmod/ConVar) must have a [FCVAR_USERINFO](https://wiki.facepunch.com/gmod/Enums/FCVAR) flag for this to work.
|
|
1028
751
|
* @realm shared
|
|
1029
752
|
* @source https://wiki.facepunch.com/gmod/Player:GetInfoNum
|
|
1030
753
|
*/
|
|
1031
754
|
GetInfoNum(self: Player, cVarName: string, _default: number): number;
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
interface Player {
|
|
1035
755
|
/**
|
|
1036
756
|
* Returns the jump power of the player
|
|
1037
757
|
* @realm shared
|
|
1038
758
|
* @source https://wiki.facepunch.com/gmod/Player:GetJumpPower
|
|
1039
759
|
*/
|
|
1040
760
|
GetJumpPower(self: Player): number;
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
interface Player {
|
|
1044
761
|
/**
|
|
1045
762
|
* Returns the player's ladder climbing speed.
|
|
1046
763
|
*
|
|
@@ -1050,18 +767,12 @@ interface Player {
|
|
|
1050
767
|
* @source https://wiki.facepunch.com/gmod/Player:GetLadderClimbSpeed
|
|
1051
768
|
*/
|
|
1052
769
|
GetLadderClimbSpeed(self: Player): number;
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
interface Player {
|
|
1056
770
|
/**
|
|
1057
771
|
* Returns the timescale multiplier of the player movement.
|
|
1058
772
|
* @realm shared
|
|
1059
773
|
* @source https://wiki.facepunch.com/gmod/Player:GetLaggedMovementValue
|
|
1060
774
|
*/
|
|
1061
775
|
GetLaggedMovementValue(self: Player): number;
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
interface Player {
|
|
1065
776
|
/**
|
|
1066
777
|
* Returns the maximum amount of armor the player should have. Default value is 100.
|
|
1067
778
|
*
|
|
@@ -1069,9 +780,6 @@ interface Player {
|
|
|
1069
780
|
* @source https://wiki.facepunch.com/gmod/Player:GetMaxArmor
|
|
1070
781
|
*/
|
|
1071
782
|
GetMaxArmor(self: Player): number;
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
interface Player {
|
|
1075
783
|
/**
|
|
1076
784
|
* Returns the player's maximum movement speed.
|
|
1077
785
|
*
|
|
@@ -1081,27 +789,18 @@ interface Player {
|
|
|
1081
789
|
* @source https://wiki.facepunch.com/gmod/Player:GetMaxSpeed
|
|
1082
790
|
*/
|
|
1083
791
|
GetMaxSpeed(self: Player): number;
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
interface Player {
|
|
1087
792
|
/**
|
|
1088
793
|
* Returns whenever the player is set not to collide with their teammates.
|
|
1089
794
|
* @realm shared
|
|
1090
795
|
* @source https://wiki.facepunch.com/gmod/Player:GetNoCollideWithTeammates
|
|
1091
796
|
*/
|
|
1092
797
|
GetNoCollideWithTeammates(self: Player): boolean;
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
interface Player {
|
|
1096
798
|
/**
|
|
1097
799
|
* Returns the the observer mode of the player
|
|
1098
800
|
* @realm shared
|
|
1099
801
|
* @source https://wiki.facepunch.com/gmod/Player:GetObserverMode
|
|
1100
802
|
*/
|
|
1101
803
|
GetObserverMode(self: Player): number;
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
interface Player {
|
|
1105
804
|
/**
|
|
1106
805
|
* Returns the entity the player is currently observing.
|
|
1107
806
|
*
|
|
@@ -1111,9 +810,6 @@ interface Player {
|
|
|
1111
810
|
* @source https://wiki.facepunch.com/gmod/Player:GetObserverTarget
|
|
1112
811
|
*/
|
|
1113
812
|
GetObserverTarget(self: Player): Entity;
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
interface Player {
|
|
1117
813
|
/**
|
|
1118
814
|
* Returns a **P**ersistent **Data** key-value pair from the SQL database. (`sv.db` when called on server, `cl.db` when called on client)
|
|
1119
815
|
*
|
|
@@ -1129,9 +825,6 @@ interface Player {
|
|
|
1129
825
|
* @source https://wiki.facepunch.com/gmod/Player:GetPData
|
|
1130
826
|
*/
|
|
1131
827
|
GetPData(self: Player, key: string, _default?: any): string;
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
interface Player {
|
|
1135
828
|
/**
|
|
1136
829
|
* Returns a player's character model color.
|
|
1137
830
|
*
|
|
@@ -1146,18 +839,12 @@ interface Player {
|
|
|
1146
839
|
* @source https://wiki.facepunch.com/gmod/Player:GetPlayerColor
|
|
1147
840
|
*/
|
|
1148
841
|
GetPlayerColor(self: Player): Vector;
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
interface Player {
|
|
1152
842
|
/**
|
|
1153
843
|
* Returns a table containing player information.
|
|
1154
844
|
* @realm shared
|
|
1155
845
|
* @source https://wiki.facepunch.com/gmod/Player:GetPlayerInfo
|
|
1156
846
|
*/
|
|
1157
847
|
GetPlayerInfo(self: Player): table;
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
interface Player {
|
|
1161
848
|
/**
|
|
1162
849
|
* Returns the widget entity the player is using.
|
|
1163
850
|
*
|
|
@@ -1167,18 +854,12 @@ interface Player {
|
|
|
1167
854
|
* @source https://wiki.facepunch.com/gmod/Player:GetPressedWidget
|
|
1168
855
|
*/
|
|
1169
856
|
GetPressedWidget(self: Player): Entity;
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
interface Player {
|
|
1173
857
|
/**
|
|
1174
858
|
* Returns the weapon the player previously had equipped.
|
|
1175
859
|
* @realm shared
|
|
1176
860
|
* @source https://wiki.facepunch.com/gmod/Player:GetPreviousWeapon
|
|
1177
861
|
*/
|
|
1178
862
|
GetPreviousWeapon(self: Player): Entity;
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
interface Player {
|
|
1182
863
|
/**
|
|
1183
864
|
* Returns players screen punch effect angle. See [Player:ViewPunch](https://wiki.facepunch.com/gmod/Player:ViewPunch) and [Player:SetViewPunchAngles](https://wiki.facepunch.com/gmod/Player:SetViewPunchAngles)
|
|
1184
865
|
*
|
|
@@ -1188,9 +869,6 @@ interface Player {
|
|
|
1188
869
|
* @deprecated You should use Player:GetViewPunchAngles instead.
|
|
1189
870
|
*/
|
|
1190
871
|
GetPunchAngle(self: Player): Angle;
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
interface Player {
|
|
1194
872
|
/**
|
|
1195
873
|
* Returns players death ragdoll. The ragdoll is created by [Player:CreateRagdoll](https://wiki.facepunch.com/gmod/Player:CreateRagdoll).
|
|
1196
874
|
* **NOTE**: Calling [Entity:GetPos](https://wiki.facepunch.com/gmod/Entity:GetPos) server-side with this function then will return the position where [Player:CreateRagdoll](https://wiki.facepunch.com/gmod/Player:CreateRagdoll) was used, as it is a hl2mp_ragdoll which is a serverside point entity that creates a clientside ragdoll for everyone (opposed to prop_ragdoll that is serverside and networks).
|
|
@@ -1200,9 +878,6 @@ interface Player {
|
|
|
1200
878
|
* @source https://wiki.facepunch.com/gmod/Player:GetRagdollEntity
|
|
1201
879
|
*/
|
|
1202
880
|
GetRagdollEntity(self: Player): Entity;
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
interface Player {
|
|
1206
881
|
/**
|
|
1207
882
|
* Returns the player's sprint speed.
|
|
1208
883
|
*
|
|
@@ -1212,9 +887,6 @@ interface Player {
|
|
|
1212
887
|
* @source https://wiki.facepunch.com/gmod/Player:GetRunSpeed
|
|
1213
888
|
*/
|
|
1214
889
|
GetRunSpeed(self: Player): number;
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
interface Player {
|
|
1218
890
|
/**
|
|
1219
891
|
* Returns the position of a Player's view
|
|
1220
892
|
*
|
|
@@ -1225,9 +897,6 @@ interface Player {
|
|
|
1225
897
|
* @source https://wiki.facepunch.com/gmod/Player:GetShootPos
|
|
1226
898
|
*/
|
|
1227
899
|
GetShootPos(self: Player): Vector;
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1230
|
-
interface Player {
|
|
1231
900
|
/**
|
|
1232
901
|
* Returns the player's slow walking speed, which is activated via +WALK keybind.
|
|
1233
902
|
*
|
|
@@ -1237,18 +906,12 @@ interface Player {
|
|
|
1237
906
|
* @source https://wiki.facepunch.com/gmod/Player:GetSlowWalkSpeed
|
|
1238
907
|
*/
|
|
1239
908
|
GetSlowWalkSpeed(self: Player): number;
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
interface Player {
|
|
1243
909
|
/**
|
|
1244
910
|
* Returns the maximum height player can step onto.
|
|
1245
911
|
* @realm shared
|
|
1246
912
|
* @source https://wiki.facepunch.com/gmod/Player:GetStepSize
|
|
1247
913
|
*/
|
|
1248
914
|
GetStepSize(self: Player): number;
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
interface Player {
|
|
1252
915
|
/**
|
|
1253
916
|
* Returns the player's HEV suit power.
|
|
1254
917
|
*
|
|
@@ -1258,9 +921,6 @@ interface Player {
|
|
|
1258
921
|
* @source https://wiki.facepunch.com/gmod/Player:GetSuitPower
|
|
1259
922
|
*/
|
|
1260
923
|
GetSuitPower(self: Player): number;
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
interface Player {
|
|
1264
924
|
/**
|
|
1265
925
|
* Returns the number of seconds that the player has been timing out for. You can check if a player is timing out with [Player:IsTimingOut](https://wiki.facepunch.com/gmod/Player:IsTimingOut).
|
|
1266
926
|
*
|
|
@@ -1270,27 +930,18 @@ interface Player {
|
|
|
1270
930
|
* @source https://wiki.facepunch.com/gmod/Player:GetTimeoutSeconds
|
|
1271
931
|
*/
|
|
1272
932
|
GetTimeoutSeconds(self: Player): number;
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
interface Player {
|
|
1276
933
|
/**
|
|
1277
934
|
* Returns [TOOL](https://wiki.facepunch.com/gmod/Structures/TOOL) table of players current tool, or of the one specified.
|
|
1278
935
|
* @realm shared
|
|
1279
936
|
* @source https://wiki.facepunch.com/gmod/Player:GetTool
|
|
1280
937
|
*/
|
|
1281
938
|
GetTool(self: Player, mode?: string): table;
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
interface Player {
|
|
1285
939
|
/**
|
|
1286
940
|
* Returns a player's unduck speed (in seconds)
|
|
1287
941
|
* @realm shared
|
|
1288
942
|
* @source https://wiki.facepunch.com/gmod/Player:GetUnDuckSpeed
|
|
1289
943
|
*/
|
|
1290
944
|
GetUnDuckSpeed(self: Player): number;
|
|
1291
|
-
}
|
|
1292
|
-
|
|
1293
|
-
interface Player {
|
|
1294
945
|
/**
|
|
1295
946
|
* Returns the entity the player would use if they would press their `+use` keybind.
|
|
1296
947
|
* **NOTE**: Because entity physics objects usually do not exist on the client, the client's use entity will resolve to whatever the crosshair is placed on within a little less than 72 units of the player's eye position. This differs from the entity returned by the server, which has fully physical use checking. See [util.TraceHull](https://wiki.facepunch.com/gmod/util.TraceHull).
|
|
@@ -1302,27 +953,18 @@ interface Player {
|
|
|
1302
953
|
* @source https://wiki.facepunch.com/gmod/Player:GetUseEntity
|
|
1303
954
|
*/
|
|
1304
955
|
GetUseEntity(self: Player): Entity;
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
interface Player {
|
|
1308
956
|
/**
|
|
1309
957
|
* Returns the player's user group. By default, player user groups are loaded from `garrysmod/settings/users.txt`.
|
|
1310
958
|
* @realm shared
|
|
1311
959
|
* @source https://wiki.facepunch.com/gmod/Player:GetUserGroup
|
|
1312
960
|
*/
|
|
1313
961
|
GetUserGroup(self: Player): string;
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
interface Player {
|
|
1317
962
|
/**
|
|
1318
963
|
* Returns the vehicle the player is driving.
|
|
1319
964
|
* @realm shared
|
|
1320
965
|
* @source https://wiki.facepunch.com/gmod/Player:GetVehicle
|
|
1321
966
|
*/
|
|
1322
967
|
GetVehicle(self: Player): Vehicle;
|
|
1323
|
-
}
|
|
1324
|
-
|
|
1325
|
-
interface Player {
|
|
1326
968
|
/**
|
|
1327
969
|
* Returns the entity the player is using to see from (such as the player itself, the camera, or another entity).
|
|
1328
970
|
*
|
|
@@ -1335,9 +977,6 @@ interface Player {
|
|
|
1335
977
|
* @source https://wiki.facepunch.com/gmod/Player:GetViewEntity
|
|
1336
978
|
*/
|
|
1337
979
|
GetViewEntity(self: Player): Entity;
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
interface Player {
|
|
1341
980
|
/**
|
|
1342
981
|
* Returns the player's view model entity by the index.
|
|
1343
982
|
* Each player has 3 view models by default, but only the first one is used.
|
|
@@ -1351,9 +990,6 @@ interface Player {
|
|
|
1351
990
|
* @source https://wiki.facepunch.com/gmod/Player:GetViewModel
|
|
1352
991
|
*/
|
|
1353
992
|
GetViewModel(self: Player, index?: number): Entity;
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
|
-
interface Player {
|
|
1357
993
|
/**
|
|
1358
994
|
* Returns the view offset of the player, which equals the difference between the player's actual position and their view when standing.
|
|
1359
995
|
*
|
|
@@ -1363,9 +999,6 @@ interface Player {
|
|
|
1363
999
|
* @source https://wiki.facepunch.com/gmod/Player:GetViewOffset
|
|
1364
1000
|
*/
|
|
1365
1001
|
GetViewOffset(self: Player): Vector;
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
interface Player {
|
|
1369
1002
|
/**
|
|
1370
1003
|
* Returns the ducked view offset of the player, which equals the difference between the player's actual position and their view when ducked.
|
|
1371
1004
|
*
|
|
@@ -1375,36 +1008,24 @@ interface Player {
|
|
|
1375
1008
|
* @source https://wiki.facepunch.com/gmod/Player:GetViewOffsetDucked
|
|
1376
1009
|
*/
|
|
1377
1010
|
GetViewOffsetDucked(self: Player): Vector;
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
interface Player {
|
|
1381
1011
|
/**
|
|
1382
1012
|
* Returns players screen punch effect angle.
|
|
1383
1013
|
* @realm shared
|
|
1384
1014
|
* @source https://wiki.facepunch.com/gmod/Player:GetViewPunchAngles
|
|
1385
1015
|
*/
|
|
1386
1016
|
GetViewPunchAngles(self: Player): Angle;
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
interface Player {
|
|
1390
1017
|
/**
|
|
1391
1018
|
* Returns client's view punch velocity. See [Player:ViewPunch](https://wiki.facepunch.com/gmod/Player:ViewPunch) and [Player:SetViewPunchVelocity](https://wiki.facepunch.com/gmod/Player:SetViewPunchVelocity)
|
|
1392
1019
|
* @realm shared
|
|
1393
1020
|
* @source https://wiki.facepunch.com/gmod/Player:GetViewPunchVelocity
|
|
1394
1021
|
*/
|
|
1395
1022
|
GetViewPunchVelocity(self: Player): Angle;
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
interface Player {
|
|
1399
1023
|
/**
|
|
1400
1024
|
* Returns the current voice volume scale for given player on client.
|
|
1401
1025
|
* @realm client
|
|
1402
1026
|
* @source https://wiki.facepunch.com/gmod/Player:GetVoiceVolumeScale
|
|
1403
1027
|
*/
|
|
1404
1028
|
GetVoiceVolumeScale(self: Player): number;
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1407
|
-
interface Player {
|
|
1408
1029
|
/**
|
|
1409
1030
|
* Returns the player's normal walking speed. Not sprinting, not slow walking. (+walk)
|
|
1410
1031
|
*
|
|
@@ -1414,18 +1035,12 @@ interface Player {
|
|
|
1414
1035
|
* @source https://wiki.facepunch.com/gmod/Player:GetWalkSpeed
|
|
1415
1036
|
*/
|
|
1416
1037
|
GetWalkSpeed(self: Player): number;
|
|
1417
|
-
}
|
|
1418
|
-
|
|
1419
|
-
interface Player {
|
|
1420
1038
|
/**
|
|
1421
1039
|
* Returns the weapon for the specified class
|
|
1422
1040
|
* @realm shared
|
|
1423
1041
|
* @source https://wiki.facepunch.com/gmod/Player:GetWeapon
|
|
1424
1042
|
*/
|
|
1425
1043
|
GetWeapon(self: Player, className: string): Weapon;
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
interface Player {
|
|
1429
1044
|
/**
|
|
1430
1045
|
* Returns a player's weapon color.
|
|
1431
1046
|
*
|
|
@@ -1437,9 +1052,6 @@ interface Player {
|
|
|
1437
1052
|
* @source https://wiki.facepunch.com/gmod/Player:GetWeaponColor
|
|
1438
1053
|
*/
|
|
1439
1054
|
GetWeaponColor(self: Player): Vector;
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
interface Player {
|
|
1443
1055
|
/**
|
|
1444
1056
|
* Returns a table of the player's weapons.
|
|
1445
1057
|
* **NOTE**: This function returns a sequential table. Prefer to loop it with [Global.ipairs](https://wiki.facepunch.com/gmod/Global.ipairs) instead of the [Global.pairs](https://wiki.facepunch.com/gmod/Global.pairs) function.
|
|
@@ -1449,9 +1061,6 @@ interface Player {
|
|
|
1449
1061
|
* @source https://wiki.facepunch.com/gmod/Player:GetWeapons
|
|
1450
1062
|
*/
|
|
1451
1063
|
GetWeapons(self: Player): table;
|
|
1452
|
-
}
|
|
1453
|
-
|
|
1454
|
-
interface Player {
|
|
1455
1064
|
/**
|
|
1456
1065
|
* Gives the player a weapon.
|
|
1457
1066
|
*
|
|
@@ -1464,36 +1073,24 @@ interface Player {
|
|
|
1464
1073
|
* @source https://wiki.facepunch.com/gmod/Player:Give
|
|
1465
1074
|
*/
|
|
1466
1075
|
Give(self: Player, weaponClassName: string, bNoAmmo?: boolean): Weapon;
|
|
1467
|
-
}
|
|
1468
|
-
|
|
1469
|
-
interface Player {
|
|
1470
1076
|
/**
|
|
1471
1077
|
* Gives ammo to a player
|
|
1472
1078
|
* @realm server
|
|
1473
1079
|
* @source https://wiki.facepunch.com/gmod/Player:GiveAmmo
|
|
1474
1080
|
*/
|
|
1475
1081
|
GiveAmmo(self: Player, amount: number, type: string | number, hidePopup?: boolean): number;
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
interface Player {
|
|
1479
1082
|
/**
|
|
1480
1083
|
* Disables god mode on the player. Removes the [FL_GODMODE](https://wiki.facepunch.com/gmod/Enums/FL#FL_GODMODE) flag from the player.
|
|
1481
1084
|
* @realm server
|
|
1482
1085
|
* @source https://wiki.facepunch.com/gmod/Player:GodDisable
|
|
1483
1086
|
*/
|
|
1484
1087
|
GodDisable(self: Player): void;
|
|
1485
|
-
}
|
|
1486
|
-
|
|
1487
|
-
interface Player {
|
|
1488
1088
|
/**
|
|
1489
1089
|
* Enables god mode on the player. Adds the [FL_GODMODE](https://wiki.facepunch.com/gmod/Enums/FL#FL_GODMODE) flag to the player.
|
|
1490
1090
|
* @realm server
|
|
1491
1091
|
* @source https://wiki.facepunch.com/gmod/Player:GodEnable
|
|
1492
1092
|
*/
|
|
1493
1093
|
GodEnable(self: Player): void;
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
interface Player {
|
|
1497
1094
|
/**
|
|
1498
1095
|
* Returns whether the player has god mode or not, contolled by [Player:GodEnable](https://wiki.facepunch.com/gmod/Player:GodEnable) and [Player:GodDisable](https://wiki.facepunch.com/gmod/Player:GodDisable).
|
|
1499
1096
|
*
|
|
@@ -1501,18 +1098,12 @@ interface Player {
|
|
|
1501
1098
|
* @source https://wiki.facepunch.com/gmod/Player:HasGodMode
|
|
1502
1099
|
*/
|
|
1503
1100
|
HasGodMode(self: Player): boolean;
|
|
1504
|
-
}
|
|
1505
|
-
|
|
1506
|
-
interface Player {
|
|
1507
1101
|
/**
|
|
1508
1102
|
* Returns if the player has the specified weapon
|
|
1509
1103
|
* @realm shared
|
|
1510
1104
|
* @source https://wiki.facepunch.com/gmod/Player:HasWeapon
|
|
1511
1105
|
*/
|
|
1512
1106
|
HasWeapon(self: Player, className: string): boolean;
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
interface Player {
|
|
1516
1107
|
/**
|
|
1517
1108
|
* Returns the player's IP address and connection port in ip:port form
|
|
1518
1109
|
* **NOTE**: Returns `Error!` for bots.
|
|
@@ -1521,18 +1112,12 @@ interface Player {
|
|
|
1521
1112
|
* @source https://wiki.facepunch.com/gmod/Player:IPAddress
|
|
1522
1113
|
*/
|
|
1523
1114
|
IPAddress(self: Player): string;
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
interface Player {
|
|
1527
1115
|
/**
|
|
1528
1116
|
* Returns if the player is in a vehicle
|
|
1529
1117
|
* @realm shared
|
|
1530
1118
|
* @source https://wiki.facepunch.com/gmod/Player:InVehicle
|
|
1531
1119
|
*/
|
|
1532
1120
|
InVehicle(self: Player): boolean;
|
|
1533
|
-
}
|
|
1534
|
-
|
|
1535
|
-
interface Player {
|
|
1536
1121
|
/**
|
|
1537
1122
|
* Returns whether the player is an admin or not. It will also return `true` if the player is [Player:IsSuperAdmin](https://wiki.facepunch.com/gmod/Player:IsSuperAdmin) by default.
|
|
1538
1123
|
*
|
|
@@ -1542,45 +1127,30 @@ interface Player {
|
|
|
1542
1127
|
* @source https://wiki.facepunch.com/gmod/Player:IsAdmin
|
|
1543
1128
|
*/
|
|
1544
1129
|
IsAdmin(self: Player): boolean;
|
|
1545
|
-
}
|
|
1546
|
-
|
|
1547
|
-
interface Player {
|
|
1548
1130
|
/**
|
|
1549
1131
|
* Returns if the player is an bot or not
|
|
1550
1132
|
* @realm shared
|
|
1551
1133
|
* @source https://wiki.facepunch.com/gmod/Player:IsBot
|
|
1552
1134
|
*/
|
|
1553
1135
|
IsBot(self: Player): boolean;
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
interface Player {
|
|
1557
1136
|
/**
|
|
1558
1137
|
* Returns true from the point when the player is sending client info but not fully in the game until they disconnect.
|
|
1559
1138
|
* @realm server
|
|
1560
1139
|
* @source https://wiki.facepunch.com/gmod/Player:IsConnected
|
|
1561
1140
|
*/
|
|
1562
1141
|
IsConnected(self: Player): boolean;
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
|
-
interface Player {
|
|
1566
1142
|
/**
|
|
1567
1143
|
* Used to find out if a player is currently 'driving' an entity (by which we mean 'right click > drive' ).
|
|
1568
1144
|
* @realm shared
|
|
1569
1145
|
* @source https://wiki.facepunch.com/gmod/Player:IsDrivingEntity
|
|
1570
1146
|
*/
|
|
1571
1147
|
IsDrivingEntity(self: Player): boolean;
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
|
-
interface Player {
|
|
1575
1148
|
/**
|
|
1576
1149
|
* Returns whether the players movement is currently frozen, controlled by [Player:Freeze](https://wiki.facepunch.com/gmod/Player:Freeze).
|
|
1577
1150
|
* @realm shared
|
|
1578
1151
|
* @source https://wiki.facepunch.com/gmod/Player:IsFrozen
|
|
1579
1152
|
*/
|
|
1580
1153
|
IsFrozen(self: Player): boolean;
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
|
-
interface Player {
|
|
1584
1154
|
/**
|
|
1585
1155
|
* Returns whether the player identity was confirmed by the Steam network.
|
|
1586
1156
|
*
|
|
@@ -1590,45 +1160,30 @@ interface Player {
|
|
|
1590
1160
|
* @source https://wiki.facepunch.com/gmod/Player:IsFullyAuthenticated
|
|
1591
1161
|
*/
|
|
1592
1162
|
IsFullyAuthenticated(self: Player): boolean;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
interface Player {
|
|
1596
1163
|
/**
|
|
1597
1164
|
* Returns if a player is the host of the current session.
|
|
1598
1165
|
* @realm shared
|
|
1599
1166
|
* @source https://wiki.facepunch.com/gmod/Player:IsListenServerHost
|
|
1600
1167
|
*/
|
|
1601
1168
|
IsListenServerHost(self: Player): boolean;
|
|
1602
|
-
}
|
|
1603
|
-
|
|
1604
|
-
interface Player {
|
|
1605
1169
|
/**
|
|
1606
1170
|
* Returns whether or not the player is voice muted locally.
|
|
1607
1171
|
* @realm client
|
|
1608
1172
|
* @source https://wiki.facepunch.com/gmod/Player:IsMuted
|
|
1609
1173
|
*/
|
|
1610
1174
|
IsMuted(self: Player): boolean;
|
|
1611
|
-
}
|
|
1612
|
-
|
|
1613
|
-
interface Player {
|
|
1614
1175
|
/**
|
|
1615
1176
|
* Returns true if the player is playing a taunt.
|
|
1616
1177
|
* @realm shared
|
|
1617
1178
|
* @source https://wiki.facepunch.com/gmod/Player:IsPlayingTaunt
|
|
1618
1179
|
*/
|
|
1619
1180
|
IsPlayingTaunt(self: Player): boolean;
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
interface Player {
|
|
1623
1181
|
/**
|
|
1624
1182
|
* Returns whenever the player is heard by the local player clientside, or if the player is speaking serverside.
|
|
1625
1183
|
* @realm shared
|
|
1626
1184
|
* @source https://wiki.facepunch.com/gmod/Player:IsSpeaking
|
|
1627
1185
|
*/
|
|
1628
1186
|
IsSpeaking(self: Player): boolean;
|
|
1629
|
-
}
|
|
1630
|
-
|
|
1631
|
-
interface Player {
|
|
1632
1187
|
/**
|
|
1633
1188
|
* Returns whether the player is currently sprinting or not, specifically if they are holding their sprint key and are allowed to sprint.
|
|
1634
1189
|
*
|
|
@@ -1637,9 +1192,6 @@ interface Player {
|
|
|
1637
1192
|
* @source https://wiki.facepunch.com/gmod/Player:IsSprinting
|
|
1638
1193
|
*/
|
|
1639
1194
|
IsSprinting(self: Player): boolean;
|
|
1640
|
-
}
|
|
1641
|
-
|
|
1642
|
-
interface Player {
|
|
1643
1195
|
/**
|
|
1644
1196
|
* Returns whenever the player is equipped with the suit item.
|
|
1645
1197
|
*
|
|
@@ -1649,9 +1201,6 @@ interface Player {
|
|
|
1649
1201
|
* @source https://wiki.facepunch.com/gmod/Player:IsSuitEquipped
|
|
1650
1202
|
*/
|
|
1651
1203
|
IsSuitEquipped(self: Player): boolean;
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
interface Player {
|
|
1655
1204
|
/**
|
|
1656
1205
|
* Returns whether the player is a super admin.
|
|
1657
1206
|
*
|
|
@@ -1661,9 +1210,6 @@ interface Player {
|
|
|
1661
1210
|
* @source https://wiki.facepunch.com/gmod/Player:IsSuperAdmin
|
|
1662
1211
|
*/
|
|
1663
1212
|
IsSuperAdmin(self: Player): boolean;
|
|
1664
|
-
}
|
|
1665
|
-
|
|
1666
|
-
interface Player {
|
|
1667
1213
|
/**
|
|
1668
1214
|
* Returns `true` if the player is timing out (i.e. is losing connection), `false` otherwise.
|
|
1669
1215
|
*
|
|
@@ -1672,9 +1218,6 @@ interface Player {
|
|
|
1672
1218
|
* @source https://wiki.facepunch.com/gmod/Player:IsTimingOut
|
|
1673
1219
|
*/
|
|
1674
1220
|
IsTimingOut(self: Player): boolean;
|
|
1675
|
-
}
|
|
1676
|
-
|
|
1677
|
-
interface Player {
|
|
1678
1221
|
/**
|
|
1679
1222
|
* Returns whether the player is typing in their chat.
|
|
1680
1223
|
*
|
|
@@ -1684,36 +1227,24 @@ interface Player {
|
|
|
1684
1227
|
* @source https://wiki.facepunch.com/gmod/Player:IsTyping
|
|
1685
1228
|
*/
|
|
1686
1229
|
IsTyping(self: Player): boolean;
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
interface Player {
|
|
1690
1230
|
/**
|
|
1691
1231
|
* Returns whether the player is in specified group or not. See [Player:GetUserGroup](https://wiki.facepunch.com/gmod/Player:GetUserGroup) for a way to get player's user group.
|
|
1692
1232
|
* @realm shared
|
|
1693
1233
|
* @source https://wiki.facepunch.com/gmod/Player:IsUserGroup
|
|
1694
1234
|
*/
|
|
1695
1235
|
IsUserGroup(self: Player, groupName: string): boolean;
|
|
1696
|
-
}
|
|
1697
|
-
|
|
1698
|
-
interface Player {
|
|
1699
1236
|
/**
|
|
1700
1237
|
* Returns if the player can be heard by the local player.
|
|
1701
1238
|
* @realm client
|
|
1702
1239
|
* @source https://wiki.facepunch.com/gmod/Player:IsVoiceAudible
|
|
1703
1240
|
*/
|
|
1704
1241
|
IsVoiceAudible(self: Player): boolean;
|
|
1705
|
-
}
|
|
1706
|
-
|
|
1707
|
-
interface Player {
|
|
1708
1242
|
/**
|
|
1709
1243
|
* Returns if the player currently walking. (`+walk` keybind)
|
|
1710
1244
|
* @realm shared
|
|
1711
1245
|
* @source https://wiki.facepunch.com/gmod/Player:IsWalking
|
|
1712
1246
|
*/
|
|
1713
1247
|
IsWalking(self: Player): boolean;
|
|
1714
|
-
}
|
|
1715
|
-
|
|
1716
|
-
interface Player {
|
|
1717
1248
|
/**
|
|
1718
1249
|
* Returns whether the player is using the world clicking feature, see [Panel:SetWorldClicker](https://wiki.facepunch.com/gmod/Panel:SetWorldClicker)
|
|
1719
1250
|
*
|
|
@@ -1721,9 +1252,6 @@ interface Player {
|
|
|
1721
1252
|
* @source https://wiki.facepunch.com/gmod/Player:IsWorldClicking
|
|
1722
1253
|
*/
|
|
1723
1254
|
IsWorldClicking(self: Player): boolean;
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
|
-
interface Player {
|
|
1727
1255
|
/**
|
|
1728
1256
|
* Returns whether the world clicking is disabled for given player or not. See [Player:DisableWorldClicking](https://wiki.facepunch.com/gmod/Player:DisableWorldClicking).
|
|
1729
1257
|
*
|
|
@@ -1731,45 +1259,30 @@ interface Player {
|
|
|
1731
1259
|
* @source https://wiki.facepunch.com/gmod/Player:IsWorldClickingDisabled
|
|
1732
1260
|
*/
|
|
1733
1261
|
IsWorldClickingDisabled(self: Player): boolean;
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
interface Player {
|
|
1737
1262
|
/**
|
|
1738
1263
|
* Returns whether a key is down. This is not networked to other players, meaning only the local client can see the keys they are pressing.
|
|
1739
1264
|
* @realm shared
|
|
1740
1265
|
* @source https://wiki.facepunch.com/gmod/Player:KeyDown
|
|
1741
1266
|
*/
|
|
1742
1267
|
KeyDown(self: Player, key: number): boolean;
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
interface Player {
|
|
1746
1268
|
/**
|
|
1747
1269
|
* Gets whether a key was down one tick ago.
|
|
1748
1270
|
* @realm shared
|
|
1749
1271
|
* @source https://wiki.facepunch.com/gmod/Player:KeyDownLast
|
|
1750
1272
|
*/
|
|
1751
1273
|
KeyDownLast(self: Player, key: number): boolean;
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
interface Player {
|
|
1755
1274
|
/**
|
|
1756
1275
|
* Gets whether a key was just pressed this tick.
|
|
1757
1276
|
* @realm shared
|
|
1758
1277
|
* @source https://wiki.facepunch.com/gmod/Player:KeyPressed
|
|
1759
1278
|
*/
|
|
1760
1279
|
KeyPressed(self: Player, key: number): boolean;
|
|
1761
|
-
}
|
|
1762
|
-
|
|
1763
|
-
interface Player {
|
|
1764
1280
|
/**
|
|
1765
1281
|
* Gets whether a key was just released this tick.
|
|
1766
1282
|
* @realm shared
|
|
1767
1283
|
* @source https://wiki.facepunch.com/gmod/Player:KeyReleased
|
|
1768
1284
|
*/
|
|
1769
1285
|
KeyReleased(self: Player, key: number): boolean;
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
|
-
interface Player {
|
|
1773
1286
|
/**
|
|
1774
1287
|
* Kicks the player from the server.
|
|
1775
1288
|
* **NOTE**: This can not be run before the player has fully joined in. Use [game.KickID](https://wiki.facepunch.com/gmod/game.KickID) for that.
|
|
@@ -1779,18 +1292,12 @@ interface Player {
|
|
|
1779
1292
|
* @source https://wiki.facepunch.com/gmod/Player:Kick
|
|
1780
1293
|
*/
|
|
1781
1294
|
Kick(self: Player, reason?: string): void;
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1784
|
-
interface Player {
|
|
1785
1295
|
/**
|
|
1786
1296
|
* Kills a player and calls [GM:PlayerDeath](https://wiki.facepunch.com/gmod/GM:PlayerDeath).
|
|
1787
1297
|
* @realm server
|
|
1788
1298
|
* @source https://wiki.facepunch.com/gmod/Player:Kill
|
|
1789
1299
|
*/
|
|
1790
1300
|
Kill(self: Player): void;
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
interface Player {
|
|
1794
1301
|
/**
|
|
1795
1302
|
* Kills a player without notifying the rest of the server.
|
|
1796
1303
|
*
|
|
@@ -1800,9 +1307,6 @@ interface Player {
|
|
|
1800
1307
|
* @source https://wiki.facepunch.com/gmod/Player:KillSilent
|
|
1801
1308
|
*/
|
|
1802
1309
|
KillSilent(self: Player): void;
|
|
1803
|
-
}
|
|
1804
|
-
|
|
1805
|
-
interface Player {
|
|
1806
1310
|
/**
|
|
1807
1311
|
* This allows the server to mitigate the lag of the player by moving back all the entities that can be lag compensated to the time the player attacked with his weapon.
|
|
1808
1312
|
*
|
|
@@ -1824,18 +1328,12 @@ interface Player {
|
|
|
1824
1328
|
* @source https://wiki.facepunch.com/gmod/Player:LagCompensation
|
|
1825
1329
|
*/
|
|
1826
1330
|
LagCompensation(self: Player, lagCompensation: boolean): void;
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
|
-
interface Player {
|
|
1830
1331
|
/**
|
|
1831
1332
|
* Returns the hitgroup where the player was last hit.
|
|
1832
1333
|
* @realm server
|
|
1833
1334
|
* @source https://wiki.facepunch.com/gmod/Player:LastHitGroup
|
|
1834
1335
|
*/
|
|
1835
1336
|
LastHitGroup(self: Player): number;
|
|
1836
|
-
}
|
|
1837
|
-
|
|
1838
|
-
interface Player {
|
|
1839
1337
|
/**
|
|
1840
1338
|
* Shows "limit hit" notification in sandbox.
|
|
1841
1339
|
* **NOTE**: This function is only available in Sandbox and its derivatives.
|
|
@@ -1845,9 +1343,6 @@ interface Player {
|
|
|
1845
1343
|
* @source https://wiki.facepunch.com/gmod/Player:LimitHit
|
|
1846
1344
|
*/
|
|
1847
1345
|
LimitHit(self: Player, type: string): void;
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
interface Player {
|
|
1851
1346
|
/**
|
|
1852
1347
|
* Returns the direction a player is looking as a entity/local-oriented angle.
|
|
1853
1348
|
*
|
|
@@ -1859,9 +1354,6 @@ interface Player {
|
|
|
1859
1354
|
* @source https://wiki.facepunch.com/gmod/Player:LocalEyeAngles
|
|
1860
1355
|
*/
|
|
1861
1356
|
LocalEyeAngles(self: Player): Angle;
|
|
1862
|
-
}
|
|
1863
|
-
|
|
1864
|
-
interface Player {
|
|
1865
1357
|
/**
|
|
1866
1358
|
* Stops a player from using any inputs, such as moving, turning, or attacking. Key binds are still called. Similar to [Player:Freeze](https://wiki.facepunch.com/gmod/Player:Freeze) but the player takes no damage.
|
|
1867
1359
|
*
|
|
@@ -1872,18 +1364,12 @@ interface Player {
|
|
|
1872
1364
|
* @source https://wiki.facepunch.com/gmod/Player:Lock
|
|
1873
1365
|
*/
|
|
1874
1366
|
Lock(self: Player): void;
|
|
1875
|
-
}
|
|
1876
|
-
|
|
1877
|
-
interface Player {
|
|
1878
1367
|
/**
|
|
1879
1368
|
* Returns the position of a Kinect bone.
|
|
1880
1369
|
* @realm shared
|
|
1881
1370
|
* @source https://wiki.facepunch.com/gmod/Player:MotionSensorPos
|
|
1882
1371
|
*/
|
|
1883
1372
|
MotionSensorPos(self: Player, bone: number): Vector;
|
|
1884
|
-
}
|
|
1885
|
-
|
|
1886
|
-
interface Player {
|
|
1887
1373
|
/**
|
|
1888
1374
|
* Returns the player's nick name. Identical to [Player:Nick](https://wiki.facepunch.com/gmod/Player:Nick) and [Player:GetName](https://wiki.facepunch.com/gmod/Player:GetName).
|
|
1889
1375
|
* @realm shared
|
|
@@ -1891,18 +1377,12 @@ interface Player {
|
|
|
1891
1377
|
* @deprecated Use Player:Nick.
|
|
1892
1378
|
*/
|
|
1893
1379
|
Name(self: Player): string;
|
|
1894
|
-
}
|
|
1895
|
-
|
|
1896
|
-
interface Player {
|
|
1897
1380
|
/**
|
|
1898
1381
|
* Returns the player's nick name also known as display name, as it appears in Steam.
|
|
1899
1382
|
* @realm shared
|
|
1900
1383
|
* @source https://wiki.facepunch.com/gmod/Player:Nick
|
|
1901
1384
|
*/
|
|
1902
1385
|
Nick(self: Player): string;
|
|
1903
|
-
}
|
|
1904
|
-
|
|
1905
|
-
interface Player {
|
|
1906
1386
|
/**
|
|
1907
1387
|
* Returns the 64-bit SteamID aka CommunityID of the Steam Account that owns the Garry's Mod license this player is using. This is useful for detecting players using Steam Family Sharing.
|
|
1908
1388
|
*
|
|
@@ -1915,18 +1395,12 @@ interface Player {
|
|
|
1915
1395
|
* @source https://wiki.facepunch.com/gmod/Player:OwnerSteamID64
|
|
1916
1396
|
*/
|
|
1917
1397
|
OwnerSteamID64(self: Player): string;
|
|
1918
|
-
}
|
|
1919
|
-
|
|
1920
|
-
interface Player {
|
|
1921
1398
|
/**
|
|
1922
1399
|
* Returns the percentage of packets lost by the client. It is not networked so it only returns 0 when run clientside.
|
|
1923
1400
|
* @realm shared
|
|
1924
1401
|
* @source https://wiki.facepunch.com/gmod/Player:PacketLoss
|
|
1925
1402
|
*/
|
|
1926
1403
|
PacketLoss(self: Player): number;
|
|
1927
|
-
}
|
|
1928
|
-
|
|
1929
|
-
interface Player {
|
|
1930
1404
|
/**
|
|
1931
1405
|
* Unfreezes the props player is looking at. This is essentially the same as pressing reload with the physics gun, including double press for unfreeze all.
|
|
1932
1406
|
*
|
|
@@ -1935,9 +1409,6 @@ interface Player {
|
|
|
1935
1409
|
* @source https://wiki.facepunch.com/gmod/Player:PhysgunUnfreeze
|
|
1936
1410
|
*/
|
|
1937
1411
|
PhysgunUnfreeze(self: Player): number;
|
|
1938
|
-
}
|
|
1939
|
-
|
|
1940
|
-
interface Player {
|
|
1941
1412
|
/**
|
|
1942
1413
|
* This makes the player hold (same as pressing E on a small prop) given entity.
|
|
1943
1414
|
*
|
|
@@ -1949,9 +1420,6 @@ interface Player {
|
|
|
1949
1420
|
* @source https://wiki.facepunch.com/gmod/Player:PickupObject
|
|
1950
1421
|
*/
|
|
1951
1422
|
PickupObject(self: Player, entity: Entity): void;
|
|
1952
|
-
}
|
|
1953
|
-
|
|
1954
|
-
interface Player {
|
|
1955
1423
|
/**
|
|
1956
1424
|
* Forces the player to pickup an existing weapon entity. The player will not pick up the weapon if they already own a weapon of given type, or if the player could not normally have this weapon in their inventory.
|
|
1957
1425
|
*
|
|
@@ -1961,27 +1429,18 @@ interface Player {
|
|
|
1961
1429
|
* @source https://wiki.facepunch.com/gmod/Player:PickupWeapon
|
|
1962
1430
|
*/
|
|
1963
1431
|
PickupWeapon(self: Player, wep: Weapon, ammoOnly?: boolean): boolean;
|
|
1964
|
-
}
|
|
1965
|
-
|
|
1966
|
-
interface Player {
|
|
1967
1432
|
/**
|
|
1968
1433
|
* Returns the player's ping to server.
|
|
1969
1434
|
* @realm shared
|
|
1970
1435
|
* @source https://wiki.facepunch.com/gmod/Player:Ping
|
|
1971
1436
|
*/
|
|
1972
1437
|
Ping(self: Player): number;
|
|
1973
|
-
}
|
|
1974
|
-
|
|
1975
|
-
interface Player {
|
|
1976
1438
|
/**
|
|
1977
1439
|
* Plays the correct step sound according to what the player is staying on.
|
|
1978
1440
|
* @realm server
|
|
1979
1441
|
* @source https://wiki.facepunch.com/gmod/Player:PlayStepSound
|
|
1980
1442
|
*/
|
|
1981
1443
|
PlayStepSound(self: Player, volume?: number): void;
|
|
1982
|
-
}
|
|
1983
|
-
|
|
1984
|
-
interface Player {
|
|
1985
1444
|
/**
|
|
1986
1445
|
* Displays a message either in their chat, console, or center of the screen. See also [Global.PrintMessage](https://wiki.facepunch.com/gmod/Global.PrintMessage).
|
|
1987
1446
|
*
|
|
@@ -1994,36 +1453,24 @@ interface Player {
|
|
|
1994
1453
|
* @source https://wiki.facepunch.com/gmod/Player:PrintMessage
|
|
1995
1454
|
*/
|
|
1996
1455
|
PrintMessage(self: Player, type: number, message: string): void;
|
|
1997
|
-
}
|
|
1998
|
-
|
|
1999
|
-
interface Player {
|
|
2000
1456
|
/**
|
|
2001
1457
|
* Removes all ammo from a certain player
|
|
2002
1458
|
* @realm server
|
|
2003
1459
|
* @source https://wiki.facepunch.com/gmod/Player:RemoveAllAmmo
|
|
2004
1460
|
*/
|
|
2005
1461
|
RemoveAllAmmo(self: Player): void;
|
|
2006
|
-
}
|
|
2007
|
-
|
|
2008
|
-
interface Player {
|
|
2009
1462
|
/**
|
|
2010
1463
|
* Removes all weapons and ammo from the player.
|
|
2011
1464
|
* @realm server
|
|
2012
1465
|
* @source https://wiki.facepunch.com/gmod/Player:RemoveAllItems
|
|
2013
1466
|
*/
|
|
2014
1467
|
RemoveAllItems(self: Player): void;
|
|
2015
|
-
}
|
|
2016
|
-
|
|
2017
|
-
interface Player {
|
|
2018
1468
|
/**
|
|
2019
1469
|
* Removes the amount of the specified ammo from the player.
|
|
2020
1470
|
* @realm shared
|
|
2021
1471
|
* @source https://wiki.facepunch.com/gmod/Player:RemoveAmmo
|
|
2022
1472
|
*/
|
|
2023
1473
|
RemoveAmmo(self: Player, ammoCount: number, ammoName: string | number): void;
|
|
2024
|
-
}
|
|
2025
|
-
|
|
2026
|
-
interface Player {
|
|
2027
1474
|
/**
|
|
2028
1475
|
* Removes a **P**ersistent **Data** key-value pair from the SQL database. (`sv.db` when called on server, `cl.db` when called on client)
|
|
2029
1476
|
*
|
|
@@ -2038,27 +1485,18 @@ interface Player {
|
|
|
2038
1485
|
* @source https://wiki.facepunch.com/gmod/Player:RemovePData
|
|
2039
1486
|
*/
|
|
2040
1487
|
RemovePData(self: Player, key: string): boolean;
|
|
2041
|
-
}
|
|
2042
|
-
|
|
2043
|
-
interface Player {
|
|
2044
1488
|
/**
|
|
2045
1489
|
* Strips the player's suit item.
|
|
2046
1490
|
* @realm server
|
|
2047
1491
|
* @source https://wiki.facepunch.com/gmod/Player:RemoveSuit
|
|
2048
1492
|
*/
|
|
2049
1493
|
RemoveSuit(self: Player): void;
|
|
2050
|
-
}
|
|
2051
|
-
|
|
2052
|
-
interface Player {
|
|
2053
1494
|
/**
|
|
2054
1495
|
* Resets both normal and duck hulls to their default values.
|
|
2055
1496
|
* @realm shared
|
|
2056
1497
|
* @source https://wiki.facepunch.com/gmod/Player:ResetHull
|
|
2057
1498
|
*/
|
|
2058
1499
|
ResetHull(self: Player): void;
|
|
2059
|
-
}
|
|
2060
|
-
|
|
2061
|
-
interface Player {
|
|
2062
1500
|
/**
|
|
2063
1501
|
* Forces the player to say whatever the first argument is. Works on bots too.
|
|
2064
1502
|
*
|
|
@@ -2071,18 +1509,12 @@ interface Player {
|
|
|
2071
1509
|
* @source https://wiki.facepunch.com/gmod/Player:Say
|
|
2072
1510
|
*/
|
|
2073
1511
|
Say(self: Player, text: string, teamOnly?: boolean): void;
|
|
2074
|
-
}
|
|
2075
|
-
|
|
2076
|
-
interface Player {
|
|
2077
1512
|
/**
|
|
2078
1513
|
* Fades the screen
|
|
2079
1514
|
* @realm shared
|
|
2080
1515
|
* @source https://wiki.facepunch.com/gmod/Player:ScreenFade
|
|
2081
1516
|
*/
|
|
2082
1517
|
ScreenFade(self: Player, flags: number, color?: Color, fadeTime?: number, fadeHold?: number): void;
|
|
2083
|
-
}
|
|
2084
|
-
|
|
2085
|
-
interface Player {
|
|
2086
1518
|
/**
|
|
2087
1519
|
* Sets the active weapon of the player by its class name.
|
|
2088
1520
|
*
|
|
@@ -2096,9 +1528,6 @@ interface Player {
|
|
|
2096
1528
|
* @source https://wiki.facepunch.com/gmod/Player:SelectWeapon
|
|
2097
1529
|
*/
|
|
2098
1530
|
SelectWeapon(self: Player, className: string): void;
|
|
2099
|
-
}
|
|
2100
|
-
|
|
2101
|
-
interface Player {
|
|
2102
1531
|
/**
|
|
2103
1532
|
* Sends a hint to a player.
|
|
2104
1533
|
*
|
|
@@ -2109,9 +1538,6 @@ interface Player {
|
|
|
2109
1538
|
* @source https://wiki.facepunch.com/gmod/Player:SendHint
|
|
2110
1539
|
*/
|
|
2111
1540
|
SendHint(self: Player, name: string, delay: number): void;
|
|
2112
|
-
}
|
|
2113
|
-
|
|
2114
|
-
interface Player {
|
|
2115
1541
|
/**
|
|
2116
1542
|
* Executes a simple Lua string on the player.
|
|
2117
1543
|
* **NOTE**: If you need to use this function more than once consider using [net](https://wiki.facepunch.com/gmod/net) library. Send net message and make the entire code you want to execute in [net.Receive](https://wiki.facepunch.com/gmod/net.Receive) on client.
|
|
@@ -2121,9 +1547,6 @@ interface Player {
|
|
|
2121
1547
|
* @source https://wiki.facepunch.com/gmod/Player:SendLua
|
|
2122
1548
|
*/
|
|
2123
1549
|
SendLua(self: Player, script: string): void;
|
|
2124
|
-
}
|
|
2125
|
-
|
|
2126
|
-
interface Player {
|
|
2127
1550
|
/**
|
|
2128
1551
|
* Sets the player's active weapon. You should use [CUserCmd:SelectWeapon](https://wiki.facepunch.com/gmod/CUserCmd:SelectWeapon) or [Player:SelectWeapon](https://wiki.facepunch.com/gmod/Player:SelectWeapon), instead in most cases.
|
|
2129
1552
|
*
|
|
@@ -2134,27 +1557,18 @@ interface Player {
|
|
|
2134
1557
|
* @source https://wiki.facepunch.com/gmod/Player:SetActiveWeapon
|
|
2135
1558
|
*/
|
|
2136
1559
|
SetActiveWeapon(self: Player, weapon: Weapon): void;
|
|
2137
|
-
}
|
|
2138
|
-
|
|
2139
|
-
interface Player {
|
|
2140
1560
|
/**
|
|
2141
1561
|
* Sets the player's activity.
|
|
2142
1562
|
* @realm server
|
|
2143
1563
|
* @source https://wiki.facepunch.com/gmod/Player:SetActivity
|
|
2144
1564
|
*/
|
|
2145
1565
|
SetActivity(self: Player, act: number): void;
|
|
2146
|
-
}
|
|
2147
|
-
|
|
2148
|
-
interface Player {
|
|
2149
1566
|
/**
|
|
2150
1567
|
* Set if the players' model is allowed to rotate around the pitch and roll axis.
|
|
2151
1568
|
* @realm shared
|
|
2152
1569
|
* @source https://wiki.facepunch.com/gmod/Player:SetAllowFullRotation
|
|
2153
1570
|
*/
|
|
2154
1571
|
SetAllowFullRotation(self: Player, Allowed: boolean): void;
|
|
2155
|
-
}
|
|
2156
|
-
|
|
2157
|
-
interface Player {
|
|
2158
1572
|
/**
|
|
2159
1573
|
* Allows player to use their weapons in a vehicle. You need to call this before entering a vehicle.
|
|
2160
1574
|
*
|
|
@@ -2164,18 +1578,12 @@ interface Player {
|
|
|
2164
1578
|
* @source https://wiki.facepunch.com/gmod/Player:SetAllowWeaponsInVehicle
|
|
2165
1579
|
*/
|
|
2166
1580
|
SetAllowWeaponsInVehicle(self: Player, allow: boolean): void;
|
|
2167
|
-
}
|
|
2168
|
-
|
|
2169
|
-
interface Player {
|
|
2170
1581
|
/**
|
|
2171
1582
|
* Sets the amount of the specified ammo for the player.
|
|
2172
1583
|
* @realm shared
|
|
2173
1584
|
* @source https://wiki.facepunch.com/gmod/Player:SetAmmo
|
|
2174
1585
|
*/
|
|
2175
1586
|
SetAmmo(self: Player, ammoCount: number, ammoType: any): void;
|
|
2176
|
-
}
|
|
2177
|
-
|
|
2178
|
-
interface Player {
|
|
2179
1587
|
/**
|
|
2180
1588
|
* Sets the player armor value.
|
|
2181
1589
|
*
|
|
@@ -2185,9 +1593,6 @@ interface Player {
|
|
|
2185
1593
|
* @source https://wiki.facepunch.com/gmod/Player:SetArmor
|
|
2186
1594
|
*/
|
|
2187
1595
|
SetArmor(self: Player, amount: number): void;
|
|
2188
|
-
}
|
|
2189
|
-
|
|
2190
|
-
interface Player {
|
|
2191
1596
|
/**
|
|
2192
1597
|
* Pushes the player away from other players whenever the player inside another players' bounding box.
|
|
2193
1598
|
*
|
|
@@ -2198,27 +1603,18 @@ interface Player {
|
|
|
2198
1603
|
* @source https://wiki.facepunch.com/gmod/Player:SetAvoidPlayers
|
|
2199
1604
|
*/
|
|
2200
1605
|
SetAvoidPlayers(self: Player, avoidPlayers: boolean): void;
|
|
2201
|
-
}
|
|
2202
|
-
|
|
2203
|
-
interface Player {
|
|
2204
1606
|
/**
|
|
2205
1607
|
* Set if the player should be allowed to walk using the (default) alt key. (`+walk` keybind)
|
|
2206
1608
|
* @realm shared
|
|
2207
1609
|
* @source https://wiki.facepunch.com/gmod/Player:SetCanWalk
|
|
2208
1610
|
*/
|
|
2209
1611
|
SetCanWalk(self: Player, canWalk: boolean): void;
|
|
2210
|
-
}
|
|
2211
|
-
|
|
2212
|
-
interface Player {
|
|
2213
1612
|
/**
|
|
2214
1613
|
* Sets whether the player can use the HL2 suit zoom (`+zoom` bind) or not.
|
|
2215
1614
|
* @realm shared
|
|
2216
1615
|
* @source https://wiki.facepunch.com/gmod/Player:SetCanZoom
|
|
2217
1616
|
*/
|
|
2218
1617
|
SetCanZoom(self: Player, canZoom: boolean): void;
|
|
2219
|
-
}
|
|
2220
|
-
|
|
2221
|
-
interface Player {
|
|
2222
1618
|
/**
|
|
2223
1619
|
* **INTERNAL**: Use [player_manager.SetPlayerClass](https://wiki.facepunch.com/gmod/player_manager.SetPlayerClass) instead.
|
|
2224
1620
|
*
|
|
@@ -2228,9 +1624,6 @@ interface Player {
|
|
|
2228
1624
|
* @source https://wiki.facepunch.com/gmod/Player:SetClassID
|
|
2229
1625
|
*/
|
|
2230
1626
|
SetClassID(self: Player, classID: number): void;
|
|
2231
|
-
}
|
|
2232
|
-
|
|
2233
|
-
interface Player {
|
|
2234
1627
|
/**
|
|
2235
1628
|
* Sets the crouched walk speed multiplier.
|
|
2236
1629
|
*
|
|
@@ -2242,9 +1635,6 @@ interface Player {
|
|
|
2242
1635
|
* @source https://wiki.facepunch.com/gmod/Player:SetCrouchedWalkSpeed
|
|
2243
1636
|
*/
|
|
2244
1637
|
SetCrouchedWalkSpeed(self: Player, speed: number): void;
|
|
2245
|
-
}
|
|
2246
|
-
|
|
2247
|
-
interface Player {
|
|
2248
1638
|
/**
|
|
2249
1639
|
* Sets the **actual** view offset which equals the difference between the players actual position and their view when standing.
|
|
2250
1640
|
*
|
|
@@ -2254,9 +1644,6 @@ interface Player {
|
|
|
2254
1644
|
* @source https://wiki.facepunch.com/gmod/Player:SetCurrentViewOffset
|
|
2255
1645
|
*/
|
|
2256
1646
|
SetCurrentViewOffset(self: Player, viewOffset: Vector): void;
|
|
2257
|
-
}
|
|
2258
|
-
|
|
2259
|
-
interface Player {
|
|
2260
1647
|
/**
|
|
2261
1648
|
* Activates a given DSP (Digital Signal Processor) effect on all sounds that
|
|
2262
1649
|
* the player hears. Equivalent to setting the `dsp_player` convar on the player.
|
|
@@ -2264,19 +1651,12 @@ interface Player {
|
|
|
2264
1651
|
* @source https://wiki.facepunch.com/gmod/Player:SetDSP
|
|
2265
1652
|
*/
|
|
2266
1653
|
SetDSP(self: Player, dspEffectId: number, fastReset?: boolean): void;
|
|
2267
|
-
}
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
interface Player {
|
|
2271
1654
|
/**
|
|
2272
1655
|
* Sets a player's death count
|
|
2273
1656
|
* @realm server
|
|
2274
1657
|
* @source https://wiki.facepunch.com/gmod/Player:SetDeaths
|
|
2275
1658
|
*/
|
|
2276
1659
|
SetDeaths(self: Player, deathCount: number): void;
|
|
2277
|
-
}
|
|
2278
|
-
|
|
2279
|
-
interface Player {
|
|
2280
1660
|
/**
|
|
2281
1661
|
* **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
|
|
2282
1662
|
*
|
|
@@ -2288,9 +1668,6 @@ interface Player {
|
|
|
2288
1668
|
* @source https://wiki.facepunch.com/gmod/Player:SetDrivingEntity
|
|
2289
1669
|
*/
|
|
2290
1670
|
SetDrivingEntity(self: Player, drivingEntity?: Entity, drivingMode?: number): void;
|
|
2291
|
-
}
|
|
2292
|
-
|
|
2293
|
-
interface Player {
|
|
2294
1671
|
/**
|
|
2295
1672
|
* Sets how quickly a player ducks.
|
|
2296
1673
|
*
|
|
@@ -2300,9 +1677,6 @@ interface Player {
|
|
|
2300
1677
|
* @source https://wiki.facepunch.com/gmod/Player:SetDuckSpeed
|
|
2301
1678
|
*/
|
|
2302
1679
|
SetDuckSpeed(self: Player, duckSpeed: number): void;
|
|
2303
|
-
}
|
|
2304
|
-
|
|
2305
|
-
interface Player {
|
|
2306
1680
|
/**
|
|
2307
1681
|
* Sets the local angle of the player's view (may rotate body too if angular difference is large)
|
|
2308
1682
|
*
|
|
@@ -2313,9 +1687,6 @@ interface Player {
|
|
|
2313
1687
|
* @source https://wiki.facepunch.com/gmod/Player:SetEyeAngles
|
|
2314
1688
|
*/
|
|
2315
1689
|
SetEyeAngles(self: Player, angle: Angle): void;
|
|
2316
|
-
}
|
|
2317
|
-
|
|
2318
|
-
interface Player {
|
|
2319
1690
|
/**
|
|
2320
1691
|
* Set a player's FOV (Field Of View) over a certain amount of time.
|
|
2321
1692
|
*
|
|
@@ -2324,9 +1695,6 @@ interface Player {
|
|
|
2324
1695
|
* @source https://wiki.facepunch.com/gmod/Player:SetFOV
|
|
2325
1696
|
*/
|
|
2326
1697
|
SetFOV(self: Player, fov: number, time?: number, requester?: Entity): void;
|
|
2327
|
-
}
|
|
2328
|
-
|
|
2329
|
-
interface Player {
|
|
2330
1698
|
/**
|
|
2331
1699
|
* Sets the color of a player's flashlight.
|
|
2332
1700
|
* Can be used on other players.
|
|
@@ -2335,18 +1703,12 @@ interface Player {
|
|
|
2335
1703
|
* @source https://wiki.facepunch.com/gmod/Player:SetFlashlightColor
|
|
2336
1704
|
*/
|
|
2337
1705
|
SetFlashlightColor(self: Player, color?: Color): void;
|
|
2338
|
-
}
|
|
2339
|
-
|
|
2340
|
-
interface Player {
|
|
2341
1706
|
/**
|
|
2342
1707
|
* Sets a player's frags (kills)
|
|
2343
1708
|
* @realm server
|
|
2344
1709
|
* @source https://wiki.facepunch.com/gmod/Player:SetFrags
|
|
2345
1710
|
*/
|
|
2346
1711
|
SetFrags(self: Player, fragCount: number): void;
|
|
2347
|
-
}
|
|
2348
|
-
|
|
2349
|
-
interface Player {
|
|
2350
1712
|
/**
|
|
2351
1713
|
* Sets the hands entity of a player.
|
|
2352
1714
|
*
|
|
@@ -2357,18 +1719,12 @@ interface Player {
|
|
|
2357
1719
|
* @source https://wiki.facepunch.com/gmod/Player:SetHands
|
|
2358
1720
|
*/
|
|
2359
1721
|
SetHands(self: Player, hands: Entity): void;
|
|
2360
|
-
}
|
|
2361
|
-
|
|
2362
|
-
interface Player {
|
|
2363
1722
|
/**
|
|
2364
1723
|
* Sets the widget that is currently hovered by the player's mouse.
|
|
2365
1724
|
* @realm shared
|
|
2366
1725
|
* @source https://wiki.facepunch.com/gmod/Player:SetHoveredWidget
|
|
2367
1726
|
*/
|
|
2368
1727
|
SetHoveredWidget(self: Player, widget?: Entity): void;
|
|
2369
|
-
}
|
|
2370
|
-
|
|
2371
|
-
interface Player {
|
|
2372
1728
|
/**
|
|
2373
1729
|
* Sets the size of the [Player's](https://wiki.facepunch.com/gmod/Player) [Axis-Aligned Bounding Box (AABB)](https://en.wikipedia.org/wiki/Minimum_bounding_box) used for physics and movement [Hull Traces](https://wiki.facepunch.com/gmod/util.TraceHull).
|
|
2374
1730
|
*
|
|
@@ -2381,9 +1737,6 @@ interface Player {
|
|
|
2381
1737
|
* @source https://wiki.facepunch.com/gmod/Player:SetHull
|
|
2382
1738
|
*/
|
|
2383
1739
|
SetHull(self: Player, mins: Vector, maxs: Vector): void;
|
|
2384
|
-
}
|
|
2385
|
-
|
|
2386
|
-
interface Player {
|
|
2387
1740
|
/**
|
|
2388
1741
|
* Sets the size of the [Player's](https://wiki.facepunch.com/gmod/Player) [Axis-Aligned Bounding Box (AABB)](https://en.wikipedia.org/wiki/Minimum_bounding_box) used for physics and movement [Hull Traces](https://wiki.facepunch.com/gmod/util.TraceHull) while they are crouching (or "Ducking").
|
|
2389
1742
|
*
|
|
@@ -2396,18 +1749,12 @@ interface Player {
|
|
|
2396
1749
|
* @source https://wiki.facepunch.com/gmod/Player:SetHullDuck
|
|
2397
1750
|
*/
|
|
2398
1751
|
SetHullDuck(self: Player, mins: Vector, maxs: Vector): void;
|
|
2399
|
-
}
|
|
2400
|
-
|
|
2401
|
-
interface Player {
|
|
2402
1752
|
/**
|
|
2403
1753
|
* Sets the jump power, eg. the velocity that will be applied to the player when they jump.
|
|
2404
1754
|
* @realm shared
|
|
2405
1755
|
* @source https://wiki.facepunch.com/gmod/Player:SetJumpPower
|
|
2406
1756
|
*/
|
|
2407
1757
|
SetJumpPower(self: Player, jumpPower: number): void;
|
|
2408
|
-
}
|
|
2409
|
-
|
|
2410
|
-
interface Player {
|
|
2411
1758
|
/**
|
|
2412
1759
|
* Sets the player's ladder climbing speed.
|
|
2413
1760
|
*
|
|
@@ -2417,9 +1764,6 @@ interface Player {
|
|
|
2417
1764
|
* @source https://wiki.facepunch.com/gmod/Player:SetLadderClimbSpeed
|
|
2418
1765
|
*/
|
|
2419
1766
|
SetLadderClimbSpeed(self: Player, speed: number): void;
|
|
2420
|
-
}
|
|
2421
|
-
|
|
2422
|
-
interface Player {
|
|
2423
1767
|
/**
|
|
2424
1768
|
* Slows down the player movement simulation by the timescale, this is used internally in the HL2 weapon stripping sequence.
|
|
2425
1769
|
*
|
|
@@ -2434,18 +1778,12 @@ interface Player {
|
|
|
2434
1778
|
* @source https://wiki.facepunch.com/gmod/Player:SetLaggedMovementValue
|
|
2435
1779
|
*/
|
|
2436
1780
|
SetLaggedMovementValue(self: Player, timescale: number): void;
|
|
2437
|
-
}
|
|
2438
|
-
|
|
2439
|
-
interface Player {
|
|
2440
1781
|
/**
|
|
2441
1782
|
* Sets the hitgroup where the player was last hit.
|
|
2442
1783
|
* @realm server
|
|
2443
1784
|
* @source https://wiki.facepunch.com/gmod/Player:SetLastHitGroup
|
|
2444
1785
|
*/
|
|
2445
1786
|
SetLastHitGroup(self: Player, hitgroup: number): void;
|
|
2446
|
-
}
|
|
2447
|
-
|
|
2448
|
-
interface Player {
|
|
2449
1787
|
/**
|
|
2450
1788
|
* Sets the maximum amount of armor the player should have. This affects default built-in armor pickups, but not [Player:SetArmor](https://wiki.facepunch.com/gmod/Player:SetArmor).
|
|
2451
1789
|
*
|
|
@@ -2453,9 +1791,6 @@ interface Player {
|
|
|
2453
1791
|
* @source https://wiki.facepunch.com/gmod/Player:SetMaxArmor
|
|
2454
1792
|
*/
|
|
2455
1793
|
SetMaxArmor(self: Player, maxarmor: number): void;
|
|
2456
|
-
}
|
|
2457
|
-
|
|
2458
|
-
interface Player {
|
|
2459
1794
|
/**
|
|
2460
1795
|
* Sets the maximum speed which the player can move at.
|
|
2461
1796
|
*
|
|
@@ -2466,18 +1801,12 @@ interface Player {
|
|
|
2466
1801
|
* @source https://wiki.facepunch.com/gmod/Player:SetMaxSpeed
|
|
2467
1802
|
*/
|
|
2468
1803
|
SetMaxSpeed(self: Player, walkSpeed: number): void;
|
|
2469
|
-
}
|
|
2470
|
-
|
|
2471
|
-
interface Player {
|
|
2472
1804
|
/**
|
|
2473
1805
|
* Sets if the player should be voicechat muted locally.
|
|
2474
1806
|
* @realm client
|
|
2475
1807
|
* @source https://wiki.facepunch.com/gmod/Player:SetMuted
|
|
2476
1808
|
*/
|
|
2477
1809
|
SetMuted(self: Player, mute: boolean): void;
|
|
2478
|
-
}
|
|
2479
|
-
|
|
2480
|
-
interface Player {
|
|
2481
1810
|
/**
|
|
2482
1811
|
* Sets whenever the player should not collide with their teammates, based on their [Player:Team](https://wiki.facepunch.com/gmod/Player:Team).
|
|
2483
1812
|
*
|
|
@@ -2490,9 +1819,6 @@ interface Player {
|
|
|
2490
1819
|
* @source https://wiki.facepunch.com/gmod/Player:SetNoCollideWithTeammates
|
|
2491
1820
|
*/
|
|
2492
1821
|
SetNoCollideWithTeammates(self: Player, shouldNotCollide: boolean): void;
|
|
2493
|
-
}
|
|
2494
|
-
|
|
2495
|
-
interface Player {
|
|
2496
1822
|
/**
|
|
2497
1823
|
* Sets the players visibility towards NPCs.
|
|
2498
1824
|
*
|
|
@@ -2502,18 +1828,12 @@ interface Player {
|
|
|
2502
1828
|
* @source https://wiki.facepunch.com/gmod/Player:SetNoTarget
|
|
2503
1829
|
*/
|
|
2504
1830
|
SetNoTarget(self: Player, visibility: boolean): void;
|
|
2505
|
-
}
|
|
2506
|
-
|
|
2507
|
-
interface Player {
|
|
2508
1831
|
/**
|
|
2509
1832
|
* Sets the players observer mode. You must start the spectating first with [Player:Spectate](https://wiki.facepunch.com/gmod/Player:Spectate).
|
|
2510
1833
|
* @realm shared
|
|
2511
1834
|
* @source https://wiki.facepunch.com/gmod/Player:SetObserverMode
|
|
2512
1835
|
*/
|
|
2513
1836
|
SetObserverMode(self: Player, mode: number): void;
|
|
2514
|
-
}
|
|
2515
|
-
|
|
2516
|
-
interface Player {
|
|
2517
1837
|
/**
|
|
2518
1838
|
* Writes a **P**ersistent **Data** key-value pair to the SQL database. (`sv.db` when called on server, `cl.db` when called on client)
|
|
2519
1839
|
*
|
|
@@ -2529,18 +1849,12 @@ interface Player {
|
|
|
2529
1849
|
* @source https://wiki.facepunch.com/gmod/Player:SetPData
|
|
2530
1850
|
*/
|
|
2531
1851
|
SetPData(self: Player, key: string, value: any): boolean;
|
|
2532
|
-
}
|
|
2533
|
-
|
|
2534
|
-
interface Player {
|
|
2535
1852
|
/**
|
|
2536
1853
|
* Sets the player model's color. The part of the model that is colored is determined by the model itself, and is different for each model.
|
|
2537
1854
|
* @realm shared
|
|
2538
1855
|
* @source https://wiki.facepunch.com/gmod/Player:SetPlayerColor
|
|
2539
1856
|
*/
|
|
2540
1857
|
SetPlayerColor(self: Player, Color: Vector): void;
|
|
2541
|
-
}
|
|
2542
|
-
|
|
2543
|
-
interface Player {
|
|
2544
1858
|
/**
|
|
2545
1859
|
* Sets the widget that is currently in use by the player's mouse.
|
|
2546
1860
|
*
|
|
@@ -2550,9 +1864,6 @@ interface Player {
|
|
|
2550
1864
|
* @source https://wiki.facepunch.com/gmod/Player:SetPressedWidget
|
|
2551
1865
|
*/
|
|
2552
1866
|
SetPressedWidget(self: Player, pressedWidget?: Entity): void;
|
|
2553
|
-
}
|
|
2554
|
-
|
|
2555
|
-
interface Player {
|
|
2556
1867
|
/**
|
|
2557
1868
|
* Sets the player's sprint speed.
|
|
2558
1869
|
*
|
|
@@ -2564,9 +1875,6 @@ interface Player {
|
|
|
2564
1875
|
* @source https://wiki.facepunch.com/gmod/Player:SetRunSpeed
|
|
2565
1876
|
*/
|
|
2566
1877
|
SetRunSpeed(self: Player, runSpeed: number): void;
|
|
2567
|
-
}
|
|
2568
|
-
|
|
2569
|
-
interface Player {
|
|
2570
1878
|
/**
|
|
2571
1879
|
* Sets the player's slow walking speed, which is activated via +WALK keybind.
|
|
2572
1880
|
*
|
|
@@ -2576,18 +1884,12 @@ interface Player {
|
|
|
2576
1884
|
* @source https://wiki.facepunch.com/gmod/Player:SetSlowWalkSpeed
|
|
2577
1885
|
*/
|
|
2578
1886
|
SetSlowWalkSpeed(self: Player, speed: number): void;
|
|
2579
|
-
}
|
|
2580
|
-
|
|
2581
|
-
interface Player {
|
|
2582
1887
|
/**
|
|
2583
1888
|
* Sets the maximum height a player can step onto without jumping.
|
|
2584
1889
|
* @realm shared
|
|
2585
1890
|
* @source https://wiki.facepunch.com/gmod/Player:SetStepSize
|
|
2586
1891
|
*/
|
|
2587
1892
|
SetStepSize(self: Player, stepHeight: number): void;
|
|
2588
|
-
}
|
|
2589
|
-
|
|
2590
|
-
interface Player {
|
|
2591
1893
|
/**
|
|
2592
1894
|
* Sets the player's HEV suit power.
|
|
2593
1895
|
*
|
|
@@ -2597,18 +1899,12 @@ interface Player {
|
|
|
2597
1899
|
* @source https://wiki.facepunch.com/gmod/Player:SetSuitPower
|
|
2598
1900
|
*/
|
|
2599
1901
|
SetSuitPower(self: Player, power: number): void;
|
|
2600
|
-
}
|
|
2601
|
-
|
|
2602
|
-
interface Player {
|
|
2603
1902
|
/**
|
|
2604
1903
|
* Sets whenever to suppress the pickup notification for the player.
|
|
2605
1904
|
* @realm shared
|
|
2606
1905
|
* @source https://wiki.facepunch.com/gmod/Player:SetSuppressPickupNotices
|
|
2607
1906
|
*/
|
|
2608
1907
|
SetSuppressPickupNotices(self: Player, doSuppress: boolean): void;
|
|
2609
|
-
}
|
|
2610
|
-
|
|
2611
|
-
interface Player {
|
|
2612
1908
|
/**
|
|
2613
1909
|
* Sets the player to the chosen team. The value is networked to clients at reduced bit count (16 bits) as as a signed value, so the real range is [-32768, 32767].
|
|
2614
1910
|
*
|
|
@@ -2618,36 +1914,24 @@ interface Player {
|
|
|
2618
1914
|
* @source https://wiki.facepunch.com/gmod/Player:SetTeam
|
|
2619
1915
|
*/
|
|
2620
1916
|
SetTeam(self: Player, team: number): void;
|
|
2621
|
-
}
|
|
2622
|
-
|
|
2623
|
-
interface Player {
|
|
2624
1917
|
/**
|
|
2625
1918
|
* Sets how quickly a player un-ducks
|
|
2626
1919
|
* @realm shared
|
|
2627
1920
|
* @source https://wiki.facepunch.com/gmod/Player:SetUnDuckSpeed
|
|
2628
1921
|
*/
|
|
2629
1922
|
SetUnDuckSpeed(self: Player, UnDuckSpeed: number): void;
|
|
2630
|
-
}
|
|
2631
|
-
|
|
2632
|
-
interface Player {
|
|
2633
1923
|
/**
|
|
2634
1924
|
* Sets the usergroup of the player.
|
|
2635
1925
|
* @realm server
|
|
2636
1926
|
* @source https://wiki.facepunch.com/gmod/Player:SetUserGroup
|
|
2637
1927
|
*/
|
|
2638
1928
|
SetUserGroup(self: Player, groupName: string): void;
|
|
2639
|
-
}
|
|
2640
|
-
|
|
2641
|
-
interface Player {
|
|
2642
1929
|
/**
|
|
2643
1930
|
* Attaches the players view to the position and angles of the specified entity.
|
|
2644
1931
|
* @realm server
|
|
2645
1932
|
* @source https://wiki.facepunch.com/gmod/Player:SetViewEntity
|
|
2646
1933
|
*/
|
|
2647
1934
|
SetViewEntity(self: Player, viewEntity: Entity): void;
|
|
2648
|
-
}
|
|
2649
|
-
|
|
2650
|
-
interface Player {
|
|
2651
1935
|
/**
|
|
2652
1936
|
* Sets the **desired** view offset which equals the difference between the players actual position and their view when standing.
|
|
2653
1937
|
*
|
|
@@ -2659,9 +1943,6 @@ interface Player {
|
|
|
2659
1943
|
* @source https://wiki.facepunch.com/gmod/Player:SetViewOffset
|
|
2660
1944
|
*/
|
|
2661
1945
|
SetViewOffset(self: Player, viewOffset: Vector): void;
|
|
2662
|
-
}
|
|
2663
|
-
|
|
2664
|
-
interface Player {
|
|
2665
1946
|
/**
|
|
2666
1947
|
* Sets the **desired** view offset which equals the difference between the players actual position and their view when crouching.
|
|
2667
1948
|
*
|
|
@@ -2673,27 +1954,18 @@ interface Player {
|
|
|
2673
1954
|
* @source https://wiki.facepunch.com/gmod/Player:SetViewOffsetDucked
|
|
2674
1955
|
*/
|
|
2675
1956
|
SetViewOffsetDucked(self: Player, viewOffset: Vector): void;
|
|
2676
|
-
}
|
|
2677
|
-
|
|
2678
|
-
interface Player {
|
|
2679
1957
|
/**
|
|
2680
1958
|
* Sets client's view punch angle, but not the velocity. See [Player:ViewPunch](https://wiki.facepunch.com/gmod/Player:ViewPunch)
|
|
2681
1959
|
* @realm shared
|
|
2682
1960
|
* @source https://wiki.facepunch.com/gmod/Player:SetViewPunchAngles
|
|
2683
1961
|
*/
|
|
2684
1962
|
SetViewPunchAngles(self: Player, punchAngle: Angle): void;
|
|
2685
|
-
}
|
|
2686
|
-
|
|
2687
|
-
interface Player {
|
|
2688
1963
|
/**
|
|
2689
1964
|
* Sets client's view punch velocity. See [Player:ViewPunch](https://wiki.facepunch.com/gmod/Player:ViewPunch) and [Player:SetViewPunchAngles](https://wiki.facepunch.com/gmod/Player:SetViewPunchAngles)
|
|
2690
1965
|
* @realm shared
|
|
2691
1966
|
* @source https://wiki.facepunch.com/gmod/Player:SetViewPunchVelocity
|
|
2692
1967
|
*/
|
|
2693
1968
|
SetViewPunchVelocity(self: Player, punchVel: Angle): void;
|
|
2694
|
-
}
|
|
2695
|
-
|
|
2696
|
-
interface Player {
|
|
2697
1969
|
/**
|
|
2698
1970
|
* Sets the voice volume scale for given player on client. This value will persist from server to server, but will be reset when the game is shut down.
|
|
2699
1971
|
*
|
|
@@ -2704,9 +1976,6 @@ interface Player {
|
|
|
2704
1976
|
* @source https://wiki.facepunch.com/gmod/Player:SetVoiceVolumeScale
|
|
2705
1977
|
*/
|
|
2706
1978
|
SetVoiceVolumeScale(self: Player, arg0: number): void;
|
|
2707
|
-
}
|
|
2708
|
-
|
|
2709
|
-
interface Player {
|
|
2710
1979
|
/**
|
|
2711
1980
|
* Sets the player's normal walking speed. Not sprinting, not slow walking +walk.
|
|
2712
1981
|
*
|
|
@@ -2721,27 +1990,18 @@ interface Player {
|
|
|
2721
1990
|
* @source https://wiki.facepunch.com/gmod/Player:SetWalkSpeed
|
|
2722
1991
|
*/
|
|
2723
1992
|
SetWalkSpeed(self: Player, walkSpeed: number): void;
|
|
2724
|
-
}
|
|
2725
|
-
|
|
2726
|
-
interface Player {
|
|
2727
1993
|
/**
|
|
2728
1994
|
* Sets the player weapon's color. The part of the model that is colored is determined by the model itself, and is different for each model.
|
|
2729
1995
|
* @realm shared
|
|
2730
1996
|
* @source https://wiki.facepunch.com/gmod/Player:SetWeaponColor
|
|
2731
1997
|
*/
|
|
2732
1998
|
SetWeaponColor(self: Player, Color: Vector): void;
|
|
2733
|
-
}
|
|
2734
|
-
|
|
2735
|
-
interface Player {
|
|
2736
1999
|
/**
|
|
2737
2000
|
* Sets up the player's hands for the viewmodel. Calls [GM:PlayerSetHandsModel](https://wiki.facepunch.com/gmod/GM:PlayerSetHandsModel) to determine the model. If no entity is provided, uses the player's own hands model. If spectating another entity, pass that entity to use its hands model instead.
|
|
2738
2001
|
* @realm server
|
|
2739
2002
|
* @source https://wiki.facepunch.com/gmod/Player:SetupHands
|
|
2740
2003
|
*/
|
|
2741
2004
|
SetupHands(self: Player, ent?: Entity): void;
|
|
2742
|
-
}
|
|
2743
|
-
|
|
2744
|
-
interface Player {
|
|
2745
2005
|
/**
|
|
2746
2006
|
* Returns whether the **local player's** player model will be drawn at the time the function is called.
|
|
2747
2007
|
*
|
|
@@ -2751,9 +2011,6 @@ interface Player {
|
|
|
2751
2011
|
* @source https://wiki.facepunch.com/gmod/Player:ShouldDrawLocalPlayer
|
|
2752
2012
|
*/
|
|
2753
2013
|
ShouldDrawLocalPlayer(self: Player): boolean;
|
|
2754
|
-
}
|
|
2755
|
-
|
|
2756
|
-
interface Player {
|
|
2757
2014
|
/**
|
|
2758
2015
|
* Sets whether the player's current weapon should drop on death.
|
|
2759
2016
|
*
|
|
@@ -2764,36 +2021,24 @@ interface Player {
|
|
|
2764
2021
|
* @source https://wiki.facepunch.com/gmod/Player:ShouldDropWeapon
|
|
2765
2022
|
*/
|
|
2766
2023
|
ShouldDropWeapon(self: Player, drop: boolean): void;
|
|
2767
|
-
}
|
|
2768
|
-
|
|
2769
|
-
interface Player {
|
|
2770
2024
|
/**
|
|
2771
2025
|
* Opens the player steam profile page in the steam overlay browser.
|
|
2772
2026
|
* @realm client
|
|
2773
2027
|
* @source https://wiki.facepunch.com/gmod/Player:ShowProfile
|
|
2774
2028
|
*/
|
|
2775
2029
|
ShowProfile(self: Player): void;
|
|
2776
|
-
}
|
|
2777
|
-
|
|
2778
|
-
interface Player {
|
|
2779
2030
|
/**
|
|
2780
2031
|
* Signals the entity that it was dropped by the gravity gun.
|
|
2781
2032
|
* @realm server
|
|
2782
2033
|
* @source https://wiki.facepunch.com/gmod/Player:SimulateGravGunDrop
|
|
2783
2034
|
*/
|
|
2784
2035
|
SimulateGravGunDrop(self: Player, ent: Entity): void;
|
|
2785
|
-
}
|
|
2786
|
-
|
|
2787
|
-
interface Player {
|
|
2788
2036
|
/**
|
|
2789
2037
|
* Signals the entity that it was picked up by the gravity gun. This call is only required if you want to simulate the situation of picking up objects.
|
|
2790
2038
|
* @realm server
|
|
2791
2039
|
* @source https://wiki.facepunch.com/gmod/Player:SimulateGravGunPickup
|
|
2792
2040
|
*/
|
|
2793
2041
|
SimulateGravGunPickup(self: Player, ent: Entity, lightning?: boolean): void;
|
|
2794
|
-
}
|
|
2795
|
-
|
|
2796
|
-
interface Player {
|
|
2797
2042
|
/**
|
|
2798
2043
|
* Starts spectate mode for given player. This will also affect the players movetype in some cases.
|
|
2799
2044
|
*
|
|
@@ -2805,9 +2050,6 @@ interface Player {
|
|
|
2805
2050
|
* @source https://wiki.facepunch.com/gmod/Player:Spectate
|
|
2806
2051
|
*/
|
|
2807
2052
|
Spectate(self: Player, mode: OBS_MODE): void;
|
|
2808
|
-
}
|
|
2809
|
-
|
|
2810
|
-
interface Player {
|
|
2811
2053
|
/**
|
|
2812
2054
|
* Makes the player spectate the entity.
|
|
2813
2055
|
*
|
|
@@ -2817,18 +2059,12 @@ interface Player {
|
|
|
2817
2059
|
* @source https://wiki.facepunch.com/gmod/Player:SpectateEntity
|
|
2818
2060
|
*/
|
|
2819
2061
|
SpectateEntity(self: Player, entity: Entity): void;
|
|
2820
|
-
}
|
|
2821
|
-
|
|
2822
|
-
interface Player {
|
|
2823
2062
|
/**
|
|
2824
2063
|
* Makes a player spray their decal.
|
|
2825
2064
|
* @realm server
|
|
2826
2065
|
* @source https://wiki.facepunch.com/gmod/Player:SprayDecal
|
|
2827
2066
|
*/
|
|
2828
2067
|
SprayDecal(self: Player, sprayOrigin: Vector, sprayEndPos: Vector): void;
|
|
2829
|
-
}
|
|
2830
|
-
|
|
2831
|
-
interface Player {
|
|
2832
2068
|
/**
|
|
2833
2069
|
* Disables the sprint on the player.
|
|
2834
2070
|
*
|
|
@@ -2836,9 +2072,6 @@ interface Player {
|
|
|
2836
2072
|
* @source https://wiki.facepunch.com/gmod/Player:SprintDisable
|
|
2837
2073
|
*/
|
|
2838
2074
|
SprintDisable(self: Player): void;
|
|
2839
|
-
}
|
|
2840
|
-
|
|
2841
|
-
interface Player {
|
|
2842
2075
|
/**
|
|
2843
2076
|
* Enables the sprint on the player.
|
|
2844
2077
|
*
|
|
@@ -2846,9 +2079,6 @@ interface Player {
|
|
|
2846
2079
|
* @source https://wiki.facepunch.com/gmod/Player:SprintEnable
|
|
2847
2080
|
*/
|
|
2848
2081
|
SprintEnable(self: Player): void;
|
|
2849
|
-
}
|
|
2850
|
-
|
|
2851
|
-
interface Player {
|
|
2852
2082
|
/**
|
|
2853
2083
|
* Doesn't appear to do anything.
|
|
2854
2084
|
*
|
|
@@ -2857,9 +2087,6 @@ interface Player {
|
|
|
2857
2087
|
* @deprecated This appears to be a direct binding to internal functionality that is overridden by the engine every frame so calling these functions may not have any or expected effect.
|
|
2858
2088
|
*/
|
|
2859
2089
|
StartSprinting(self: Player): void;
|
|
2860
|
-
}
|
|
2861
|
-
|
|
2862
|
-
interface Player {
|
|
2863
2090
|
/**
|
|
2864
2091
|
* When used in a [GM:SetupMove](https://wiki.facepunch.com/gmod/GM:SetupMove) hook, this function will force the player to walk, as well as preventing the player from sprinting.
|
|
2865
2092
|
*
|
|
@@ -2868,9 +2095,6 @@ interface Player {
|
|
|
2868
2095
|
* @deprecated This appears to be a direct binding to internal functionality that is overridden by the engine every frame so calling these functions may not have any or expected effect.
|
|
2869
2096
|
*/
|
|
2870
2097
|
StartWalking(self: Player): void;
|
|
2871
|
-
}
|
|
2872
|
-
|
|
2873
|
-
interface Player {
|
|
2874
2098
|
/**
|
|
2875
2099
|
* Returns the player's SteamID.
|
|
2876
2100
|
*
|
|
@@ -2887,9 +2111,6 @@ interface Player {
|
|
|
2887
2111
|
* @source https://wiki.facepunch.com/gmod/Player:SteamID
|
|
2888
2112
|
*/
|
|
2889
2113
|
SteamID(self: Player): string;
|
|
2890
|
-
}
|
|
2891
|
-
|
|
2892
|
-
interface Player {
|
|
2893
2114
|
/**
|
|
2894
2115
|
* Returns the player's full **64-bit SteamID**, also known as **CommunityID**. Information on how data is packed into this value can be found [here](https://developer.valvesoftware.com/wiki/SteamID).
|
|
2895
2116
|
*
|
|
@@ -2906,9 +2127,6 @@ interface Player {
|
|
|
2906
2127
|
* @source https://wiki.facepunch.com/gmod/Player:SteamID64
|
|
2907
2128
|
*/
|
|
2908
2129
|
SteamID64(self: Player): string;
|
|
2909
|
-
}
|
|
2910
|
-
|
|
2911
|
-
interface Player {
|
|
2912
2130
|
/**
|
|
2913
2131
|
* When used in a [GM:SetupMove](https://wiki.facepunch.com/gmod/GM:SetupMove) hook, this function will prevent the player from sprinting.
|
|
2914
2132
|
*
|
|
@@ -2919,9 +2137,6 @@ interface Player {
|
|
|
2919
2137
|
* @deprecated This appears to be a direct binding to internal functionality that is overridden by the engine every frame so calling these functions may not have any or expected effect.
|
|
2920
2138
|
*/
|
|
2921
2139
|
StopSprinting(self: Player): void;
|
|
2922
|
-
}
|
|
2923
|
-
|
|
2924
|
-
interface Player {
|
|
2925
2140
|
/**
|
|
2926
2141
|
* When used in a [GM:SetupMove](https://wiki.facepunch.com/gmod/GM:SetupMove) hook, this function behaves unexpectedly by preventing the player from sprinting similar to [Player:StopSprinting](https://wiki.facepunch.com/gmod/Player:StopSprinting).
|
|
2927
2142
|
*
|
|
@@ -2930,9 +2145,6 @@ interface Player {
|
|
|
2930
2145
|
* @deprecated This appears to be a direct binding to internal functionality that is overridden by the engine every frame so calling these functions may not have any or expected effect.
|
|
2931
2146
|
*/
|
|
2932
2147
|
StopWalking(self: Player): void;
|
|
2933
|
-
}
|
|
2934
|
-
|
|
2935
|
-
interface Player {
|
|
2936
2148
|
/**
|
|
2937
2149
|
* Turns off the zoom mode of the player. (+zoom console command)
|
|
2938
2150
|
*
|
|
@@ -2942,9 +2154,6 @@ interface Player {
|
|
|
2942
2154
|
* @source https://wiki.facepunch.com/gmod/Player:StopZooming
|
|
2943
2155
|
*/
|
|
2944
2156
|
StopZooming(self: Player): void;
|
|
2945
|
-
}
|
|
2946
|
-
|
|
2947
|
-
interface Player {
|
|
2948
2157
|
/**
|
|
2949
2158
|
* Removes all ammo from the player.
|
|
2950
2159
|
* @realm server
|
|
@@ -2952,9 +2161,6 @@ interface Player {
|
|
|
2952
2161
|
* @deprecated Alias of Player:RemoveAllAmmo
|
|
2953
2162
|
*/
|
|
2954
2163
|
StripAmmo(self: Player): void;
|
|
2955
|
-
}
|
|
2956
|
-
|
|
2957
|
-
interface Player {
|
|
2958
2164
|
/**
|
|
2959
2165
|
* Removes the specified weapon class from a certain player
|
|
2960
2166
|
* **NOTE**: this function will call the [Entity:OnRemove](https://wiki.facepunch.com/gmod/Entity:OnRemove) but if you try use [Entity:GetOwner](https://wiki.facepunch.com/gmod/Entity:GetOwner) it will return nil
|
|
@@ -2963,18 +2169,12 @@ interface Player {
|
|
|
2963
2169
|
* @source https://wiki.facepunch.com/gmod/Player:StripWeapon
|
|
2964
2170
|
*/
|
|
2965
2171
|
StripWeapon(self: Player, weapon: string): void;
|
|
2966
|
-
}
|
|
2967
|
-
|
|
2968
|
-
interface Player {
|
|
2969
2172
|
/**
|
|
2970
2173
|
* Removes all weapons from a certain player
|
|
2971
2174
|
* @realm server
|
|
2972
2175
|
* @source https://wiki.facepunch.com/gmod/Player:StripWeapons
|
|
2973
2176
|
*/
|
|
2974
2177
|
StripWeapons(self: Player): void;
|
|
2975
|
-
}
|
|
2976
|
-
|
|
2977
|
-
interface Player {
|
|
2978
2178
|
/**
|
|
2979
2179
|
* Prevents a hint from showing up.
|
|
2980
2180
|
*
|
|
@@ -2986,9 +2186,6 @@ interface Player {
|
|
|
2986
2186
|
* @source https://wiki.facepunch.com/gmod/Player:SuppressHint
|
|
2987
2187
|
*/
|
|
2988
2188
|
SuppressHint(self: Player, name: string): void;
|
|
2989
|
-
}
|
|
2990
|
-
|
|
2991
|
-
interface Player {
|
|
2992
2189
|
/**
|
|
2993
2190
|
* Attempts to switch the player weapon to the one specified in the "cl_defaultweapon" convar, if the player does not own the specified weapon nothing will happen.
|
|
2994
2191
|
*
|
|
@@ -2998,9 +2195,6 @@ interface Player {
|
|
|
2998
2195
|
* @source https://wiki.facepunch.com/gmod/Player:SwitchToDefaultWeapon
|
|
2999
2196
|
*/
|
|
3000
2197
|
SwitchToDefaultWeapon(self: Player): void;
|
|
3001
|
-
}
|
|
3002
|
-
|
|
3003
|
-
interface Player {
|
|
3004
2198
|
/**
|
|
3005
2199
|
* Returns the player's team ID, set by [Player:SetTeam](https://wiki.facepunch.com/gmod/Player:SetTeam)
|
|
3006
2200
|
*
|
|
@@ -3010,9 +2204,6 @@ interface Player {
|
|
|
3010
2204
|
* @source https://wiki.facepunch.com/gmod/Player:Team
|
|
3011
2205
|
*/
|
|
3012
2206
|
Team(self: Player): number;
|
|
3013
|
-
}
|
|
3014
|
-
|
|
3015
|
-
interface Player {
|
|
3016
2207
|
/**
|
|
3017
2208
|
* Returns the time in seconds since the player connected.
|
|
3018
2209
|
*
|
|
@@ -3021,9 +2212,6 @@ interface Player {
|
|
|
3021
2212
|
* @source https://wiki.facepunch.com/gmod/Player:TimeConnected
|
|
3022
2213
|
*/
|
|
3023
2214
|
TimeConnected(self: Player): number;
|
|
3024
|
-
}
|
|
3025
|
-
|
|
3026
|
-
interface Player {
|
|
3027
2215
|
/**
|
|
3028
2216
|
* Performs a trace hull and applies damage to the entities hit, returns the first entity hit.
|
|
3029
2217
|
*
|
|
@@ -3034,18 +2222,12 @@ interface Player {
|
|
|
3034
2222
|
* @source https://wiki.facepunch.com/gmod/Player:TraceHullAttack
|
|
3035
2223
|
*/
|
|
3036
2224
|
TraceHullAttack(self: Player, startPos: Vector, endPos: Vector, mins: Vector, maxs: Vector, damage: number, damageFlags: number, damageForce: number, damageAllNPCs: boolean): Entity;
|
|
3037
|
-
}
|
|
3038
|
-
|
|
3039
|
-
interface Player {
|
|
3040
2225
|
/**
|
|
3041
2226
|
* Translates [Enums/ACT](https://wiki.facepunch.com/gmod/Enums/ACT) according to the holdtype of players currently held weapon.
|
|
3042
2227
|
* @realm shared
|
|
3043
2228
|
* @source https://wiki.facepunch.com/gmod/Player:TranslateWeaponActivity
|
|
3044
2229
|
*/
|
|
3045
2230
|
TranslateWeaponActivity(self: Player, act: number): number;
|
|
3046
|
-
}
|
|
3047
|
-
|
|
3048
|
-
interface Player {
|
|
3049
2231
|
/**
|
|
3050
2232
|
* Unlocks the player movement if locked previously.
|
|
3051
2233
|
*
|
|
@@ -3055,9 +2237,6 @@ interface Player {
|
|
|
3055
2237
|
* @source https://wiki.facepunch.com/gmod/Player:UnLock
|
|
3056
2238
|
*/
|
|
3057
2239
|
UnLock(self: Player): void;
|
|
3058
|
-
}
|
|
3059
|
-
|
|
3060
|
-
interface Player {
|
|
3061
2240
|
/**
|
|
3062
2241
|
* Removes the player from the spectate mode entirely.
|
|
3063
2242
|
*
|
|
@@ -3067,18 +2246,12 @@ interface Player {
|
|
|
3067
2246
|
* @source https://wiki.facepunch.com/gmod/Player:UnSpectate
|
|
3068
2247
|
*/
|
|
3069
2248
|
UnSpectate(self: Player): void;
|
|
3070
|
-
}
|
|
3071
|
-
|
|
3072
|
-
interface Player {
|
|
3073
2249
|
/**
|
|
3074
2250
|
* Unfreezes all objects the player has frozen with their Physics Gun. Same as double pressing R while holding Physics Gun.
|
|
3075
2251
|
* @realm shared
|
|
3076
2252
|
* @source https://wiki.facepunch.com/gmod/Player:UnfreezePhysicsObjects
|
|
3077
2253
|
*/
|
|
3078
2254
|
UnfreezePhysicsObjects(self: Player): void;
|
|
3079
|
-
}
|
|
3080
|
-
|
|
3081
|
-
interface Player {
|
|
3082
2255
|
/**
|
|
3083
2256
|
* Returns a 32 bit integer that remains constant for a player across joins/leaves and across different servers. This can be used when a string is inappropriate - e.g. in a database primary key.
|
|
3084
2257
|
*
|
|
@@ -3093,9 +2266,6 @@ interface Player {
|
|
|
3093
2266
|
* @deprecated **This function has collisions,** where more than one player can have the same UniqueID. It is **highly** recommended to use Player:SteamID64, Player:SteamID or Player:AccountID instead, which are guaranteed to be unique to each player.
|
|
3094
2267
|
*/
|
|
3095
2268
|
UniqueID(self: Player): number;
|
|
3096
|
-
}
|
|
3097
|
-
|
|
3098
|
-
interface Player {
|
|
3099
2269
|
/**
|
|
3100
2270
|
* Returns a table that will stay allocated for the specific player serverside between connects until the server shuts down or change map. On client it has no such special behavior.
|
|
3101
2271
|
*
|
|
@@ -3106,9 +2276,6 @@ interface Player {
|
|
|
3106
2276
|
* @source https://wiki.facepunch.com/gmod/Player:UniqueIDTable
|
|
3107
2277
|
*/
|
|
3108
2278
|
UniqueIDTable(self: Player, key: any): table;
|
|
3109
|
-
}
|
|
3110
|
-
|
|
3111
|
-
interface Player {
|
|
3112
2279
|
/**
|
|
3113
2280
|
* Returns the player's user ID. This number will always be unique, but will reset if the player reconnects. (Always increments for each connecting player)
|
|
3114
2281
|
*
|
|
@@ -3118,9 +2285,6 @@ interface Player {
|
|
|
3118
2285
|
* @source https://wiki.facepunch.com/gmod/Player:UserID
|
|
3119
2286
|
*/
|
|
3120
2287
|
UserID(self: Player): number;
|
|
3121
|
-
}
|
|
3122
|
-
|
|
3123
|
-
interface Player {
|
|
3124
2288
|
/**
|
|
3125
2289
|
* Simulates a push on the client's screen. This **adds** view punch velocity, and does not reset the current view punch angle, for which you can use [Player:SetViewPunchAngles](https://wiki.facepunch.com/gmod/Player:SetViewPunchAngles).
|
|
3126
2290
|
*
|
|
@@ -3131,18 +2295,12 @@ interface Player {
|
|
|
3131
2295
|
* @source https://wiki.facepunch.com/gmod/Player:ViewPunch
|
|
3132
2296
|
*/
|
|
3133
2297
|
ViewPunch(self: Player, punchAngle: Angle): void;
|
|
3134
|
-
}
|
|
3135
|
-
|
|
3136
|
-
interface Player {
|
|
3137
2298
|
/**
|
|
3138
2299
|
* Resets the player's view punch (and the view punch velocity, read more at [Player:ViewPunch](https://wiki.facepunch.com/gmod/Player:ViewPunch)) effect back to normal.
|
|
3139
2300
|
* @realm shared
|
|
3140
2301
|
* @source https://wiki.facepunch.com/gmod/Player:ViewPunchReset
|
|
3141
2302
|
*/
|
|
3142
2303
|
ViewPunchReset(self: Player, tolerance?: number): void;
|
|
3143
|
-
}
|
|
3144
|
-
|
|
3145
|
-
interface Player {
|
|
3146
2304
|
/**
|
|
3147
2305
|
* Returns the players voice volume, how loud the player's voice communication currently is, as a number in range of [0,1].
|
|
3148
2306
|
*
|
|
@@ -3151,6 +2309,292 @@ interface Player {
|
|
|
3151
2309
|
*/
|
|
3152
2310
|
VoiceVolume(self: Player): number;
|
|
3153
2311
|
}
|
|
2312
|
+
|
|
2313
|
+
/**
|
|
2314
|
+
* The player library is used to get the Lua objects that represent players in-game.
|
|
2315
|
+
* @source https://wiki.facepunch.com/gmod/player(library)
|
|
2316
|
+
*/
|
|
2317
|
+
declare player: PlayerLib;
|
|
2318
|
+
|
|
2319
|
+
|
|
2320
|
+
|
|
2321
|
+
|
|
2322
|
+
|
|
2323
|
+
|
|
2324
|
+
|
|
2325
|
+
|
|
2326
|
+
|
|
2327
|
+
|
|
2328
|
+
|
|
2329
|
+
|
|
2330
|
+
|
|
2331
|
+
|
|
2332
|
+
|
|
2333
|
+
|
|
2334
|
+
|
|
2335
|
+
|
|
2336
|
+
|
|
2337
|
+
|
|
2338
|
+
|
|
2339
|
+
|
|
2340
|
+
|
|
2341
|
+
|
|
2342
|
+
|
|
2343
|
+
|
|
2344
|
+
|
|
2345
|
+
|
|
2346
|
+
|
|
2347
|
+
|
|
2348
|
+
|
|
2349
|
+
|
|
2350
|
+
|
|
2351
|
+
|
|
2352
|
+
|
|
2353
|
+
|
|
2354
|
+
|
|
2355
|
+
|
|
2356
|
+
|
|
2357
|
+
|
|
2358
|
+
|
|
2359
|
+
|
|
2360
|
+
|
|
2361
|
+
|
|
2362
|
+
|
|
2363
|
+
|
|
2364
|
+
|
|
2365
|
+
|
|
2366
|
+
|
|
2367
|
+
|
|
2368
|
+
|
|
2369
|
+
|
|
2370
|
+
|
|
2371
|
+
|
|
2372
|
+
|
|
2373
|
+
|
|
2374
|
+
|
|
2375
|
+
|
|
2376
|
+
|
|
2377
|
+
|
|
2378
|
+
|
|
2379
|
+
|
|
2380
|
+
|
|
2381
|
+
|
|
2382
|
+
|
|
2383
|
+
|
|
2384
|
+
|
|
2385
|
+
|
|
2386
|
+
|
|
2387
|
+
|
|
2388
|
+
|
|
2389
|
+
|
|
2390
|
+
|
|
2391
|
+
|
|
2392
|
+
|
|
2393
|
+
|
|
2394
|
+
|
|
2395
|
+
|
|
2396
|
+
|
|
2397
|
+
|
|
2398
|
+
|
|
2399
|
+
|
|
2400
|
+
|
|
2401
|
+
|
|
2402
|
+
|
|
2403
|
+
|
|
2404
|
+
|
|
2405
|
+
|
|
2406
|
+
|
|
2407
|
+
|
|
2408
|
+
|
|
2409
|
+
|
|
2410
|
+
|
|
2411
|
+
|
|
2412
|
+
|
|
2413
|
+
|
|
2414
|
+
|
|
2415
|
+
|
|
2416
|
+
|
|
2417
|
+
|
|
2418
|
+
|
|
2419
|
+
|
|
2420
|
+
|
|
2421
|
+
|
|
2422
|
+
|
|
2423
|
+
|
|
2424
|
+
|
|
2425
|
+
|
|
2426
|
+
|
|
2427
|
+
|
|
2428
|
+
|
|
2429
|
+
|
|
2430
|
+
|
|
2431
|
+
|
|
2432
|
+
|
|
2433
|
+
|
|
2434
|
+
|
|
2435
|
+
|
|
2436
|
+
|
|
2437
|
+
|
|
2438
|
+
|
|
2439
|
+
|
|
2440
|
+
|
|
2441
|
+
|
|
2442
|
+
|
|
2443
|
+
|
|
2444
|
+
|
|
2445
|
+
|
|
2446
|
+
|
|
2447
|
+
|
|
2448
|
+
|
|
2449
|
+
|
|
2450
|
+
|
|
2451
|
+
|
|
2452
|
+
|
|
2453
|
+
|
|
2454
|
+
|
|
2455
|
+
|
|
2456
|
+
|
|
2457
|
+
|
|
2458
|
+
|
|
2459
|
+
|
|
2460
|
+
|
|
2461
|
+
|
|
2462
|
+
|
|
2463
|
+
|
|
2464
|
+
|
|
2465
|
+
|
|
2466
|
+
|
|
2467
|
+
|
|
2468
|
+
|
|
2469
|
+
|
|
2470
|
+
|
|
2471
|
+
|
|
2472
|
+
|
|
2473
|
+
|
|
2474
|
+
|
|
2475
|
+
|
|
2476
|
+
|
|
2477
|
+
|
|
2478
|
+
|
|
2479
|
+
|
|
2480
|
+
|
|
2481
|
+
|
|
2482
|
+
|
|
2483
|
+
|
|
2484
|
+
|
|
2485
|
+
|
|
2486
|
+
|
|
2487
|
+
|
|
2488
|
+
|
|
2489
|
+
|
|
2490
|
+
|
|
2491
|
+
|
|
2492
|
+
|
|
2493
|
+
|
|
2494
|
+
|
|
2495
|
+
|
|
2496
|
+
|
|
2497
|
+
|
|
2498
|
+
|
|
2499
|
+
|
|
2500
|
+
|
|
2501
|
+
|
|
2502
|
+
|
|
2503
|
+
|
|
2504
|
+
|
|
2505
|
+
|
|
2506
|
+
|
|
2507
|
+
|
|
2508
|
+
|
|
2509
|
+
|
|
2510
|
+
|
|
2511
|
+
|
|
2512
|
+
|
|
2513
|
+
|
|
2514
|
+
|
|
2515
|
+
|
|
2516
|
+
|
|
2517
|
+
|
|
2518
|
+
|
|
2519
|
+
|
|
2520
|
+
|
|
2521
|
+
|
|
2522
|
+
|
|
2523
|
+
|
|
2524
|
+
|
|
2525
|
+
|
|
2526
|
+
|
|
2527
|
+
|
|
2528
|
+
|
|
2529
|
+
|
|
2530
|
+
|
|
2531
|
+
|
|
2532
|
+
|
|
2533
|
+
|
|
2534
|
+
|
|
2535
|
+
|
|
2536
|
+
|
|
2537
|
+
|
|
2538
|
+
|
|
2539
|
+
|
|
2540
|
+
|
|
2541
|
+
|
|
2542
|
+
|
|
2543
|
+
|
|
2544
|
+
|
|
2545
|
+
|
|
2546
|
+
|
|
2547
|
+
|
|
2548
|
+
|
|
2549
|
+
|
|
2550
|
+
|
|
2551
|
+
|
|
2552
|
+
|
|
2553
|
+
|
|
2554
|
+
|
|
2555
|
+
|
|
2556
|
+
|
|
2557
|
+
|
|
2558
|
+
|
|
2559
|
+
|
|
2560
|
+
|
|
2561
|
+
|
|
2562
|
+
|
|
2563
|
+
|
|
2564
|
+
|
|
2565
|
+
|
|
2566
|
+
|
|
2567
|
+
|
|
2568
|
+
|
|
2569
|
+
|
|
2570
|
+
|
|
2571
|
+
|
|
2572
|
+
|
|
2573
|
+
|
|
2574
|
+
|
|
2575
|
+
|
|
2576
|
+
|
|
2577
|
+
|
|
2578
|
+
|
|
2579
|
+
|
|
2580
|
+
|
|
2581
|
+
|
|
2582
|
+
|
|
2583
|
+
|
|
2584
|
+
|
|
2585
|
+
|
|
2586
|
+
|
|
2587
|
+
|
|
2588
|
+
|
|
2589
|
+
|
|
2590
|
+
|
|
2591
|
+
|
|
2592
|
+
|
|
2593
|
+
|
|
2594
|
+
|
|
2595
|
+
|
|
2596
|
+
|
|
2597
|
+
|
|
3154
2598
|
|
|
3155
2599
|
interface PlayerLib {
|
|
3156
2600
|
/**
|
|
@@ -3169,9 +2613,6 @@ interface PlayerLib {
|
|
|
3169
2613
|
* @source https://wiki.facepunch.com/gmod/player.CreateNextBot
|
|
3170
2614
|
*/
|
|
3171
2615
|
CreateNextBot(botName: string): Player;
|
|
3172
|
-
}
|
|
3173
|
-
|
|
3174
|
-
interface PlayerLib {
|
|
3175
2616
|
/**
|
|
3176
2617
|
* Gets all the current players in the server (not including connecting clients).
|
|
3177
2618
|
*
|
|
@@ -3184,18 +2625,12 @@ interface PlayerLib {
|
|
|
3184
2625
|
* @source https://wiki.facepunch.com/gmod/player.GetAll
|
|
3185
2626
|
*/
|
|
3186
2627
|
GetAll(): Player[];
|
|
3187
|
-
}
|
|
3188
|
-
|
|
3189
|
-
interface PlayerLib {
|
|
3190
2628
|
/**
|
|
3191
2629
|
* Returns a table of all bots on the server.
|
|
3192
2630
|
* @realm shared
|
|
3193
2631
|
* @source https://wiki.facepunch.com/gmod/player.GetBots
|
|
3194
2632
|
*/
|
|
3195
2633
|
GetBots(): Player[];
|
|
3196
|
-
}
|
|
3197
|
-
|
|
3198
|
-
interface PlayerLib {
|
|
3199
2634
|
/**
|
|
3200
2635
|
* Tried to get the player with the specified [Player:AccountID](https://wiki.facepunch.com/gmod/Player:AccountID).
|
|
3201
2636
|
* **WARNING**: Internally this function iterates over all players in the server, meaning it can be quite expensive in a performance-critical context.
|
|
@@ -3205,9 +2640,6 @@ interface PlayerLib {
|
|
|
3205
2640
|
* @source https://wiki.facepunch.com/gmod/player.GetByAccountID
|
|
3206
2641
|
*/
|
|
3207
2642
|
GetByAccountID(accountID: number): Player | boolean;
|
|
3208
|
-
}
|
|
3209
|
-
|
|
3210
|
-
interface PlayerLib {
|
|
3211
2643
|
/**
|
|
3212
2644
|
* Gets the player with the specified connection ID.
|
|
3213
2645
|
*
|
|
@@ -3222,9 +2654,6 @@ interface PlayerLib {
|
|
|
3222
2654
|
* @source https://wiki.facepunch.com/gmod/player.GetByID
|
|
3223
2655
|
*/
|
|
3224
2656
|
GetByID(connectionID: number): Player | NULL;
|
|
3225
|
-
}
|
|
3226
|
-
|
|
3227
|
-
interface PlayerLib {
|
|
3228
2657
|
/**
|
|
3229
2658
|
* Gets the player with the specified SteamID.
|
|
3230
2659
|
* **WARNING**: Internally this function iterates over all players in the server, meaning it can be quite expensive in a performance-critical context.
|
|
@@ -3234,9 +2663,6 @@ interface PlayerLib {
|
|
|
3234
2663
|
* @source https://wiki.facepunch.com/gmod/player.GetBySteamID
|
|
3235
2664
|
*/
|
|
3236
2665
|
GetBySteamID(steamID: string): Player | boolean;
|
|
3237
|
-
}
|
|
3238
|
-
|
|
3239
|
-
interface PlayerLib {
|
|
3240
2666
|
/**
|
|
3241
2667
|
* Gets the player with the specified SteamID64.
|
|
3242
2668
|
* **WARNING**: Internally this function iterates over all players in the server, meaning it can be quite expensive in a performance-critical context.
|
|
@@ -3246,9 +2672,6 @@ interface PlayerLib {
|
|
|
3246
2672
|
* @source https://wiki.facepunch.com/gmod/player.GetBySteamID64
|
|
3247
2673
|
*/
|
|
3248
2674
|
GetBySteamID64(steamID64: string): Player | boolean;
|
|
3249
|
-
}
|
|
3250
|
-
|
|
3251
|
-
interface PlayerLib {
|
|
3252
2675
|
/**
|
|
3253
2676
|
* Gets the player with the specified uniqueID (not recommended way to identify players).
|
|
3254
2677
|
*
|
|
@@ -3262,9 +2685,6 @@ interface PlayerLib {
|
|
|
3262
2685
|
* @deprecated Use player.GetBySteamID64, player.GetBySteamID or player.GetByAccountID to get a player by a unique identifier instead.
|
|
3263
2686
|
*/
|
|
3264
2687
|
GetByUniqueID(uniqueID: string): Player | boolean;
|
|
3265
|
-
}
|
|
3266
|
-
|
|
3267
|
-
interface PlayerLib {
|
|
3268
2688
|
/**
|
|
3269
2689
|
* Returns the active player count.
|
|
3270
2690
|
*
|
|
@@ -3277,9 +2697,6 @@ interface PlayerLib {
|
|
|
3277
2697
|
* @source https://wiki.facepunch.com/gmod/player.GetCount
|
|
3278
2698
|
*/
|
|
3279
2699
|
GetCount(): number;
|
|
3280
|
-
}
|
|
3281
|
-
|
|
3282
|
-
interface PlayerLib {
|
|
3283
2700
|
/**
|
|
3284
2701
|
* Returns the amount of players connecting to the server, but not yet spawned in.
|
|
3285
2702
|
*
|
|
@@ -3290,9 +2707,6 @@ interface PlayerLib {
|
|
|
3290
2707
|
* @source https://wiki.facepunch.com/gmod/player.GetCountConnecting
|
|
3291
2708
|
*/
|
|
3292
2709
|
GetCountConnecting(): number;
|
|
3293
|
-
}
|
|
3294
|
-
|
|
3295
|
-
interface PlayerLib {
|
|
3296
2710
|
/**
|
|
3297
2711
|
* Returns a table containing all human players (non-bot/AI).
|
|
3298
2712
|
*
|
|
@@ -3304,9 +2718,6 @@ interface PlayerLib {
|
|
|
3304
2718
|
* @source https://wiki.facepunch.com/gmod/player.GetHumans
|
|
3305
2719
|
*/
|
|
3306
2720
|
GetHumans(): Player[];
|
|
3307
|
-
}
|
|
3308
|
-
|
|
3309
|
-
interface PlayerLib {
|
|
3310
2721
|
/**
|
|
3311
2722
|
* Returns a stateless iterator for all players on the server, intended for use
|
|
3312
2723
|
* in generic for-loops. Uses cached Lua values, so it is more efficient than
|
|
@@ -3318,3 +2729,14 @@ interface PlayerLib {
|
|
|
3318
2729
|
}
|
|
3319
2730
|
|
|
3320
2731
|
|
|
2732
|
+
|
|
2733
|
+
|
|
2734
|
+
|
|
2735
|
+
|
|
2736
|
+
|
|
2737
|
+
|
|
2738
|
+
|
|
2739
|
+
|
|
2740
|
+
|
|
2741
|
+
|
|
2742
|
+
|