@tlua/gmod 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.tlua +1 -0
- package/package.json +1 -1
- package/types/achievements.d.tlua +15 -45
- package/types/ai.d.tlua +5 -15
- package/types/angle.d.tlua +18 -54
- package/types/baseclass.d.tlua +2 -4
- package/types/bf_read.d.tlua +11 -32
- package/types/bit.d.tlua +11 -33
- package/types/cam.d.tlua +16 -48
- package/types/ceffectdata.d.tlua +32 -95
- package/types/chat.d.tlua +5 -15
- package/types/cleanup.d.tlua +7 -21
- package/types/cluaemitter.d.tlua +12 -35
- package/types/clualocomotion.d.tlua +40 -119
- package/types/cluaparticle.d.tlua +44 -131
- package/types/cmovedata.d.tlua +47 -140
- package/types/cnavarea.d.tlua +77 -230
- package/types/cnavladder.d.tlua +22 -65
- package/types/cnewparticleeffect.d.tlua +26 -77
- package/types/color.d.tlua +28 -84
- package/types/concommand.d.tlua +4 -12
- package/types/constraint.d.tlua +28 -84
- package/types/construct.d.tlua +1 -3
- package/types/contentheader.d.tlua +3 -6
- package/types/contenticon.d.tlua +9 -24
- package/types/contentsidebar.d.tlua +4 -9
- package/types/contextbase.d.tlua +4 -9
- package/types/controlpanel.d.tlua +18 -40
- package/types/controlpresets.d.tlua +13 -36
- package/types/convar.d.tlua +16 -47
- package/types/cookie.d.tlua +3 -9
- package/types/coroutine.d.tlua +7 -21
- package/types/crecipientfilter.d.tlua +16 -47
- package/types/csoundpatch.d.tlua +14 -41
- package/types/ctakedamageinfo.d.tlua +33 -98
- package/types/ctrlnumpad.d.tlua +6 -17
- package/types/cusercmd.d.tlua +27 -80
- package/types/cvars.d.tlua +6 -18
- package/types/dadjustablemodelpanel.d.tlua +7 -18
- package/types/dalphabar.d.tlua +3 -6
- package/types/dbinder.d.tlua +4 -9
- package/types/dbubblecontainer.d.tlua +2 -3
- package/types/dbutton.d.tlua +8 -21
- package/types/dcheckbox.d.tlua +5 -12
- package/types/dcheckboxlabel.d.tlua +9 -27
- package/types/dcollapsiblecategory.d.tlua +23 -66
- package/types/dcolorbutton.d.tlua +7 -18
- package/types/dcolorcombo.d.tlua +5 -12
- package/types/dcolorcube.d.tlua +13 -36
- package/types/dcolormixer.d.tlua +27 -78
- package/types/dcolorpalette.d.tlua +23 -66
- package/types/dcolumnsheet.d.tlua +5 -12
- package/types/dcombobox.d.tlua +17 -48
- package/types/ddragbase.d.tlua +13 -36
- package/types/ddrawer.d.tlua +8 -21
- package/types/debug.d.tlua +44 -76
- package/types/debugoverlay.d.tlua +11 -33
- package/types/dentityproperties.d.tlua +5 -12
- package/types/derma.d.tlua +10 -30
- package/types/dexpandbutton.d.tlua +3 -6
- package/types/dfilebrowser.d.tlua +20 -60
- package/types/dform.d.tlua +18 -51
- package/types/dframe.d.tlua +24 -72
- package/types/dgrid.d.tlua +11 -30
- package/types/dhorizontaldivider.d.tlua +20 -57
- package/types/dhorizontalscroller.d.tlua +11 -30
- package/types/dhscrollbar.d.tlua +11 -30
- package/types/dhtml.d.tlua +8 -21
- package/types/dhtmlcontrols.d.tlua +5 -15
- package/types/diconbrowser.d.tlua +11 -30
- package/types/diconlayout.d.tlua +18 -51
- package/types/dimage.d.tlua +20 -55
- package/types/dimagebutton.d.tlua +9 -27
- package/types/dlabel.d.tlua +33 -96
- package/types/dlabeleditable.d.tlua +5 -12
- package/types/dlabelurl.d.tlua +10 -27
- package/types/dlistbox.d.tlua +8 -21
- package/types/dlistboxitem.d.tlua +4 -9
- package/types/dlistview.d.tlua +34 -99
- package/types/dlistview_column.d.tlua +14 -39
- package/types/dlistview_line.d.tlua +13 -36
- package/types/dmenu.d.tlua +28 -75
- package/types/dmenubar.d.tlua +6 -11
- package/types/dmenuoption.d.tlua +13 -36
- package/types/dmenuoptioncvar.d.tlua +6 -15
- package/types/dmodelpanel.d.tlua +22 -63
- package/types/dmodelselect.d.tlua +2 -3
- package/types/dmodelselectmulti.d.tlua +2 -3
- package/types/dnotify.d.tlua +10 -27
- package/types/dnumberscratch.d.tlua +26 -75
- package/types/dnumberwang.d.tlua +16 -45
- package/types/dnumslider.d.tlua +17 -51
- package/types/dpanel.d.tlua +14 -39
- package/types/dpanellist.d.tlua +11 -33
- package/types/dpaneloverlay.d.tlua +7 -18
- package/types/dpanpanel.d.tlua +6 -15
- package/types/dprogress.d.tlua +3 -6
- package/types/dproperties.d.tlua +4 -9
- package/types/dproperty_combo.d.tlua +3 -6
- package/types/dproperty_generic.d.tlua +5 -12
- package/types/dpropertysheet.d.tlua +26 -56
- package/types/dragndrop.d.tlua +10 -30
- package/types/draw.d.tlua +11 -31
- package/types/drgbpicker.d.tlua +4 -9
- package/types/drive.d.tlua +18 -41
- package/types/dscrollpanel.d.tlua +10 -30
- package/types/dshape.d.tlua +7 -18
- package/types/dsizetocontents.d.tlua +5 -12
- package/types/dslider.d.tlua +28 -81
- package/types/dsprite.d.tlua +9 -24
- package/types/dtab.d.tlua +8 -21
- package/types/dtextentry.d.tlua +43 -126
- package/types/dtilelayout.d.tlua +21 -60
- package/types/dtooltip.d.tlua +6 -15
- package/types/dtree.d.tlua +16 -45
- package/types/dtree_node.d.tlua +68 -201
- package/types/duplicator.d.tlua +30 -88
- package/types/dverticaldivider.d.tlua +23 -66
- package/types/dvscrollbar.d.tlua +11 -30
- package/types/effect.d.tlua +4 -9
- package/types/effects.d.tlua +6 -18
- package/types/engine.d.tlua +21 -63
- package/types/entity.d.tlua +676 -1962
- package/types/ents.d.tlua +23 -61
- package/types/file.d.tlua +39 -117
- package/types/frame_blend.d.tlua +7 -21
- package/types/game.d.tlua +39 -117
- package/types/gameevent.d.tlua +4 -8
- package/types/gamemode.d.tlua +3 -7
- package/types/gm.d.tlua +267 -800
- package/types/gmsave.d.tlua +4 -12
- package/types/gui.d.tlua +21 -63
- package/types/gwen.d.tlua +3 -9
- package/types/halo.d.tlua +2 -6
- package/types/hook.d.tlua +8 -17
- package/types/hook_events.d.tlua +2412 -0
- package/types/http.d.tlua +1 -3
- package/types/iconeditor.d.tlua +11 -30
- package/types/igmodaudiochannel.d.tlua +41 -122
- package/types/imagecheckbox.d.tlua +4 -9
- package/types/imaterial.d.tlua +26 -77
- package/types/imesh.d.tlua +5 -14
- package/types/input.d.tlua +24 -68
- package/types/irestore.d.tlua +9 -26
- package/types/isave.d.tlua +9 -26
- package/types/itexture.d.tlua +10 -29
- package/types/ivideowriter.d.tlua +5 -14
- package/types/jit.d.tlua +21 -53
- package/types/killicon.d.tlua +7 -21
- package/types/language.d.tlua +1 -3
- package/types/list.d.tlua +8 -24
- package/types/markup.d.tlua +2 -6
- package/types/markupobject.d.tlua +5 -14
- package/types/math.d.tlua +277 -447
- package/types/matproxy.d.tlua +3 -9
- package/types/matselect.d.tlua +11 -30
- package/types/menubar.d.tlua +2 -6
- package/types/mesh.d.tlua +19 -57
- package/types/motionsensor.d.tlua +10 -30
- package/types/navmesh.d.tlua +26 -78
- package/types/net.d.tlua +52 -154
- package/types/nextbot.d.tlua +46 -116
- package/types/notification.d.tlua +2 -6
- package/types/npc.d.tlua +182 -543
- package/types/numpad.d.tlua +7 -21
- package/types/os.d.tlua +4 -10
- package/types/panel.d.tlua +333 -991
- package/types/pathfollower.d.tlua +31 -92
- package/types/permissions.d.tlua +6 -18
- package/types/physcollide.d.tlua +3 -8
- package/types/physenv.d.tlua +11 -33
- package/types/physobj.d.tlua +78 -233
- package/types/player.d.tlua +302 -880
- package/types/player_manager.d.tlua +13 -39
- package/types/presets.d.tlua +6 -18
- package/types/projectedtexture.d.tlua +48 -143
- package/types/properties.d.tlua +5 -15
- package/types/propselect.d.tlua +5 -12
- package/types/render.d.tlua +142 -426
- package/types/resource.d.tlua +2 -6
- package/types/sandbox.d.tlua +54 -159
- package/types/saverestore.d.tlua +12 -36
- package/types/schedule.d.tlua +6 -17
- package/types/scripted_ents.d.tlua +11 -29
- package/types/search.d.tlua +1 -3
- package/types/serverlist.d.tlua +7 -21
- package/types/sound.d.tlua +10 -30
- package/types/spawnicon.d.tlua +8 -21
- package/types/spawnmenu.d.tlua +24 -70
- package/types/spawnmenucontentpanel.d.tlua +5 -12
- package/types/sql.d.tlua +9 -27
- package/types/stack.d.tlua +5 -14
- package/types/steamworks.d.tlua +18 -54
- package/types/string.d.tlua +49 -141
- package/types/surface.d.tlua +34 -102
- package/types/surfaceinfo.d.tlua +5 -14
- package/types/system.d.tlua +10 -30
- package/types/table.d.tlua +47 -137
- package/types/task.d.tlua +9 -26
- package/types/team.d.tlua +19 -57
- package/types/timer.d.tlua +14 -42
- package/types/tool.d.tlua +46 -131
- package/types/ugcpublishwindow.d.tlua +9 -24
- package/types/umsg.d.tlua +12 -36
- package/types/undo.d.tlua +10 -30
- package/types/usermessage.d.tlua +2 -6
- package/types/utf8.d.tlua +7 -21
- package/types/util.d.tlua +94 -274
- package/types/vector.d.tlua +36 -108
- package/types/vehicle.d.tlua +52 -149
- package/types/vgui.d.tlua +18 -46
- package/types/vmatrix.d.tlua +35 -105
- package/types/weapon.d.tlua +85 -248
- package/types/weapons.d.tlua +6 -16
- package/types/widgets.d.tlua +1 -3
- package/types/workshopfilebase.d.tlua +5 -14
package/types/cmovedata.d.tlua
CHANGED
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
* This can only be accessed during [GM:SetupMove](https://wiki.facepunch.com/gmod/GM:SetupMove) , [GM:Move](https://wiki.facepunch.com/gmod/GM:Move) , [GM:PlayerTick](https://wiki.facepunch.com/gmod/GM:PlayerTick) and [GM:FinishMove](https://wiki.facepunch.com/gmod/GM:FinishMove).
|
|
7
7
|
* @source https://wiki.facepunch.com/gmod/CMoveData
|
|
8
8
|
*/
|
|
9
|
-
interface CMoveData {}
|
|
10
|
-
|
|
11
9
|
interface CMoveData {
|
|
12
10
|
/**
|
|
13
11
|
* Adds keys to the move data, as if player pressed them.
|
|
@@ -15,72 +13,48 @@ interface CMoveData {
|
|
|
15
13
|
* @source https://wiki.facepunch.com/gmod/CMoveData:AddKey
|
|
16
14
|
*/
|
|
17
15
|
AddKey(self: CMoveData, keys: number): void;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
interface CMoveData {
|
|
21
16
|
/**
|
|
22
17
|
* Gets the aim angle. Seems to be same as [CMoveData:GetAngles](https://wiki.facepunch.com/gmod/CMoveData:GetAngles).
|
|
23
18
|
* @realm shared
|
|
24
19
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetAbsMoveAngles
|
|
25
20
|
*/
|
|
26
21
|
GetAbsMoveAngles(self: CMoveData): Angle;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface CMoveData {
|
|
30
22
|
/**
|
|
31
23
|
* Gets the aim angle. On client is the same as [Entity:GetAngles](https://wiki.facepunch.com/gmod/Entity:GetAngles).
|
|
32
24
|
* @realm shared
|
|
33
25
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetAngles
|
|
34
26
|
*/
|
|
35
27
|
GetAngles(self: CMoveData): Angle;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface CMoveData {
|
|
39
28
|
/**
|
|
40
29
|
* Gets which buttons are down
|
|
41
30
|
* @realm shared
|
|
42
31
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetButtons
|
|
43
32
|
*/
|
|
44
33
|
GetButtons(self: CMoveData): number;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface CMoveData {
|
|
48
34
|
/**
|
|
49
35
|
* Returns the center of the player movement constraint. See [CMoveData:SetConstraintCenter](https://wiki.facepunch.com/gmod/CMoveData:SetConstraintCenter).
|
|
50
36
|
* @realm shared
|
|
51
37
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetConstraintCenter
|
|
52
38
|
*/
|
|
53
39
|
GetConstraintCenter(self: CMoveData): Vector;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
interface CMoveData {
|
|
57
40
|
/**
|
|
58
41
|
* Returns the radius that constrains the players movement. See [CMoveData:SetConstraintRadius](https://wiki.facepunch.com/gmod/CMoveData:SetConstraintRadius).
|
|
59
42
|
* @realm shared
|
|
60
43
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetConstraintRadius
|
|
61
44
|
*/
|
|
62
45
|
GetConstraintRadius(self: CMoveData): number;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
interface CMoveData {
|
|
66
46
|
/**
|
|
67
47
|
* Returns the player movement constraint speed scale. See [CMoveData:SetConstraintSpeedScale](https://wiki.facepunch.com/gmod/CMoveData:SetConstraintSpeedScale).
|
|
68
48
|
* @realm shared
|
|
69
49
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetConstraintSpeedScale
|
|
70
50
|
*/
|
|
71
51
|
GetConstraintSpeedScale(self: CMoveData): number;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface CMoveData {
|
|
75
52
|
/**
|
|
76
53
|
* Returns the width (distance from the edge of the radius, inward) where the actual movement constraint functions.
|
|
77
54
|
* @realm shared
|
|
78
55
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetConstraintWidth
|
|
79
56
|
*/
|
|
80
57
|
GetConstraintWidth(self: CMoveData): number;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
interface CMoveData {
|
|
84
58
|
/**
|
|
85
59
|
* Returns an internal player movement variable `m_outWishVel`.
|
|
86
60
|
*
|
|
@@ -88,9 +62,6 @@ interface CMoveData {
|
|
|
88
62
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetFinalIdealVelocity
|
|
89
63
|
*/
|
|
90
64
|
GetFinalIdealVelocity(self: CMoveData): Vector;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
interface CMoveData {
|
|
94
65
|
/**
|
|
95
66
|
* Returns an internal player movement variable `m_outJumpVel`.
|
|
96
67
|
*
|
|
@@ -98,9 +69,6 @@ interface CMoveData {
|
|
|
98
69
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetFinalJumpVelocity
|
|
99
70
|
*/
|
|
100
71
|
GetFinalJumpVelocity(self: CMoveData): Vector;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
interface CMoveData {
|
|
104
72
|
/**
|
|
105
73
|
* Returns an internal player movement variable `m_outStepHeight`.
|
|
106
74
|
*
|
|
@@ -108,99 +76,66 @@ interface CMoveData {
|
|
|
108
76
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetFinalStepHeight
|
|
109
77
|
*/
|
|
110
78
|
GetFinalStepHeight(self: CMoveData): number;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
interface CMoveData {
|
|
114
79
|
/**
|
|
115
80
|
* Returns the players forward speed.
|
|
116
81
|
* @realm shared
|
|
117
82
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetForwardSpeed
|
|
118
83
|
*/
|
|
119
84
|
GetForwardSpeed(self: CMoveData): number;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
interface CMoveData {
|
|
123
85
|
/**
|
|
124
86
|
* Gets the number passed to "impulse" console command
|
|
125
87
|
* @realm shared
|
|
126
88
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetImpulseCommand
|
|
127
89
|
*/
|
|
128
90
|
GetImpulseCommand(self: CMoveData): number;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
interface CMoveData {
|
|
132
91
|
/**
|
|
133
92
|
* Returns the maximum client speed of the player
|
|
134
93
|
* @realm shared
|
|
135
94
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetMaxClientSpeed
|
|
136
95
|
*/
|
|
137
96
|
GetMaxClientSpeed(self: CMoveData): number;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
interface CMoveData {
|
|
141
97
|
/**
|
|
142
98
|
* Returns the maximum speed of the player.
|
|
143
99
|
* @realm shared
|
|
144
100
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetMaxSpeed
|
|
145
101
|
*/
|
|
146
102
|
GetMaxSpeed(self: CMoveData): number;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
interface CMoveData {
|
|
150
103
|
/**
|
|
151
104
|
* Returns the angle the player is moving at. For more info, see [CMoveData:SetMoveAngles](https://wiki.facepunch.com/gmod/CMoveData:SetMoveAngles).
|
|
152
105
|
* @realm shared
|
|
153
106
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetMoveAngles
|
|
154
107
|
*/
|
|
155
108
|
GetMoveAngles(self: CMoveData): Angle;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
interface CMoveData {
|
|
159
109
|
/**
|
|
160
110
|
* Gets the aim angle. Only works clientside, server returns same as [CMoveData:GetAngles](https://wiki.facepunch.com/gmod/CMoveData:GetAngles).
|
|
161
111
|
* @realm shared
|
|
162
112
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetOldAngles
|
|
163
113
|
*/
|
|
164
114
|
GetOldAngles(self: CMoveData): Angle;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
interface CMoveData {
|
|
168
115
|
/**
|
|
169
116
|
* Get which buttons were down last frame
|
|
170
117
|
* @realm shared
|
|
171
118
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetOldButtons
|
|
172
119
|
*/
|
|
173
120
|
GetOldButtons(self: CMoveData): number;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
interface CMoveData {
|
|
177
121
|
/**
|
|
178
122
|
* Gets the player's position.
|
|
179
123
|
* @realm shared
|
|
180
124
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetOrigin
|
|
181
125
|
*/
|
|
182
126
|
GetOrigin(self: CMoveData): Vector;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
interface CMoveData {
|
|
186
127
|
/**
|
|
187
128
|
* Returns the strafe speed of the player.
|
|
188
129
|
* @realm shared
|
|
189
130
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetSideSpeed
|
|
190
131
|
*/
|
|
191
132
|
GetSideSpeed(self: CMoveData): number;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
interface CMoveData {
|
|
195
133
|
/**
|
|
196
134
|
* Returns the vertical speed of the player. ( Z axis of [CMoveData:GetVelocity](https://wiki.facepunch.com/gmod/CMoveData:GetVelocity) )
|
|
197
135
|
* @realm shared
|
|
198
136
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetUpSpeed
|
|
199
137
|
*/
|
|
200
138
|
GetUpSpeed(self: CMoveData): number;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
interface CMoveData {
|
|
204
139
|
/**
|
|
205
140
|
* Gets the players velocity.
|
|
206
141
|
*
|
|
@@ -210,36 +145,24 @@ interface CMoveData {
|
|
|
210
145
|
* @source https://wiki.facepunch.com/gmod/CMoveData:GetVelocity
|
|
211
146
|
*/
|
|
212
147
|
GetVelocity(self: CMoveData): Vector;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
interface CMoveData {
|
|
216
148
|
/**
|
|
217
149
|
* Returns whether the key is down or not
|
|
218
150
|
* @realm shared
|
|
219
151
|
* @source https://wiki.facepunch.com/gmod/CMoveData:KeyDown
|
|
220
152
|
*/
|
|
221
153
|
KeyDown(self: CMoveData, key: number): boolean;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
interface CMoveData {
|
|
225
154
|
/**
|
|
226
155
|
* Returns whether the key was pressed. If you want to check if the key is held down, try [CMoveData:KeyDown](https://wiki.facepunch.com/gmod/CMoveData:KeyDown)
|
|
227
156
|
* @realm shared
|
|
228
157
|
* @source https://wiki.facepunch.com/gmod/CMoveData:KeyPressed
|
|
229
158
|
*/
|
|
230
159
|
KeyPressed(self: CMoveData, key: number): boolean;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
interface CMoveData {
|
|
234
160
|
/**
|
|
235
161
|
* Returns whether the key was released
|
|
236
162
|
* @realm shared
|
|
237
163
|
* @source https://wiki.facepunch.com/gmod/CMoveData:KeyReleased
|
|
238
164
|
*/
|
|
239
165
|
KeyReleased(self: CMoveData, key: number): boolean;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
interface CMoveData {
|
|
243
166
|
/**
|
|
244
167
|
* Returns whether the key was down or not.
|
|
245
168
|
*
|
|
@@ -252,18 +175,12 @@ interface CMoveData {
|
|
|
252
175
|
* @source https://wiki.facepunch.com/gmod/CMoveData:KeyWasDown
|
|
253
176
|
*/
|
|
254
177
|
KeyWasDown(self: CMoveData, key: number): boolean;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
interface CMoveData {
|
|
258
178
|
/**
|
|
259
179
|
* Sets absolute move angles.( ? ) Doesn't seem to do anything.
|
|
260
180
|
* @realm shared
|
|
261
181
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetAbsMoveAngles
|
|
262
182
|
*/
|
|
263
183
|
SetAbsMoveAngles(self: CMoveData, ang: Angle): void;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
interface CMoveData {
|
|
267
184
|
/**
|
|
268
185
|
* Sets angles.
|
|
269
186
|
*
|
|
@@ -273,27 +190,18 @@ interface CMoveData {
|
|
|
273
190
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetAngles
|
|
274
191
|
*/
|
|
275
192
|
SetAngles(self: CMoveData, ang: Angle): void;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
interface CMoveData {
|
|
279
193
|
/**
|
|
280
194
|
* Sets the pressed buttons on the move data
|
|
281
195
|
* @realm shared
|
|
282
196
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetButtons
|
|
283
197
|
*/
|
|
284
198
|
SetButtons(self: CMoveData, buttons: number): void;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
interface CMoveData {
|
|
288
199
|
/**
|
|
289
200
|
* Sets the center of the player movement constraint. See [CMoveData:SetConstraintRadius](https://wiki.facepunch.com/gmod/CMoveData:SetConstraintRadius).
|
|
290
201
|
* @realm shared
|
|
291
202
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetConstraintCenter
|
|
292
203
|
*/
|
|
293
204
|
SetConstraintCenter(self: CMoveData, pos: Vector): void;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
interface CMoveData {
|
|
297
205
|
/**
|
|
298
206
|
* Sets the radius that constrains the players movement.
|
|
299
207
|
*
|
|
@@ -306,27 +214,18 @@ interface CMoveData {
|
|
|
306
214
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetConstraintRadius
|
|
307
215
|
*/
|
|
308
216
|
SetConstraintRadius(self: CMoveData, radius: number): void;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
interface CMoveData {
|
|
312
217
|
/**
|
|
313
218
|
* Sets the player movement constraint speed scale. This will be applied to the player within the [constraint radius](https://wiki.facepunch.com/gmod/CMoveData:SetConstraintRadius) when approaching its edge.
|
|
314
219
|
* @realm shared
|
|
315
220
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetConstraintSpeedScale
|
|
316
221
|
*/
|
|
317
222
|
SetConstraintSpeedScale(self: CMoveData, arg0: number): void;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
interface CMoveData {
|
|
321
223
|
/**
|
|
322
224
|
* Sets the width (distance from the edge of the [radius](https://wiki.facepunch.com/gmod/CMoveData:SetConstraintRadius), inward) where the actual movement constraint functions.
|
|
323
225
|
* @realm shared
|
|
324
226
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetConstraintWidth
|
|
325
227
|
*/
|
|
326
228
|
SetConstraintWidth(self: CMoveData, arg0: number): void;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
interface CMoveData {
|
|
330
229
|
/**
|
|
331
230
|
* Sets an internal player movement variable `m_outWishVel`.
|
|
332
231
|
*
|
|
@@ -334,9 +233,6 @@ interface CMoveData {
|
|
|
334
233
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetFinalIdealVelocity
|
|
335
234
|
*/
|
|
336
235
|
SetFinalIdealVelocity(self: CMoveData, idealVel: Vector): void;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
interface CMoveData {
|
|
340
236
|
/**
|
|
341
237
|
* Sets an internal player movement variable `m_outJumpVel`.
|
|
342
238
|
*
|
|
@@ -344,9 +240,6 @@ interface CMoveData {
|
|
|
344
240
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetFinalJumpVelocity
|
|
345
241
|
*/
|
|
346
242
|
SetFinalJumpVelocity(self: CMoveData, jumpVel: Vector): void;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
interface CMoveData {
|
|
350
243
|
/**
|
|
351
244
|
* Sets an internal player movement variable `m_outStepHeight`.
|
|
352
245
|
*
|
|
@@ -354,27 +247,18 @@ interface CMoveData {
|
|
|
354
247
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetFinalStepHeight
|
|
355
248
|
*/
|
|
356
249
|
SetFinalStepHeight(self: CMoveData, stepHeight: number): void;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
interface CMoveData {
|
|
360
250
|
/**
|
|
361
251
|
* Sets players forward speed.
|
|
362
252
|
* @realm shared
|
|
363
253
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetForwardSpeed
|
|
364
254
|
*/
|
|
365
255
|
SetForwardSpeed(self: CMoveData, speed: number): void;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
interface CMoveData {
|
|
369
256
|
/**
|
|
370
257
|
* Sets the impulse command. This isn't actually utilised in the engine anywhere.
|
|
371
258
|
* @realm shared
|
|
372
259
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetImpulseCommand
|
|
373
260
|
*/
|
|
374
261
|
SetImpulseCommand(self: CMoveData, impulse: number): void;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
interface CMoveData {
|
|
378
262
|
/**
|
|
379
263
|
* Sets the maximum player speed. Player won't be able to run or sprint faster then this value.
|
|
380
264
|
*
|
|
@@ -393,9 +277,6 @@ interface CMoveData {
|
|
|
393
277
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetMaxClientSpeed
|
|
394
278
|
*/
|
|
395
279
|
SetMaxClientSpeed(self: CMoveData, maxSpeed: number): void;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
interface CMoveData {
|
|
399
280
|
/**
|
|
400
281
|
* Sets the maximum speed of the player. This must match with [CMoveData:SetMaxClientSpeed](https://wiki.facepunch.com/gmod/CMoveData:SetMaxClientSpeed) both, on server and client.
|
|
401
282
|
*
|
|
@@ -406,9 +287,6 @@ interface CMoveData {
|
|
|
406
287
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetMaxSpeed
|
|
407
288
|
*/
|
|
408
289
|
SetMaxSpeed(self: CMoveData, maxSpeed: number): void;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
interface CMoveData {
|
|
412
290
|
/**
|
|
413
291
|
* Sets the serverside move angles, making the movement keys act as if player was facing that direction.
|
|
414
292
|
*
|
|
@@ -418,54 +296,36 @@ interface CMoveData {
|
|
|
418
296
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetMoveAngles
|
|
419
297
|
*/
|
|
420
298
|
SetMoveAngles(self: CMoveData, dir: Angle): void;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
interface CMoveData {
|
|
424
299
|
/**
|
|
425
300
|
* Sets old aim angles. ( ? ) Doesn't seem to be doing anything.
|
|
426
301
|
* @realm shared
|
|
427
302
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetOldAngles
|
|
428
303
|
*/
|
|
429
304
|
SetOldAngles(self: CMoveData, aimAng: Angle): void;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
interface CMoveData {
|
|
433
305
|
/**
|
|
434
306
|
* Sets the 'old' pressed buttons on the move data. These buttons are used to work out which buttons have been released, which have just been pressed and which are being held down.
|
|
435
307
|
* @realm shared
|
|
436
308
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetOldButtons
|
|
437
309
|
*/
|
|
438
310
|
SetOldButtons(self: CMoveData, buttons: number): void;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
interface CMoveData {
|
|
442
311
|
/**
|
|
443
312
|
* Sets the players position.
|
|
444
313
|
* @realm shared
|
|
445
314
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetOrigin
|
|
446
315
|
*/
|
|
447
316
|
SetOrigin(self: CMoveData, pos: Vector): void;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
interface CMoveData {
|
|
451
317
|
/**
|
|
452
318
|
* Sets players strafe speed.
|
|
453
319
|
* @realm shared
|
|
454
320
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetSideSpeed
|
|
455
321
|
*/
|
|
456
322
|
SetSideSpeed(self: CMoveData, speed: number): void;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
interface CMoveData {
|
|
460
323
|
/**
|
|
461
324
|
* Sets vertical speed of the player. ( Z axis of [CMoveData:SetVelocity](https://wiki.facepunch.com/gmod/CMoveData:SetVelocity) )
|
|
462
325
|
* @realm shared
|
|
463
326
|
* @source https://wiki.facepunch.com/gmod/CMoveData:SetUpSpeed
|
|
464
327
|
*/
|
|
465
328
|
SetUpSpeed(self: CMoveData, speed: number): void;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
interface CMoveData {
|
|
469
329
|
/**
|
|
470
330
|
* Sets the player's velocity
|
|
471
331
|
* @realm shared
|
|
@@ -474,3 +334,50 @@ interface CMoveData {
|
|
|
474
334
|
SetVelocity(self: CMoveData, velocity: Vector): void;
|
|
475
335
|
}
|
|
476
336
|
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|