You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -48,25 +48,25 @@ function constraint.AddConstraintTableNoDelete(ent1, constrt, ent2, ent3, ent4)
48
48
---@paramnocollidenumber Whether the entities should be no-collided.
49
49
---@returnEntity # A phys_ragdollconstraint entity. Will return false if the constraint could not be created.
50
50
functionconstraint.AdvBallsocket(
51
-
Ent1,
52
-
Ent2,
53
-
Bone1,
54
-
Bone2,
55
-
LPos1,
56
-
LPos2,
57
-
forcelimit,
58
-
torquelimit,
59
-
xmin,
60
-
ymin,
61
-
zmin,
62
-
xmax,
63
-
ymax,
64
-
zmax,
65
-
xfric,
66
-
yfric,
67
-
zfric,
68
-
onlyrotation,
69
-
nocollide
51
+
Ent1,
52
+
Ent2,
53
+
Bone1,
54
+
Bone2,
55
+
LPos1,
56
+
LPos2,
57
+
forcelimit,
58
+
torquelimit,
59
+
xmin,
60
+
ymin,
61
+
zmin,
62
+
xmax,
63
+
ymax,
64
+
zmax,
65
+
xfric,
66
+
yfric,
67
+
zfric,
68
+
onlyrotation,
69
+
nocollide
70
70
)
71
71
end
72
72
@@ -87,18 +87,18 @@ end
87
87
---@paramDontAddTableboolean Whether or not to add the constraint info on the entity table. See constraint.AddConstraintTable.
88
88
---@returnEntity # Constraint. Will return false if the constraint could not be created.
89
89
functionconstraint.Axis(
90
-
Ent1,
91
-
Ent2,
92
-
Bone1,
93
-
Bone2,
94
-
LPos1,
95
-
LPos2,
96
-
forcelimit,
97
-
torquelimit,
98
-
friction,
99
-
nocollide,
100
-
LocalAxis,
101
-
DontAddTable
90
+
Ent1,
91
+
Ent2,
92
+
Bone1,
93
+
Bone2,
94
+
LPos1,
95
+
LPos2,
96
+
forcelimit,
97
+
torquelimit,
98
+
friction,
99
+
nocollide,
100
+
LocalAxis,
101
+
DontAddTable
102
102
)
103
103
end
104
104
@@ -173,19 +173,19 @@ function constraint.CreateStaticAnchorPoint(pos) end
173
173
---@returnEntity # Constraint. Will return false if the constraint could not be created.
174
174
---@returnEntity # rope. Will return nil if the constraint could not be created.
175
175
functionconstraint.Elastic(
176
-
Ent1,
177
-
Ent2,
178
-
Bone1,
179
-
Bone2,
180
-
LPos1,
181
-
LPos2,
182
-
constant,
183
-
damping,
184
-
rdamping,
185
-
material,
186
-
width,
187
-
stretchonly,
188
-
color
176
+
Ent1,
177
+
Ent2,
178
+
Bone1,
179
+
Bone2,
180
+
LPos1,
181
+
LPos2,
182
+
constant,
183
+
damping,
184
+
rdamping,
185
+
material,
186
+
width,
187
+
stretchonly,
188
+
color
189
189
)
190
190
end
191
191
@@ -331,21 +331,21 @@ function constraint.HasConstraints(ent) end
331
331
---@returnEntity # controller. Can return nil depending on how the constraint was created. Will return nil if the constraint could not be created.
332
332
---@returnEntity # slider. Can return nil depending on how the constraint was created. Will return nil if the constraint could not be created.
333
333
functionconstraint.Hydraulic(
334
-
pl,
335
-
Ent1,
336
-
Ent2,
337
-
Bone1,
338
-
Bone2,
339
-
LPos1,
340
-
LPos2,
341
-
Length1,
342
-
Length2,
343
-
width,
344
-
key,
345
-
fixed,
346
-
speed,
347
-
material,
348
-
color
334
+
pl,
335
+
Ent1,
336
+
Ent2,
337
+
Bone1,
338
+
Bone2,
339
+
LPos1,
340
+
LPos2,
341
+
Length1,
342
+
Length2,
343
+
width,
344
+
key,
345
+
fixed,
346
+
speed,
347
+
material,
348
+
color
349
349
)
350
350
end
351
351
@@ -384,23 +384,23 @@ function constraint.Keepupright(ent, ang, bone, angularLimit) end
384
384
---@returnEntity # Constraint. Will return false if the constraint could not be created.
385
385
---@returnEntity # axis. Will return nil if the constraint could not be created.
386
386
functionconstraint.Motor(
387
-
Ent1,
388
-
Ent2,
389
-
Bone1,
390
-
Bone2,
391
-
LPos1,
392
-
LPos2,
393
-
friction,
394
-
torque,
395
-
forcetime,
396
-
nocollide,
397
-
toggle,
398
-
pl,
399
-
forcelimit,
400
-
numpadkey_fwd,
401
-
numpadkey_bwd,
402
-
direction,
403
-
LocalAxis
387
+
Ent1,
388
+
Ent2,
389
+
Bone1,
390
+
Bone2,
391
+
LPos1,
392
+
LPos2,
393
+
friction,
394
+
torque,
395
+
forcetime,
396
+
nocollide,
397
+
toggle,
398
+
pl,
399
+
forcelimit,
400
+
numpadkey_fwd,
401
+
numpadkey_bwd,
402
+
direction,
403
+
LocalAxis
404
404
)
405
405
end
406
406
@@ -429,23 +429,23 @@ end
429
429
---@returnEntity # controller. Will return nil if the constraint could not be created.
430
430
---@returnEntity # slider. Will return nil if the fixed argument is not 1 or if the constraint could not be created.
431
431
functionconstraint.Muscle(
432
-
pl,
433
-
Ent1,
434
-
Ent2,
435
-
Bone1,
436
-
Bone2,
437
-
LPos1,
438
-
LPos2,
439
-
Length1,
440
-
Length2,
441
-
width,
442
-
key,
443
-
fixed,
444
-
period,
445
-
amplitude,
446
-
starton,
447
-
material,
448
-
color
432
+
pl,
433
+
Ent1,
434
+
Ent2,
435
+
Bone1,
436
+
Bone2,
437
+
LPos1,
438
+
LPos2,
439
+
Length1,
440
+
Length2,
441
+
width,
442
+
key,
443
+
fixed,
444
+
period,
445
+
amplitude,
446
+
starton,
447
+
material,
448
+
color
449
449
)
450
450
end
451
451
@@ -478,19 +478,19 @@ function constraint.NoCollide(Ent1, Ent2, Bone1, Bone2) end
478
478
---@paramcolortable The color of the rope. See Global.Color.
479
479
---@returnEntity # Constraint. Will return false if the constraint could not be created.
480
480
functionconstraint.Pulley(
481
-
Ent1,
482
-
Ent4,
483
-
Bone1,
484
-
Bone4,
485
-
LPos1,
486
-
LPos4,
487
-
WPos2,
488
-
WPos3,
489
-
forcelimit,
490
-
rigid,
491
-
width,
492
-
material,
493
-
color
481
+
Ent1,
482
+
Ent4,
483
+
Bone1,
484
+
Bone4,
485
+
LPos1,
486
+
LPos4,
487
+
WPos2,
488
+
WPos3,
489
+
forcelimit,
490
+
rigid,
491
+
width,
492
+
material,
493
+
color
494
494
)
495
495
end
496
496
@@ -530,19 +530,19 @@ function constraint.RemoveConstraints(ent, type) end
530
530
---@returnEntity # The constraint entity. Will be a `keyframe_rope` if you are roping to the same bone on the same entity. Will return `false` if the constraint could not be created.
531
531
---@returnEntity # The rope entity. Will return `nil` if `constraint` return value is a `keyframe_rope` or if the constraint could not be created.
0 commit comments