def end(self, ball): if not g.SERVER: return b = Ball(Vector2(ball.position.x, ball.position.y)) ball.position.y += 5 # ball.netinfo["teleporting"] = True self.game.scene.add(b) t = min(ball.superIndex, len(ball.super)) b.super = [] # ball.super[t:] b.velocity = ball.velocity.clone() + Vector2(0, 0) b.thrower = ball.thrower b.throwTeam = ball.throwTeam ball.velocity += Vector2(0, 0) b.zVelocity = 10 # ball.zVelocity b.z = ball.z b.throw() self.game.net.spawn(b, "ball")