Hexclimb version 1.0
  • description

    6

  • authors

    Danke 51

  • downloads
    voxlap .vxl 2.09 MiB
    Download
    pyspades .txt 937 bytes
    Download
  • tags

    Water damage 🌊

  • text file
    name = 'Hexclimb'
    version = '1.0'
    author = 'Danke'
    description = '6'
    fog = (30, 20, 10)
    extensions = {
         'water_damage' : 100,
     } 
    
    from pyspades.constants import *
    import random
    
    
    def get_entity_location(team, entity_id):
        if entity_id == 0:
            x,y,z=161,256,53
        if entity_id == 1:
            x,y,z=350,256,53
        if entity_id == 2:
            x,y,z=85,256,54
        if entity_id == 3:
            x,y,z=426,256,54
        return (x, y, z)
    	
    
    def get_spawn_location(connection):
        if connection.team is connection.protocol.blue_team:
            x = random.randrange(71,128)
            y = random.randrange(183,329)
            z = connection.team.protocol.map.get_z(x, y)
            return (x, y, z-2)
        if connection.team is connection.protocol.green_team:
            x = random.randrange(383,440)
            y = random.randrange(183,329)
            z = connection.team.protocol.map.get_z(x, y)
            return (x, y, z-2)