Exemplo n.º 1
0
    def __init__(self, protocol):
        self.protocol = protocol
        self.green_flag = protocol.green_team.flag
        self.blue_flag = protocol.blue_team.flag

        self.state_loader = loaders.CTFState()
        self.drop_intel_loader = loaders.IntelDrop()
        self.drop_pickup_loader = loaders.IntelPickup()
        self.drop_capture_loader = loaders.IntelCapture()
Exemplo n.º 2
0
    def __init__(self, protocol):
        self.protocol = protocol
        self.team_1 = protocol.team_1
        self.team_2 = protocol.team_2

        self.state_loader = loaders.CTFState()
        self.intel_drop_loader = loaders.IntelDrop()
        self.intel_pickup_loader = loaders.IntelPickup()
        self.intel_capture_loader = loaders.IntelCapture()

        # player carrying team_1's intel, not the team_1 member carrying the
        # intel
        # This should probably be reversed as it's pretty confusing
        self.team_1_carrier = None
        self.team_2_carrier = None
Exemplo n.º 3
0
from pyspades.protocol import BaseConnection
from pyspades.constants import *
from pyspades.packet import call_packet_handler, register_packet_handler
from pyspades import contained as loaders
from pyspades.collision import vector_collision, collision_3d
from pyspades import world
from pyspades.common import Vertex3, get_color, make_color
from pyspades.weapon import WEAPONS
from pyspades.mapgenerator import ProgressiveMapGenerator

set_tool = loaders.SetTool()
block_action = loaders.BlockAction()
position_data = loaders.PositionData()
restock = loaders.Restock()
create_player = loaders.CreatePlayer()
intel_pickup = loaders.IntelPickup()
intel_capture = loaders.IntelCapture()
intel_drop = loaders.IntelDrop()
player_left = loaders.PlayerLeft()
set_hp = loaders.SetHP()
existing_player = loaders.ExistingPlayer()
kill_action = loaders.KillAction()
chat_message = loaders.ChatMessage()
map_data = loaders.MapChunk()
map_start = loaders.MapStart()
state_data = loaders.StateData()
ctf_data = loaders.CTFState()
tc_data = loaders.TCState()
change_weapon = loaders.ChangeWeapon()
weapon_reload = loaders.WeaponReload()
handshake_init = loaders.HandShakeInit()