Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - G.K.

Pages: 1 ... 63 64 65 66 67 68 69 [70] 71 72 73 74 75 76 77 ... 663
1381
Tournament Archives / Re: Calvinbot
« on: September 06, 2011, 02:16:47 AM »
OK, I'll BFE invincible armour on.

1382
Tournament Archives / Re: In Tandem - Idea
« on: September 05, 2011, 03:57:10 PM »
I might enter now it's this weightclass.

Arena is moving into final stages. I only need to figure out how to add a hazard and add the logo to the floor skin.

1383
Discussion / Re: RA2 Player Nations
« on: September 05, 2011, 03:05:37 PM »
I wasn't including myself in that.

1384
Discussion / Re: RA2 Player Nations
« on: September 05, 2011, 03:02:21 PM »
Only the people who have AU already deserve it. :P

1385
Chatterbox / Re: Thing of the Week
« on: September 05, 2011, 03:48:06 AM »
This week's:

Alright! Made it to another week with those nominations. I'm hoping this will become more popular as more of you PM nominations more regularly. Anyway, here is the winner.
Mr. AwesomeSauce! His nomination being...
...Robot Arena 2!
Here was his nominating PM:
I would like to submit Robot Arena 2 to be thing of the week because that is what this forum is about. 'Nuff said.
Well, you all already know about it, so as MAS said...''Nuff said.'
So, until next time...discuss away!
-IRW

Feel free to send in new nominations.

1386
DSL TC Showcases / Re: Clickbeetle's Supreme DSL bots
« on: September 05, 2011, 03:21:38 AM »
More worried, but I still have more pierce/concussion. =)

1387
General Support / Re: SKBT needs help...
« on: September 05, 2011, 03:20:05 AM »
Hahahah Picnic did this once and nearly entered it in BBEANS 6.

1388
Off-Topic Discussion / Re: General Chatter Thread
« on: September 05, 2011, 03:18:35 AM »
Hahahaha, I would have told NFX if you asked me to and if I wasn't asleep.

1389
You are?

1390
Tournament Archives / Re: In Tandem - Idea
« on: September 05, 2011, 03:13:58 AM »
I think I'd agree with you.

I've changed it to that now.

1391
General Support / Re: Learning to AI
« on: September 05, 2011, 03:12:46 AM »
Or speak to me. I run live teaching sessions. (Well, I taught a few guys over messenger.)

And 1 guy actually in your house...

1392
General Support / Re: GMF Queries
« on: September 05, 2011, 03:10:56 AM »
Thanks.

1393
Tournament Archives / Re: In Tandem - Idea
« on: September 04, 2011, 05:59:25 PM »
A Wammer, obviously...

1394
Tournament Archives / Re: In Tandem - Idea
« on: September 04, 2011, 05:50:53 PM »
I feel they would steam-roller this.

1395
Tournament Archives / Re: In Tandem - Idea
« on: September 04, 2011, 05:39:29 PM »
I've made a few little changes to the stacking rules.

1396
Tournament Archives / Re: In Tandem - Idea
« on: September 04, 2011, 02:39:47 PM »
What are you going to do with those stacks anyway?

1397
Tournament Archives / Re: In Tandem - Idea
« on: September 04, 2011, 02:34:16 PM »
I know it's possible but I don't think i'll allow it.

1398
Tournament Archives / Re: Ironbot SBV
« on: September 04, 2011, 02:30:17 PM »
How many bots are 6wd? I count 7

1399
General Support / Re: GMF Queries
« on: September 04, 2011, 02:10:43 PM »
DP:

I acted under those assummptions and added the POV's, however they don't seem to have worked. Bots still crash into the hazard in the middle.

Here's the arena.py

Code: [Select]
from __future__ import generators
import plus
import Arenas
import random
import Hazards
import math

from random import randint
import time
import HazardsBlueRay
import string
import Gooey



class Twisted(Arenas.SuperArena):
    "We fight in tandem!"
    name = "In Tandem Arena"
    preview = "Tandem/tand_preview.bmp"
    game_types = ['DEATHMATCH', 'BATTLE ROYAL', 'TEAM MATCH']
    extent = (-15, 15, 15, -15)


    def __init__(self):
        Arenas.SuperArena.__init__(self, "Arenas/Tandem/Tandem.gmf")
        #plus.Arena.__init__(self, "")
        plus.setBackColor(.36, .537, .788)
       
        degrad = 0.01745
        self.AddStaticCamera("Main View", (0, 30, -20), (68*degrad,0), 55*degrad)
        self.AddStaticCamera("Battle View", (19.5, 25, 19.5), (56*degrad,225*degrad), 40*degrad)
        self.AddStaticCamera("High Flipper View", (-19.5, 45, -19.5), (48*degrad,45*degrad), 84*degrad)
        self.AddStaticCamera("Birds Eye View", (0, 45, 0), (90*degrad,0), 50*degrad)

        self.AddWatchCamera("Combat Cam", (-12, 8, 12), (16, 36, 65*degrad, 30*degrad))
        self.AddWatchCamera("Aerial Cam", (-19.5, 35, -19.5), (50, 60, 45*degrad, 60*degrad))
        self.AddWatchCamera("Ground Cam", (8, -5, -8), (15, 40, 75*degrad, 35*degrad))
        self.AddWatchCamera("Spectator Cam", (13, 15, 13), (6, 18, 45*degrad, 45*degrad))
   
        self.players = ()

        ##################  Bot Flames + Smoke  ##################-------------
        self.RI_1 = 0
        self.RI_2 = 0
        self.RI_3 = 0
        self.RI_4 = 0
        self.RI_5 = 0
        self.RI_6 = 0
        self.RI_7 = 0
        self.RI_8 = 0
        self.RI_9 = 0
        self.RI_D = 0
        self.RI_Y = 0
        self.RI_SandF_0 = random.randint(-4, 4)   ### Random Smoke and Flames
        self.RI_SandF_1 = random.randint(-4, 4)   ### Random Smoke and Flames
        self.RI_SandF_2 = random.randint(-4, 4)   ### Random Smoke and Flames
        self.RI_SandF_3 = random.randint(-4, 4)   ### Random Smoke and Flames

        ##################  Bot Flames + Smoke  ##################-------------





    def AddShadowReceivers(self):
        self.SetShadowSource(5.897, 19.159, 5.899)





       
    def Activate(self, on):
        if on: self.players = plus.getPlayers()

        Arenas.SuperArena.Activate(self, on)





    def HazardsOn(self, on):
        if on:
            ##################  Bot Flames + Smoke  ##################-------------
            self.BOT_Flame_0 = HazardsBlueRay.BotFlame((0, 0, 0), (0, 1, 0), (.2, .4, .2), .8)
            self.AddHazard(self.BOT_Flame_0)                                                                   
            self.BOT_Flame_1 = HazardsBlueRay.BotFlame((0, 0, 0), (0, 1, 0), (.2, .4, .2), .8)
            self.AddHazard(self.BOT_Flame_1)                                                                   
            self.BOT_Flame_2 = HazardsBlueRay.BotFlame((0, 0, 0), (0, 1, 0), (.2, .4, .2), .8)
            self.AddHazard(self.BOT_Flame_2)                                                                   
            self.BOT_Flame_3 = HazardsBlueRay.BotFlame((0, 0, 0), (0, 1, 0), (.2, .4, .2), .8)
            self.AddHazard(self.BOT_Flame_3)
            self.BOT_Flame_4 = HazardsBlueRay.BotFlame((0, 0, 0), (0, 1, 0), (.2, .4, .2), .8)
            self.AddHazard(self.BOT_Flame_4)                                                                   
            #self.BOT_Flame_5 = HazardsBlueRay.BotFlame((0, 0, 0), (0, 1, 0), (.2, .4, .2), .8)
            #self.AddHazard(self.BOT_Flame_5)
            #self.BOT_Flame_6 = HazardsBlueRay.BotFlame((0, 0, 0), (0, 1, 0), (.2, .4, .2), .8)
            #self.AddHazard(self.BOT_Flame_6)
            #self.BOT_Flame_7 = HazardsBlueRay.BotFlame((0, 0, 0), (0, 1, 0), (.2, .4, .2), .8)
            #self.AddHazard(self.BOT_Flame_7)
            #self.BOT_Flame_8 = HazardsBlueRay.BotFlame((0, 0, 0), (0, 1, 0), (.2, .4, .2), .8)
            #self.AddHazard(self.BOT_Flame_8)           

            ##################  Bot Flames + Smoke  ##################-------------

            #wall
            self.AddCollisionLine((17, 17), (17, -17))
            self.AddCollisionLine((17, -17), (-17, -17))
            self.AddCollisionLine((-17, -17), (-17, 17))
            self.AddCollisionLine((-17, 17), (17, 17))

            self.AddPOV(0, (1, 1), (0, 1))
            self.AddPOV(1, (1, -1), (1, 2))
            self.AddPOV(2, (-1, -1), (2, 3))
            self.AddPOV(3, (-1, 1), (3, 0))

            self.AddPOV(0, (1, 1), (0, 3))
            self.AddPOV(1, (1, -1), (1, 0))
            self.AddPOV(2, (-1, -1), (2, 1))
            self.AddPOV(3, (-1, 1), (3, 2))           

            self.AddCollisionLine((1, 1), (1, -1))
            self.AddCollisionLine((1, -1), (-1, -1))
            self.AddCollisionLine((-1, -1), (-1, 1))
            self.AddCollisionLine((-1, 1), (1, 1))           

        return Arenas.SuperArena.HazardsOn(self, on)







       
    def Tick(self):
        for each in self.players:
            if plus.getLocation(each)[1] < -10: # Adjust this parameter to floor height(s).
                plus.eliminatePlayer(each)

        ##################  Bot Flames + Smoke  ##################-------------
        self.RI_0 = randint(-4, 4)
        self.RI_1 = randint(-4, 4)
        self.RI_2 = randint(-4, 4)
        self.RI_3 = randint(-2, 2)
        self.RI_4 = randint(-2, 2)
        self.RI_5 = randint(-2, 2)
        self.RI_6 = randint(-2, 2)
        self.RI_7 = randint(-2, 2)
        self.RI_8 = randint(-2, 2)
        self.RI_9 = randint(-2, 2)
        self.RI_D = randint(1, 4)
        self.RI_Y = randint(0, 2)

        self.BOT_Flame_0.Tick()  # Individual bot flames
        self.BOT_Flame_1.Tick()  # ""
        self.BOT_Flame_2.Tick()  # "" 
        self.BOT_Flame_3.Tick()  # "" 
        #self.BOT_Flame_4.Tick()  # Generic Lightning striking bot_flame.
        #self.BOT_Flame_5.Tick() 
        #self.BOT_Flame_6.Tick() 
        #self.BOT_Flame_7.Tick() 
        #self.BOT_Flame_8.Tick() 

        if 0 in self.players:
            if plus.getHealth(0,0) < 0.2:  #
                if self.RI_SandF_0  <= 2:
                    plus.emitSmoke(1, (plus.getLocation(0)), (self.RI_3, 1 ,self.RI_4), (.2,.4,.2))
            if plus.getHealth(0,0) < 0.1:  #
                if self.RI_SandF_0  < 0:
                    plus.emitSmoke(1,   (plus.getLocation(0)), (self.RI_4, self.RI_Y, self.RI_5), (.2,.4,.2))
                    self.BOT_Flame_0.BotFlameOff()   
                    self.BOT_Flame_0 = HazardsBlueRay.BotFlame(plus.getLocation(0), (self.RI_4, self.RI_Y, self.RI_5), (.2, .4, .2), .8)
                    self.BOT_Flame_0.BotFlameOn()

        if 1 in self.players:
            if plus.getHealth(1,0) < 0.2:  #
                if self.RI_SandF_1  <= 2:
                    plus.emitSmoke(1, (plus.getLocation(1)), (self.RI_4, 1 ,self.RI_5), (.2,.4,.2))
            if plus.getHealth(1,0) < 0.1:  #
                if self.RI_SandF_1  < 20:
                    plus.emitSmoke(1,   (plus.getLocation(1)), (self.RI_5, self.RI_Y, self.RI_6), (.2,.4,.2))
                    self.BOT_Flame_1.BotFlameOff()   
                    self.BOT_Flame_1 = HazardsBlueRay.BotFlame(plus.getLocation(1), (self.RI_5, self.RI_Y, self.RI_6), (.2, .4, .2), .8)
                    self.BOT_Flame_1.BotFlameOn()

        if 2 in self.players:
            if plus.getHealth(2,0) < 0.2:  #
                if self.RI_SandF_2  <= 2:
                    plus.emitSmoke(1, (plus.getLocation(2)), (self.RI_5, 1 ,self.RI_6), (.2,.4,.2))
            if plus.getHealth(2,0) < 0.1:  #
                if self.RI_SandF_2  < 0:
                    plus.emitSmoke(1,   (plus.getLocation(2)), (self.RI_6, self.RI_Y ,self.RI_7), (.2,.4,.2))
                    self.BOT_Flame_2.BotFlameOff()   
                    self.BOT_Flame_2 = HazardsBlueRay.BotFlame(plus.getLocation(2), (self.RI_6, self.RI_Y, self.RI_7), (.2, .4, .2), .8)
                    self.BOT_Flame_2.BotFlameOn()

        if 3 in self.players:
            if plus.getHealth(3,0) < 0.2:  #
                if self.RI_SandF_3  <= 2:
                    plus.emitSmoke(1, (plus.getLocation(3)), (self.RI_6, 1 ,self.RI_7), (.2,.4,.2))
            if plus.getHealth(3,0) < 0.1:  #
                if self.RI_SandF_3  < 0:
                    plus.emitSmoke(1,   (plus.getLocation(3)), (self.RI_8, self.RI_Y, self.RI_9), (.2,.4,.2))
                    self.BOT_Flame_3.BotFlameOff()   
                    self.BOT_Flame_3 = HazardsBlueRay.BotFlame(plus.getLocation(3), (self.RI_8, self.RI_Y, self.RI_9), (.2, .4, .2), .8)
                    self.BOT_Flame_3.BotFlameOn()

        ##################  Bot Flames + Smoke  ##################-------------






        return Arenas.SuperArena.Tick(self)



 
Arenas.register(Twisted)



Any suggestions as to where I slipped up?

1400
Discussion / Re: What are your motivations to play RA2?
« on: September 04, 2011, 02:06:05 PM »
It's fun - I just had a real fun time playing it.

Pages: 1 ... 63 64 65 66 67 68 69 [70] 71 72 73 74 75 76 77 ... 663