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

DROID Bomber

2 posters

Go down

DROID Bomber Empty DROID Bomber

Post by Warbird Thu Sep 08, 2011 9:23 am

Hi folks!

This time I was trying to make a plane that starts and holds course, speed and direction automatically and after totally redesigning its airframe (it stalled horizonzally due to its compact design) You can get it now!
I always use it whem practicing my shooting skills (2 tabs rigidchips) and its really hard to shoot down.
Here are some stats: Targeted altitude: 250-320m. Targeted Speed: 110-115 (about 425 kph) Flyable directions: North (default), east, west (didnt have time to make it fly southbound yet because my system gets rudder controls by dividing targeted and current course and the course for south in my system is 0. you can make a own navigating system for this plane if you want to)

okay: Enough talking! Grab it while its hot!

Code:


// [RCD]
Val
{
   ALTMOD(default=0, min=-1, max=1)
   ALTMODP(default=0, min=-1, max=1)
   ENG(default=50000, max=75000)
   ROLL(default=0, min=-20, max=20)
   RUDALT(default=0, min=-20, max=20)
   RUDDERALT(default=0, min=-15, max=15)
   RUDDERDIR(default=0, min=-15, max=15)
   RUDDIR(default=0, min=-20, max=20)
   RUDDIRP(default=0, min=-180)
   RUDDIRS(default=180)
   VEL(default=0)
        WheelD(default=0, max=95)
}
Key
{
}
Body
{
   Core() {
      S:Trim(angle=90) { }
      S:Weight() {
         S:Chip() {
            S:Chip() {
               S:Chip() {
                  S:Chip() {
                     S:Chip() {
                        S:Chip() {
                           S:Chip() {
                              W:Trim(angle=-RudderALT, color=#000040) {
                                 W:Chip(color=#000040) { }
                                 S:Chip(color=#000040) { }
                              }
                              E:Trim(angle=RudderALT, color=#000040) {
                                 E:Chip(color=#000040) { }
                                 S:Chip(color=#000040) { }
                              }
                              S:Arm() { }
                           }
                           S:Trim(angle=90) {
                              E:Trim(angle=RudderDIR, color=#000040) {
                                 S:Chip(color=#000040) { }
                              }
                              W:Trim(angle=-RudderDIR, color=#000040) {
                                 S:Chip(color=#000040) { }
                              }
                           }
                        }
                        S:Trim(angle=90) { }
                     }
                     S:Trim(angle=90) { }
                     S:Cowl(angle=30, color=#8A8A8A) {
                        S:Cowl(angle=150, color=#8A8A8A) {
                           N:Cowl(angle=9, color=#8A8A8A) {
                              N:Cowl(angle=10, color=#8A8A8A) { }
                              W:Cowl(angle=90.2, option=4, color=#8A8A8A) { }
                              E:Cowl(angle=90.2, option=3, color=#8A8A8A) { }
                           }
                        }
                     }
                     S:Cowl(angle=-30, color=#8A8A8A) {
                        S:Cowl(angle=-150, color=#8A8A8A) {
                           E:Cowl(angle=-90, color=#8A8A8A) { }
                           W:Cowl(angle=-90, color=#8A8A8A) { }
                           N:Cowl(angle=-9, color=#8A8A8A) {
                              N:Cowl(angle=-10, color=#8A8A8A) { }
                              W:Cowl(angle=-90.1, option=4, color=#8A8A8A) { }
                              E:Cowl(angle=-90.1, option=3, color=#8A8A8A) { }
                           }
                        }
                     }
                  }
                  S:Trim(angle=90) { }
                  S:Cowl(angle=30) {
                     S:Cowl(angle=150, color=#8A8A8A) { }
                  }
                  S:Cowl(angle=-30) {
                     S:Cowl(angle=-150, color=#8A8A8A) {
                        W:Cowl(angle=-90, color=#8A8A8A) { }
                        E:Cowl(angle=-90, color=#8A8A8A) { }
                     }
                  }
               }
               S:Trim(angle=90) { }
               E:Chip() {
                  E:Chip(angle=90) {
                     N:Cowl(angle=15, option=5, color=#8A8A8A) { }
                     E:RLW(angle=WheelD, effect=2, name=Starter2) { }
                  }
                  E:Chip(angle=-90) {
                     N:Cowl(angle=-15, option=5, color=#8A8A8A) { }
                  }
                  W:Chip(angle=90) {
                     W:Chip(angle=90) {
                        N:Cowl(angle=15, option=5, color=#8A8A8A) { }
                        S:Cowl(angle=20, color=#8A8A8A) {
                           W:Cowl(angle=90.2, option=3, color=#8A8A8A) { }
                           E:Cowl(angle=90.2, option=4, color=#8A8A8A) { }
                        }
                        S:Cowl(angle=90, color=#000000) { }
                     }
                     N:Cowl(angle=15, option=5, color=#8A8A8A) { }
                  }
                  W:Chip(angle=-90) {
                     W:Chip(angle=-90) {
                        N:Cowl(angle=-15, option=5, color=#8A8A8A) { }
                        S:Cowl(angle=-20, color=#8A8A8A) {
                           W:Cowl(angle=-90.1, option=3, color=#8A8A8A) { }
                           E:Cowl(angle=-90.1, option=4, color=#8A8A8A) { }
                        }
                        S:Cowl(angle=-90, color=#000000) { }
                     }
                     N:Cowl(angle=-15, option=5, color=#8A8A8A) { }
                  }
                  N:Cowl(angle=15, option=5, color=#8A8A8A) { }
                  N:Cowl(angle=-15, option=5, color=#8A8A8A) { }
                  S:Cowl(angle=20, color=#8A8A8A) {
                     E:Cowl(angle=90.1, option=4, color=#8A8A8A) { }
                     W:Cowl(angle=90.1, option=3, color=#8A8A8A) { }
                  }
                  S:Cowl(angle=-20, color=#8A8A8A) {
                     E:Cowl(angle=-90.2, option=4, color=#8A8A8A) { }
                     W:Cowl(angle=-90.2, option=3, color=#8A8A8A) { }
                  }
               }
               W:Chip() {
                  E:Chip(angle=90) {
                     E:Chip(angle=90) {
                        N:Cowl(angle=15, option=5, color=#8A8A8A) { }
                        S:Cowl(angle=20, color=#8A8A8A) {
                           E:Cowl(angle=90.1, option=4, color=#8A8A8A) { }
                           W:Cowl(angle=90.1, option=3, color=#8A8A8A) { }
                        }
                        S:Cowl(angle=90, color=#000000) { }
                     }
                     N:Cowl(angle=15, option=5, color=#8A8A8A) { }
                  }
                  W:Chip(angle=90) {
                     N:Cowl(angle=15, option=5, color=#8A8A8A) { }
                     W:RLW(angle=WheelD, effect=2, name=Starter1) { }
                  }
                  W:Chip(angle=-90) {
                     N:Cowl(angle=-15, option=5, color=#8A8A8A) { }
                  }
                  E:Chip(angle=-90) {
                     E:Chip(angle=-90) {
                        N:Cowl(angle=-15, option=5, color=#8A8A8A) { }
                        S:Cowl(angle=-20, color=#8A8A8A) {
                           E:Cowl(angle=-90.2, option=4, color=#8A8A8A) { }
                           W:Cowl(angle=-90.2, option=3, color=#8A8A8A) { }
                        }
                        S:Cowl(angle=-90, color=#00000) { }
                     }
                     N:Cowl(angle=-15, option=5, color=#8A8A8A) { }
                  }
                  N:Cowl(angle=-15, option=5, color=#8A8A8A) { }
                  N:Cowl(angle=15, option=5, color=#8A8A8A) { }
                  S:Cowl(angle=20, color=#8A8A8A) {
                     W:Cowl(angle=90.2, option=3, color=#8A8A8A) { }
                     E:Cowl(angle=90.2, option=4, color=#8A8A8A) { }
                  }
                  S:Cowl(angle=-20, color=#8A8A8A) {
                     W:Cowl(angle=-90.1, option=3, color=#8A8A8A) { }
                     E:Cowl(angle=-90.1, option=4, color=#8A8A8A) { }
                  }
               }
               S:Cowl(angle=30) {
                  S:Cowl(angle=150, color=#8A8A8A) { }
               }
               S:Cowl(angle=-30) {
                  S:Cowl(angle=-150, color=#8A8A8A) {
                     E:Cowl(angle=-90, color=#8A8A8A) { }
                     W:Cowl(angle=-90, color=#8A8A8A) { }
                  }
               }
            }
            S:Trim(angle=90) { }
            E:Chip() {
               E:Rudder(angle=30) {
                  E:Chip() {
                     E:Chip() {
                        E:Chip() {
                           S:Chip(angle=-ROLL, color=#000040) {
                              E:Chip(color=#000040) {
                                 E:Cowl(option=3, color=#000040) { }
                              }
                           }
                           E:Cowl(option=3, color=#8A8A8A) { }
                        }
                        S:Chip() { }
                     }
                     S:Chip() { }
                  }
                  S:Chip() { }
               }
               S:Jet(angle=90, power=-ENG, color=#FF0000, effect=1) { }
               S:Jet(angle=-90, power=ENG, color=#FF0000, effect=1) { }
            }
            W:Chip() {
               W:Rudder(angle=-30) {
                  W:Chip() {
                     W:Chip() {
                        W:Chip() {
                           S:Chip(angle=ROLL, color=#000040) {
                              W:Chip(color=#000040) {
                                 W:Cowl(option=4, color=#000040) { }
                              }
                           }
                           W:Cowl(option=4, color=#8A8A8A) { }
                        }
                        S:Chip() { }
                     }
                     S:Chip() { }
                  }
                  S:Chip() { }
               }
               S:Jet(angle=90, power=-ENG, color=#FF0000, effect=1) { }
               S:Jet(angle=-90, power=ENG, color=#FF0000, effect=1) { }
            }
            S:Cowl(angle=30) {
               S:Cowl(angle=150, color=#8A8A8A) { }
            }
            S:Cowl(angle=-30) {
               S:Cowl(angle=-150, color=#8A8A8A) {
                  W:Cowl(angle=-90, color=#8A8A8A) { }
                  E:Cowl(angle=-90, color=#8A8A8A) { }
               }
            }
         }
         S:Trim(angle=90) { }
         S:Cowl(angle=30) {
            S:Cowl(angle=150, color=#8A8A8A) { }
         }
         S:Cowl(angle=-30) {
            S:Cowl(angle=-150, color=#8A8A8A) {
               E:Cowl(angle=-90, color=#8A8A8A) { }
               W:Cowl(angle=-90, color=#8A8A8A) { }
            }
         }
      }
      N:Cowl(angle=10, effect=#F0FB) {
         N:Cowl(angle=151.6, color=#8A8A8A) {
            N:Cowl(angle=18.4, color=#8A8A8A) {
               N:Cowl(color=#8A8A8A) { }
            }
            E:Cowl(angle=90.1, option=4, color=#8A8A8A) { }
            W:Cowl(angle=90.1, option=3, color=#8A8A8A) { }
         }
         N:Cowl(angle=-147, color=#000040, effect=#70FB) {
            N:Cowl(angle=-43, color=#8A8A8A) {
               N:Cowl(color=#8A8A8A) {
                  W:Cowl(angle=-90, color=#8A8A8A) {
                     N:Cowl(angle=1, color=#8A8A8A) { }
                  }
                  E:Cowl(angle=-90, color=#8A8A8A) {
                     N:Cowl(angle=1, color=#8A8A8A) { }
                  }
                  N:Cowl(angle=-1, color=#8A8A8A) { }
               }
               E:Cowl(angle=-90, color=#8A8A8A) { }
               W:Cowl(angle=-90, color=#8A8A8A) { }
               N:Cowl(angle=-90, color=#8A8A8A) { }
            }
            W:Cowl(angle=-90.2, option=3, color=#000040, effect=#70FB) { }
            E:Cowl(angle=-90.2, option=4, color=#000040, effect=#70FB) { }
         }
      }
   }
}
Script
{
Roll = (_AZ(guide))*70

if _y(guide)>150 {_bye(Starter1)}
if _y(guide)>153 {_bye(Starter2)}
if _y(guide)>155 {WheelD=WheelD+5}
if _y(guide)<250 {ALTmodp=1}
if _y(guide)>350 {ALTmodp=-1}
if _y(guide)<350&_y(guide)>280 {ALTmodp=0}

if ALTmod<AltmodP {ALTmod=ALTmod+0.02}
if ALTmod>AltmodP {ALTmod=ALTmod-0.02}

RudAlt=(((_AX(guide)*-1)+ALTmod/2)*70)+1

RudderALT=(RudAlt*-1)
RudderDIR=-RudDir

VEL= _vel()

if _vel()>110 {ENG=2000}
if _vel()>115 {ENG=0}
if _vel()<90&ENG=2000 {ENG=20000}
if _vel()<90&ENG=0 {ENG=20000}

if _key(15)>0 {RudDirS=180}
if _key(9)>0 {RudDirS=270}
if _key(7)>0 {RudDirS=90}

RudDirP=_TODEG(_AY(0))

RudDir=(((RudDirP+180)/RudDirS)-1)*10

Print 0,"DROID Bomber by Warbird (C)2011"
Print 1," Use W A S to adjust the direction"
Print 2," W will make the plane fly northbound (default)"
Print 3," A will make the plane fly westbound"
Print 4," D will make the plane fly eastbound"
if RudDirS=180 {Print 5,"  CURRENT COURSE: NORTH"}
if RudDirS=270 {Print 5,"  CURRENT COURSE: EAST"}
if RudDirS=90 {Print 5,"  CURRENT COURSE: WEST"}
}


Warbird
Tank
Tank

Posts : 60
Join date : 2010-10-27
Age : 29
Location : Germany

Back to top Go down

DROID Bomber Empty Re: DROID Bomber

Post by Echo_Delta_Oscar Fri Sep 09, 2011 11:12 am

Dear Warbird, let me tell you: your DROID Bomber UAV Target is great: not only is a durable target, but also the flight pattern, even mantaninig one of the three courses are not really predictable, fairly simulating a real opponent trying to evade your fire.
I practiced my fighters in a chase with another aircraft for the very first time. How about a propeller version?
Echo_Delta_Oscar
Echo_Delta_Oscar
Hover
Hover

Posts : 105
Join date : 2011-03-24

Back to top Go down

DROID Bomber Empty Re: DROID Bomber

Post by Warbird Fri Sep 23, 2011 9:14 am

The problem with propeller driven aircraft is taht they are harder to control at high prop speed which is usually needed to get a good speed... but i will give it a try... maybe with trims instead of wheels... could work, thx for the idea Very Happy

Warbird
Tank
Tank

Posts : 60
Join date : 2010-10-27
Age : 29
Location : Germany

Back to top Go down

DROID Bomber Empty Re: DROID Bomber

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