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

Gatling turret

4 posters

Go down

Gatling turret Empty Gatling turret

Post by Warbird Wed Oct 27, 2010 2:21 am

Hi guys

Here comes a simple turret with rotating barrels tech put to use:
Steering:
Arrow keys to turn the turret
D fires the gatling


Code:
// [RCD]
Val
{
   AH(default=180, min=-9999, max=9999)
   AV(default=90, max=110)
   B1(default=0, max=100000, step=100000)
   B2(default=0, max=100000, step=100000)
   B3(default=0, max=100000, step=100000)
   B4(default=0, max=100000, step=100000)
   GAT(default=0, max=360)
}
Key
{
   0:AV(step=1)
   1:AV(step=-1)
   2:AH(step=1)
   3:AH(step=-1)
   7:GAT(step=15)
}
Body
{
   Core() {
      W:Weight() {
         W:Weight(angle=30) {
            W:Weight(angle=150) {
               S:Weight() {
                  E:Weight(angle=150) { }
               }
               N:Weight() {
                  E:Weight(angle=150) { }
               }
            }
         }
         S:Weight() { }
      }
      E:Weight() {
         E:Weight(angle=30) {
            E:Weight(angle=150) {
               N:Weight() {
                  W:Weight(angle=150) { }
               }
               S:Weight() {
                  W:Weight(angle=150) { }
               }
            }
         }
         N:Weight() { }
      }
      N:Weight() {
         N:Weight(angle=30) {
            N:Weight(angle=150) {
               E:Weight() {
                  S:Weight(angle=150) { }
               }
               W:Weight() {
                  S:Weight(angle=150) { }
               }
            }
         }
         W:Weight() { }
      }
      S:Weight() {
         S:Weight(angle=30) {
            S:Weight(angle=150) {
               E:Weight() {
                  N:Weight(angle=150) { }
               }
               W:Weight() {
                  N:Weight(angle=150) { }
               }
            }
         }
         E:Weight() { }
      }
      S:Weight(angle=-90) {
         S:Chip(angle=-90) {
            S:Rudder(angle=AH) {
               S:Chip(angle=AV) {
                  S:Chip(angle=90) {
                     W:Chip(angle=90) {
                        N:Trim(angle=90) { }
                     }
                     E:Chip(angle=90) {
                        N:Trim(angle=90) { }
                        S:Chip(angle=90) { }
                     }
                     N:Trim(angle=90) {
                        S:Rudder(angle=-30) {
                           S:Rudder(angle=210, spring=1, damper=1) {
                              N:Trim(angle=GAT) {
                                 S:Chip() {
                                    N:Trim(angle=90) {
                                       W:Chip(angle=135) {
                                          N:Arm(power=B2, option=100000, color=#FF0000) { }
                                       }
                                       E:Chip(angle=-135) {
                                          N:Arm(power=B4, option=100000, color=#FF0000) { }
                                       }
                                    }
                                 }
                                 W:Chip(angle=135) {
                                    N:Arm(power=B3, option=100000, color=#FF0000) { }
                                 }
                                 E:Chip(angle=-135) {
                                    N:Arm(power=B1, option=100000, color=#FF0000) { }
                                 }
                              }
                           }
                        }
                     }
                  }
                  N:Chip(angle=90) {
                     S:Trim(angle=90) { }
                  }
               }
               W:Chip(angle=-90) { }
               S:Chip(angle=-90) { }
               E:Chip(angle=-90) { }
               N:Chip(angle=-90) { }
            }
         }
         W:Weight(angle=-90) { }
         E:Weight(angle=-90) {
            E:Weight(angle=-90) { }
         }
      }
   }
}
Script
{
if gat=360 {gat=0}
if gat=90 {B1=100000}
if gat=180 {B2=100000}
if gat=270 {B3=100000}
if gat=0 {B4=100000}
}


Last edited by Warbird on Wed Oct 27, 2010 2:22 am; edited 1 time in total (Reason for editing : my own dumbness)

Warbird
Tank
Tank

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

Back to top Go down

Gatling turret Empty Re: Gatling turret

Post by Sting Auer Wed Oct 27, 2010 7:30 pm

ok

1.) put the core in the actual part that rotates so that we can see where we are shooting.

2.) try to add more guns and make it spin faster.
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

Gatling turret Empty Re: Gatling turret

Post by Warbird Thu Oct 28, 2010 4:21 am

working on it... when it spins faster it will get torn apart in breakable mode so i can only add more barrels and well the thing with the core is for the next update but thx for the critique, it helps making everything better

Warbird
Tank
Tank

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

Back to top Go down

Gatling turret Empty Re: Gatling turret

Post by Sting Auer Fri Oct 29, 2010 6:55 pm

it doesnt need to spin too much faster.

oh i just remembered something. when a trim stops moving or starts moving it will jerk the entire model. there has got to be a way to make it slowly decelerate.

maybe attach it to another trim with spring and a really high damper? ill have to test that...
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

Gatling turret Empty Re: Gatling turret

Post by JHaskly Fri Oct 29, 2010 7:40 pm

Or use Lua Razz

JHaskly
Admin

Posts : 235
Join date : 2010-07-16
Age : 28
Location : Brisbane

Back to top Go down

Gatling turret Empty Re: Gatling turret

Post by Sting Auer Fri Oct 29, 2010 7:42 pm

Evil or Very Mad

Damn you Jhaskley and your "Lua is the answer to everything" standpoint!!

(jk. you know i think ur awesome)
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

Gatling turret Empty Re: Gatling turret

Post by Warbird Sat Oct 30, 2010 1:13 am

well i guess im too stupid for lua but im fine with scripts too ^^

Warbird
Tank
Tank

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

Back to top Go down

Gatling turret Empty Re: Gatling turret

Post by JHaskly Sat Oct 30, 2010 5:47 am

I'm just saying, you could make something speed up or slow down its rotations fairly easily in Lua. In Script too, actually...

JHaskly
Admin

Posts : 235
Join date : 2010-07-16
Age : 28
Location : Brisbane

Back to top Go down

Gatling turret Empty Re: Gatling turret

Post by Warbird Mon Nov 08, 2010 7:54 am

Good idea, but I had the idea, of simply using a wheel instead of the trim i used until now, but therefor I need to know, how to ask the wheel, which position its currently at. does anybody kow how to do that with a script?, it would make the turrets construction more simple and it would increase the turrets effectivity

Warbird
Tank
Tank

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

Back to top Go down

Gatling turret Empty Re: Gatling turret

Post by bwansy Mon Nov 08, 2010 11:08 pm

Try _RY(WHEEL,WHEEL-1), with "WHEEL" being the name or chip number of your wheel.

bwansy
Admin

Posts : 170
Join date : 2010-07-15

https://rigidchips.forumotion.com

Back to top Go down

Gatling turret Empty Re: Gatling turret

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