mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-11 18:40:25 +01:00
Modifications for sprint and moretrees
- Moretrees' leaves aren't walkable anymore - Adding the snore sound in default - Adding snore sound's play when stamina has run out (on both e and w sprint) - I don't know why mud mods/snow/config.txt has been modified
This commit is contained in:
parent
c5b58ecbb7
commit
2850a4c243
BIN
minetestforfun_game/mods/default/sounds/default_snore.ogg
Normal file
BIN
minetestforfun_game/mods/default/sounds/default_snore.ogg
Normal file
Binary file not shown.
@ -175,6 +175,7 @@ for i in ipairs(moretrees.treelist) do
|
||||
groups = {snappy=3, flammable=2, leaves=1, moretrees_leaves=1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
|
||||
walkable = false,
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
|
@ -15,4 +15,4 @@ legacy = false
|
||||
# Enables debug output.
|
||||
debug = false
|
||||
# Enables falling snow.
|
||||
enable_snowfall = true
|
||||
enable_snowfall = true
|
@ -90,8 +90,8 @@ minetest.register_globalstep(function(dtime)
|
||||
if playerInfo["stamina"] <= 0 then
|
||||
playerInfo["stamina"] = 0
|
||||
setSprinting(playerName, false)
|
||||
minetest.chat_send_player(playerName, "Votre sprint s'arrete, plus d'endurance ! Your sprint stamina has run out !")
|
||||
playerInfo["timeOut"] = 1
|
||||
minetest.sound_play("default_snore",{object=player})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -89,6 +89,7 @@ minetest.register_globalstep(function(dtime)
|
||||
if playerInfo["stamina"] <= 0 then
|
||||
playerInfo["stamina"] = 0
|
||||
setState(playerName, 0)
|
||||
minetest.sound_play("default_snore",{object=player})
|
||||
end
|
||||
|
||||
--Increase player's stamina if he/she is not sprinting and his/her stamina is less than SPRINT_STAMINA
|
||||
|
Loading…
Reference in New Issue
Block a user