Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-08-02 22:02:21 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-08-02 22:02:21 +1000
commit98949574a8cbcd0ba3e0d910fbf1abcbb1bcb1d2 (patch)
tree2a5a3081f26837fb2496ade69c9ca857afb6e266
parent32e6eab0699c0c802435e6fb1a3ad47d2748acee (diff)
SwimIdle tech parent state
-rw-r--r--source/game/StarPlayer.cpp2
-rw-r--r--source/game/StarTechController.cpp3
-rw-r--r--source/game/StarTechController.hpp3
3 files changed, 6 insertions, 2 deletions
diff --git a/source/game/StarPlayer.cpp b/source/game/StarPlayer.cpp
index c9816c1..188a6a8 100644
--- a/source/game/StarPlayer.cpp
+++ b/source/game/StarPlayer.cpp
@@ -1773,6 +1773,8 @@ void Player::processStateChanges(float dt) {
m_humanoid->setState(Humanoid::Run);
} else if (techState == TechController::ParentState::Swim) {
m_humanoid->setState(Humanoid::Swim);
+ } else if (techState == TechController::ParentState::SwimIdle) {
+ m_humanoid->setState(Humanoid::SwimIdle);
}
} else {
auto loungeAnchor = as<LoungeAnchor>(m_movementController->entityAnchor());
diff --git a/source/game/StarTechController.cpp b/source/game/StarTechController.cpp
index 4295fb7..d62fe14 100644
--- a/source/game/StarTechController.cpp
+++ b/source/game/StarTechController.cpp
@@ -25,7 +25,8 @@ EnumMap<TechController::ParentState> const TechController::ParentStateNames{
{TechController::ParentState::Duck, "Duck"},
{TechController::ParentState::Walk, "Walk"},
{TechController::ParentState::Run, "Run"},
- {TechController::ParentState::Swim, "Swim"}
+ {TechController::ParentState::Swim, "Swim"},
+ {TechController::ParentState::SwimIdle, "SwimIdle"}
};
TechController::TechController() {
diff --git a/source/game/StarTechController.hpp b/source/game/StarTechController.hpp
index 03fa61f..d686b1e 100644
--- a/source/game/StarTechController.hpp
+++ b/source/game/StarTechController.hpp
@@ -28,7 +28,8 @@ public:
Duck,
Walk,
Run,
- Swim
+ Swim,
+ SwimIdle
};
static EnumMap<ParentState> const ParentStateNames;