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

Transport plane

3 posters

Go down

Transport plane Empty Transport plane

Post by orrrrz Wed Jun 27, 2012 11:27 pm

Code:

// [RCD]
// ZFG同時押しでコア分離
// カウルを滑らかにした
// その他制御を変更 T=-1のときレーダー、FPS以外の記述をスキップする
Val
{
   BRAKE(default=0, max=10000, step=10000)
   COL1(default=#808080, disp=0)
   COL2(default=#5F5F5F, disp=0)
   COL3(default=#8080FF, disp=0)
   ENGINE(default=0, min=-100000, max=500000)
   HATCH1(default=10, min=-30, max=50, step=5, disp=0)
   HATCH2(default=10, min=-30, max=10, step=5, disp=0)
   HATCH3(default=0, max=150, step=10, disp=0)
   RUDDER(default=0, min=-30, max=30, step=5)
   T(default=0, min=-1, max=30, disp=0)
   WA(default=0, min=-15, max=15, step=1, disp=0)
   WA2(default=-90, min=-90, max=0, step=10, disp=0)
   W_F(default=0, max=90, step=10)
   W_P(default=2, min=-23, max=27, step=2)
   W_R(default=0, min=-20, max=20, step=2)
}
Key
{
   0:w_p(step=-2)
   1:w_p(step=2)
   2:w_r(step=-2)
   3:w_r(step=2)
   4:engine(step=10000)
   5:engine(step=-10000)
   7:rudder(step=5)
   9:rudder(step=-5)
}
Body
{
   Core(color=col1) {
      S:Frame(angle=180, option=1) {
         S:Chip(angle=180, color=col1, name=core2) {
            S:Jet(angle=-150, color=col1) {
               S:Weight(angle=150, color=col1) {
                  N:Cowl(angle=30, option=5, color=col3, effect=#D000) {
                     N:Cowl(angle=60, option=2, color=col3, effect=#D000) { }
                  }
                  S:Weight(color=col1) {
                     S:Weight(color=col1) {
                        S:Weight(color=col1) {
                           S:Weight(color=col1) {
                              S:Weight(color=col1) {
                                 S:Weight(color=col1) {
                                    S:Weight(color=col1) {
                                       S:Weight(color=col1) {
                                          S:Weight(color=col1) {
                                             S:Weight(color=col1) {
                                                S:Weight(color=col1) { }
                                             }
                                             S:Trim(angle=90, color=col1) {
                                                E:Chip(angle=-90, color=col1) {
                                                   E:Trim(angle=w_p, color=col2) {
                                                      E:Chip(color=col1) {
                                                         S:Chip(color=col1) { }
                                                      }
                                                      S:Chip(color=col2) {
                                                         W:Chip(color=col1) { }
                                                      }
                                                   }
                                                }
                                                E:Chip(angle=90, color=col1) {
                                                   E:Trim(angle=-w_p, color=col2) {
                                                      E:Chip(color=col1) {
                                                         S:Chip(color=col1) { }
                                                      }
                                                      S:Chip(color=col2) {
                                                         W:Chip(color=col1) { }
                                                      }
                                                   }
                                                }
                                                E:Trim(angle=-rudder, color=col1) {
                                                   S:Chip(color=col1) {
                                                      E:Chip(color=col1) {
                                                         E:Cowl(option=5, color=col2, effect=#0000) { }
                                                      }
                                                      W:Chip(color=col1) {
                                                         N:Chip(color=col1) { }
                                                         W:Chip(color=col1) {
                                                            N:Chip(color=col1) { }
                                                         }
                                                      }
                                                   }
                                                }
                                             }
                                          }
                                          W:Cowl(angle=50, color=col2, effect=#0000) {
                                             N:Cowl(color=col2, effect=#0000) { }
                                             W:Cowl(angle=40, color=col2, effect=#0000) {
                                                W:Cowl(angle=80, color=col2, effect=#0000) {
                                                   S:Cowl(angle=hatch2, option=5, color=col2, effect=#0000) { }
                                                }
                                                S:Cowl(angle=20, color=col2, effect=#0000) {
                                                   S:Cowl(angle=hatch1, color=col2, effect=#0000) {
                                                      E:Cowl(angle=80, color=col2, effect=#0000) { }
                                                      E:Cowl(angle=40, color=col2, effect=#0000) { }
                                                      S:Cowl(angle=-10, color=col2, effect=#0000) {
                                                         E:Cowl(angle=20, option=4, color=col2, effect=#0000) {
                                                            N:Cowl(angle=20, option=5, color=col2, effect=#0000) { }
                                                         }
                                                      }
                                                   }
                                                   E:Cowl(angle=40, color=col2, effect=#0000) { }
                                                   N:Cowl(color=col2, effect=#0000) {
                                                      N:Cowl(angle=20, color=col2, effect=#0000) {
                                                         E:Cowl(angle=60, color=col2, effect=#0000) { }
                                                      }
                                                      E:Cowl(angle=60, color=col2, effect=#0000) { }
                                                   }
                                                }
                                             }
                                          }
                                          E:Cowl(angle=50, color=col2, effect=#0000) {
                                             E:Cowl(angle=40, color=col2, effect=#0000) {
                                                S:Cowl(angle=20, color=col2, effect=#0000) {
                                                   S:Cowl(angle=hatch1, color=col2, effect=#0000) {
                                                      W:Cowl(angle=40, color=col2, effect=#0000) { }
                                                      S:Cowl(angle=-10, color=col2, effect=#0000) {
                                                         W:Cowl(angle=20, option=3, color=col2, effect=#0000) {
                                                            N:Cowl(angle=20, option=5, color=col2, effect=#0000) { }
                                                         }
                                                      }
                                                   }
                                                   N:Cowl(color=col2, effect=#0000) {
                                                      N:Cowl(angle=20, color=col2, effect=#0000) {
                                                         W:Cowl(angle=60, color=col2, effect=#0000) { }
                                                      }
                                                      W:Cowl(angle=60, color=col2, effect=#0000) { }
                                                   }
                                                   W:Cowl(angle=40, color=col2, effect=#0000) { }
                                                }
                                                E:Cowl(angle=80, color=col2, effect=#0000) {
                                                   S:Cowl(angle=hatch2, option=5, color=col2, effect=#0000) { }
                                                }
                                             }
                                             N:Cowl(color=col2, effect=#0000) { }
                                          }
                                       }
                                    }
                                    E:Weight(angle=90, color=col1) {
                                       E:Weight(color=col1) {
                                          E:Weight(angle=-90, color=col1) {
                                             S:Weight(color=col1) {
                                                W:Frame(angle=-90, option=1) {
                                                   W:Frame(angle=-90, option=1) {
                                                      W:Frame(angle=-90, option=1) {
                                                         W:RLW(angle=wa2, brake=brake, effect=2) { }
                                                      }
                                                   }
                                                }
                                                W:Cowl(angle=hatch3, color=col2, effect=#0000) {
                                                   S:Cowl(angle=-hatch2, color=col2, effect=#0000) {
                                                      S:Cowl(angle=-10, color=col2, effect=#0000) { }
                                                   }
                                                }
                                                S:Cowl(angle=-hatch2, option=5, color=col2, effect=#0000) { }
                                             }
                                             N:Weight(color=col1) {
                                                W:Frame(angle=-90, option=1) {
                                                   W:Frame(angle=-90, option=1) {
                                                      W:Frame(angle=-90, option=1) {
                                                         W:RLW(angle=wa2, brake=brake, effect=2) { }
                                                      }
                                                   }
                                                }
                                                W:Cowl(angle=hatch3, color=col2, effect=#0000) {
                                                   N:Cowl(angle=-10, color=col2, effect=#0000) {
                                                      N:Cowl(option=5, color=col2, effect=#0000) { }
                                                   }
                                                }
                                                N:Cowl(angle=-10, option=5, color=col2, effect=#0000) { }
                                             }
                                             W:Frame(angle=-90, option=1) {
                                                W:Frame(angle=-90, option=1) {
                                                   W:Frame(angle=-90, option=1) {
                                                      W:RLW(angle=wa2, brake=brake, effect=2) { }
                                                   }
                                                }
                                             }
                                             W:Cowl(angle=hatch3, color=col2, effect=#0000) { }
                                          }
                                       }
                                    }
                                    W:Weight(angle=90, color=col1) {
                                       W:Weight(color=col1) {
                                          W:Weight(angle=-90, color=col1) {
                                             N:Weight(color=col1) {
                                                E:Frame(angle=-90, option=1) {
                                                   E:Frame(angle=-90, option=1) {
                                                      E:Frame(angle=-90, option=1) {
                                                         E:RLW(angle=wa2, brake=brake, effect=2) { }
                                                      }
                                                   }
                                                }
                                                E:Cowl(angle=hatch3, color=col2, effect=#0000) {
                                                   N:Cowl(angle=-10, color=col2, effect=#0000) {
                                                      N:Cowl(option=5, color=col2, effect=#0000) { }
                                                   }
                                                }
                                                N:Cowl(angle=-10, option=5, color=col2, effect=#0000) { }
                                             }
                                             S:Weight(color=col1) {
                                                E:Frame(angle=-90, option=1) {
                                                   E:Frame(angle=-90, option=1) {
                                                      E:Frame(angle=-90, option=1) {
                                                         E:RLW(angle=wa2, brake=brake, effect=2) { }
                                                      }
                                                   }
                                                }
                                                E:Cowl(angle=hatch3, color=col2, effect=#0000) {
                                                   S:Cowl(angle=-hatch2, color=col2, effect=#0000) {
                                                      S:Cowl(angle=-10, color=col2, effect=#0000) { }
                                                   }
                                                }
                                                S:Cowl(angle=-hatch2, option=5, color=col2, effect=#0000) { }
                                             }
                                             E:Frame(angle=-90, option=1) {
                                                E:Frame(angle=-90, option=1) {
                                                   E:Frame(angle=-90, option=1) {
                                                      E:RLW(angle=wa2, brake=brake, effect=2) { }
                                                   }
                                                }
                                             }
                                             E:Cowl(angle=hatch3, color=col2, effect=#0000) { }
                                          }
                                       }
                                    }
                                 }
                                 S:Trim(angle=90, color=col1) {
                                    S:Rudder(angle=-10, color=col1) {
                                       S:Rudder(angle=-10, color=col1) {
                                          S:Rudder(angle=-10, color=col1) {
                                             S:Rudder(angle=-10, color=col1) {
                                                S:Rudder(angle=-5, color=col1) {
                                                   S:Cowl(option=4, color=col2, effect=#0000) { }
                                                }
                                                W:Chip(color=col1) { }
                                             }
                                             W:Chip(color=col1) {
                                                N:Cowl(angle=20, option=5, color=col2, effect=#0000) { }
                                             }
                                             N:Cowl(color=col2, effect=#0000) { }
                                             S:Cowl(color=col2, effect=#0000) { }
                                          }
                                       }
                                    }
                                    N:Cowl(option=5, color=col2, effect=#0000) { }
                                 }
                                 W:Cowl(angle=30, color=col2, effect=#0000) {
                                    W:Cowl(angle=40, color=col3, effect=#5000) {
                                       S:Cowl(color=col3, effect=#5000) {
                                          S:Cowl(angle=20, color=col2, effect=#0000) { }
                                          W:Cowl(angle=60, color=col2, effect=#0000) { }
                                       }
                                       N:Cowl(angle=20, color=col2, effect=#0000) { }
                                       W:Cowl(angle=60, color=col2, effect=#0000) { }
                                    }
                                    S:Cowl(color=col2, effect=#0000) {
                                       S:Cowl(angle=20, color=col2, effect=#0000) { }
                                    }
                                 }
                                 E:Cowl(angle=30, color=col2, effect=#0000) {
                                    E:Cowl(angle=40, color=col3, effect=#5000) {
                                       N:Cowl(angle=20, color=col2, effect=#0000) { }
                                       S:Cowl(color=col3, effect=#5000) {
                                          S:Cowl(angle=20, color=col2, effect=#0000) { }
                                          E:Cowl(angle=60, color=col2, effect=#0000) { }
                                       }
                                       E:Cowl(angle=60, color=col2, effect=#0000) { }
                                    }
                                    S:Cowl(color=col2, effect=#0000) {
                                       S:Cowl(angle=20, color=col2, effect=#0000) { }
                                    }
                                 }
                                 W:Weight(angle=4, color=col1) {
                                    W:Weight(color=col1) {
                                       W:Weight(color=col2) {
                                          W:Weight(color=col1) {
                                             W:Weight(color=col1) {
                                                W:Weight(color=col2) {
                                                   W:Weight(color=col1) {
                                                      W:Weight(color=col1) { }
                                                   }
                                                   S:Chip(angle=w_r, color=col2) {
                                                      W:Chip(color=col1) { }
                                                      E:Chip(color=col1) { }
                                                   }
                                                }
                                             }
                                             W:Weight(angle=86, color=col1) {
                                                N:Jet(angle=90, power=engine, color=col2) { }
                                                N:Jet(angle=-90, power=-engine, color=col2) { }
                                                S:Jet(angle=90, power=-engine, color=col2) { }
                                                S:Jet(angle=-90, power=engine, color=col2) { }
                                                N:RLW(angle=90, brake=brake, color=col2, effect=8) { }
                                                S:RLW(angle=90, brake=brake, color=col2, effect=5) { }
                                                N:RLW(angle=-90, brake=brake, color=col2, effect=8) { }
                                                S:RLW(angle=-90, brake=brake, color=col2, effect=5) { }
                                                W:Weight(angle=90, color=col2) { }
                                                W:Weight(angle=-90, color=col2) { }
                                             }
                                          }
                                          S:Chip(angle=w_f, color=col2) {
                                             W:Chip(color=col1) { }
                                             E:Chip(color=col1) { }
                                          }
                                       }
                                    }
                                    N:Cowl(angle=45, color=col2, effect=#0000) { }
                                 }
                                 E:Weight(angle=4, color=col1) {
                                    E:Weight(color=col1) {
                                       E:Weight(color=col2) {
                                          E:Weight(color=col1) {
                                             E:Weight(color=col1) {
                                                E:Weight(color=col2) {
                                                   E:Weight(color=col1) {
                                                      E:Weight(color=col1) { }
                                                   }
                                                   S:Chip(angle=-w_r, color=col2) {
                                                      W:Chip(color=col1) { }
                                                      E:Chip(color=col1) { }
                                                   }
                                                }
                                             }
                                             E:Weight(angle=86, color=col1) {
                                                S:Jet(angle=90, power=-engine, color=col2) { }
                                                S:Jet(angle=-90, power=engine, color=col2) { }
                                                N:Jet(angle=90, power=engine, color=col2) { }
                                                N:Jet(angle=-90, power=-engine, color=col2) { }
                                                S:RLW(angle=90, brake=brake, color=col2, effect=5) { }
                                                N:RLW(angle=90, brake=brake, color=col2, effect=8) { }
                                                S:RLW(angle=-90, brake=brake, color=col2, effect=5) { }
                                                N:RLW(angle=-90, brake=brake, color=col2, effect=8) { }
                                                E:Weight(angle=90, color=col2) { }
                                                E:Weight(angle=-90, color=col2) { }
                                             }
                                          }
                                          S:Chip(angle=w_f, color=col2) {
                                             W:Chip(color=col1) { }
                                             E:Chip(color=col1) { }
                                          }
                                       }
                                    }
                                    N:Cowl(angle=45, color=col2, effect=#0000) { }
                                 }
                              }
                           }
                           W:Cowl(angle=50, color=col2, effect=#0000) {
                              N:Cowl(angle=10, color=col2, effect=#0000) { }
                              W:Cowl(angle=40, color=col2, effect=#0000) {
                                 N:Cowl(angle=10, color=col2, effect=#0000) {
                                    N:Cowl(angle=20, option=5, color=col2, effect=#0000) {
                                       W:Cowl(angle=80, color=col2, effect=#0000) { }
                                    }
                                    W:Cowl(angle=80, color=col2, effect=#0000) { }
                                    S:Cowl(angle=-10, color=col2, effect=#0000) {
                                       S:Cowl(angle=20, color=col2, effect=#0000) {
                                          E:Cowl(angle=60, color=col2, effect=#0000) { }
                                       }
                                       E:Cowl(angle=60, color=col2, effect=#0000) { }
                                    }
                                 }
                                 W:Cowl(angle=80, color=col2, effect=#0000) {
                                    S:Cowl(angle=10, option=5, color=col2, effect=#0000) { }
                                 }
                              }
                              S:Cowl(color=col2, effect=#0000) { }
                           }
                           E:Cowl(angle=50, color=col2, effect=#0000) {
                              N:Cowl(angle=10, color=col2, effect=#0000) { }
                              E:Cowl(angle=40, color=col2, effect=#0000) {
                                 N:Cowl(angle=10, color=col2, effect=#0000) {
                                    N:Cowl(angle=20, option=5, color=col2, effect=#0000) {
                                       E:Cowl(angle=80, color=col2, effect=#0000) { }
                                    }
                                    E:Cowl(angle=80, color=col2, effect=#0000) { }
                                    S:Cowl(angle=-10, color=col2, effect=#0000) {
                                       S:Cowl(angle=20, color=col2, effect=#0000) {
                                          W:Cowl(angle=60, color=col2, effect=#0000) { }
                                       }
                                       W:Cowl(angle=60, color=col2, effect=#0000) { }
                                    }
                                 }
                                 E:Cowl(angle=80, color=col2, effect=#0000) {
                                    S:Cowl(angle=10, option=5, color=col2, effect=#0000) { }
                                 }
                              }
                              S:Cowl(color=col2, effect=#0000) { }
                           }
                        }
                        E:Weight(angle=100, color=col1) {
                           E:Weight(color=col1) {
                              E:Weight(angle=-100, color=col1) {
                                 W:Frame(angle=-90, option=1) {
                                    W:Frame(angle=-90, option=1) {
                                       W:Frame(angle=90, option=1) {
                                          E:TrimF(angle=wa, option=1) {
                                             E:RLW(angle=-wa2, brake=brake, effect=2) { }
                                          }
                                       }
                                    }
                                 }
                              }
                           }
                        }
                        W:Weight(angle=100, color=col1) {
                           W:Weight(color=col1) {
                              W:Weight(angle=-100, color=col1) {
                                 E:Frame(angle=-90, option=1) {
                                    E:Frame(angle=-90, option=1) {
                                       E:Frame(angle=90, option=1) {
                                          W:TrimF(angle=wa, option=1) {
                                             W:RLW(angle=-wa2, brake=brake, effect=2) { }
                                          }
                                       }
                                    }
                                 }
                              }
                           }
                        }
                     }
                     W:Cowl(angle=60, color=col2, effect=#0000) {
                        W:Cowl(angle=60, color=col2, effect=#0000) {
                           N:Cowl(color=col2, effect=#0000) {
                              N:Cowl(angle=30, option=4, color=col2, effect=#0000) { }
                              W:Cowl(angle=60, color=col2, effect=#0000) {
                                 N:Cowl(angle=30, option=3, color=col2, effect=#0000) { }
                                 N:Cowl(angle=30, option=4, color=col2, effect=#0000) { }
                                 N:Cowl(angle=31, option=5, color=col3, effect=#D000) { }
                              }
                              N:Cowl(angle=31, option=5, color=col3, effect=#D000) { }
                           }
                           W:Cowl(angle=60, color=col2, effect=#0000) { }
                        }
                        N:Cowl(color=col2, effect=#0000) {
                           N:Cowl(angle=30, option=5, color=col3, effect=#D000) { }
                        }
                        S:Cowl(color=col2, effect=#0000) { }
                     }
                     E:Cowl(angle=60, color=col2, effect=#0000) {
                        E:Cowl(angle=60, color=col2, effect=#0000) {
                           N:Cowl(color=col2, effect=#0000) {
                              N:Cowl(angle=30, option=3, color=col2, effect=#0000) { }
                              N:Cowl(angle=31, option=5, color=col3, effect=#D000) { }
                           }
                        }
                        N:Cowl(color=col2, effect=#0000) {
                           N:Cowl(angle=30, option=5, color=col3, effect=#D000) { }
                        }
                        S:Cowl(color=col2, effect=#0000) { }
                     }
                  }
               }
            }
         }
      }
   }
}
Lua
{_ZOOM(100)

PX=0
PY=0
PZ=0
CN=2
RN=10
prev=0
AUTO=1
W_F2=-1
function balancer()
prev=prev-(_AX(CN)-math.atan2(-_VY(CN),-_VZ(CN)))*0.5
prev=math.min(2,math.max(-2,prev))
W_R=-(_EZ(CN)*10-_WZ(CN))/2
W_P=(-_AX(CN)*20+_WX(CN)+prev+1)/2+2
end
function main()
BRAKE=_KEY(10)*10000
W_F2=W_F2-2*W_F2*_KEYDOWN(10)
W_F=W_F+W_F2*10
_ZOOM(_ZOOM() + (_KEY(16)-_KEY(15))*5.5)

T=T+_KEYDOWN(12)-_KEYDOWN(13)
if T>=0 then

out(0,"num",T)
out(1,"name",_PLAYERNAME(T))
out(2,"chip",_PLAYERCHIPS(T),"arms",_PLAYERARMS(T))
out(4,"engine",(ENGINE))
out(5,"speed",math.sqrt( _VX(CN)^2+_VY(CN)^2+_VZ(CN)^2))
out(6,"x",_X(CN)," z",_Z(CN)," y",_Y(CN))
out(7,"CB Hatch")

_SETCOLOR(0)
_MOVE3D(PX/RN,PY/RN,PZ/RN)
_LINE3D(_X(CN),_Y(CN),_Z(CN))
_MOVE2D(0.01,0)
_LINE2D(-0.01,0)
_LINE2D(-0.01,-0.02)
_LINE2D(0.01,-0.02)
_LINE2D(0.01,0)

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

end
out(8,"FPS ",_FPS())


AUTO=AUTO-2*AUTO*_KEYDOWN(14)
if(AUTO<0) then balancer() end

if _H(CN)<=10 and _H(CN)>=-1 then WA2=WA2+10 WA=-RUDDER end
if math.sqrt(_VX(CN)*_VX(CN)+_VY(CN)*_VY(CN)+_VZ(CN)*_VZ(CN))<=10 and _KEY(6)==1 then HATCH1=HATCH1-5 HATCH2=HATCH2-5 end
if _KEY(4)==1 and _KEY(12)==1 and _KEY(13)==1 then _SPLIT(CORE2) end
HATCH3=HATCH3+(_KEY(6)+_KEY(11)-1)*10
end}

orrrrz
Tank
Tank

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

Back to top Go down

Transport plane Empty Re: Transport plane

Post by orrrrz Sun Jul 01, 2012 10:44 pm

arrow key:pitch/roll
Z/X:engine
C:hatch1
C&B:hatch2
A/D:rudder
V:brake&air brake
F/G:radar
Q:autopilot mode
W/E:zoom

In spite of it's big body,it is tractable and has high level of mobility.
Transport plane Aueaaa15

orrrrz
Tank
Tank

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

Back to top Go down

Transport plane Empty Re: Transport plane

Post by Maurice Mon Jul 02, 2012 3:36 pm

has high level of mobility

That's a bit of an understatement if you ask me, it almost turns about it's own axis. However, other than being a little too touchy for my taste, it' a pretty good aircraft.
Maurice
Maurice
Hover
Hover

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

Back to top Go down

Transport plane Empty Re: Transport plane

Post by bwansy Tue Jul 03, 2012 4:56 am

It's indeed quite agile for a transport plane. That it's hard to completely shut down the engines was a minor annoyance. Other than that, it's very well-made.

bwansy
Admin

Posts : 170
Join date : 2010-07-15

https://rigidchips.forumotion.com

Back to top Go down

Transport plane Empty Re: Transport plane

Post by orrrrz Tue Jul 03, 2012 7:57 am

It's adjusted for being fully loaded,so there are some problems of flying with no luggage.

Almost all my models are able to be controlled without Script or Lua.
Because Usable Script keeps my PC fast,so I want not to make complicated control description for basic operation.But,it is easy to fix engine problem.Please change the min of engine val into 0.

orrrrz
Tank
Tank

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

Back to top Go down

Transport plane Empty Re: Transport plane

Post by orrrrz Thu Oct 04, 2012 10:07 am

I fixed the engine wasn't easy to use,and some problems.
In the new version,you can hide Script Messages,which makes Rigid chips slow.

Additional functions!
S:Shot tail gun/B:Drop gifts
You should add chips at the center of the plane,and give them names g1,g2,g3…
gmax is the global maximum of gift.
Code:

// [RCD]
Val
{
   BRAKE(default=0, max=10000, step=10000)
   COL1(default=#808080, disp=0)
   COL2(default=#5F5F5F, disp=0)
   COL3(default=#8080FF, disp=0)
   COLB(default=#000000, disp=0)
   ENGINE(default=0, min=-100000, max=500000)
   GUN(default=0, max=12800000, step=12800000, disp=0)
   HATCH1(default=10, min=-30, max=50, step=5, disp=0)
   HATCH2(default=10, min=-30, max=10, step=5, disp=0)
   HATCH3(default=0, max=150, step=10, disp=0)
   RUDDER(default=0, min=-30, max=30, step=5, disp=0)
   T(default=0, min=-2, max=30, disp=0)
   WA(default=0, min=-15, max=15, step=1, disp=0)
   WA2(default=-90, min=-90, max=0, step=10, disp=0)
   W_F(default=0, max=90, step=10)
   W_P(default=2, min=-23, max=27, step=2)
   W_R(default=0, min=-20, max=20, step=2)
}
Key
{
   0:w_p(step=-2)
   1:w_p(step=2)
   2:w_r(step=-2)
   3:w_r(step=2)
   7:rudder(step=5)
   8:gun(step=12800000)
   9:rudder(step=-5)
}
Body
{
   Core(color=col1) {
      S:Frame(angle=180, option=1) {
         S:Chip(angle=180, color=col1, name=core2) {
            S:Jet(angle=-150, color=col1) {
               S:Weight(angle=150, color=col1) {
                  N:Cowl(angle=30, option=5, color=col3, effect=#D000) {
                     N:Cowl(angle=60, option=2, color=col3, effect=#D000) { }
                  }
                  S:Weight(color=col1) {
                     S:Weight(color=col1) {
                        S:Weight(color=col1) {
                           S:Weight(color=col1) {
                              S:Weight(color=col1) {
                                 S:Weight(color=col1) {
                                    S:Weight(color=col1) {
                                       S:Weight(color=col1) {
                                          S:Weight(color=col1) {
                                             S:Weight(color=col1) {
                                                S:Weight(color=col1) {
                                                   S:Arm(power=gun, option=50000, color=col1) { }
                                                }
                                             }
                                             S:Trim(angle=90, color=col1) {
                                                E:Chip(angle=-90, color=col1) {
                                                   E:Trim(angle=w_p, color=col2) {
                                                      E:Chip(color=col1) {
                                                         S:Chip(color=col1) { }
                                                      }
                                                      S:Chip(color=col2) {
                                                         W:Chip(color=col1) { }
                                                      }
                                                   }
                                                }
                                                E:Chip(angle=90, color=col1) {
                                                   E:Trim(angle=-w_p, color=col2) {
                                                      E:Chip(color=col1) {
                                                         S:Chip(color=col1) { }
                                                      }
                                                      S:Chip(color=col2) {
                                                         W:Chip(color=col1) { }
                                                      }
                                                   }
                                                }
                                                E:Trim(angle=-rudder, color=col1) {
                                                   S:Chip(color=col1) {
                                                      E:Chip(color=col1) {
                                                         E:Cowl(option=5, color=col2, effect=#0000) { }
                                                      }
                                                      W:Chip(color=col1) {
                                                         N:Chip(color=col1) { }
                                                         W:Chip(color=col1) {
                                                            N:Chip(color=col1) { }
                                                         }
                                                      }
                                                   }
                                                }
                                             }
                                          }
                                          W:Cowl(angle=50, color=col2, effect=#0000) {
                                             N:Cowl(color=col2, effect=#0000) { }
                                             W:Cowl(angle=40, color=col2, effect=#0000) {
                                                W:Cowl(angle=80, color=col2, effect=#0000) {
                                                   S:Cowl(angle=hatch2, option=5, color=col2, effect=#0000) { }
                                                }
                                                S:Cowl(angle=20, color=col2, effect=#0000) {
                                                   S:Cowl(angle=hatch1, color=col2, effect=#0000) {
                                                      E:Cowl(angle=40, color=col2, effect=#0000) { }
                                                      S:Cowl(angle=-10, color=col2, effect=#0000) {
                                                         E:Cowl(angle=20, option=4, color=col2, effect=#0000) {
                                                            N:Cowl(angle=20, option=5, color=col2, effect=#0000) { }
                                                         }
                                                      }
                                                   }
                                                   E:Cowl(angle=40, color=col2, effect=#0000) { }
                                                   N:Cowl(color=col2, effect=#0000) {
                                                      N:Cowl(angle=20, color=col2, effect=#0000) {
                                                         E:Cowl(angle=60, color=col2, effect=#0000) { }
                                                      }
                                                      E:Cowl(angle=60, color=col2, effect=#0000) { }
                                                   }
                                                }
                                             }
                                          }
                                          E:Cowl(angle=50, color=col2, effect=#0000) {
                                             E:Cowl(angle=40, color=col2, effect=#0000) {
                                                S:Cowl(angle=20, color=col2, effect=#0000) {
                                                   S:Cowl(angle=hatch1, color=col2, effect=#0000) {
                                                      W:Cowl(angle=40, color=col2, effect=#0000) { }
                                                      S:Cowl(angle=-10, color=col2, effect=#0000) {
                                                         W:Cowl(angle=20, option=3, color=col2, effect=#0000) {
                                                            N:Cowl(angle=20, option=5, color=col2, effect=#0000) { }
                                                         }
                                                      }
                                                   }
                                                   N:Cowl(color=col2, effect=#0000) {
                                                      N:Cowl(angle=20, color=col2, effect=#0000) {
                                                         W:Cowl(angle=60, color=col2, effect=#0000) { }
                                                      }
                                                      W:Cowl(angle=60, color=col2, effect=#0000) { }
                                                   }
                                                   W:Cowl(angle=40, color=col2, effect=#0000) { }
                                                }
                                                E:Cowl(angle=80, color=col2, effect=#0000) {
                                                   S:Cowl(angle=hatch2, option=5, color=col2, effect=#0000) { }
                                                }
                                             }
                                             N:Cowl(color=col2, effect=#0000) { }
                                          }
                                       }
                                    }
                                    E:Weight(angle=90, color=col1) {
                                       E:Weight(color=col1) {
                                          E:Weight(angle=-90, color=col1) {
                                             S:Weight(color=col1) {
                                                W:Frame(angle=-90, option=1) {
                                                   W:Frame(angle=-90, option=1) {
                                                      W:Frame(angle=-90, option=1) {
                                                         W:RLW(angle=wa2, brake=brake, effect=2) { }
                                                      }
                                                   }
                                                }
                                                W:Cowl(angle=hatch3, color=col2, effect=#0000) {
                                                   S:Cowl(angle=-hatch2, color=col2, effect=#0000) {
                                                      S:Cowl(angle=-10, color=col2, effect=#0000) { }
                                                   }
                                                }
                                                S:Cowl(angle=-hatch2, option=5, color=col2, effect=#0000) { }
                                             }
                                             N:Weight(color=col1) {
                                                W:Frame(angle=-90, option=1) {
                                                   W:Frame(angle=-90, option=1) {
                                                      W:Frame(angle=-90, option=1) {
                                                         W:RLW(angle=wa2, brake=brake, effect=2) { }
                                                      }
                                                   }
                                                }
                                                W:Cowl(angle=hatch3, color=col2, effect=#0000) {
                                                   N:Cowl(angle=-10, color=col2, effect=#0000) {
                                                      N:Cowl(option=5, color=col2, effect=#0000) { }
                                                   }
                                                }
                                                N:Cowl(angle=-10, option=5, color=col2, effect=#0000) { }
                                             }
                                             W:Frame(angle=-90, option=1) {
                                                W:Frame(angle=-90, option=1) {
                                                   W:Frame(angle=-90, option=1) {
                                                      W:RLW(angle=wa2, brake=brake, effect=2) { }
                                                   }
                                                }
                                             }
                                             W:Cowl(angle=hatch3, color=col2, effect=#0000) { }
                                          }
                                       }
                                    }
                                    W:Weight(angle=90, color=col1) {
                                       W:Weight(color=col1) {
                                          W:Weight(angle=-90, color=col1) {
                                             N:Weight(color=col1) {
                                                E:Frame(angle=-90, option=1) {
                                                   E:Frame(angle=-90, option=1) {
                                                      E:Frame(angle=-90, option=1) {
                                                         E:RLW(angle=wa2, brake=brake, effect=2) { }
                                                      }
                                                   }
                                                }
                                                E:Cowl(angle=hatch3, color=col2, effect=#0000) {
                                                   N:Cowl(angle=-10, color=col2, effect=#0000) {
                                                      N:Cowl(option=5, color=col2, effect=#0000) { }
                                                   }
                                                }
                                                N:Cowl(angle=-10, option=5, color=col2, effect=#0000) { }
                                             }
                                             S:Weight(color=col1) {
                                                E:Frame(angle=-90, option=1) {
                                                   E:Frame(angle=-90, option=1) {
                                                      E:Frame(angle=-90, option=1) {
                                                         E:RLW(angle=wa2, brake=brake, effect=2) { }
                                                      }
                                                   }
                                                }
                                                E:Cowl(angle=hatch3, color=col2, effect=#0000) {
                                                   S:Cowl(angle=-hatch2, color=col2, effect=#0000) {
                                                      S:Cowl(angle=-10, color=col2, effect=#0000) { }
                                                   }
                                                }
                                                S:Cowl(angle=-hatch2, option=5, color=col2, effect=#0000) { }
                                             }
                                             E:Frame(angle=-90, option=1) {
                                                E:Frame(angle=-90, option=1) {
                                                   E:Frame(angle=-90, option=1) {
                                                      E:RLW(angle=wa2, brake=brake, effect=2) { }
                                                   }
                                                }
                                             }
                                             E:Cowl(angle=hatch3, color=col2, effect=#0000) { }
                                          }
                                       }
                                    }
                                 }
                                 S:Trim(angle=90, color=col1) {
                                    S:Rudder(angle=-10, color=col1) {
                                       S:Rudder(angle=-10, color=col1) {
                                          S:Rudder(angle=-10, color=col1) {
                                             S:Rudder(angle=-10, color=col1) {
                                                S:Rudder(angle=-5, color=col1) {
                                                   S:Cowl(option=4, color=col2, effect=#0000) { }
                                                }
                                                W:Chip(color=col1) { }
                                             }
                                             W:Chip(color=col1) {
                                                N:Cowl(angle=20, option=5, color=col2, effect=#0000) { }
                                             }
                                             N:Cowl(color=col2, effect=#0000) { }
                                             S:Cowl(color=col2, effect=#0000) { }
                                          }
                                       }
                                    }
                                    N:Cowl(option=5, color=col2, effect=#0000) { }
                                 }
                                 W:Cowl(angle=30, color=col2, effect=#0000) {
                                    W:Cowl(angle=40, color=col3, effect=#5000) {
                                       S:Cowl(color=col3, effect=#5000) {
                                          S:Cowl(angle=20, color=col2, effect=#0000) { }
                                          W:Cowl(angle=60, color=col2, effect=#0000) { }
                                       }
                                       N:Cowl(angle=20, color=col2, effect=#0000) { }
                                       W:Cowl(angle=60, color=col2, effect=#0000) { }
                                    }
                                    S:Cowl(color=col2, effect=#0000) {
                                       S:Cowl(angle=20, color=col2, effect=#0000) { }
                                    }
                                 }
                                 E:Cowl(angle=30, color=col2, effect=#0000) {
                                    E:Cowl(angle=40, color=col3, effect=#5000) {
                                       N:Cowl(angle=20, color=col2, effect=#0000) { }
                                       S:Cowl(color=col3, effect=#5000) {
                                          S:Cowl(angle=20, color=col2, effect=#0000) { }
                                          E:Cowl(angle=60, color=col2, effect=#0000) { }
                                       }
                                       E:Cowl(angle=60, color=col2, effect=#0000) { }
                                    }
                                    S:Cowl(color=col2, effect=#0000) {
                                       S:Cowl(angle=20, color=col2, effect=#0000) { }
                                    }
                                 }
                                 W:Weight(angle=4, color=col1) {
                                    W:Weight(color=col1) {
                                       W:Weight(color=col2) {
                                          W:Weight(color=col1) {
                                             W:Weight(color=col1) {
                                                W:Weight(color=col2) {
                                                   W:Weight(color=col1) {
                                                      W:Weight(color=col1) { }
                                                   }
                                                   S:Chip(angle=w_r, color=col2) {
                                                      W:Chip(color=col1) { }
                                                      E:Chip(color=col1) { }
                                                   }
                                                }
                                             }
                                             W:Weight(angle=86, color=col1) {
                                                N:Jet(angle=90, power=engine, color=col2) { }
                                                N:Jet(angle=-90, power=-engine, color=col2) { }
                                                S:Jet(angle=90, power=-engine, color=col2) { }
                                                S:Jet(angle=-90, power=engine, color=col2) { }
                                                N:RLW(angle=90, brake=brake, color=col2, effect=8) { }
                                                S:RLW(angle=90, brake=brake, color=col2, effect=5) { }
                                                N:RLW(angle=-90, brake=brake, color=col2, effect=8) { }
                                                S:RLW(angle=-90, brake=brake, color=col2, effect=5) { }
                                                W:Weight(angle=90, color=col2) { }
                                                W:Weight(angle=-90, color=col2) { }
                                             }
                                          }
                                          S:Chip(angle=w_f, color=col2) {
                                             W:Chip(color=col1) { }
                                             E:Chip(color=col1) { }
                                          }
                                       }
                                    }
                                    N:Cowl(angle=45, color=col2, effect=#0000) { }
                                 }
                                 E:Weight(angle=4, color=col1) {
                                    E:Weight(color=col1) {
                                       E:Weight(color=col2) {
                                          E:Weight(color=col1) {
                                             E:Weight(color=col1) {
                                                E:Weight(color=col2) {
                                                   E:Weight(color=col1) {
                                                      E:Weight(color=col1) { }
                                                   }
                                                   S:Chip(angle=-w_r, color=col2) {
                                                      W:Chip(color=col1) { }
                                                      E:Chip(color=col1) { }
                                                   }
                                                }
                                             }
                                             E:Weight(angle=86, color=col1) {
                                                S:Jet(angle=90, power=-engine, color=col2) { }
                                                S:Jet(angle=-90, power=engine, color=col2) { }
                                                N:Jet(angle=90, power=engine, color=col2) { }
                                                N:Jet(angle=-90, power=-engine, color=col2) { }
                                                S:RLW(angle=90, brake=brake, color=col2, effect=5) { }
                                                N:RLW(angle=90, brake=brake, color=col2, effect=8) { }
                                                S:RLW(angle=-90, brake=brake, color=col2, effect=5) { }
                                                N:RLW(angle=-90, brake=brake, color=col2, effect=8) { }
                                                E:Weight(angle=90, color=col2) { }
                                                E:Weight(angle=-90, color=col2) { }
                                             }
                                          }
                                          S:Chip(angle=w_f, color=col2) {
                                             W:Chip(color=col1) { }
                                             E:Chip(color=col1) { }
                                          }
                                       }
                                    }
                                    N:Cowl(angle=45, color=col2, effect=#0000) { }
                                 }
                              }
                           }
                           W:Cowl(angle=50, color=col2, effect=#0000) {
                              N:Cowl(angle=10, color=col2, effect=#0000) { }
                              W:Cowl(angle=40, color=col2, effect=#0000) {
                                 N:Cowl(angle=10, color=col2, effect=#0000) {
                                    N:Cowl(angle=20, option=5, color=col2, effect=#0000) {
                                       W:Cowl(angle=80, color=col2, effect=#0000) { }
                                    }
                                    W:Cowl(angle=80, color=col2, effect=#0000) { }
                                    S:Cowl(angle=-10, color=col2, effect=#0000) {
                                       S:Cowl(angle=20, color=col2, effect=#0000) {
                                          E:Cowl(angle=60, color=col2, effect=#0000) { }
                                       }
                                       E:Cowl(angle=60, color=col2, effect=#0000) { }
                                    }
                                 }
                                 W:Cowl(angle=80, color=col2, effect=#0000) {
                                    S:Cowl(angle=10, option=5, color=col2, effect=#0000) { }
                                 }
                              }
                              S:Cowl(color=col2, effect=#0000) { }
                           }
                           E:Cowl(angle=50, color=col2, effect=#0000) {
                              N:Cowl(angle=10, color=col2, effect=#0000) { }
                              E:Cowl(angle=40, color=col2, effect=#0000) {
                                 N:Cowl(angle=10, color=col2, effect=#0000) {
                                    N:Cowl(angle=20, option=5, color=col2, effect=#0000) {
                                       E:Cowl(angle=80, color=col2, effect=#0000) { }
                                    }
                                    E:Cowl(angle=80, color=col2, effect=#0000) { }
                                    S:Cowl(angle=-10, color=col2, effect=#0000) {
                                       S:Cowl(angle=20, color=col2, effect=#0000) {
                                          W:Cowl(angle=60, color=col2, effect=#0000) { }
                                       }
                                       W:Cowl(angle=60, color=col2, effect=#0000) { }
                                    }
                                 }
                                 E:Cowl(angle=80, color=col2, effect=#0000) {
                                    S:Cowl(angle=10, option=5, color=col2, effect=#0000) { }
                                 }
                              }
                              S:Cowl(color=col2, effect=#0000) { }
                           }
                        }
                        E:Weight(angle=100, color=col1) {
                           E:Weight(color=col1) {
                              E:Weight(angle=-100, color=col1) {
                                 W:Frame(angle=-90, option=1) {
                                    W:Frame(angle=-90, option=1) {
                                       W:Frame(angle=90, option=1) {
                                          E:TrimF(angle=wa, option=1) {
                                             E:RLW(angle=-wa2, brake=brake, effect=2) { }
                                          }
                                       }
                                    }
                                 }
                              }
                           }
                        }
                        W:Weight(angle=100, color=col1) {
                           W:Weight(color=col1) {
                              W:Weight(angle=-100, color=col1) {
                                 E:Frame(angle=-90, option=1) {
                                    E:Frame(angle=-90, option=1) {
                                       E:Frame(angle=90, option=1) {
                                          W:TrimF(angle=wa, option=1) {
                                             W:RLW(angle=-wa2, brake=brake, effect=2) { }
                                          }
                                       }
                                    }
                                 }
                              }
                           }
                        }
                     }
                     W:Cowl(angle=60, color=col2, effect=#0000) {
                        W:Cowl(angle=60, color=col2, effect=#0000) {
                           N:Cowl(color=col2, effect=#0000) {
                              N:Cowl(angle=30, option=4, color=col2, effect=#0000) { }
                              W:Cowl(angle=60, color=col2, effect=#0000) {
                                 N:Cowl(angle=30, option=3, color=col2, effect=#0000) { }
                                 N:Cowl(angle=30, option=4, color=col2, effect=#0000) { }
                                 N:Cowl(angle=31, option=5, color=col3, effect=#D000) { }
                              }
                              N:Cowl(angle=31, option=5, color=col3, effect=#D000) { }
                           }
                           W:Cowl(angle=60, color=col2, effect=#0000) { }
                        }
                        N:Cowl(color=col2, effect=#0000) {
                           N:Cowl(angle=30, option=5, color=col3, effect=#D000) { }
                        }
                        S:Cowl(color=col2, effect=#0000) { }
                     }
                     E:Cowl(angle=60, color=col2, effect=#0000) {
                        E:Cowl(angle=60, color=col2, effect=#0000) {
                           N:Cowl(color=col2, effect=#0000) {
                              N:Cowl(angle=30, option=3, color=col2, effect=#0000) { }
                              N:Cowl(angle=31, option=5, color=col3, effect=#D000) { }
                           }
                        }
                        N:Cowl(color=col2, effect=#0000) {
                           N:Cowl(angle=30, option=5, color=col3, effect=#D000) { }
                        }
                        S:Cowl(color=col2, effect=#0000) { }
                     }
                  }
               }
            }
         }
      }
   }
}
Lua
{_ZOOM(100)
CN=2
prev=0
AUTO=1
W_F2=-1
gift=0
gmax=10
ens=1
function balancer()
prev=prev-(_AX(CN)-math.atan2(-_VY(CN),-_VZ(CN)))*0.5
prev=math.min(2,math.max(-2,prev))
W_R=-(_EZ(CN)*10-_WZ(CN))/2
W_P=(-_AX(CN)*20+_WX(CN)+prev+1)/2+2
end
function main()
--エンジン制御
if ENGINE~=0 then ENGINE=ENGINE+(_KEY(4)-_KEY(5))*10000
else ENGINE=ENGINE+(_KEYDOWN(4)-_KEYDOWN(5))*10000 end

gift=math.min(gmax,math.max(0,gift))
if HATCH3==150 then gift=gift+1/4 end
for i=1,20 do
if i<=gift then _SPLIT(_G["G"..i]) end
end

BRAKE=W_F2*10000
W_F2=W_F2-2*W_F2*_KEYDOWN(10)
W_F=W_F+W_F2*10
_ZOOM(_ZOOM() + (_KEY(16)-_KEY(15))*5.5)

T=T+_KEYDOWN(12)-_KEYDOWN(13)
if T>-1 then

out(0,"num",T)
out(1,"name",_PLAYERNAME(T))
out(2,"chip",_PLAYERCHIPS(T),"arms",_PLAYERARMS(T))
out(4,"engine",(ENGINE))
out(5,"speed",math.sqrt( _VX(CN)^2+_VY(CN)^2+_VZ(CN)^2))
out(6,"x",_X(CN)," z",_Z(CN)," y",_Y(CN))

_SETCOLOR(0)
_MOVE3D(_PLAYERX(T),_PLAYERY(T),_PLAYERZ(T))
_LINE3D(_X(CN),_Y(CN),_Z(CN))
_MOVE2D(0.01,0)
_LINE2D(-0.01,0)
_LINE2D(-0.01,-0.02)
_LINE2D(0.01,-0.02)
_LINE2D(0.01,0)

end
if T>-2 then
out(7,"gift",math.floor(gift))
out(8,"FPS ",_FPS())
end

AUTO=AUTO-2*AUTO*_KEYDOWN(14)
if(AUTO<0) then balancer() end

if _H(CN)<=10 and _H(CN)>=-1 then WA2=WA2+10 WA=-RUDDER end
if math.sqrt(_VX(CN)*_VX(CN)+_VY(CN)*_VY(CN)+_VZ(CN)*_VZ(CN))<=10 and _KEY(6)==1 then HATCH1=HATCH1-5 HATCH2=HATCH2-5 end
if _KEY(4)==1 and _KEY(12)==1 and _KEY(13)==1 then _SPLIT(CORE2) end
HATCH3=HATCH3+_KEY(11)*10
end}


orrrrz
Tank
Tank

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

Back to top Go down

Transport plane Empty Re: Transport plane

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