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

Robghoti Dracovalans

Go down

Robghoti Dracovalans Empty Robghoti Dracovalans

Post by MrSparks Thu Mar 29, 2012 12:37 pm

The Dracovalans started as a quick scout car with a periscope. Eventually it lost it's periscope and became more of a lowend sportscar with catastrophic understeer. It took me a long time but I finally got it handling where it can complete a circuit of Land1 in under 2 minutes.

Max Speed: 142mph(229km/h)


Code:

Val
{
   FBRK(default=0, max=1000)
   FPWR(default=0, min=-1000, max=10000)
   HNDL(default=180, min=160, max=200)
   PWR(default=0, min=-1000, max=5000)
   RBRK(default=0, max=100)
}
Key
{
}
Body
{
   Core() {
      S:Weight(angle=5) {
         E:Frame(angle=12, option=1, spring=.27) {
            E:Wheel(angle=70, power=PWR, brake=RBRK, option=1, effect=2) { }
         }
         W:Frame(angle=12, option=1, spring=.27) {
            W:Wheel(angle=70, power=-PWR, brake=RBRK, option=1, effect=2) { }
         }
      }
      N:Weight() {
         N:Chip() {
            N:Cowl(angle=25, effect=#F000) {
               N:Cowl(angle=-148, color=#4000) {
                  W:Cowl(angle=-30, option=3, color=#8000) {
                     N:Cowl(angle=-35, option=5, color=#FFFF80, effect=#F00) { }
                  }
                  E:Cowl(angle=-30, option=4, color=#008000) {
                     N:Cowl(angle=-35, option=5, color=#FFFF80, effect=#0F00) { }
                  }
                  N:Cowl(angle=-30, color=#4000) {
                     N:Cowl(angle=-30, color=#4000) {
                        W:Cowl(angle=-30, color=#8000) {
                           N:Cowl(color=#8000) {
                              N:Cowl(color=#8000) {
                                 W:Cowl(angle=-45, option=4, color=#8000) { }
                                 N:Cowl(color=#8000) {
                                    W:Cowl(angle=-45, option=3, color=#8000) {
                                       N:Cowl(angle=-91, color=#8000) {
                                          N:Cowl(option=3, color=#6000) { }
                                       }
                                    }
                                    N:Cowl(angle=-91, color=#8000) { }
                                 }
                              }
                              W:Cowl(angle=-45, color=#8000) { }
                           }
                           S:Cowl(angle=-30, option=4, color=#8000) { }
                           W:Cowl(angle=-45, option=3, color=#8000) { }
                        }
                        E:Cowl(angle=-30, color=#8000) {
                           N:Cowl(color=#8000) {
                              N:Cowl(color=#8000) {
                                 E:Cowl(angle=-45, option=3, color=#8000) { }
                                 N:Cowl(color=#8000) {
                                    E:Cowl(angle=-45, option=4, color=#8000) {
                                       N:Cowl(angle=-91, color=#8000) {
                                          N:Cowl(option=4, color=#6000) { }
                                       }
                                    }
                                    N:Cowl(angle=-91, color=#8000) { }
                                 }
                              }
                              E:Cowl(angle=-45, color=#8000) { }
                           }
                           S:Cowl(angle=-30, option=3, color=#8000) { }
                           E:Cowl(angle=-45, option=4, color=#8000) { }
                        }
                        N:Cowl(color=#4000) {
                           N:Cowl(color=#4000) {
                              N:Cowl(color=#4000) {
                                 N:Cowl(angle=-91., color=#5000) { }
                              }
                           }
                        }
                     }
                  }
               }
            }
            E:TrimF(angle=-10, option=1) {
               E:RudderF(angle=HNDL, option=1) {
                  W:Wheel(angle=75, power=FPWR, brake=FBRK, effect=2, spring=.1) { }
               }
            }
            W:TrimF(angle=10, option=1) {
               W:RudderF(angle=HNDL, option=1) {
                  E:Wheel(angle=75, power=-FPWR, brake=FBRK, effect=2, spring=.1) { }
               }
            }
         }
      }
      N:Frame(angle=150) {
         N:Weight(angle=30) { }
         N:Weight(angle=-150) { }
      }
   }
}
Lua
{math.sgn = function (x) if x < 0 then return -1 elseif x == 0 then return 0 else return 1 end end

function Drive()
   PWR=5000*(_KEY(0)-_KEY(1))
   FPWR=PWR/2
   FBRK=FBRK+200*(_KEY(4))-100
   RBRK=RBRK+10*(_KEY(5))-5
   HNDL=HNDL+2*(_KEY(3)-_KEY(2))-math.sgn(HNDL-180)
end

function OnFrame()
   Drive()
   out(0,"Robghoti Dracovalans")
   out(1,"Arrow keys to drive")
   out(2,"Z for front brakes, X for rear brakes")
end
}

MrSparks
Tank
Tank

Posts : 73
Join date : 2012-01-05
Age : 34
Location : Michigan

Back to top Go down

Back to top


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