--- ../bzmap-orig/race.py 2004-11-10 18:40:05.759731440 +0200 +++ race.py 2004-11-10 18:45:26.498971664 +0200 @@ -1267,6 +1267,27 @@ u.add( b ) return u , t +def CornerThinTracksObstacle( level ) : + u = Union() + if level == 1 : + ts = laneSpace - 1 + tw = laneWidth + 1 + else : + ts = laneSpace + tw = laneWidth + length = rand( 12 ) + 64 + t = RemoveSafetyTrack( x = length , z = length ) + bridgeWidth = ( 4 - level ) * 0.1 + + for i in range( numLanes ) : + laneCtr = -trackWidth / 2 + i * ( ts + tw ) + laneWidth / 2 + p1 = Point( -bridgeWidth / 2 + laneCtr , 0 , -length ) + p2 = Point( bridgeWidth / 2 + laneCtr , - 0.25 , bridgeWidth / 2 + laneCtr ) + u.add( Box( p1 , p2 ) ) + p1 = Point( -length , 0 , -bridgeWidth / 2 + laneCtr ) + u.add( Box( p1 , p2 ) ) + return u , t + # # OBSTACLE SELECTION # @@ -1320,6 +1341,7 @@ 'Corner6' : ( 9 , False , Corner6Obstacle ) , 'CornerClusterBomb' : ( 0 , False , ClusterBombObstacle ) , 'CornerClusterBomb2' : ( 0 , False , CornerClusterBombObstacle ) , +'CornerThinTracks' : ( 4 , False , CornerThinTracksObstacle ) , 'CornerEmpty' : ( 2 , False , EmptyObstacle ) } # Make a list of obstacles to pick from