diff options
| author | untodesu <kirill@untode.su> | 2025-03-21 18:16:40 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-03-21 18:16:40 +0500 |
| commit | 9f80a278a6f188c8e9131df0684bad14a07491ee (patch) | |
| tree | 067c6ad4b892a34c3c03e3ecdbe312453bd46ea4 /game/shared/factory.cc | |
| parent | fddd7f761176bb45cfdd41eeccaeadac22d33ddf (diff) | |
| download | voxelius-9f80a278a6f188c8e9131df0684bad14a07491ee.tar.bz2 voxelius-9f80a278a6f188c8e9131df0684bad14a07491ee.zip | |
Toggles system rework, added flight pmove mode
- Reworked toggles to use a constant-styled enumerations
- Added TOGGLE_PM_FLIGHT and an according movement mode. Now server-side
just doesn't simulate gravity altogether for players, instead relying
on whatever the client provides which works fine for now. Closes #12
Diffstat (limited to 'game/shared/factory.cc')
| -rw-r--r-- | game/shared/factory.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/game/shared/factory.cc b/game/shared/factory.cc index ee09a24..34cc55c 100644 --- a/game/shared/factory.cc +++ b/game/shared/factory.cc @@ -18,8 +18,6 @@ void shared_factory::create_player(Dimension *dimension, entt::entity entity) collision.aabb.min = glm::fvec3(-0.4f, -1.6f, -0.4f); collision.aabb.max = glm::fvec3(+0.4f, +0.2f, +0.4f); - dimension->entities.emplace_or_replace<GravityComponent>(entity); - auto &head = dimension->entities.emplace_or_replace<HeadComponent>(entity); head.angles = glm::fvec3(0.0f, 0.0f, 0.0f); head.offset = glm::fvec3(0.0f, 0.0f, 0.0f); |
