@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
|
@@ -17,54 +17,63 @@ interface CLuaLocomotion {
|
|
|
17
17
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:Approach
|
|
18
18
|
*/
|
|
19
19
|
Approach(self: CLuaLocomotion, goal: Vector, goalWeight: number): void;
|
|
20
|
+
|
|
20
21
|
/**
|
|
21
22
|
* Removes the stuck status from the bot
|
|
22
23
|
* @realm server
|
|
23
24
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:ClearStuck
|
|
24
25
|
*/
|
|
25
26
|
ClearStuck(self: CLuaLocomotion): void;
|
|
27
|
+
|
|
26
28
|
/**
|
|
27
29
|
* Sets the direction we want to face
|
|
28
30
|
* @realm server
|
|
29
31
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:FaceTowards
|
|
30
32
|
*/
|
|
31
33
|
FaceTowards(self: CLuaLocomotion, goal: Vector): void;
|
|
34
|
+
|
|
32
35
|
/**
|
|
33
36
|
* Returns the acceleration speed
|
|
34
37
|
* @realm server
|
|
35
38
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetAcceleration
|
|
36
39
|
*/
|
|
37
40
|
GetAcceleration(self: CLuaLocomotion): number;
|
|
41
|
+
|
|
38
42
|
/**
|
|
39
43
|
* Returns whether the Nextbot is allowed to avoid obstacles or not.
|
|
40
44
|
* @realm server
|
|
41
45
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetAvoidAllowed
|
|
42
46
|
*/
|
|
43
47
|
GetAvoidAllowed(self: CLuaLocomotion): boolean;
|
|
48
|
+
|
|
44
49
|
/**
|
|
45
50
|
* Returns whether the Nextbot is allowed to climb or not.
|
|
46
51
|
* @realm server
|
|
47
52
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetClimbAllowed
|
|
48
53
|
*/
|
|
49
54
|
GetClimbAllowed(self: CLuaLocomotion): boolean;
|
|
55
|
+
|
|
50
56
|
/**
|
|
51
57
|
* Returns the current acceleration as a vector
|
|
52
58
|
* @realm server
|
|
53
59
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetCurrentAcceleration
|
|
54
60
|
*/
|
|
55
61
|
GetCurrentAcceleration(self: CLuaLocomotion): Vector;
|
|
62
|
+
|
|
56
63
|
/**
|
|
57
64
|
* Gets the height the bot is scared to fall from
|
|
58
65
|
* @realm server
|
|
59
66
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetDeathDropHeight
|
|
60
67
|
*/
|
|
61
68
|
GetDeathDropHeight(self: CLuaLocomotion): number;
|
|
69
|
+
|
|
62
70
|
/**
|
|
63
71
|
* Gets the deceleration speed
|
|
64
72
|
* @realm server
|
|
65
73
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetDeceleration
|
|
66
74
|
*/
|
|
67
75
|
GetDeceleration(self: CLuaLocomotion): number;
|
|
76
|
+
|
|
68
77
|
/**
|
|
69
78
|
* Returns the desired movement speed set by [CLuaLocomotion:SetDesiredSpeed](https://wiki.facepunch.com/gmod/CLuaLocomotion:SetDesiredSpeed)
|
|
70
79
|
*
|
|
@@ -72,18 +81,21 @@ interface CLuaLocomotion {
|
|
|
72
81
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetDesiredSpeed
|
|
73
82
|
*/
|
|
74
83
|
GetDesiredSpeed(self: CLuaLocomotion): number;
|
|
84
|
+
|
|
75
85
|
/**
|
|
76
86
|
* Returns the locomotion's gravity.
|
|
77
87
|
* @realm server
|
|
78
88
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetGravity
|
|
79
89
|
*/
|
|
80
90
|
GetGravity(self: CLuaLocomotion): number;
|
|
91
|
+
|
|
81
92
|
/**
|
|
82
93
|
* Return unit vector in XY plane describing our direction of motion - even if we are currently not moving
|
|
83
94
|
* @realm server
|
|
84
95
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetGroundMotionVector
|
|
85
96
|
*/
|
|
86
97
|
GetGroundMotionVector(self: CLuaLocomotion): Vector;
|
|
98
|
+
|
|
87
99
|
/**
|
|
88
100
|
* Returns the current ground normal.
|
|
89
101
|
*
|
|
@@ -91,126 +103,147 @@ interface CLuaLocomotion {
|
|
|
91
103
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetGroundNormal
|
|
92
104
|
*/
|
|
93
105
|
GetGroundNormal(self: CLuaLocomotion): Vector;
|
|
106
|
+
|
|
94
107
|
/**
|
|
95
108
|
* Returns whether the Nextbot is allowed to jump gaps or not.
|
|
96
109
|
* @realm server
|
|
97
110
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetJumpGapsAllowed
|
|
98
111
|
*/
|
|
99
112
|
GetJumpGapsAllowed(self: CLuaLocomotion): boolean;
|
|
113
|
+
|
|
100
114
|
/**
|
|
101
115
|
* Gets the height of the bot's jump
|
|
102
116
|
* @realm server
|
|
103
117
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetJumpHeight
|
|
104
118
|
*/
|
|
105
119
|
GetJumpHeight(self: CLuaLocomotion): number;
|
|
120
|
+
|
|
106
121
|
/**
|
|
107
122
|
* Returns maximum jump height of this [CLuaLocomotion](https://wiki.facepunch.com/gmod/CLuaLocomotion).
|
|
108
123
|
* @realm server
|
|
109
124
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetMaxJumpHeight
|
|
110
125
|
*/
|
|
111
126
|
GetMaxJumpHeight(self: CLuaLocomotion): number;
|
|
127
|
+
|
|
112
128
|
/**
|
|
113
129
|
* Returns the max rate at which the NextBot can visually rotate.
|
|
114
130
|
* @realm server
|
|
115
131
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetMaxYawRate
|
|
116
132
|
*/
|
|
117
133
|
GetMaxYawRate(self: CLuaLocomotion): number;
|
|
134
|
+
|
|
118
135
|
/**
|
|
119
136
|
* Returns the [NextBot](https://wiki.facepunch.com/gmod/NextBot) this locomotion is associated with.
|
|
120
137
|
* @realm server
|
|
121
138
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetNextBot
|
|
122
139
|
*/
|
|
123
140
|
GetNextBot(self: CLuaLocomotion): NextBot;
|
|
141
|
+
|
|
124
142
|
/**
|
|
125
143
|
* Gets the max height the bot can step up
|
|
126
144
|
* @realm server
|
|
127
145
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetStepHeight
|
|
128
146
|
*/
|
|
129
147
|
GetStepHeight(self: CLuaLocomotion): number;
|
|
148
|
+
|
|
130
149
|
/**
|
|
131
150
|
* Returns the current movement velocity as a vector
|
|
132
151
|
* @realm server
|
|
133
152
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:GetVelocity
|
|
134
153
|
*/
|
|
135
154
|
GetVelocity(self: CLuaLocomotion): Vector;
|
|
155
|
+
|
|
136
156
|
/**
|
|
137
157
|
* Returns whether this [CLuaLocomotion](https://wiki.facepunch.com/gmod/CLuaLocomotion) can reach and/or traverse/move in given [CNavArea](https://wiki.facepunch.com/gmod/CNavArea).
|
|
138
158
|
* @realm server
|
|
139
159
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsAreaTraversable
|
|
140
160
|
*/
|
|
141
161
|
IsAreaTraversable(self: CLuaLocomotion, area: CNavArea): boolean;
|
|
162
|
+
|
|
142
163
|
/**
|
|
143
164
|
* Returns true if we're trying to move.
|
|
144
165
|
* @realm server
|
|
145
166
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsAttemptingToMove
|
|
146
167
|
*/
|
|
147
168
|
IsAttemptingToMove(self: CLuaLocomotion): boolean;
|
|
169
|
+
|
|
148
170
|
/**
|
|
149
171
|
* Returns true of the locomotion engine is jumping or climbing
|
|
150
172
|
* @realm server
|
|
151
173
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsClimbingOrJumping
|
|
152
174
|
*/
|
|
153
175
|
IsClimbingOrJumping(self: CLuaLocomotion): boolean;
|
|
176
|
+
|
|
154
177
|
/**
|
|
155
178
|
* Returns whether the nextbot this locomotion is attached to is on ground or not.
|
|
156
179
|
* @realm server
|
|
157
180
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsOnGround
|
|
158
181
|
*/
|
|
159
182
|
IsOnGround(self: CLuaLocomotion): boolean;
|
|
183
|
+
|
|
160
184
|
/**
|
|
161
185
|
* Returns true if we're stuck
|
|
162
186
|
* @realm server
|
|
163
187
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsStuck
|
|
164
188
|
*/
|
|
165
189
|
IsStuck(self: CLuaLocomotion): boolean;
|
|
190
|
+
|
|
166
191
|
/**
|
|
167
192
|
* Returns whether or not the target in question is on a ladder or not.
|
|
168
193
|
* @realm server
|
|
169
194
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:IsUsingLadder
|
|
170
195
|
*/
|
|
171
196
|
IsUsingLadder(self: CLuaLocomotion): boolean;
|
|
197
|
+
|
|
172
198
|
/**
|
|
173
199
|
* Makes the bot jump. It must be on ground ([Entity:IsOnGround](https://wiki.facepunch.com/gmod/Entity:IsOnGround)) and its model must have `ACT_JUMP` activity.
|
|
174
200
|
* @realm server
|
|
175
201
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:Jump
|
|
176
202
|
*/
|
|
177
203
|
Jump(self: CLuaLocomotion, act?: number): void;
|
|
204
|
+
|
|
178
205
|
/**
|
|
179
206
|
* Makes the bot jump across a gap. The bot must be on ground ([Entity:IsOnGround](https://wiki.facepunch.com/gmod/Entity:IsOnGround)) and its model must have `ACT_JUMP` activity.
|
|
180
207
|
* @realm server
|
|
181
208
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:JumpAcrossGap
|
|
182
209
|
*/
|
|
183
210
|
JumpAcrossGap(self: CLuaLocomotion, landingGoal: Vector, landingForward: Vector): void;
|
|
211
|
+
|
|
184
212
|
/**
|
|
185
213
|
* Sets the acceleration speed
|
|
186
214
|
* @realm server
|
|
187
215
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetAcceleration
|
|
188
216
|
*/
|
|
189
217
|
SetAcceleration(self: CLuaLocomotion, speed?: number): void;
|
|
218
|
+
|
|
190
219
|
/**
|
|
191
220
|
* Sets whether the Nextbot is allowed try to to avoid obstacles or not. This is used during path generation. Works similarly to `nb_allow_avoiding` convar. By default bots are allowed to try to avoid obstacles.
|
|
192
221
|
* @realm server
|
|
193
222
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetAvoidAllowed
|
|
194
223
|
*/
|
|
195
224
|
SetAvoidAllowed(self: CLuaLocomotion, allowed: boolean): void;
|
|
225
|
+
|
|
196
226
|
/**
|
|
197
227
|
* Sets whether the Nextbot is allowed to climb or not. This is used during path generation. Works similarly to `nb_allow_climbing` convar. By default bots are allowed to climb.
|
|
198
228
|
* @realm server
|
|
199
229
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetClimbAllowed
|
|
200
230
|
*/
|
|
201
231
|
SetClimbAllowed(self: CLuaLocomotion, allowed: boolean): void;
|
|
232
|
+
|
|
202
233
|
/**
|
|
203
234
|
* Sets the height the bot is scared to fall from.
|
|
204
235
|
* @realm server
|
|
205
236
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetDeathDropHeight
|
|
206
237
|
*/
|
|
207
238
|
SetDeathDropHeight(self: CLuaLocomotion, height?: number): void;
|
|
239
|
+
|
|
208
240
|
/**
|
|
209
241
|
* Sets the deceleration speed.
|
|
210
242
|
* @realm server
|
|
211
243
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetDeceleration
|
|
212
244
|
*/
|
|
213
245
|
SetDeceleration(self: CLuaLocomotion, deceleration?: number): void;
|
|
246
|
+
|
|
214
247
|
/**
|
|
215
248
|
* Sets how far the NextBot will need to move each time [CLuaLocomotion:Approach](https://wiki.facepunch.com/gmod/CLuaLocomotion:Approach) is called to move at given speed.
|
|
216
249
|
*
|
|
@@ -220,6 +253,7 @@ interface CLuaLocomotion {
|
|
|
220
253
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetDesiredSpeed
|
|
221
254
|
*/
|
|
222
255
|
SetDesiredSpeed(self: CLuaLocomotion, speed?: number): void;
|
|
256
|
+
|
|
223
257
|
/**
|
|
224
258
|
* Sets the locomotion's gravity.
|
|
225
259
|
*
|
|
@@ -230,30 +264,35 @@ interface CLuaLocomotion {
|
|
|
230
264
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetGravity
|
|
231
265
|
*/
|
|
232
266
|
SetGravity(self: CLuaLocomotion, gravity?: number): void;
|
|
267
|
+
|
|
233
268
|
/**
|
|
234
269
|
* Sets whether the Nextbot is allowed to jump gaps or not. This is used during path generation. Works similarly to `nb_allow_gap_jumping` convar. By default bots are allowed to jump gaps.
|
|
235
270
|
* @realm server
|
|
236
271
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetJumpGapsAllowed
|
|
237
272
|
*/
|
|
238
273
|
SetJumpGapsAllowed(self: CLuaLocomotion, allowed: boolean): void;
|
|
274
|
+
|
|
239
275
|
/**
|
|
240
276
|
* Sets the height of the bot's jump
|
|
241
277
|
* @realm server
|
|
242
278
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetJumpHeight
|
|
243
279
|
*/
|
|
244
280
|
SetJumpHeight(self: CLuaLocomotion, height?: number): void;
|
|
281
|
+
|
|
245
282
|
/**
|
|
246
283
|
* Sets the max rate at which the NextBot can visually rotate. This will not affect moving or pathing.
|
|
247
284
|
* @realm server
|
|
248
285
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetMaxYawRate
|
|
249
286
|
*/
|
|
250
287
|
SetMaxYawRate(self: CLuaLocomotion, yawRate?: number): void;
|
|
288
|
+
|
|
251
289
|
/**
|
|
252
290
|
* Sets the max height the bot can step up
|
|
253
291
|
* @realm server
|
|
254
292
|
* @source https://wiki.facepunch.com/gmod/CLuaLocomotion:SetStepHeight
|
|
255
293
|
*/
|
|
256
294
|
SetStepHeight(self: CLuaLocomotion, height?: number): void;
|
|
295
|
+
|
|
257
296
|
/**
|
|
258
297
|
* Sets the current movement velocity
|
|
259
298
|
* @realm server
|
|
@@ -261,44 +300,3 @@ interface CLuaLocomotion {
|
|
|
261
300
|
*/
|
|
262
301
|
SetVelocity(self: CLuaLocomotion, velocity: Vector): void;
|
|
263
302
|
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
@@ -11,60 +11,70 @@ interface CLuaParticle {
|
|
|
11
11
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetAirResistance
|
|
12
12
|
*/
|
|
13
13
|
GetAirResistance(self: CLuaParticle): number;
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* Returns the angular velocity of the particle
|
|
16
17
|
* @realm client
|
|
17
18
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetAngleVelocity
|
|
18
19
|
*/
|
|
19
20
|
GetAngleVelocity(self: CLuaParticle): Angle;
|
|
21
|
+
|
|
20
22
|
/**
|
|
21
23
|
* Returns the current orientation of the particle.
|
|
22
24
|
* @realm client
|
|
23
25
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetAngles
|
|
24
26
|
*/
|
|
25
27
|
GetAngles(self: CLuaParticle): Angle;
|
|
28
|
+
|
|
26
29
|
/**
|
|
27
30
|
* Returns the 'bounciness' of the particle.
|
|
28
31
|
* @realm client
|
|
29
32
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetBounce
|
|
30
33
|
*/
|
|
31
34
|
GetBounce(self: CLuaParticle): number;
|
|
35
|
+
|
|
32
36
|
/**
|
|
33
37
|
* Returns the color of the particle.
|
|
34
38
|
* @realm client
|
|
35
39
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetColor
|
|
36
40
|
*/
|
|
37
41
|
GetColor(self: CLuaParticle): (number, number, number);
|
|
42
|
+
|
|
38
43
|
/**
|
|
39
44
|
* Returns the amount of time in seconds after which the particle will be destroyed.
|
|
40
45
|
* @realm client
|
|
41
46
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetDieTime
|
|
42
47
|
*/
|
|
43
48
|
GetDieTime(self: CLuaParticle): number;
|
|
49
|
+
|
|
44
50
|
/**
|
|
45
51
|
* Returns the alpha value that the particle will reach on its death.
|
|
46
52
|
* @realm client
|
|
47
53
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetEndAlpha
|
|
48
54
|
*/
|
|
49
55
|
GetEndAlpha(self: CLuaParticle): number;
|
|
56
|
+
|
|
50
57
|
/**
|
|
51
58
|
* Returns the length that the particle will reach on its death.
|
|
52
59
|
* @realm client
|
|
53
60
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetEndLength
|
|
54
61
|
*/
|
|
55
62
|
GetEndLength(self: CLuaParticle): number;
|
|
63
|
+
|
|
56
64
|
/**
|
|
57
65
|
* Returns the size that the particle will reach on its death.
|
|
58
66
|
* @realm client
|
|
59
67
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetEndSize
|
|
60
68
|
*/
|
|
61
69
|
GetEndSize(self: CLuaParticle): number;
|
|
70
|
+
|
|
62
71
|
/**
|
|
63
72
|
* Returns the gravity of the particle.
|
|
64
73
|
* @realm client
|
|
65
74
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetGravity
|
|
66
75
|
*/
|
|
67
76
|
GetGravity(self: CLuaParticle): Vector;
|
|
77
|
+
|
|
68
78
|
/**
|
|
69
79
|
* Returns the 'life time' of the particle, how long the particle existed since its creation.
|
|
70
80
|
*
|
|
@@ -82,126 +92,147 @@ interface CLuaParticle {
|
|
|
82
92
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetLifeTime
|
|
83
93
|
*/
|
|
84
94
|
GetLifeTime(self: CLuaParticle): number;
|
|
95
|
+
|
|
85
96
|
/**
|
|
86
97
|
* Returns the current material of the particle.
|
|
87
98
|
* @realm client
|
|
88
99
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetMaterial
|
|
89
100
|
*/
|
|
90
101
|
GetMaterial(self: CLuaParticle): IMaterial;
|
|
102
|
+
|
|
91
103
|
/**
|
|
92
104
|
* Returns the absolute position of the particle.
|
|
93
105
|
* @realm client
|
|
94
106
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetPos
|
|
95
107
|
*/
|
|
96
108
|
GetPos(self: CLuaParticle): Vector;
|
|
109
|
+
|
|
97
110
|
/**
|
|
98
111
|
* Returns the current rotation of the particle in radians, this should only be used for 2D particles.
|
|
99
112
|
* @realm client
|
|
100
113
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetRoll
|
|
101
114
|
*/
|
|
102
115
|
GetRoll(self: CLuaParticle): number;
|
|
116
|
+
|
|
103
117
|
/**
|
|
104
118
|
* Returns the current rotation speed of the particle in radians, this should only be used for 2D particles.
|
|
105
119
|
* @realm client
|
|
106
120
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetRollDelta
|
|
107
121
|
*/
|
|
108
122
|
GetRollDelta(self: CLuaParticle): number;
|
|
123
|
+
|
|
109
124
|
/**
|
|
110
125
|
* Returns the alpha value which the particle has when it's created.
|
|
111
126
|
* @realm client
|
|
112
127
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetStartAlpha
|
|
113
128
|
*/
|
|
114
129
|
GetStartAlpha(self: CLuaParticle): number;
|
|
130
|
+
|
|
115
131
|
/**
|
|
116
132
|
* Returns the length which the particle has when it's created.
|
|
117
133
|
* @realm client
|
|
118
134
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetStartLength
|
|
119
135
|
*/
|
|
120
136
|
GetStartLength(self: CLuaParticle): number;
|
|
137
|
+
|
|
121
138
|
/**
|
|
122
139
|
* Returns the size which the particle has when it's created.
|
|
123
140
|
* @realm client
|
|
124
141
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetStartSize
|
|
125
142
|
*/
|
|
126
143
|
GetStartSize(self: CLuaParticle): number;
|
|
144
|
+
|
|
127
145
|
/**
|
|
128
146
|
* Returns the current velocity of the particle.
|
|
129
147
|
* @realm client
|
|
130
148
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:GetVelocity
|
|
131
149
|
*/
|
|
132
150
|
GetVelocity(self: CLuaParticle): Vector;
|
|
151
|
+
|
|
133
152
|
/**
|
|
134
153
|
* Sets the air resistance of the the particle.
|
|
135
154
|
* @realm client
|
|
136
155
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetAirResistance
|
|
137
156
|
*/
|
|
138
157
|
SetAirResistance(self: CLuaParticle, airResistance: number): void;
|
|
158
|
+
|
|
139
159
|
/**
|
|
140
160
|
* Sets the angular velocity of the the particle.
|
|
141
161
|
* @realm client
|
|
142
162
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetAngleVelocity
|
|
143
163
|
*/
|
|
144
164
|
SetAngleVelocity(self: CLuaParticle, angVel: Angle): void;
|
|
165
|
+
|
|
145
166
|
/**
|
|
146
167
|
* Sets the angles of the particle.
|
|
147
168
|
* @realm client
|
|
148
169
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetAngles
|
|
149
170
|
*/
|
|
150
171
|
SetAngles(self: CLuaParticle, ang: Angle): void;
|
|
172
|
+
|
|
151
173
|
/**
|
|
152
174
|
* Sets the 'bounciness' of the the particle.
|
|
153
175
|
* @realm client
|
|
154
176
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetBounce
|
|
155
177
|
*/
|
|
156
178
|
SetBounce(self: CLuaParticle, bounce: number): void;
|
|
179
|
+
|
|
157
180
|
/**
|
|
158
181
|
* Sets the whether the particle should collide with the world or not.
|
|
159
182
|
* @realm client
|
|
160
183
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetCollide
|
|
161
184
|
*/
|
|
162
185
|
SetCollide(self: CLuaParticle, shouldCollide: boolean): void;
|
|
186
|
+
|
|
163
187
|
/**
|
|
164
188
|
* Sets the function that gets called whenever the particle collides with the world.
|
|
165
189
|
* @realm client
|
|
166
190
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetCollideCallback
|
|
167
191
|
*/
|
|
168
192
|
SetCollideCallback(self: CLuaParticle, collideFunc: (particle: CLuaParticle, hitPos: Vector, hitNormal: Vector) => void): void;
|
|
193
|
+
|
|
169
194
|
/**
|
|
170
195
|
* Sets the color of the particle.
|
|
171
196
|
* @realm client
|
|
172
197
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetColor
|
|
173
198
|
*/
|
|
174
199
|
SetColor(self: CLuaParticle, r: number, g: number, b: number): void;
|
|
200
|
+
|
|
175
201
|
/**
|
|
176
202
|
* Sets the time where the particle will be removed.
|
|
177
203
|
* @realm client
|
|
178
204
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetDieTime
|
|
179
205
|
*/
|
|
180
206
|
SetDieTime(self: CLuaParticle, dieTime: number): void;
|
|
207
|
+
|
|
181
208
|
/**
|
|
182
209
|
* Sets the alpha value of the particle that it will reach when it dies.
|
|
183
210
|
* @realm client
|
|
184
211
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetEndAlpha
|
|
185
212
|
*/
|
|
186
213
|
SetEndAlpha(self: CLuaParticle, endAlpha: number): void;
|
|
214
|
+
|
|
187
215
|
/**
|
|
188
216
|
* Sets the length of the particle that it will reach when it dies.
|
|
189
217
|
* @realm client
|
|
190
218
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetEndLength
|
|
191
219
|
*/
|
|
192
220
|
SetEndLength(self: CLuaParticle, endLength: number): void;
|
|
221
|
+
|
|
193
222
|
/**
|
|
194
223
|
* Sets the size of the particle that it will reach when it dies.
|
|
195
224
|
* @realm client
|
|
196
225
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetEndSize
|
|
197
226
|
*/
|
|
198
227
|
SetEndSize(self: CLuaParticle, endSize: number): void;
|
|
228
|
+
|
|
199
229
|
/**
|
|
200
230
|
* Sets the directional gravity aka. acceleration of the particle.
|
|
201
231
|
* @realm client
|
|
202
232
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetGravity
|
|
203
233
|
*/
|
|
204
234
|
SetGravity(self: CLuaParticle, gravity: Vector): void;
|
|
235
|
+
|
|
205
236
|
/**
|
|
206
237
|
* Sets the 'life time' of the particle, how long the particle existed since its creation.
|
|
207
238
|
*
|
|
@@ -217,72 +248,84 @@ interface CLuaParticle {
|
|
|
217
248
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetLifeTime
|
|
218
249
|
*/
|
|
219
250
|
SetLifeTime(self: CLuaParticle, lifeTime: number): void;
|
|
251
|
+
|
|
220
252
|
/**
|
|
221
253
|
* Sets whether the particle should be affected by lighting.
|
|
222
254
|
* @realm client
|
|
223
255
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetLighting
|
|
224
256
|
*/
|
|
225
257
|
SetLighting(self: CLuaParticle, useLighting: boolean): void;
|
|
258
|
+
|
|
226
259
|
/**
|
|
227
260
|
* Sets the material of the particle.
|
|
228
261
|
* @realm client
|
|
229
262
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetMaterial
|
|
230
263
|
*/
|
|
231
264
|
SetMaterial(self: CLuaParticle, mat: IMaterial): void;
|
|
265
|
+
|
|
232
266
|
/**
|
|
233
267
|
* Sets when the particles think function should be called next, this uses the synchronized server time returned by [Global.CurTime](https://wiki.facepunch.com/gmod/Global.CurTime).
|
|
234
268
|
* @realm client
|
|
235
269
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetNextThink
|
|
236
270
|
*/
|
|
237
271
|
SetNextThink(self: CLuaParticle, nextThink: number): void;
|
|
272
|
+
|
|
238
273
|
/**
|
|
239
274
|
* Sets the absolute position of the particle.
|
|
240
275
|
* @realm client
|
|
241
276
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetPos
|
|
242
277
|
*/
|
|
243
278
|
SetPos(self: CLuaParticle, pos: Vector): void;
|
|
279
|
+
|
|
244
280
|
/**
|
|
245
281
|
* Sets the roll of the particle in radians. This should only be used for 2D particles.
|
|
246
282
|
* @realm client
|
|
247
283
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetRoll
|
|
248
284
|
*/
|
|
249
285
|
SetRoll(self: CLuaParticle, roll: number): void;
|
|
286
|
+
|
|
250
287
|
/**
|
|
251
288
|
* Sets the rotation speed of the particle in radians. This should only be used for 2D particles.
|
|
252
289
|
* @realm client
|
|
253
290
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetRollDelta
|
|
254
291
|
*/
|
|
255
292
|
SetRollDelta(self: CLuaParticle, rollDelta: number): void;
|
|
293
|
+
|
|
256
294
|
/**
|
|
257
295
|
* Sets the initial alpha value of the particle.
|
|
258
296
|
* @realm client
|
|
259
297
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetStartAlpha
|
|
260
298
|
*/
|
|
261
299
|
SetStartAlpha(self: CLuaParticle, startAlpha: number): void;
|
|
300
|
+
|
|
262
301
|
/**
|
|
263
302
|
* Sets the initial length value of the particle.
|
|
264
303
|
* @realm client
|
|
265
304
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetStartLength
|
|
266
305
|
*/
|
|
267
306
|
SetStartLength(self: CLuaParticle, startLength: number): void;
|
|
307
|
+
|
|
268
308
|
/**
|
|
269
309
|
* Sets the initial size value of the particle.
|
|
270
310
|
* @realm client
|
|
271
311
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetStartSize
|
|
272
312
|
*/
|
|
273
313
|
SetStartSize(self: CLuaParticle, startSize: number): void;
|
|
314
|
+
|
|
274
315
|
/**
|
|
275
316
|
* Sets the think function of the particle.
|
|
276
317
|
* @realm client
|
|
277
318
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetThinkFunction
|
|
278
319
|
*/
|
|
279
320
|
SetThinkFunction(self: CLuaParticle, thinkFunc: (particle: CLuaParticle) => void): void;
|
|
321
|
+
|
|
280
322
|
/**
|
|
281
323
|
* Sets the velocity of the particle.
|
|
282
324
|
* @realm client
|
|
283
325
|
* @source https://wiki.facepunch.com/gmod/CLuaParticle:SetVelocity
|
|
284
326
|
*/
|
|
285
327
|
SetVelocity(self: CLuaParticle, vel: Vector): void;
|
|
328
|
+
|
|
286
329
|
/**
|
|
287
330
|
* Automatically scales the length of the particle based on the particle speed, multiplied with [CLuaParticle:SetStartLength](https://wiki.facepunch.com/gmod/CLuaParticle:SetStartLength) and [CLuaParticle:SetEndLength](https://wiki.facepunch.com/gmod/CLuaParticle:SetEndLength). Width remains the same as [CLuaParticle:SetStartSize](https://wiki.facepunch.com/gmod/CLuaParticle:SetStartSize) and [CLuaParticle:SetEndSize](https://wiki.facepunch.com/gmod/CLuaParticle:SetEndSize).
|
|
288
331
|
*
|
|
@@ -292,48 +335,3 @@ interface CLuaParticle {
|
|
|
292
335
|
*/
|
|
293
336
|
SetVelocityScale(self: CLuaParticle, doScale?: boolean): void;
|
|
294
337
|
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|