Super aggressive submarine

View previous topic View next topic Go down

Super aggressive submarine

Post by orrrrz on Tue Jun 19, 2012 4:07 am

It's correspond to BOT scenario in orz uploader
Code:

// [RCD]
Val
{
   BOMB(default=0, min=-180, max=0)
   BRAKE(default=180, min=90, max=180, step=10, disp=0)
   GUN(default=0, max=12800000, step=12900000, disp=0)
   GUN2(default=0, max=12800000, step=12900000, disp=0)
   JET(default=0, min=-1000000, max=1000000, disp=0)
   ROLL(default=0, min=-15, max=15, step=5, disp=0)
   SIDE(default=0, min=-20, max=20, step=5, disp=0)
   T(default=0, max=99, disp=0)
   UD(default=-0.2, min=-20, max=20, step=5, disp=0)
   W_A1(default=0, max=180, step=30, disp=0)
   W_A2(default=120, min=120, max=180, step=10, disp=0)
}
Key
{
}
Body
{
   Core(color=#00FFFF) {}
   Core(color=#00FFFF) {
      N:Arm(power=GUN, option=100000, color=#80FFFF, user1=105) {
         S:Jet(angle=bomb, color=#80FFFF) { }
      }
      W:Rudder(angle=-90, color=#00FFFF) {
         N:RudderF(angle=-90, option=1) {
            N:Trim(angle=90, color=#80FFFF) { }
            N:Chip(angle=ud, color=#80FFFF) { }
            E:RudderF(angle=-90, color=#00FFFF) {
               S:Frame(angle=W_A2, color=#00FFFF) {
                  W:Arm(power=GUN2, option=100000, color=#80FFFF, user1=105) { }
               }
               S:Frame(angle=-W_A2, color=#00FFFF) {
                  W:Arm(power=GUN2, option=100000, color=#80FFFF, user1=105) { }
               }
            }
         }
         N:Chip(angle=120, color=#00FFFF) {
            E:Arm(power=GUN, option=100000, color=#80FFFF, user1=105) {
               W:Jet(angle=-bomb, color=#80FFFF) { }
            }
            W:Chip(angle=brake, color=#00FFFF) { }
         }
         N:Chip(angle=-120, color=#00FFFF) {
            E:Arm(power=GUN, option=100000, color=#80FFFF, user1=105) {
               W:Jet(angle=bomb, color=#80FFFF) { }
            }
            W:Chip(angle=-brake, color=#00FFFF) { }
         }
      }
      E:Rudder(angle=90, color=#00FFFF) {
         N:RudderF(angle=90, option=1) {
            N:Trim(angle=90, color=#80FFFF) { }
            N:Chip(angle=ud, color=#80FFFF) { }
            W:RudderF(angle=90, color=#00FFFF) {
               S:Frame(angle=W_A2, color=#00FFFF) {
                  E:Arm(power=GUN2, option=100000, color=#80FFFF, user1=105) { }
               }
               S:Frame(angle=-W_A2, color=#00FFFF) {
                  E:Arm(power=GUN2, option=100000, color=#80FFFF, user1=105) { }
               }
            }
         }
         N:Chip(angle=120, color=#00FFFF) {
            W:Arm(power=GUN, option=100000, color=#80FFFF, user1=105) {
               E:Jet(angle=-bomb, color=#80FFFF) { }
            }
            E:Chip(angle=brake, color=#00FFFF) { }
         }
         N:Chip(angle=-120, color=#00FFFF) {
            W:Arm(power=GUN, option=100000, color=#80FFFF, user1=105) {
               E:Jet(angle=bomb, color=#80FFFF) { }
            }
            E:Chip(angle=-brake, color=#00FFFF) { }
         }
      }
      S:Chip(color=#0080FF) {
         W:Trim(angle=roll, color=#00FFFF) { }
         S:Jet(angle=-90, power=jet, color=#8080FF) { }
         S:Jet(angle=90, power=-jet, color=#8080FF) { }
         E:Trim(angle=roll, color=#00FFFF) { }
      }
      S:Trim(angle=90, color=#0080FF) {
         S:Chip(angle=side, color=#00FFFF) { }
         S:Jet(angle=90, power=-jet, color=#8080FF) { }
         S:Jet(angle=-90, power=jet, color=#8080FF) { }
         E:Frame(angle=W_A1, color=#00FFFF) {
            N:Arm(power=gun2, option=100000, color=#80FFFF, user1=105) { }
            E:RudderF(angle=90, color=#00FFFF) {
               N:Frame(angle=W_A2, color=#00FFFF) {
                  W:Arm(power=GUN2, option=100000, color=#80FFFF, user1=105) { }
               }
               N:Frame(angle=-W_A2, color=#00FFFF) {
                  W:Arm(power=GUN2, option=100000, color=#80FFFF, user1=105) { }
               }
            }
         }
         W:Frame(angle=-W_A1, color=#00FFFF) {
            N:Arm(power=GUN2, option=100000, color=#80FFFF, user1=105) { }
            W:RudderF(angle=-90, color=#00FFFF) {
               N:Frame(angle=W_A2, color=#00FFFF) {
                  E:Arm(power=GUN2, option=100000, color=#80FFFF, user1=105) { }
               }
               N:Frame(angle=-W_A2, color=#00FFFF) {
                  E:Arm(power=GUN2, option=100000, color=#80FFFF, user1=105) { }
               }
            }
         }
      }
   }
}
Lua
{_SPLIT(CUT)
AUTO=1
BOMS=1
PX=0
PY=0
PZ=0
prev=0
CN=1
RN=100
function balancer()
prev=prev-(_AX(CN)-math.atan2(-_VY(CN),-_VZ(CN)))*0.5
prev=math.min(2,math.max(-2,prev))

ROLL=(_EZ(CN)*10+_WZ(CN))/2
UD=(_AX(CN)*20+_WX(CN)+prev)/2
end
function main()
if math.abs(UD)<=10 and _Y(CN)<=0 then UD=UD+(_KEY(0)-_KEY(1))*2 end
if _Y(CN)>0 then UD=UD+(_KEY(0)-_KEY(1))*2 end
ROLL=ROLL+(_KEY(2)-_KEY(3))*2
SIDE=SIDE+(_KEY(9)-_KEY(7))*2
GUN=_KEY(8)*12800000
GUN2=_KEY(8)*12800000
JET=JET+(_KEY(4)-_KEY(5))*10000
BRAKE=BRAKE-_KEY(10)*10
AUTO=AUTO-2*AUTO*_KEYDOWN(14)
if(AUTO<0) then balancer() end
BOMS=BOMS-2*BOMS*_KEYDOWN(6)
BOMB=BOMB+BOMS*5
_ZOOM(_ZOOM() + (_KEY(16)-_KEY(15))*5)

out(0,"num",T)
out(1,"name",_PLAYERNAME(T))
out(2,"chip",_PLAYERCHIPS(T),"arms",_PLAYERARMS(T))
out (4,"engine",(JET))
out (5,"speed",math.sqrt( _VX(CN)*_VX(CN)+_VY(CN)*_VY(CN)+_VZ(CN)*_VZ(CN)))
out (6 ,"x",_X(CN)," z",_Z(CN)," y",_Y(CN))
T=T+_KEYDOWN(12)-_KEYDOWN(13)
for i = 0, RN+1 do
PX=PX+_PLAYERX(T)
PY=PY+_PLAYERY(T)
PZ=PZ+_PLAYERZ(T)
if i==1 then PX=0 PY=0 PZ=0 end
end
_SETCOLOR(0)
_MOVE3D(PX/RN,PY/RN,PZ/RN)
_LINE3D(_X(CN),_Y(CN),_Z(CN))
if _Y(CN)>=0 then W_A1=W_A1+15 W_A2=W_A2+30 GUN2=0 end
end}


orrrrz
Tank
Tank

Posts : 55
Join date : 2012-06-19
Age : 22
Location : Tokyo

View user profile

Back to top Go down

Re: Super aggressive submarine

Post by orrrrz on Tue Jun 19, 2012 4:08 am


orrrrz
Tank
Tank

Posts : 55
Join date : 2012-06-19
Age : 22
Location : Tokyo

View user profile

Back to top Go down

Re: Super aggressive submarine

Post by jiri.hartvich.9 on Fri Aug 31, 2012 2:44 am

cool submarine
avatar
jiri.hartvich.9
Tank
Tank

Posts : 51
Join date : 2012-08-29
Age : 18
Location : CZ

View user profile

Back to top Go down

Re: Super aggressive submarine

Post by mober on Mon Sep 03, 2012 7:55 pm

it stinks
avatar
mober
Tank
Tank

Posts : 64
Join date : 2012-01-17

View user profile

Back to top Go down

Re: Super aggressive submarine

Post by Maurice on Wed Sep 05, 2012 1:38 pm

^And do you have any suggestions to improve it? Just saying "it stinks" isn't very helpful. It doesn't provide a way for the other person to learn something new and become a better designer, and frankly you come off looking like a jerk of legendary proportions.
avatar
Maurice
Hover
Hover

Posts : 153
Join date : 2011-10-07
Age : 22
Location : The early 1970's

View user profile

Back to top Go down

Re: Super aggressive submarine

Post by jiri.hartvich.9 on Mon Sep 10, 2012 12:42 pm

Wadda shid Mober?! What a Face Shocked
avatar
jiri.hartvich.9
Tank
Tank

Posts : 51
Join date : 2012-08-29
Age : 18
Location : CZ

View user profile

Back to top Go down

Re: Super aggressive submarine

Post by mober on Sun Sep 30, 2012 3:33 pm

it has a extra core, but wunts you get rid of the top core, its cool farao
avatar
mober
Tank
Tank

Posts : 64
Join date : 2012-01-17

View user profile

Back to top Go down

Re: Super aggressive submarine

Post by mober on Sun Sep 30, 2012 3:36 pm

what are the extra jets for Question
avatar
mober
Tank
Tank

Posts : 64
Join date : 2012-01-17

View user profile

Back to top Go down

Re: Super aggressive submarine

Post by madbob2 on Sun Sep 30, 2012 5:59 pm

Like bwansy has told you earlier, don't multipost. Use the EDIT button.
avatar
madbob2
Tank
Tank

Posts : 87
Join date : 2010-07-16
Age : 20
Location : Orz Lake.x

View user profile

Back to top Go down

Re: Super aggressive submarine

Post by mober on Mon Oct 01, 2012 9:37 am

ok ok
avatar
mober
Tank
Tank

Posts : 64
Join date : 2012-01-17

View user profile

Back to top Go down

Re: Super aggressive submarine

Post by Rainman on Wed Oct 03, 2012 9:04 am

Powerfully armed and pretty maneuverable, but also to the point where it's kind of a pain to control.

I don't doubt it'd be effective, especially if controlled by a bot-script, but I feel like it lacks a certain... style. It just feels like a big amalgam of guns and engines and a couple steering surfaces, rather than a vehicle.
avatar
Rainman
Tank
Tank

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

View user profile

Back to top Go down

Re: Super aggressive submarine

Post by Maurice on Wed Oct 03, 2012 5:40 pm

but I feel like it lacks a certain... style.

[BLATANT PRODUCT PLUG]
Certainly nothing like my mighty Typhoon!
avatar
Maurice
Hover
Hover

Posts : 153
Join date : 2011-10-07
Age : 22
Location : The early 1970's

View user profile

Back to top Go down

Re: Super aggressive submarine

Post by mober on Wed Nov 21, 2012 2:58 pm

.what are the extra jets for:?:
avatar
mober
Tank
Tank

Posts : 64
Join date : 2012-01-17

View user profile

Back to top Go down

Re: Super aggressive submarine

Post by RA2lover on Thu Nov 22, 2012 3:16 am

jet's don't have underwater drag(but frames do).
avatar
RA2lover
Walker
Walker

Posts : 382
Join date : 2010-10-11
Age : 22
Location : Brazil

View user profile

Back to top Go down

Re: Super aggressive submarine

Post by orrrrz on Wed Dec 12, 2012 1:04 am

The extra jets are for explosion effect in BOT scenario.

orrrrz
Tank
Tank

Posts : 55
Join date : 2012-06-19
Age : 22
Location : Tokyo

View user profile

Back to top Go down

Re: Super aggressive submarine

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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