[Help] Setting the spawns/tents/intels.

4 posts Page 1 of 1 First unread post
tobi9sc
Modder
Modder
Posts: 349
Joined: Sun Nov 25, 2012 12:32 am


Hello, I'm here to ask for help, I make a map and i want to place the intels at the middle of the map and the the spawn/tents at the both sides. I've searched this at the previous forums, and they said that i can found the guide at http://code.google.com/p/pyspades/wiki/MapScripting , but it said that, Page "MapScripting" Not Found .So anybody can show me a guide?.


Thanks,
Jdrew
Mapper
Mapper
Posts: 4808
Joined: Tue Oct 30, 2012 10:48 pm


Hello,

I had similar problems not knowing how to make the text files for maps. Before I start let me tell you a story..

Jagex payed the makers of pyspades to get high with some money so they did, when they were out of they way jagex simply told there tech dudes to take pyspades down. But B&S doesn't use pyspades it uses pysnipe a modified version of pyspades made by stack.

I am sorry I can not help you much as stack hasn't added everything to the wiki I will tell him to add it later today when I talk to him but here is the pysnipe page where you can get all the information on pysnipe you need https://code.google.com/p/pysnip/

hope this helps,
J drew
Ki11aWi11
Mapper
Mapper
Posts: 106
Joined: Tue Nov 20, 2012 12:39 am


I'll write up some guides for that later, once I can work out how to use code.google and be able to edit it, but for now, download my maps from this topic and look at how I did it. While you've got the topic open write a nice comment, I like nice comments.
Sasquatch
Mapper
Mapper
Posts: 141
Joined: Wed Nov 14, 2012 5:18 pm


Pretty much what kill said. I've started using them to great advantage. On top of that, you can also choose water damage, what quadrants to protect and turn building off in, and water damage. This is exactly what I have in one of my maps metadata at the moment.
Code: Select all
extensions = { 'water_damage' : 5 }
protected = ['A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'B7', 'B8', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7', 'C8', 'D1', 'D2', 'D3', 'D4', 'D5', 'D6', 'D7', 'D8', 'E1', 'E2', 'E3', 'E4', 'E5', 'E6', 'E7', 'E8', 'F1', 'F2', 'F3', 'F4', 'F5', 'F6', 'F7', 'F8', 'G1', 'G2', 'G3', 'G4', 'G5', 'G6', 'G7', 'G8', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6', 'H7', 'H8']


# scripting

from random import randrange, choice
from pyspades.constants import *
from pyspades.server import ServerConnection
from commands import choice

def get_entity_location(team, entity_id):
    if entity_id == BLUE_FLAG:
        return (511, 511, 1)
    if entity_id == BLUE_BASE:
        return (511, 511, 1)
    if entity_id == GREEN_FLAG:
        return (1, 1, 1)
    if entity_id == GREEN_BASE:
        return (1, 1, 1)

spawn_locations_blue = [
    (252, 232, 56),
    (223, 257, 60),
    (211, 255, 61),
    (211, 226, 61),
    (230, 207, 61),
    (252, 207, 61)
]

spawn_locations_green = [
    (247, 293, 56),
    (304, 257, 61),
    (285, 302, 61),
    (248, 303, 61),
    (301, 287, 61),
    (277, 250, 53)
]

def get_spawn_location(connection):
    if connection.team is connection.protocol.blue_team:
	x, y, z = choice(spawn_locations_blue)
	return x, y, z
    if connection.team is connection.protocol.green_team:
	x, y, z = choice(spawn_locations_green)
	return x, y, z

fog = (250, 200, 100)
Keep in mind if you want some (all?) of these to work, you should download and enable dynfog.py and map_extensions.py here.

https://github.com/matpow2/pyspades-userscripts
4 posts Page 1 of 1 First unread post
Return to “Help Discussions”

Who is online

Users browsing this forum: No registered users and 2 guests