ARENA MAPPING TIP: use water in 'out of bounds' areas

Instructions for using and creating mods.
2 posts Page 1 of 1 First unread post
izzy
Head Admin / Co-founder
Head Admin / Co-founder
Posts: 474
Joined: Tue Oct 09, 2012 8:16 pm


There's a major bug in pyspades that allows people to walk through walls, which ruins the gameplay for arena maps that don't have proper "fixes" to prevent abuse.

SOLUTION: Separate the playing area from the "out of bounds" area with water, either by using a moat as a "wall" or converting all of the out of bounds area into water. Example:

Image

Then enable water damage in the map's .txt file:
Code: Select all
extensions = {
     'water_damage' : 100
}
CajunStyle wrote:
There seems also to be an extension "boundary_damage" that lets you define a box out of which you are damaged. In map_extensions.py: line 15. I'm not sure how to define the boundary coordinates.
Here's how:
Code: Select all
extensions = {
    'boundary_damage' : {'left' : 64, 'right' : 448, 'top' : 128, 'bottom' : 384, 'damage': 100}
}
This means you would receive 100 damage if you walk on any of the 64 blocks from the left edge of the map, 64 blocks from the right edge of the map, 128 blocks from the top edge of the map, and 128 blocks from the bottom edge of the map. Damage occurs before the left value, after the right value, before the top value, and after the bottom value. Values are 0 to 512 left to right and top to bottom, so in this example 'right' is 512 - 64 = 448 and 'bottom' is 512 - 128 = 384.

This is fine for straight boundaries. If your boundaries are curvy, use the "moat" solution.
EruEru
League Participant
League Participant
Posts: 18
Joined: Fri Jul 12, 2013 10:14 am


Sorry for such a silly question, but: how to create map's .txt-file and where to put it?
Edit1: Have already figured out. Hmm, that was too easy. Thanks for the tutorial, Iz.
2 posts Page 1 of 1 First unread post
Return to “Guides / Tutorials”

Who is online

Users browsing this forum: No registered users and 11 guests