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

"Grey Mamba" Dragster

3 posters

Go down

"Grey Mamba" Dragster Empty "Grey Mamba" Dragster

Post by Rainman Sun May 27, 2012 10:27 pm

So, watching the Indianapolis 500 race today got me really inspired to see if I couldn't make a car that went really fast... but also handled well and was controllable!

This is my result; one of the few non-millitary chips I've made, but I'm very, very proud of her.

The Grey Mamba comes standard with a six-gear automatic transmission, antilock braking systems, a stylish paintjob, rollover prevention, a top speed of just over 70 meters/second (just under 250kph, or about 150 mph!), and an auxiliary turbo booster for when an engine that maxes out at 30,000 just isn't enough power for you.

Arrow keys to drive and steer, X to brake, C for turbo-boost.

The brake can also be used to dramatically sharpen turns and even drift, but be careful; get too lead-footed on the brakes while turning and you'll cause yourself to spin out.

"Grey Mamba" Dragster GreyMamba

Code:
// [RCD]
// Ran the Land 1 race in 95 seconds!
Val
{
   ABS(default=0)
   AIRBRAKEL(default=160, min=140, max=180)
   AIRBRAKER(default=160, min=140, max=180)
   BRAKE(default=0, max=150, step=10)
   COLOR1(default=#121212,disp=0)
   ENGINE(default=0, min=-4000, max=30000, step=5000)
   ENGINE2(default=0, min=-4000, max=30000, step=5000)
   FBRAKE(default=0, max=300, step=15)
   GEAR(default=1, min=1, max=6)
   HANDLE(default=0, min=-25, max=25, step=1)
   HANDLE2(default=0, min=-15, max=15, step=0.25)
   RBRAKE(default=0, max=300, step=20)
   SPOILER(default=0, min=-50, max=20)
   TURBO(default=0, min=-2500, max=5000, step=2500)
}
Key
{
}
Body
{
   Core(color=color1) {
      S:Frame(angle=150) {
         S:Frame(angle=-150) {
            S:Frame() {
               W:Frame(angle=-20, spring=0.25, damper=1) {
                  W:Frame(angle=110, option=1) {
                     E:TrimF(angle=-handle2, option=1) {
                        W:RLW(power=-engine2, brake=Rbrake, color=color1, effect=4) { }
                     }
                  }
                  N:TrimF(angle=-50, option=1) {
                     S:Frame(angle=AirbrakeL, option=1) {
                        N:Chip(angle=0, color=color1) {
                           N:Cowl(angle=-150, option=3, color=color1) { }
                        }
                     }
                  }
                  S:Cowl(angle=-160, option=4, color=#800000) { }
                  E:Cowl(angle=180, option=5, color=color1) { }
               }
               E:Frame(angle=-20, color=color1, spring=0.25, damper=1) {
                  E:Frame(angle=110, option=1) {
                     W:TrimF(angle=-handle2, option=1) {
                        E:RLW(power=engine2, brake=Rbrake, color=color1, effect=4) { }
                     }
                  }
                  N:TrimF(angle=50, option=1) {
                     S:Frame(angle=AirbrakeR, option=1) {
                        N:Chip(angle=0, color=color1) {
                           N:Cowl(angle=-150, option=4, color=color1) { }
                        }
                     }
                  }
                  S:Cowl(angle=-160, option=3, color=#800000) { }
                  W:Cowl(angle=180, option=5, color=color1) { }
               }
               W:Trim(angle=-Spoiler, color=color1) {
                  S:Cowl(angle=-160, option=4, color=color1) { }
               }
               E:Trim(angle=-spoiler, color=color1) {
                  S:Cowl(angle=-160, option=3, color=color1) { }
               }
            }
            N:Weight(color=color1) {
               N:Frame() {
                  W:Frame(angle=-30, spring=0.25, damper=1) {
                     W:Frame(angle=120, option=1) {
                        E:TrimF(angle=handle, option=1) {
                           W:RLW(power=-engine, brake=brake, color=color1, effect=4) { }
                        }
                     }
                     N:TrimF(angle=-40, option=1) {
                        S:Frame(angle=AirbrakeL, option=1) {
                           N:Chip(angle=0, color=color1) { }
                        }
                     }
                     E:Cowl(angle=180, option=5, color=color1) { }
                  }
                  E:Frame(angle=-30, spring=0.25, damper=1) {
                     E:Frame(angle=120, option=1) {
                        W:TrimF(angle=handle, option=1) {
                           E:RLW(power=engine, brake=brake, color=color1, effect=4) { }
                        }
                     }
                     N:TrimF(angle=40, option=1) {
                        S:Frame(angle=AirbrakeR, option=1) {
                           N:Chip(angle=0, color=color1) { }
                        }
                     }
                     W:Cowl(angle=180, option=5, color=color1) { }
                  }
                  W:Cowl(angle=-5, option=5, color=color1) {
                     N:Cowl(angle=-150, option=3, color=#FFFF80) { }
                  }
                  E:Cowl(angle=-5, option=5, color=color1) {
                     N:Cowl(angle=-150, option=4, color=#FFFF80) { }
                  }
                  N:Cowl(angle=190, option=5, color=color1) {
                     N:Cowl(angle=177, color=#808080) {
                        N:Cowl(angle=-173, color=#808080) {
                           N:Cowl(angle=173, color=#808080) {
                              N:Cowl(angle=-173, color=#808080) {
                                 N:Cowl(angle=173, color=#808080) {
                                    N:Cowl(angle=-173, option=1, color=#808080) {
                                       N:Cowl(angle=178, option=5, color=color1) {
                                          W:Cowl(angle=30, option=4, color=color1) { }
                                          E:Cowl(angle=30, option=3, color=color1) { }
                                          S:Cowl(angle=14, option=0, color=color1) {
                                             E:Cowl(angle=145, option=5, color=color1) { }
                                             W:Cowl(angle=145, option=5, color=color1) { }
                                          }
                                          S:Cowl(angle=45, option=4, color=color1) {
                                             E:Cowl(angle=45, option=4, color=color1) { }
                                          }
                                          S:Cowl(angle=45, option=3, color=color1) {
                                             W:Cowl(angle=45, option=3, color=color1) { }
                                          }
                                       }
                                    }
                                 }
                              }
                           }
                        }
                     }
                  }
                  S:Cowl(angle=-173, color=color1) {
                     S:Cowl(angle=173, color=#808080) {
                        S:Cowl(angle=-173, color=#808080) {
                           S:Cowl(angle=173, color=#808080) { }
                        }
                     }
                  }
               }
               E:Cowl(angle=-145, option=5, color=color1) { }
               W:Cowl(angle=-145, option=5, color=color1) { }
            }
            W:Cowl(angle=-145, option=5, color=color1) { }
            E:Cowl(angle=-145, option=5, color=color1) { }
         }
         E:Cowl(angle=-40, option=4, color=color1) {
            N:Cowl(angle=-35, option=4, color=color1) { }
         }
         W:Cowl(angle=-40, option=3, color=color1) {
            N:Cowl(angle=-35, option=3, color=color1) { }
         }
      }
      S:Trim(angle=90, color=color1) {
         N:Cowl(option=4, color=color1) { }
         W:Cowl(angle=135, option=4, color=color1) { }
         W:Cowl(angle=-135, option=4, color=color1) { }
         E:Cowl(angle=-145, option=4, color=color1) {
            N:Cowl(angle=0, option=3, color=color1) {
               E:Cowl(angle=-110, option=4, color=color1) { }
            }
         }
         E:Cowl(angle=145, option=4, color=color1) {
            N:Cowl(angle=0, option=3, color=color1) {
               E:Cowl(angle=110, option=4, color=color1) { }
            }
         }
      }
      E:Cowl(angle=145, option=5, color=color1) {
         S:Cowl(angle=-40, option=3, color=color1) { }
         E:Cowl(angle=70, option=3, color=#400040) { }
      }
      W:Cowl(angle=145, option=5, color=color1) {
         S:Cowl(angle=-40, option=4, color=color1) { }
         W:Cowl(angle=70, option=4, color=#400040) { }
      }
      N:Cowl(angle=-155, option=5, color=color1, effect=#5AFB) { }
      S:Cowl(option=5, color=color1) { }
      S:Cowl(angle=20, option=5, color=color1) { }
      S:Cowl(angle=30, option=5, color=color1) { }
      S:Cowl(angle=10, option=5, color=color1) { }
      N:Frame(angle=-160, option=1) {
         N:Jet(angle=-110, power=Turbo, color=color1) { }
      }
   }
}
Script
{if _KEY(6)>0{TURBO=TURBO+1250}
if _KEY(5)>0{ABS=ABS+1}
if _KEY(5)=0{ABS=0}
antilock=_SIN((180/3.14)*ABS)

if _VEL()>=30{SpeedAdjust=_VEL()/60}
if _VEL()<30{SpeedAdjust=1}

If _KEY(2)>0{Handle=Handle+1/SpeedAdjust}
If _KEY(3)>0{Handle=Handle-1/SpeedAdjust}

If _KEY(0)>0{Engine=Engine+250}
If _KEY(1)>0{Engine=Engine-250}

If Engine>(gear*5000){Engine=Gear*5000}

print 3,"in FIRST GEAR"

If _VEL()>=10{Gear=2
print 3,"in SECOND GEAR "}
If _VEL()>=20{Gear=3
print 3,"in THIRD GEAR "}
If _VEL()>=30{Gear=4
print 3,"in FOURTH GEAR "}
If _VEL()>=40{Gear=5
print 3,"in FIFTH GEAR "}
If _VEL()>=50{Gear=6
print 3,"in SIXTH GEAR "}

handle2=handle*0.25
Engine2=0.25*Engine
if _KEY(5)>0{Brake=Brake+10}
If brake<100{Fbrake=1.5*Brake Rbrake=2*Brake}
If brake>99{Fbrake=60+90*_VEL()/30*antilock Rbrake=100+100*_VEL()/30*antilock}


print 1,"  Thanael Industries A48-2012 'Grey Mamba' Dragster"
print 2,"  Arrow keys drive and steer; X controls brake; C controls turbo-booster."
print 4,"  Vel= ",_VEL()," M/s"


AirbrakeL=160+(Handle/4)*SpeedAdjust
AirbrakeR=160-(Handle/4)*SpeedAdjust

Spoiler = _AZ(core) *20
}


Last edited by Rainman on Tue May 29, 2012 9:57 am; edited 1 time in total
Rainman
Rainman
Tank
Tank

Posts : 80
Join date : 2011-02-14
Age : 31
Location : New England, US

Back to top Go down

"Grey Mamba" Dragster Empty Re: "Grey Mamba" Dragster

Post by Echo_Delta_Oscar Mon May 28, 2012 3:43 pm

The car handles greatly, despite it has a bit more understeering than I like; it is really effective on the track.
Oh, and the automatic transmission ... that's classy! Cool
Echo_Delta_Oscar
Echo_Delta_Oscar
Hover
Hover

Posts : 105
Join date : 2011-03-24

Back to top Go down

"Grey Mamba" Dragster Empty Re: "Grey Mamba" Dragster

Post by Rainman Mon May 28, 2012 5:02 pm

Yes, the understeer is its biggest flaw in my opinion. I'm constantly fiddling to try and improve it!

In the meantime, I suggest using the brake judiciously. If you get the hang it so that you don't hold onto it too long and spin out, tapping the brakes can sharpen your turns fairly drastically. You need to keep engine power going though, or you won't be able to force the turn.

Glad you like the gearbox! I understood the problem of giving the wheels too much power for their speed from building previous cars, but I was always very bad at using the gear shifter properly manual-transmission cars I found on the forums. So, to challenge myself I tried to see if I couldn't script an automatic Wink
Rainman
Rainman
Tank
Tank

Posts : 80
Join date : 2011-02-14
Age : 31
Location : New England, US

Back to top Go down

"Grey Mamba" Dragster Empty Re: "Grey Mamba" Dragster

Post by MrSparks Mon May 28, 2012 8:20 pm

As a dragster, it's not that great. It gets wobbly, making runs inconsistent.
400m torque only: Typically 11.1
400m turbo: Typically 10.6
800m torque only: Typically 17.3
800m turbo: Typically 16.2
For reference, the Blue Flame Revisited does it in 10.3 and 14.9 while the ME Alpha can do it in 8.3 and 12.0

As a fun car? It hits it well. As a good looking car? It's nice.

It reminds me of the KTM X-Bow. The kind of car I would drive every day if I wasn't actually aiming to accomplish anything. And it wasn't raining. And I had money. And they actually sold them in the US.

EDIT: Almost forgot to mention, I love the transmission. And this is replacing the Dracovalans in my "garage"

MrSparks
Tank
Tank

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

Back to top Go down

"Grey Mamba" Dragster Empty Re: "Grey Mamba" Dragster

Post by Rainman Tue May 29, 2012 10:26 am

Awesome, seems the gearbox is as much of a hit as I'd hoped it'd be! Very Happy I'm honored that you like it enough to swap out your own Dracolavans for it.

At first I had a much more convoluted and problem-riddled code for the transmission, then the simplicity of the method I ultimately use walked up and smacked me on the head; so I scrapped about two thirds of my code and wrote it out this way, and it works much better with simpler scripting to boot.

Considering that this is my first attempt to build a real high-quality speedcar with sophisticated systems, I'm quite pleased to make third on your listing (Which I assume are the two top record-holders on these forums) by a slim 0.3 seconds. Wink All my previous attempts at speedcars (with the possible exception of the DevilDog armored car, but that has its own flaws) were basically laughably-noobish rocketcars with way-too-powerful engines and no handling or control whatsoever. Razz

For wobbliness, do you mean the intense forces put on the shocks/wheel frames, or do you mean its tendency to "waver" when attempting to steer it so it keeps straight at high speeds?
Rainman
Rainman
Tank
Tank

Posts : 80
Join date : 2011-02-14
Age : 31
Location : New England, US

Back to top Go down

"Grey Mamba" Dragster Empty Re: "Grey Mamba" Dragster

Post by MrSparks Tue May 29, 2012 11:45 am

Rainman wrote:Awesome, seems the gearbox is as much of a hit as I'd hoped it'd be! Very Happy I'm honored that you like it enough to swap out your own Dracolavans for it.
It's as much fun to drive as the Dracovalans but quicker and with better cowling and much less oversteer. There isn't much comparison. I would have to double the torque of the Dracovalans to get the drag times of the Grey Mamba. After which it would become much less of a fun car without some major tweaks.


Rainman wrote:Considering that this is my first attempt to build a real high-quality speedcar with sophisticated systems, I'm quite pleased to make third on your listing (Which I assume are the two top record-holders on these forums) by a slim 0.3 seconds. Wink
The Blue Flame Revisited was the winner of a "build the best dragster" contest I held on the old forum. It was limited to torque only. Jets were only allowed for stopping. The ME Alpha is the only other dragster in my library I can remember the filename of quickly. Technically, the quickest car on the forums (to my knowledge) is a japanese model that does 7.07 and 9.93.
Rainman wrote:For wobbliness, do you mean the intense forces put on the shocks/wheel frames, or do you mean its tendency to "waver" when attempting to steer it so it keeps straight at high speeds?
The latter.

MrSparks
Tank
Tank

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

Back to top Go down

"Grey Mamba" Dragster Empty Re: "Grey Mamba" Dragster

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