Non è più possibile collidere con la palla (ma la si può comunque prendere

master
Zughy 2020-11-03 14:58:47 +01:00
parent e8fc45d013
commit 91f3c09a62
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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)