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