add icon and reenable sneaking
This commit is contained in:
parent
fbe9c20522
commit
f37b7fe202
4
init.lua
4
init.lua
|
@ -22,7 +22,7 @@ end
|
||||||
|
|
||||||
arena_lib.register_minigame("the_bridge", {
|
arena_lib.register_minigame("the_bridge", {
|
||||||
name = "The Bridge",
|
name = "The Bridge",
|
||||||
--icon = "magiccompass_the_bridge.png",
|
icon = "icon.png",
|
||||||
teams = { S("red"), S("blue") },
|
teams = { S("red"), S("blue") },
|
||||||
teams_color_overlay = { "crimson", "blue"},
|
teams_color_overlay = { "crimson", "blue"},
|
||||||
celebration_time = 3,
|
celebration_time = 3,
|
||||||
|
@ -46,7 +46,7 @@ arena_lib.register_minigame("the_bridge", {
|
||||||
in_game_physics = {
|
in_game_physics = {
|
||||||
speed = player_speed,
|
speed = player_speed,
|
||||||
jump = player_jump,
|
jump = player_jump,
|
||||||
sneak=false,
|
sneak=true,--allow sneaking (again)
|
||||||
},
|
},
|
||||||
|
|
||||||
disabled_damage_types = {},
|
disabled_damage_types = {},
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 776 B |
|
@ -205,6 +205,7 @@ minetest.register_craftitem("the_bridge:knockback_stick",{
|
||||||
if not pointed_thing then return end
|
if not pointed_thing then return end
|
||||||
if not minetest.is_player(pointed_thing.ref) then return end
|
if not minetest.is_player(pointed_thing.ref) then return end
|
||||||
dir = user:get_look_dir()
|
dir = user:get_look_dir()
|
||||||
|
dir.y = dir.y+0.2
|
||||||
pointed_thing.ref:add_player_velocity(vector.multiply(dir,8))
|
pointed_thing.ref:add_player_velocity(vector.multiply(dir,8))
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue