hth wrote:Was wondering how to set boundaries on a map, also wondering how to set spawn location, I'm make a small map less than 300x300
hth wrote:I'm still having difficulty understanding the spawn and intel location, can someone please help?
Thanks in advance
def get_entity_location(team, entity_id):
if entity_id == BLUE_FLAG:
return (92, 357, 42)
if entity_id == BLUE_BASE:
return (93, 360, 52)
if entity_id == GREEN_FLAG:
return (396, 101, 42)
if entity_id == GREEN_BASE:
return (398, 102, 52)
hth wrote:Thats weird, I'm not suppose to spawn in water (level 0), but the game still does it :/ the main level of my map is suppose to be level 25
from pyspades.constants import *
from pyspades.server import ServerConnection
def get_spawn_location(connection):
if connection.team is connection.protocol.blue_team:
x, y, z = ServerConnection.get_spawn_location(connection)
return ServerConnection.set_location_safe(connection, (204, 256, 50))
if connection.team is connection.protocol.green_team:
x, y, z = ServerConnection.get_spawn_location(connection)
return ServerConnection.set_location_safe(connection, (308, 256, 50))
def get_entity_location(team, entity_id):
if entity_id == BLUE_BASE:
return (204, 240, 1)
if entity_id == BLUE_FLAG:
return (204, 277, 1)
if entity_id == GREEN_BASE:
return (308, 273, 1)
if entity_id == GREEN_FLAG:
return (308, 235, 1)
Users browsing this forum: No registered users and 3 guests