From 91f3c09a625a346c2653e6eda36c82a7cc05b3ee Mon Sep 17 00:00:00 2001 From: Zughy <4279489-marco_a@users.noreply.gitlab.com> Date: Tue, 3 Nov 2020 14:58:47 +0100 Subject: [PATCH] =?UTF-8?q?Non=20=C3=A8=20pi=C3=B9=20possibile=20collidere?= =?UTF-8?q?=20con=20la=20palla=20(ma=20la=20si=20pu=C3=B2=20comunque=20pre?= =?UTF-8?q?ndere?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bl_modes/TD/ball.lua | 4 ++-- bl_weapons/weapons.lua | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bl_modes/TD/ball.lua b/bl_modes/TD/ball.lua index f2c0b38..be6b4be 100644 --- a/bl_modes/TD/ball.lua +++ b/bl_modes/TD/ball.lua @@ -10,7 +10,7 @@ local function add_point() end local ball = { initial_properties = { physical = true, - collide_with_objects = true, + collide_with_objects = false, visual = "cube", visual_size = {x = 1.0, y = 1.0, z = 1.0}, collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, @@ -198,7 +198,7 @@ function ball:attach(player) player:get_meta():set_int("bl_has_ball", 1) block_league.energy_drain(arena, p_name) - self.object:set_attach(player, "Head", {x=0, y=5.5, z=0}, {x=0, y=0, z=0}) + self.object:set_attach(player, "Head", {x=0, y=10.5, z=0}, {x=0, y=0, z=0}) self.wielder = player local teamID = arena.players[p_name].teamID diff --git a/bl_weapons/weapons.lua b/bl_weapons/weapons.lua index e057ff8..7ca32db 100644 --- a/bl_weapons/weapons.lua +++ b/bl_weapons/weapons.lua @@ -463,7 +463,6 @@ function check_weapon_type_and_attack(player, weapon, pointed_thing) local bullet = weapon.bullet or nil if weapon.weapon_type == 1 then - minetest.chat_send_player(player:get_player_name(), "hitscan parte") block_league.shoot_hitscan(player, weapon, pointed_thing) elseif weapon.weapon_type == 2 then block_league.shoot_bullet(player, bullet, pointed_thing)