@quenty/humanoidspeed 12.49.0 → 12.50.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 +10 -0
- package/package.json +9 -10
- package/src/Client/HumanoidSpeedClient.lua +10 -6
- package/src/Server/HumanoidSpeed.lua +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
# [12.50.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoidspeed@12.49.1...@quenty/humanoidspeed@12.50.0) (2026-07-14)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **humanoidspeed:** convert package to --!strict ([b37508d](https://github.com/Quenty/NevermoreEngine/commit/b37508dde19f2d8191e28a1e4d44bf09ffe63319))
|
|
11
|
+
|
|
12
|
+
## [12.49.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoidspeed@12.49.0...@quenty/humanoidspeed@12.49.1) (2026-05-30)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @quenty/humanoidspeed
|
|
15
|
+
|
|
6
16
|
# [12.49.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoidspeed@12.48.0...@quenty/humanoidspeed@12.49.0) (2026-05-29)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @quenty/humanoidspeed
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/humanoidspeed",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.50.0",
|
|
4
4
|
"description": "Handles humanoid speed in a centralized location",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
7
7
|
"Nevermore",
|
|
8
8
|
"Lua",
|
|
9
9
|
"Input",
|
|
10
|
-
"Idle",
|
|
11
10
|
"Humanoids"
|
|
12
11
|
],
|
|
13
12
|
"bugs": {
|
|
@@ -16,7 +15,7 @@
|
|
|
16
15
|
"repository": {
|
|
17
16
|
"type": "git",
|
|
18
17
|
"url": "https://github.com/Quenty/NevermoreEngine.git",
|
|
19
|
-
"directory": "src/
|
|
18
|
+
"directory": "src/humanoidspeed/"
|
|
20
19
|
},
|
|
21
20
|
"funding": {
|
|
22
21
|
"type": "patreon",
|
|
@@ -31,17 +30,17 @@
|
|
|
31
30
|
],
|
|
32
31
|
"dependencies": {
|
|
33
32
|
"@quenty/baseobject": "10.13.0",
|
|
34
|
-
"@quenty/binder": "14.
|
|
35
|
-
"@quenty/characterutils": "12.32.
|
|
33
|
+
"@quenty/binder": "14.37.0",
|
|
34
|
+
"@quenty/characterutils": "12.32.1",
|
|
36
35
|
"@quenty/loader": "10.11.0",
|
|
37
|
-
"@quenty/playerhumanoidbinder": "14.
|
|
38
|
-
"@quenty/promise": "10.18.
|
|
39
|
-
"@quenty/rogue-humanoid": "10.
|
|
40
|
-
"@quenty/servicebag": "11.18.
|
|
36
|
+
"@quenty/playerhumanoidbinder": "14.38.0",
|
|
37
|
+
"@quenty/promise": "10.18.1",
|
|
38
|
+
"@quenty/rogue-humanoid": "10.50.0",
|
|
39
|
+
"@quenty/servicebag": "11.18.1",
|
|
41
40
|
"@quenty/table": "3.9.2"
|
|
42
41
|
},
|
|
43
42
|
"publishConfig": {
|
|
44
43
|
"access": "public"
|
|
45
44
|
},
|
|
46
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "13f0162f4971a77378e55e9b7236aea94f0dd3a8"
|
|
47
46
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
--!
|
|
1
|
+
--!strict
|
|
2
2
|
--[=[
|
|
3
3
|
Client version of the [HumanoidSpeed] class
|
|
4
4
|
|
|
@@ -16,8 +16,12 @@ local HumanoidSpeedClient = setmetatable({}, BaseObject)
|
|
|
16
16
|
HumanoidSpeedClient.ClassName = "HumanoidSpeedClient"
|
|
17
17
|
HumanoidSpeedClient.__index = HumanoidSpeedClient
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
export type HumanoidSpeedClient =
|
|
20
|
+
typeof(setmetatable({} :: {}, {} :: typeof({ __index = HumanoidSpeedClient })))
|
|
21
|
+
& BaseObject.BaseObject
|
|
22
|
+
|
|
23
|
+
function HumanoidSpeedClient.new(humanoid: Humanoid): HumanoidSpeedClient
|
|
24
|
+
local self: HumanoidSpeedClient = setmetatable(BaseObject.new(humanoid) :: any, HumanoidSpeedClient)
|
|
21
25
|
|
|
22
26
|
return self
|
|
23
27
|
end
|
|
@@ -26,8 +30,8 @@ end
|
|
|
26
30
|
Gets the player for this humanoid
|
|
27
31
|
@return Player?
|
|
28
32
|
]=]
|
|
29
|
-
function HumanoidSpeedClient
|
|
30
|
-
return CharacterUtils.getPlayerFromCharacter(self._obj)
|
|
33
|
+
function HumanoidSpeedClient.GetPlayer(self: HumanoidSpeedClient): Player?
|
|
34
|
+
return CharacterUtils.getPlayerFromCharacter(self._obj :: Instance)
|
|
31
35
|
end
|
|
32
36
|
|
|
33
|
-
return Binder.new("HumanoidSpeed", HumanoidSpeedClient)
|
|
37
|
+
return Binder.new("HumanoidSpeed", HumanoidSpeedClient :: any) :: Binder.Binder<HumanoidSpeedClient>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
--!
|
|
1
|
+
--!strict
|
|
2
2
|
--[=[
|
|
3
3
|
Manages speed of a humanoid
|
|
4
4
|
|
|
@@ -46,7 +46,7 @@ end
|
|
|
46
46
|
Sets the default speed for the humanoid
|
|
47
47
|
@param defaultSpeed number
|
|
48
48
|
]=]
|
|
49
|
-
function HumanoidSpeed
|
|
49
|
+
function HumanoidSpeed.SetDefaultSpeed(self: HumanoidSpeed, defaultSpeed: number): ()
|
|
50
50
|
self._properties.WalkSpeed:SetBaseValue(defaultSpeed)
|
|
51
51
|
end
|
|
52
52
|
|
|
@@ -55,7 +55,7 @@ end
|
|
|
55
55
|
@param multiplier number
|
|
56
56
|
@return function -- Cleanup function
|
|
57
57
|
]=]
|
|
58
|
-
function HumanoidSpeed
|
|
58
|
+
function HumanoidSpeed.ApplySpeedMultiplier(self: HumanoidSpeed, multiplier: number): Instance?
|
|
59
59
|
assert(type(multiplier) == "number", "Bad multiplier")
|
|
60
60
|
assert(multiplier >= 0, "Bad multiplier")
|
|
61
61
|
|
|
@@ -67,10 +67,10 @@ end
|
|
|
67
67
|
@param amount number
|
|
68
68
|
@return function -- Cleanup function
|
|
69
69
|
]=]
|
|
70
|
-
function HumanoidSpeed
|
|
70
|
+
function HumanoidSpeed.ApplySpeedAdditive(self: HumanoidSpeed, amount: number): Instance?
|
|
71
71
|
assert(type(amount) == "number", "Bad amount")
|
|
72
72
|
|
|
73
73
|
return self._properties.WalkSpeed:CreateAdditive(amount)
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
-
return PlayerHumanoidBinder.new("HumanoidSpeed", HumanoidSpeed)
|
|
76
|
+
return PlayerHumanoidBinder.new("HumanoidSpeed", HumanoidSpeed :: any)
|