RigidChips
Would you like to react to this message? Create an account in a few clicks or log in to continue.

simple sub

2 posters

Go down

simple sub Empty simple sub

Post by studmuffin Tue Nov 30, 2010 12:34 am

i worked on it for like 15 mins just trying to figure out all the avrage movements of a sub and i tryed my best to make a sub that did the basics

i think im proud of it lol!

Code:

// [RCD]
Val
{
   RL(default=0, min=-30, max=30, step=30)
   RR(default=0, min=-30, max=30, step=30)
   TL(default=0, min=-30, max=30, step=30)
   TR(default=0, min=-30, max=30, step=30)
   TRUST(default=0, min=-40000, max=40000, step=10000)
}
Key
{
   0:TRUST(step=40)
   1:TRUST(step=-40)
   2:RL(step=30), RR(step=30)
   3:RR(step=-30), RL(step=-30)
   5:TL(step=30)
   6:TL(step=-30)
   7:RL(step=30), RR(step=-30)
   8:RR(step=30), RL(step=-30)
}
Body
{
   Core() {
      S:Chip() {
         S:Chip() {
            S:Chip() {
               S:Frame() {
                  W:Chip() {
                     W:Trim() { }
                  }
                  E:Chip() {
                     E:Trim() { }
                  }
                  W:Chip(angle=-90) {
                     W:Trim() { }
                  }
                  E:Chip(angle=-90) {
                     E:Trim() { }
                  }
                  W:Chip(angle=90) {
                     W:Trim() { }
                  }
                  E:Chip(angle=90) {
                     E:Trim() { }
                  }
                  S:Wheel(angle=90, power=TRUST) {
                     N:Trim(angle=45) { }
                     E:Trim(angle=45) { }
                     S:Trim(angle=45) { }
                     W:Trim(angle=45) { }
                  }
                  S:Wheel(angle=-90, power=TRUST) {
                     N:Trim(angle=-45) { }
                     E:Trim(angle=-45) { }
                     S:Trim(angle=-45) { }
                     W:Trim(angle=-45) { }
                  }
               }
               E:Chip() { }
               W:Chip() { }
            }
            E:Chip() { }
            W:Chip() { }
         }
         E:Chip() { }
         W:Chip() { }
      }
      W:Chip() {
         W:Trim(angle=RL) { }
      }
      E:Chip() {
         E:Trim(angle=RR) { }
      }
      W:Chip(angle=90) {
         W:Trim(angle=-TL) { }
      }
      E:Chip(angle=90) {
         E:Trim(angle=-TL) { }
      }
      E:Chip(angle=-90) {
         E:Trim(angle=TL) { }
      }
      W:Chip(angle=-90) {
         W:Trim(angle=TL) { }
      }
   }
}
studmuffin
studmuffin
Cube
Cube

Posts : 3
Join date : 2010-11-29
Age : 30
Location : usa ,al

Back to top Go down

simple sub Empty Re: simple sub

Post by bwansy Tue Nov 30, 2010 1:52 am

You should be proud of it. It works really well. The only complaint is that I had to hold "up" just to keep the power.

bwansy
Admin

Posts : 170
Join date : 2010-07-15

https://rigidchips.forumotion.com

Back to top Go down

simple sub Empty Re: simple sub

Post by studmuffin Tue Nov 30, 2010 2:55 pm

i would code a throttle in lua but i don't understand it myself yet ,
id also probably make a code to show the set speed in throttle if its not shown in the bottom

cat
studmuffin
studmuffin
Cube
Cube

Posts : 3
Join date : 2010-11-29
Age : 30
Location : usa ,al

Back to top Go down

simple sub Empty Re: simple sub

Post by bwansy Tue Nov 30, 2010 9:27 pm

To make a throttle, simply delete the "step" for "THRUST" in the VAL block, that way it wouldn't go back to its default value by itself.

bwansy
Admin

Posts : 170
Join date : 2010-07-15

https://rigidchips.forumotion.com

Back to top Go down

simple sub Empty Re: simple sub

Post by studmuffin Tue Nov 30, 2010 9:35 pm

bwansy wrote:To make a throttle, simply delete the "step" for "THRUST" in the VAL block, that way it wouldn't go back to its default value by itself.
ah i see Very Happy makes sence lol!
studmuffin
studmuffin
Cube
Cube

Posts : 3
Join date : 2010-11-29
Age : 30
Location : usa ,al

Back to top Go down

simple sub Empty Re: simple sub

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum