@quenty/ragdoll 9.25.0 → 9.26.0
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/CHANGELOG.md +11 -0
- package/package.json +18 -18
- package/src/Shared/Rigging/RxRagdollUtils.lua +22 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [9.26.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/ragdoll@9.25.0...@quenty/ragdoll@9.26.0) (2023-06-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Fix humanoid state changing away from physics ([a4545e8](https://github.com/Quenty/NevermoreEngine/commit/a4545e870071c95221365230486c3de344f7a7d0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [9.25.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/ragdoll@9.24.0...@quenty/ragdoll@9.25.0) (2023-06-05)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/ragdoll
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/ragdoll",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.26.0",
|
|
4
4
|
"description": "Quenty's Ragdoll system for Roblox - Floppy fun ragdolls",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,35 +25,35 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/attributeutils": "^8.
|
|
28
|
+
"@quenty/attributeutils": "^8.16.0",
|
|
29
29
|
"@quenty/baseobject": "^6.2.1",
|
|
30
|
-
"@quenty/binder": "^8.
|
|
31
|
-
"@quenty/brio": "^8.
|
|
32
|
-
"@quenty/camera": "^9.
|
|
30
|
+
"@quenty/binder": "^8.18.0",
|
|
31
|
+
"@quenty/brio": "^8.14.0",
|
|
32
|
+
"@quenty/camera": "^9.15.0",
|
|
33
33
|
"@quenty/cancellabledelay": "^3.4.0",
|
|
34
|
-
"@quenty/characterutils": "^6.
|
|
34
|
+
"@quenty/characterutils": "^6.8.0",
|
|
35
35
|
"@quenty/draw": "^4.2.0",
|
|
36
36
|
"@quenty/enumutils": "^3.1.0",
|
|
37
37
|
"@quenty/hapticfeedbackutils": "^3.1.0",
|
|
38
|
-
"@quenty/instanceutils": "^7.
|
|
38
|
+
"@quenty/instanceutils": "^7.15.0",
|
|
39
39
|
"@quenty/loader": "^6.2.1",
|
|
40
40
|
"@quenty/maid": "^2.5.0",
|
|
41
|
-
"@quenty/motor6d": "^1.
|
|
42
|
-
"@quenty/playerhumanoidbinder": "^8.
|
|
43
|
-
"@quenty/promise": "^6.
|
|
44
|
-
"@quenty/qframe": "^6.
|
|
45
|
-
"@quenty/r15utils": "^7.
|
|
46
|
-
"@quenty/remoting": "^6.
|
|
47
|
-
"@quenty/rx": "^7.
|
|
48
|
-
"@quenty/rxbinderutils": "^8.
|
|
41
|
+
"@quenty/motor6d": "^1.24.0",
|
|
42
|
+
"@quenty/playerhumanoidbinder": "^8.18.0",
|
|
43
|
+
"@quenty/promise": "^6.6.0",
|
|
44
|
+
"@quenty/qframe": "^6.9.0",
|
|
45
|
+
"@quenty/r15utils": "^7.16.0",
|
|
46
|
+
"@quenty/remoting": "^6.6.0",
|
|
47
|
+
"@quenty/rx": "^7.12.0",
|
|
48
|
+
"@quenty/rxbinderutils": "^8.19.0",
|
|
49
49
|
"@quenty/spring": "^6.3.0",
|
|
50
50
|
"@quenty/steputils": "^3.2.0",
|
|
51
51
|
"@quenty/table": "^3.2.0",
|
|
52
|
-
"@quenty/valuebaseutils": "^7.
|
|
53
|
-
"@quenty/valueobject": "^7.
|
|
52
|
+
"@quenty/valuebaseutils": "^7.15.0",
|
|
53
|
+
"@quenty/valueobject": "^7.16.0"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "dc77d6de09e9eb9d3fd6dafd790c052d8393d38f"
|
|
59
59
|
}
|
|
@@ -111,11 +111,7 @@ function RxRagdollUtils.runLocal(humanoid)
|
|
|
111
111
|
|
|
112
112
|
-- Do motors
|
|
113
113
|
maid:GiveTask(RagdollMotorUtils.suppressMotors(character, rigType, velocityReadings))
|
|
114
|
-
|
|
115
|
-
humanoid:ChangeState(Enum.HumanoidStateType.Physics)
|
|
116
|
-
maid:GiveTask(function()
|
|
117
|
-
humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
|
|
118
|
-
end)
|
|
114
|
+
maid:GiveTask(RxRagdollUtils.enforceHumanoidState(humanoid))
|
|
119
115
|
|
|
120
116
|
debug.profileend()
|
|
121
117
|
end)
|
|
@@ -123,6 +119,7 @@ function RxRagdollUtils.runLocal(humanoid)
|
|
|
123
119
|
debug.profilebegin("initragdoll_nonowner")
|
|
124
120
|
|
|
125
121
|
maid:GiveTask(RagdollMotorUtils.suppressJustRootPart(character, rigType))
|
|
122
|
+
maid:GiveTask(RxRagdollUtils.enforceHumanoidState(humanoid))
|
|
126
123
|
|
|
127
124
|
debug.profileend()
|
|
128
125
|
end
|
|
@@ -136,5 +133,25 @@ function RxRagdollUtils.runLocal(humanoid)
|
|
|
136
133
|
return topMaid
|
|
137
134
|
end
|
|
138
135
|
|
|
136
|
+
function RxRagdollUtils.enforceHumanoidState(humanoid)
|
|
137
|
+
local maid = Maid.new()
|
|
138
|
+
humanoid:ChangeState(Enum.HumanoidStateType.Physics)
|
|
139
|
+
|
|
140
|
+
-- If you're holding a humanoid and jump, then the humanoid state
|
|
141
|
+
-- changes to your humanoid's state.
|
|
142
|
+
|
|
143
|
+
maid._keepAsPhysics = humanoid.StateChanged:Connect(function(_old, new)
|
|
144
|
+
if new ~= Enum.HumanoidStateType.Physics then
|
|
145
|
+
humanoid:ChangeState(Enum.HumanoidStateType.Physics)
|
|
146
|
+
end
|
|
147
|
+
end)
|
|
148
|
+
|
|
149
|
+
maid:GiveTask(function()
|
|
150
|
+
maid._keepAsPhysics = nil
|
|
151
|
+
humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
|
|
152
|
+
end)
|
|
153
|
+
return maid
|
|
154
|
+
end
|
|
155
|
+
|
|
139
156
|
|
|
140
157
|
return RxRagdollUtils
|