Typo fix & add drag encumberance setting
This commit is contained in:
@@ -15,6 +15,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||||||
- (this is needed so the spell does not make a noise or visual effect when cast)
|
- (this is needed so the spell does not make a noise or visual effect when cast)
|
||||||
- Reduced the amount of false-positives with collision detection so the boat shouldn't get grounded in water as often
|
- Reduced the amount of false-positives with collision detection so the boat shouldn't get grounded in water as often
|
||||||
- Increased height boat needs to be to be considered on land so it can be dragged in the water while water-walking
|
- Increased height boat needs to be to be considered on land so it can be dragged in the water while water-walking
|
||||||
|
- Added a new setting option: "Toggle Drag Encumberance"
|
||||||
|
- Enables/disables adding the Rowboat to the player's inventory (200 lb) when initiating dragging
|
||||||
|
|
||||||
## 0.1.1
|
## 0.1.1
|
||||||
|
|
||||||
|
|||||||
@@ -180,7 +180,6 @@ CollisionDetectZThreshold (10) - Height threshold for collision<br>
|
|||||||
ColliderOffset (300) - Distance forward from center for detection<br>
|
ColliderOffset (300) - Distance forward from center for detection<br>
|
||||||
ColliderOffsetReverse (350) - Distance backward from center for detection<br>
|
ColliderOffsetReverse (350) - Distance backward from center for detection<br>
|
||||||
ColliderMoveFreq (0.05) - How often to move collider<br>
|
ColliderMoveFreq (0.05) - How often to move collider<br>
|
||||||
CollisionPosThreshold (1.0) - Ignore detection if this far off position<br>
|
|
||||||
OverboardDistance (300) - Distance before "overboard" triggers<br>
|
OverboardDistance (300) - Distance before "overboard" triggers<br>
|
||||||
<br>
|
<br>
|
||||||
Miscellaneous Enchantments:<br>
|
Miscellaneous Enchantments:<br>
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ CollisionDetectZThreshold (10) - Height threshold for collision
|
|||||||
ColliderOffset (300) - Distance forward from center for detection
|
ColliderOffset (300) - Distance forward from center for detection
|
||||||
ColliderOffsetReverse (350) - Distance backward from center for detection
|
ColliderOffsetReverse (350) - Distance backward from center for detection
|
||||||
ColliderMoveFreq (0.05) - How often to move collider
|
ColliderMoveFreq (0.05) - How often to move collider
|
||||||
CollisionPosThreshold (1.0) - Ignore detection if this far off position
|
ColliderPosThreshold (1.0) - Ignore detection if this far off position
|
||||||
OverboardDistance (300) - Distance before "overboard" triggers
|
OverboardDistance (300) - Distance before "overboard" triggers
|
||||||
|
|
||||||
[b]Miscellaneous Enchantments:[/b]
|
[b]Miscellaneous Enchantments:[/b]
|
||||||
|
|||||||
@@ -23,3 +23,4 @@ set RYB.DragTargetPitchMovingSmoothingFactor to 0.03
|
|||||||
set RYB.DragTargetPitchStoppedSmoothingFactor to 0.02
|
set RYB.DragTargetPitchStoppedSmoothingFactor to 0.02
|
||||||
set RYB.DragUphillZAdjustmentFactor to 6
|
set RYB.DragUphillZAdjustmentFactor to 6
|
||||||
set RYB.DragDownhillZAdjustmentFactor to 4.5
|
set RYB.DragDownhillZAdjustmentFactor to 4.5
|
||||||
|
set RYB.DragEncumberanceEnabled to 1
|
||||||
@@ -93,7 +93,7 @@ begin GameMode
|
|||||||
elseif (Choice == 6)
|
elseif (Choice == 6)
|
||||||
set ChoosingInit to 0
|
set ChoosingInit to 0
|
||||||
set ChoosingSettings to 1
|
set ChoosingSettings to 1
|
||||||
MessageBox "Settings", "Toggle Rocking", "Toggle Player Weight", "Cancel"
|
MessageBox "Settings", "Toggle Drag Encumberance", "Toggle Rocking", "Toggle Player Weight", "Cancel"
|
||||||
set Choice to GetButtonPressed
|
set Choice to GetButtonPressed
|
||||||
elseif (Choice == 7)
|
elseif (Choice == 7)
|
||||||
set ChoosingInit to 0
|
set ChoosingInit to 0
|
||||||
@@ -185,7 +185,7 @@ begin GameMode
|
|||||||
elseif (Choice == 4)
|
elseif (Choice == 4)
|
||||||
set ChoosingOnLand to 0
|
set ChoosingOnLand to 0
|
||||||
set ChoosingSettings to 1
|
set ChoosingSettings to 1
|
||||||
MessageBox "Settings", "Toggle Rocking", "Toggle Player Weight", "Cancel"
|
MessageBox "Settings", "Toggle Drag Encumberance", "Toggle Rocking", "Toggle Player Weight", "Cancel"
|
||||||
set Choice to GetButtonPressed
|
set Choice to GetButtonPressed
|
||||||
elseif (Choice == 5)
|
elseif (Choice == 5)
|
||||||
set ChoosingOnLand to 0
|
set ChoosingOnLand to 0
|
||||||
@@ -216,20 +216,33 @@ begin GameMode
|
|||||||
set Choice to GetButtonPressed
|
set Choice to GetButtonPressed
|
||||||
if (Choice == 0)
|
if (Choice == 0)
|
||||||
set ChoosingSettings to 0
|
set ChoosingSettings to 0
|
||||||
if (RYB.RockingEnabled == 0)
|
if (RYB.DragEncumberanceEnabled == 0)
|
||||||
set RYB.RockingEnabled to 1
|
set RYB.DragEncumberanceEnabled to 1
|
||||||
|
Message "Drag encumberance enabled. You will be encumbered by the weight of the boat when dragging it."
|
||||||
else
|
else
|
||||||
set RYB.RockingEnabled to 0
|
set RYB.DragEncumberanceEnabled to 0
|
||||||
|
Message "Drag encumberance disabled. You will not be encumbered by the weight of the boat when dragging it."
|
||||||
endif
|
endif
|
||||||
elseif (Choice == 1)
|
elseif (Choice == 1)
|
||||||
set ChoosingSettings to 0
|
set ChoosingSettings to 0
|
||||||
if (RYB.PlayerWeightEnabled == 0)
|
if (RYB.RockingEnabled == 0)
|
||||||
set RYB.PlayerWeightEnabled to 1
|
set RYB.RockingEnabled to 1
|
||||||
|
Message "Rocking enabled. The boat will experience wave rocking motion when nearby and not grounded."
|
||||||
else
|
else
|
||||||
set RYB.PlayerWeightEnabled to 0
|
set RYB.RockingEnabled to 0
|
||||||
|
Message "Rocking disabled. The boat will not experience wave rocking motion."
|
||||||
endif
|
endif
|
||||||
elseif (Choice == 2)
|
elseif (Choice == 2)
|
||||||
set ChoosingSettings to 0
|
set ChoosingSettings to 0
|
||||||
|
if (RYB.PlayerWeightEnabled == 0)
|
||||||
|
set RYB.PlayerWeightEnabled to 1
|
||||||
|
Message "Player weight enabled. The boat rocking will react to the player's position on the boat."
|
||||||
|
else
|
||||||
|
set RYB.PlayerWeightEnabled to 0
|
||||||
|
Message "Player weight disabled. The boat rocking will not react to the player's position."
|
||||||
|
endif
|
||||||
|
elseif (Choice == 3)
|
||||||
|
set ChoosingSettings to 0
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
end
|
end
|
||||||
@@ -129,6 +129,7 @@ float DragTargetPitchMovingSmoothingFactor ; Additional smoothing factor on pitc
|
|||||||
float DragTargetPitchStoppedSmoothingFactor ; Additional smoothing factor on pitch applied while stopped (default: 0.02)
|
float DragTargetPitchStoppedSmoothingFactor ; Additional smoothing factor on pitch applied while stopped (default: 0.02)
|
||||||
float DragUphillZAdjustmentFactor ; How much to adjust Z based on angle when going uphill (default: 6.0)
|
float DragUphillZAdjustmentFactor ; How much to adjust Z based on angle when going uphill (default: 6.0)
|
||||||
float DragDownhillZAdjustmentFactor ; How much to adjust Z based on angle when going downhill (default: 4.5)
|
float DragDownhillZAdjustmentFactor ; How much to adjust Z based on angle when going downhill (default: 4.5)
|
||||||
|
short DragEncumberanceEnabled ; 0 = disabled, 1 = enabled (default: 1)
|
||||||
; Boat drag angle calculation variables
|
; Boat drag angle calculation variables
|
||||||
float dX
|
float dX
|
||||||
float dY
|
float dY
|
||||||
@@ -313,6 +314,7 @@ begin GameMode
|
|||||||
set ModVersion to 0.2
|
set ModVersion to 0.2
|
||||||
set ColliderPosThreshold to 1.0
|
set ColliderPosThreshold to 1.0
|
||||||
set LandZThreshold to 40.0
|
set LandZThreshold to 40.0
|
||||||
|
set DragEncumberanceEnabled to 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if (Resetting == -1)
|
if (Resetting == -1)
|
||||||
@@ -437,7 +439,9 @@ begin GameMode
|
|||||||
if (Dragging == 0)
|
if (Dragging == 0)
|
||||||
set Dragging to 1
|
set Dragging to 1
|
||||||
set DragTargetPitchAngle to 0 ; smooth reset to 0 pitch
|
set DragTargetPitchAngle to 0 ; smooth reset to 0 pitch
|
||||||
Player.AddItem RYBBoatToken 1
|
if (DragEncumberanceEnabled == 1)
|
||||||
|
Player.AddItem RYBBoatToken 1
|
||||||
|
endif
|
||||||
set fQuestDelayTime to HighUpdateRate ; High update rate while dragging
|
set fQuestDelayTime to HighUpdateRate ; High update rate while dragging
|
||||||
Seat.SetDestroyed 1
|
Seat.SetDestroyed 1
|
||||||
BoatMarker.Disable
|
BoatMarker.Disable
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ NotifyOnNewObject("/Script/Engine.Actor", function(object)
|
|||||||
local className = string.match(objectName, "^([^%s]+)")
|
local className = string.match(objectName, "^([^%s]+)")
|
||||||
local objectType = objectClassToTypes[className]
|
local objectType = objectClassToTypes[className]
|
||||||
if objectType then
|
if objectType then
|
||||||
log(string.upper(objectType) .. "Detected spawned object: " .. objectName)
|
log(string.upper(objectType) .. " Detected spawned object: " .. objectName)
|
||||||
detectAndDeleteDuplicateObject(object, objectType)
|
detectAndDeleteDuplicateObject(object, objectType)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user