New setting: server_physics, to restore physics in hybrid servers
parent
61d57011d9
commit
7c2c9c3344
|
@ -11,7 +11,9 @@ It comes with an arena manager and a signs system. The latter creates a bridge i
|
|||
|
||||
2) Be sure you have [LuaJIT](https://luajit.org/) installed on your machine
|
||||
|
||||
3) For an in-depth understanding of what you can do with the library, have a look at the [full documentation](https://gitlab.com/zughy-friends-minetest/arena_lib/-/blob/master/DOCS.md).
|
||||
3) Check [SETTINGS.lua](SETTINGS.lua)
|
||||
|
||||
4) (modders only) Dive into the [full documentation](DOCS.md) to understand how to create minigames
|
||||
|
||||
### Dependencies
|
||||
Default
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
-- The physics override to apply when a player leaves a match (whether by quitting,
|
||||
-- winning etc). This comes in handy for hybrid servers (i.e. survival/creative
|
||||
-- ones featuring some minigames). If you're aiming for a full minigame server,
|
||||
-- ignore this parameter and let the mod hub_manager supersede it =>
|
||||
-- https://gitlab.com/zughy-friends-minetest/hub-manager
|
||||
arena_lib.server_physics = {
|
||||
speed = 1,
|
||||
jump = 1,
|
||||
gravity = 1,
|
||||
sneak = true,
|
||||
sneak_glitch = false,
|
||||
new_move = true
|
||||
}
|
10
api.lua
10
api.lua
|
@ -1987,15 +1987,7 @@ function operations_before_leaving_arena(mod_ref, arena, p_name)
|
|||
hub_manager.set_items(player)
|
||||
hub_manager.set_hub_physics(player)
|
||||
else
|
||||
-- TODO 4.2: parametro personalizzato tramite /arenasettings
|
||||
player:set_physics_override({
|
||||
speed = 1,
|
||||
jump = 1,
|
||||
gravity = 1,
|
||||
sneak = true,
|
||||
sneak_glitch = false,
|
||||
new_move = true
|
||||
})
|
||||
player:set_physics_override(arena_lib.server_physics)
|
||||
end
|
||||
|
||||
-- riattivo la minimappa eventualmente disattivata
|
||||
|
|
Loading…
Reference in New Issue