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 ... 459 460 461 462 463 464 465 [466] 467 468 469 470 471 472 473 ... 663
9301
Tutorials and Tips / Re: AI-ing (.py files, coding, R+D, and help)
« on: May 01, 2010, 10:32:47 AM »
Here's PinnerPlus.py, Pinner with added support for a spinning weapon:

Code: [Select]
from __future__ import generators
import plus
import AI
from AI import vector3
import Arenas
import Gooey
import math
import Tactics

class PinnerPlus(AI.SuperAI):
    "Pushes without backing up"
    name = "PinnerPlus"
    # Designed for true pushers, though does NOT back up repeatedly like Pusher.py does. This has a spin function too.
    # In-built average Throttle, Topspeed, Turn and Turnspeed values for easier AI-ing. Also invertible.
    # Brought to you by G.K.
    def __init__(self, **args):
        AI.SuperAI.__init__(self, **args)
       
        self.tactics.append(Tactics.Engage(self))
       
    self.max_Throttle = 130
    self.top_speed = 99
    self.bInvertible = True
    self.max_turn = 40
    self.max_turn_speed = 3
        self.spin_range = 40.0
       
        if 'range' in args:
            self.spin_range = args.get('range')       
       

    def Activate(self, active):
        if active:
            if AI.SuperAI.debugging:
                self.debug = Gooey.Plain("watch", 0, 75, 100, 75)
                tbox = self.debug.addText("line0", 0, 0, 100, 15)
                tbox.setText("Throttle")
                tbox = self.debug.addText("line1", 0, 15, 100, 15)
                tbox.setText("Turning")
                tbox = self.debug.addText("line2", 0, 30, 100, 15)
                tbox.setText("")
                tbox = self.debug.addText("line3", 0, 45, 100, 15)
                tbox.setText("")
           
        return AI.SuperAI.Activate(self, active)

    def Tick(self):
        if self.weapons:
            # spin up depending on enemy's range
            enemy, range = self.GetNearestEnemy()
           
            if enemy is not None and range < self.spin_range:
                self.Input("Spin", 0, 1)
            elif self.GetInputStatus("Spin", 0) != 0:
                self.Input("Spin", 0, 0)
           
        return AI.SuperAI.Tick(self)
 
    def LostComponent(self, id):
        #print "Lost Component!"
        return AI.SuperAI.LostComponent(self, id)

    def DebugString(self, id, string):
        if self.debug:
            if id == 0: self.debug.get("line0").setText(string)
            elif id == 1: self.debug.get("line1").setText(string)
            elif id == 2: self.debug.get("line2").setText(string)
            elif id == 3: self.debug.get("line3").setText(string)
       
AI.register(PinnerPlus)

https://gametechmods.com/uploads/files/PinnerPlus.zip

9302
Off-Topic Discussion / Re: General Chatter Thread
« on: May 01, 2010, 09:49:33 AM »
"What did you expect to see out of a Torquay hotel bedroom window? Sydney Opera House perhaps? The Hanging Gardens of Babylon? Herds of wildebeest sweeping majestically?"

...54 translations later we get:

"Windows Turkey Hotels: Sydney opera house, you see? Semiramidine vineyard is a large group of animals?"

"Iron Spaghetti"

...54 translations later we get:

"Railvays."

"Steel Meatball"

...54 translations later we get:

"Fishing in the region."

"Not dreaming, not dreaming, not drea– Wha–? DAMMIT, I WAS DREAMING! Why is life so unfair? All I want is the ability to eat everything in sight and turn into a giant ball! Is that too much to ask?! DAMN YOU, REALITY!"

...54 translations later we get:

"Darius I visipayusia Q: I have a dream! There is life? Boleulbogo good! Download This means that many questions!"

"They foiled our plot. We must have revenge! Revenge! Vengeance! Revenge! Payback is ours! The mini-eggrolls are done. Eggrolls! Delicious! Hot! Revenge! Eggrolls! Dipping sauce! Eggrolls! Revenge!"

...54 translations later we get:

"Video The oops! Revenge! Revenge! Revenge of the reason us! Texas thief! Level of people! Hot! Texas eggrolls long! Revenge!"

"The Answer To Life, The Universe and Everything"

...54 translations later we get:

"Answer questions about life, the universe and everything else."


9303
Stock Showcases / Re: NFX.showcase/stock
« on: May 01, 2010, 09:23:25 AM »
No. Just No.

9304
Off-Topic Discussion / Re: General Chatter Thread
« on: May 01, 2010, 09:21:45 AM »
"R0B0 Smiley"

...54 translations later we get:

"R 0 M 0 Smiling."

"NAR AI is rubbish. G.K. AI pwns."

...54 translations later we get:

"Amnesty international, forgiveness yet of the world."

9305
Tournament Archives / Re: Tag Team Tornado Signups
« on: May 01, 2010, 08:38:25 AM »
But only if they're partnerless.

9306
Tournament Archives / Re: Xtreemer Than You Signups
« on: May 01, 2010, 08:37:44 AM »
And stock extenders, IIRC.

9307
Chatterbox / Re: wa?
« on: May 01, 2010, 08:36:05 AM »
I'm not.

9308
Tournament Archives / Re: Tag Team Tornado Signups
« on: May 01, 2010, 08:34:51 AM »
Fotepx, how about you use the person's bot twice instead?

9309
Tournament Archives / Re: Xtreemer Than You Signups
« on: May 01, 2010, 08:33:51 AM »
:O

Good on Stagfish

9310
Stock Showcases / Re: NFX.showcase/stock
« on: May 01, 2010, 08:24:54 AM »
I can't get the razors pointing the same way
Use the eFFe glitch.

9311
Off-Topic Discussion / Re: General Chatter Thread
« on: May 01, 2010, 08:23:42 AM »
Is he? Never heard of him.

"Koop Arponen"

...54 translations later we get:

"Trident us"

9312
DSL TC Showcases / Re: BBEANS 6 Bot Showcase
« on: May 01, 2010, 08:11:10 AM »
And invertability.

9313
Stock Showcases / Re: NFX.showcase/stock
« on: May 01, 2010, 08:10:52 AM »
Your skins are awesome. The Razors look a little messy. Line them all up the same way.

9314
Chatterbox / Re: wa?
« on: May 01, 2010, 07:53:35 AM »
Read the whole thing. He was suffering from stress, and this pupil was a ringleader of a group who were trying to make him snap. They swore at, taunted, filmed him. Eventually, he snapped.

9315
Chatterbox / Re: I hate the NHS
« on: May 01, 2010, 07:41:03 AM »
LOL

9316
Tournament Archives / Re: Tag Team Tornado Signups
« on: May 01, 2010, 07:29:51 AM »
My srimech update will come asap.

9317
Tournament Archives / Re: Tag Team Tornado Signups
« on: May 01, 2010, 07:25:44 AM »
What? I sent you SM's bot yesterday!

Me - Enigma
Him - Cheese Eating Surrender Monkey

9318
Off-Topic Discussion / Re: General Chatter Thread
« on: May 01, 2010, 07:08:29 AM »
"THE GAME"

...54 translations later we get:

"Action"

9319
Tournament Archives / Re: Xtreemer Than You Signups
« on: May 01, 2010, 06:56:54 AM »
ORLY?

9320
Real Robotics Discussion / Re: Least favorite robot!
« on: May 01, 2010, 06:38:42 AM »
I disliked Bulldog Breed for a long time. I don't know why.

Pages: 1 ... 459 460 461 462 463 464 465 [466] 467 468 469 470 471 472 473 ... 663