Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player speed set to 1 whenever they respawn #144

Open
Zughy opened this issue Apr 6, 2024 · 1 comment
Open

Player speed set to 1 whenever they respawn #144

Zughy opened this issue Apr 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Zughy
Copy link

Zughy commented Apr 6, 2024

I don't know why or how, but if I activate 3d_armor (latest CDB version) and I kill myself, even if I override my speed in on_respawn, this happens:

minetest.register_on_respawnplayer(function(player)
  player:set_physics_override({ speed = 2.5 })
  minetest.chat_send_all("on_respawn | Speed now = " .. player:get_physics_override().speed) -- 2.5

  minetest.after(0.1, function()
    minetest.chat_send_all("on_respawn | Speed 1 step after = " .. player:get_physics_override().speed) -- 1
  end)
end)

3d_armor is enough, there's no need to use the rest of the modpack

@BuckarooBanzay BuckarooBanzay added the bug Something isn't working label Apr 9, 2024
@SmallJoker
Copy link
Member

SmallJoker commented May 7, 2024

Cannot reproduce. (changed minetest.chat_send_all to print)

2024-05-07 15:25:41: ACTION[Server]: singleplayer dies at (-28,4,39). No bones placed
2024-05-07 15:25:43: ACTION[Server]: Moving singleplayer to static spawnpoint at (-32,4,47)
on_respawn | Speed now = 2.5
2024-05-07 15:25:43: ACTION[Server]: singleplayer respawns at (-32,4,47)
on_respawn | Speed 1 step after = 2.5

Test setup:

  • recent 5.9.0-dev build
  • minetest_game with minimal mods enabled
  • Used /killme with damage enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants