def testPlugin(p):
        joe.connects(1)

        joe.gear = None
        joe.team = b3.TEAM_SPEC
        joe.changesGear('GLAOWRA')

        joe.gear = None
        joe.team = b3.TEAM_BLUE
        joe.changesGear('GLAOWRA')

        print "\nJoe takes smoke grenades"
        joe.changesGear('GLAQWRA')
        time.sleep(1)

        print "\nJoe goes to red team"
        joe.team = b3.TEAM_RED
        time.sleep(1)

        print "\nJoe takes HE grenades and goes to RED"
        joe.changesGear('GLAOWRA')
        joe.team = b3.TEAM_RED

        superadmin.connects(0)
        superadmin.says('!wpctrl -he')

        time.sleep(2)
        joe.disconnects()
        superadmin.disconnects()
Exemple #2
0
    joe.kills(simon)
    moderator.kills(joe)
    print "-------------------------"
    
    fakeConsole.queueEvent(b3.events.Event(b3.events.EVT_GAME_ROUND_END, None, None))
    time.sleep(5)
    print "-------------------------"

    joe.says('!duelcancel')
    moderator.kills(joe)
    moderator.kills(simon)
    print "-------------------------"
    
    joe.says('!duelreset')
    simon.kills(moderator)
    simon.kills(moderator)
    simon.kills(moderator)
    moderator.kills(joe)
    """

    joe.connects(cid=1)
    simon.connects(cid=2)
    simon.groupBits = 1
    joe.says('!duel simon')
    simon.says('!duel joe')
    time.sleep(1)
    joe.disconnects()

    while True:
        time.sleep(1)
Exemple #3
0
    joe.kills(simon)
    moderator.kills(joe)
    print "-------------------------"
    
    fakeConsole.queueEvent(b3.events.Event(b3.events.EVT_GAME_ROUND_END, None, None))
    time.sleep(5)
    print "-------------------------"

    joe.says('!duelcancel')
    moderator.kills(joe)
    moderator.kills(simon)
    print "-------------------------"
    
    joe.says('!duelreset')
    simon.kills(moderator)
    simon.kills(moderator)
    simon.kills(moderator)
    moderator.kills(joe)
    """
    
    joe.connects(cid=1)
    simon.connects(cid=2)
    simon.groupBits = 1
    joe.says('!duel simon')
    simon.says('!duel joe')
    time.sleep(1)
    joe.disconnects()

    while True: time.sleep(1)