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

simple AA machine gun

Go down

simple AA machine gun Empty simple AA machine gun

Post by Sting Auer Sun Sep 26, 2010 6:53 pm

this is a turret for blue team that i made for the WW2 rigidchips movie.

Code:


// [RCD]
Val
{
   GUN1(default=0, max=50000, step=50000)
   GUN2(default=0, max=50000, step=50000)
   GUN3(default=0, max=50000, step=50000)
   GUN4(default=0, max=50000, step=50000)
   GUNTIMER(default=-1, min=-1, max=100, step=100)
   LEFTRIGHT(default=0, min=-360, max=360)
   RECOILJET(default=0, max=50000, step=50000)
   UPDOWN(default=110, min=100, max=150)
}
Key
{
   0:UPDOWN(step=1)
   1:UPDOWN(step=-1)
   2:LEFTRIGHT(step=2)
   3:LEFTRIGHT(step=-2)
   4:GUNTIMER(step=1)
}
Body
{
   Core(color=#0000FF) {
      S:Chip(angle=30, color=#000040) {
         S:Chip(angle=150, color=#0000FF) {
            S:Chip(color=#0000FF) {
               N:Chip(angle=150, color=#000080) {
                  N:Arm(angle=30, power=GUN2, option=50000) { }
               }
               N:Chip(angle=-150, color=#000080) {
                  N:Arm(angle=-30, power=GUN4, option=50000) { }
               }
               N:TrimF(angle=90, option=1, color=#000040) {
                  S:Chip(angle=-30, color=#0000A0) {
                     S:Arm(angle=30, power=GUN3, option=50000) { }
                  }
                  S:Chip(angle=30, color=#0000A0) {
                     S:Arm(angle=-30, power=GUN1, option=50000) { }
                     N:Cowl(angle=30, option=5, color=#0000FF) { }
                  }
               }
            }
         }
      }
      N:Frame(angle=UPDOWN) {
         N:Trim(angle=LEFTRIGHT) {
            N:Weight(angle=90) {
               W:Weight() { }
               E:Weight() { }
               S:Weight() {
                  E:Weight() { }
                  W:Weight() { }
                  S:Weight() { }
               }
               N:Weight() { }
            }
         }
      }
      N:Jet(angle=90, power=RECOILJET) { }
   }
}
Script
{if GUNTIMER=(0){
GUN1=(50000)
RECOILJET=(50000)}

if GUNTIMER=(3){
GUN2=(50000)
RECOILJET=(50000)}

if GUNTIMER=(6){
GUN3=(50000)
RECOILJET=(50000)}

if GUNTIMER=(9){
GUN4=(50000)
RECOILJET=(50000)}

if GUNTIMER=(11){
GUNTIMER=(-1)}


if LEFTRIGHT=(-360){
LEFTRIGHT=(0)}

if LEFTRIGHT=(360){
LEFTRIGHT=(0)}}



arrows to aim, Z to shoot.
Sting Auer
Sting Auer
Hover
Hover

Posts : 170
Join date : 2010-09-19
Location : Aw crap i think I'm lost.

Back to top Go down

Back to top

- Similar topics

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