@quenty/ragdoll 9.23.0 → 9.24.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 CHANGED
@@ -3,6 +3,22 @@
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.24.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/ragdoll@9.23.0...@quenty/ragdoll@9.24.0) (2023-05-26)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Fix dependencies ([67791a2](https://github.com/Quenty/NevermoreEngine/commit/67791a289c0956bf4947ac81bf792ee56496b3e8))
12
+
13
+
14
+ ### Features
15
+
16
+ * Initial refactor of guis to use ValueObject instead of ValueObject ([723aba0](https://github.com/Quenty/NevermoreEngine/commit/723aba0208cae7e06c9d8bf2d8f0092d042d70ea))
17
+
18
+
19
+
20
+
21
+
6
22
  # [9.23.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/ragdoll@9.22.0...@quenty/ragdoll@9.23.0) (2023-05-08)
7
23
 
8
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/ragdoll",
3
- "version": "9.23.0",
3
+ "version": "9.24.0",
4
4
  "description": "Quenty's Ragdoll system for Roblox - Floppy fun ragdolls",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,34 +25,35 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/attributeutils": "^8.14.0",
28
+ "@quenty/attributeutils": "^8.15.0",
29
29
  "@quenty/baseobject": "^6.2.1",
30
- "@quenty/binder": "^8.15.0",
31
- "@quenty/brio": "^8.12.0",
32
- "@quenty/camera": "^9.12.0",
30
+ "@quenty/binder": "^8.16.0",
31
+ "@quenty/brio": "^8.13.0",
32
+ "@quenty/camera": "^9.13.0",
33
33
  "@quenty/cancellabledelay": "^3.4.0",
34
- "@quenty/characterutils": "^6.6.0",
34
+ "@quenty/characterutils": "^6.7.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.13.0",
38
+ "@quenty/instanceutils": "^7.14.0",
39
39
  "@quenty/loader": "^6.2.1",
40
40
  "@quenty/maid": "^2.5.0",
41
- "@quenty/motor6d": "^1.21.0",
42
- "@quenty/playerhumanoidbinder": "^8.15.0",
41
+ "@quenty/motor6d": "^1.22.0",
42
+ "@quenty/playerhumanoidbinder": "^8.16.0",
43
43
  "@quenty/promise": "^6.5.0",
44
- "@quenty/qframe": "^6.6.0",
45
- "@quenty/r15utils": "^7.14.0",
44
+ "@quenty/qframe": "^6.7.0",
45
+ "@quenty/r15utils": "^7.15.0",
46
46
  "@quenty/remoting": "^6.5.0",
47
- "@quenty/rx": "^7.10.0",
48
- "@quenty/rxbinderutils": "^8.16.0",
49
- "@quenty/spring": "^6.2.1",
47
+ "@quenty/rx": "^7.11.0",
48
+ "@quenty/rxbinderutils": "^8.17.0",
49
+ "@quenty/spring": "^6.3.0",
50
50
  "@quenty/steputils": "^3.2.0",
51
51
  "@quenty/table": "^3.2.0",
52
- "@quenty/valuebaseutils": "^7.13.0"
52
+ "@quenty/valuebaseutils": "^7.14.0",
53
+ "@quenty/valueobject": "^7.14.0"
53
54
  },
54
55
  "publishConfig": {
55
56
  "access": "public"
56
57
  },
57
- "gitHead": "2ad8cea7dd3ad79a39afd7d7b785b489b90553fd"
58
+ "gitHead": "11058e90e51ea83d3dad6ae9abe59cc19c36b94b"
58
59
  }
@@ -6,7 +6,7 @@
6
6
  local require = require(script.Parent.loader).load(script)
7
7
 
8
8
  local BaseObject = require("BaseObject")
9
- local RxInstanceUtils = require("RxInstanceUtils")
9
+ local ValueObject = require("ValueObject")
10
10
 
11
11
  local FRAMES_TO_EXAMINE = 8
12
12
  local FRAME_TIME = 0.1
@@ -28,12 +28,10 @@ function BindableRagdollHumanoidOnFall.new(humanoid, ragdollBinder)
28
28
 
29
29
  self._ragdollBinder = assert(ragdollBinder, "Bad ragdollBinder")
30
30
 
31
- self.ShouldRagdoll = Instance.new("BoolValue")
32
- self.ShouldRagdoll.Value = false
31
+ self.ShouldRagdoll = ValueObject.new(false, "boolean")
33
32
  self._maid:GiveTask(self.ShouldRagdoll)
34
33
 
35
- self._isFalling = Instance.new("BoolValue")
36
- self._isFalling.Value = false
34
+ self._isFalling = ValueObject.new(false, "boolean")
37
35
  self._maid:GiveTask(self._isFalling)
38
36
 
39
37
  -- Setup Ragdoll
@@ -64,13 +62,13 @@ function BindableRagdollHumanoidOnFall.new(humanoid, ragdollBinder)
64
62
  end
65
63
 
66
64
  function BindableRagdollHumanoidOnFall:ObserveIsFalling()
67
- return RxInstanceUtils.observeProperty(self._isFalling, "Value")
65
+ return self._isFalling:Observe()
68
66
  end
69
67
 
70
68
  function BindableRagdollHumanoidOnFall:_initLastVelocityRecords()
71
69
  self._lastVelocityRecords = {}
72
70
  for _ = 1, FRAMES_TO_EXAMINE + 1 do -- Add an extra frame because we remove before inserting
73
- table.insert(self._lastVelocityRecords, Vector3.new())
71
+ table.insert(self._lastVelocityRecords, Vector3.zero)
74
72
  end
75
73
  end
76
74
 
@@ -113,7 +111,7 @@ function BindableRagdollHumanoidOnFall:_updateVelocity()
113
111
  local rootPart = self._obj.RootPart
114
112
  if not rootPart then
115
113
  self._isFalling.Value = false
116
- table.insert(self._lastVelocityRecords, Vector3.new())
114
+ table.insert(self._lastVelocityRecords, Vector3.zero)
117
115
  return
118
116
  end
119
117
 
@@ -12,7 +12,7 @@ local RxInstanceUtils = require("RxInstanceUtils")
12
12
 
13
13
  local RagdollAdditionalAttachmentUtils = {}
14
14
 
15
- local V3_ZERO = Vector3.new()
15
+ local V3_ZERO = Vector3.zero
16
16
  local V3_UP = Vector3.new(0, 1, 0)
17
17
  local V3_DOWN = Vector3.new(0, -1, 0)
18
18
  local V3_RIGHT = Vector3.new(1, 0, 0)