Zephyr-class space fighter
RigidChips :: Rigid-Chips :: Files :: Others
Page 1 of 1
Zephyr-class space fighter
This is my newest spacecraft, the Zephyr-class fighter. It has a semi-advanced HUD with several indicator lights that can only be viewed in Ctrl-F10 view. It flies very similar to my Sentinel-Class Heavy Cruiser. It is armed with a single option 100000 gun and twin option 50000 guns. It has a maximum speed of around 155 km/h (which I know is not impressive, but it was too unstable otherwise). The following picture is a guide to the HUD.
And here's the model.
And here's the model.
- Code:
// [RCD]
Val
{
ABCOL(default=#000000)
AIRBRAKE(default=155, min=100, max=155, step=10)
ALT(default=0)
COL(default=#0D0D0D)
COL2(default=#80FFFF)
EJP(default=0, min=-1000000, max=1000000)
ENG(default=0, min=-6000, max=30000)
GUN(default=0, max=100000, step=100000)
GUN2(default=0, max=50000, step=50000)
M(default=0)
NJP(default=0, min=-1000000, max=1000000)
RCOL(default=#000000)
RECOIL(default=0, max=100000, step=100000)
SJP(default=0, min=-1000000, max=1000000)
THRUSTERS(default=0, min=-400, max=2000)
TIMER(default=-1, min=-1, max=100, step=100)
TURN(default=0, min=-2000, max=2000, step=2500)
WJP(default=0, min=-1000000, max=1000000)
}
Key
{
2:Turn(step=-2500)
3:Turn(step=2500)
4:ENG(step=3000), Thrusters(step=200)
5:Thrusters(step=-200), ENG(step=-3000)
9:Gun2(step=50000)
12:Airbrake(step=-5)
}
Body
{
Core() {
S:Frame(angle=45) {
S:Weight(angle=135) {
N:Chip() {
N:Trim(angle=90) {
E:Jet(angle=180, power=Turn) { }
S:Chip(angle=-airbrake) { }
S:Chip(angle=Airbrake) { }
N:Chip() { }
}
S:Trim(angle=90) {
W:Jet(angle=180, power=Turn) { }
S:Chip(angle=155) { }
S:Chip(angle=-155) { }
S:Frame(option=1) { }
}
N:Chip() {
N:Chip() {
N:Jet(angle=-90, power=THRUSTERS) {
N:Cowl(angle=-90, color=col) {
S:Cowl(color=col) { }
E:Cowl(angle=-90, color=col) {
E:Cowl(angle=-90, color=col2) {
S:Cowl(color=col) { }
}
S:Cowl(color=col) { }
}
W:Cowl(angle=-90, color=col) {
S:Cowl(color=col) {
N:Cowl(angle=-95, color=col) {
N:Cowl(angle=-175, option=2, color=#00FFFF, effect=#0F00) { }
}
}
}
N:Cowl(angle=-10, color=col) {
W:Cowl(angle=-90, color=col) { }
E:Cowl(angle=-90, color=col) { }
N:Cowl(color=col) {
N:Cowl(color=col) {
W:Cowl(angle=-90, color=col) { }
E:Cowl(angle=-90, color=col) { }
N:Cowl(angle=5) {
N:Cowl(angle=-90, option=5, color=#80FFFF) {
N:Cowl(angle=110, color=col) {
S:Cowl(angle=111, color=col) { }
W:Cowl(angle=91, option=4, color=col) {
S:Cowl(angle=99, color=RCOL) { }
}
E:Cowl(angle=91, option=3, color=col) {
S:Cowl(angle=99, color=ABCOL) { }
}
}
}
}
}
W:Cowl(angle=-90, color=col) { }
E:Cowl(angle=-90, color=col) { }
}
}
}
}
N:Jet(angle=90, power=-THRUSTERS) {
N:Cowl(angle=90, color=col) {
S:Cowl(color=col) {
N:Cowl(angle=95, color=col) {
N:Cowl(angle=175, option=2, color=#00FFFF, effect=#0F00) { }
}
}
W:Cowl(angle=90, color=col) {
S:Cowl(color=col) { }
}
E:Cowl(angle=90, color=col) {
S:Cowl(color=col) {
E:Cowl(angle=90, color=col) { }
}
}
N:Cowl(angle=5, color=col) {
W:Cowl(angle=90, color=col) { }
E:Cowl(angle=90, color=col) { }
}
}
}
N:Chip() {
E:TrimF(angle=90, option=1) {
S:Jet(angle=180, power=-THRUSTERS) { }
E:Cowl(angle=-90, color=col) {
E:Cowl(color=col, effect=#F000) {
E:Cowl(color=col, effect=#F000) {
E:Cowl(color=col) {
S:Cowl(angle=-90, color=col) {
S:Cowl(angle=-90, color=col) { }
}
N:Cowl(angle=-90, color=col) { }
E:Cowl(angle=-10, color=col) {
E:Cowl(color=col) {
E:Cowl(angle=-5, color=col) {
E:Cowl(color=col) {
E:Cowl(color=col) {
E:Cowl(angle=-165, color=#8CFFFF, effect=#0F00) {
E:Cowl(color=#8CFFFF, effect=#0F00) {
E:Cowl(color=#8CFFFF, effect=#0F00) { }
}
}
S:Cowl(angle=-90, option=5, color=col) { }
N:Cowl(angle=-90, option=5, color=col) { }
}
S:Cowl(angle=-90, color=col) { }
N:Cowl(angle=-90, color=col) { }
}
S:Cowl(angle=-90, color=col) { }
N:Cowl(angle=-90, color=col) {
N:Cowl(option=4, color=col) { }
}
}
S:Cowl(angle=-90, color=col) {
S:Cowl(angle=-90, color=col) { }
}
N:Cowl(angle=-90, color=col) {
N:Cowl(color=col) { }
}
}
S:Cowl(angle=-90, color=col) {
S:Cowl(angle=-90, color=col) { }
}
N:Cowl(angle=-90, color=col) {
N:Cowl(color=col) { }
}
}
E:Cowl(color=col) {
E:Cowl(angle=-15, color=col) {
N:Cowl(angle=-90, color=col) { }
E:Cowl(angle=-6, color=col) {
S:Cowl(angle=-90, color=col) { }
N:Cowl(angle=-90, color=col) { }
}
S:Cowl(angle=-90, color=col) { }
}
N:Cowl(angle=-90, color=col) { }
S:Cowl(angle=-90, color=col) { }
}
W:Cowl(angle=-15, color=col) {
W:Cowl(color=col) {
W:Cowl(color=col) {
S:Cowl(angle=-90, option=4, color=col) { }
N:Cowl(angle=-90, option=3, color=col) { }
}
S:Cowl(angle=-90, color=col) { }
N:Cowl(angle=-90, color=col) { }
}
S:Cowl(angle=-90, color=col) { }
N:Cowl(angle=-90, color=col) { }
}
}
}
}
W:Cowl(color=col) {
S:Cowl(angle=-30, color=col) {
E:Cowl(option=4, color=col) { }
}
N:Cowl(angle=-60, color=col) {
E:Cowl(option=3, color=col) { }
}
}
S:Cowl(angle=-90, color=col) {
W:Cowl(color=col) { }
S:Cowl(angle=-90, color=col) {
W:Cowl(color=col) { }
}
}
N:Cowl(angle=-90, color=col) {
W:Cowl(color=col) {
E:Cowl(angle=-95, color=col) {
E:Cowl(angle=-175, option=2, color=#00FFFF, effect=#0F00) { }
}
}
}
E:Cowl(angle=-10, color=col) {
E:Cowl(color=col) {
S:Cowl(angle=-90, color=col) { }
N:Cowl(angle=-90, color=col) { }
}
N:Cowl(angle=-90, color=col) { }
S:Cowl(angle=-90, color=col) { }
}
}
}
W:TrimF(angle=-90, option=1) {
N:Jet(angle=180, power=-THRUSTERS) {
W:Cowl(angle=90, color=col) {
W:Cowl(color=col, effect=#F000) {
W:Cowl(color=col, effect=#F000) {
W:Cowl(color=col) {
S:Cowl(angle=90, color=col) { }
N:Cowl(angle=90, color=col) {
N:Cowl(angle=90, color=col) { }
}
W:Cowl(angle=10, color=col) {
W:Cowl(color=col) {
W:Cowl(angle=5, color=col) {
W:Cowl(color=col) {
W:Cowl(color=col) {
W:Cowl(angle=165, color=#8CFFFF, effect=#0F00) {
W:Cowl(color=#8CFFFF, effect=#0F00) {
W:Cowl(color=#8CFFFF, effect=#0F00) { }
}
}
N:Cowl(angle=90, option=5, color=col) { }
S:Cowl(angle=90, option=5, color=col) { }
}
N:Cowl(angle=90, color=col) { }
S:Cowl(angle=90, color=col) { }
}
N:Cowl(angle=90, color=col) { }
S:Cowl(angle=90, color=col) {
S:Cowl(option=4, color=col) { }
}
}
N:Cowl(angle=90, color=col) {
N:Cowl(angle=90, color=col) { }
}
S:Cowl(angle=90, color=col) {
S:Cowl(color=col) { }
}
}
N:Cowl(angle=90, color=col) {
N:Cowl(angle=90, color=col) { }
}
S:Cowl(angle=90, color=col) {
S:Cowl(color=col) { }
}
}
W:Cowl(color=col) {
W:Cowl(angle=15, color=col) {
S:Cowl(angle=90, color=col) { }
W:Cowl(angle=6, color=col) {
N:Cowl(angle=90, color=col) { }
S:Cowl(angle=90, color=col) { }
}
N:Cowl(angle=90, color=col) { }
}
S:Cowl(angle=90, color=col) { }
E:Cowl(angle=90, color=col) { }
N:Cowl(angle=90, color=col) { }
}
E:Cowl(angle=15, color=col) {
E:Cowl(color=col) {
E:Cowl(color=col) {
N:Cowl(angle=90, option=4, color=col) { }
S:Cowl(angle=90, option=3, color=col) { }
}
N:Cowl(angle=90, color=col) { }
S:Cowl(angle=90, color=col) { }
}
N:Cowl(angle=90, color=col) { }
S:Cowl(angle=90, color=col) { }
}
}
}
}
E:Cowl(color=col) {
W:Cowl(angle=95, color=col) {
W:Cowl(angle=175, option=2, color=#00FFFF, effect=#0F00) { }
}
N:Cowl(angle=30, color=col) {
W:Cowl(option=4, color=col) { }
}
S:Cowl(angle=60, color=col) {
W:Cowl(option=3, color=col) { }
}
}
S:Cowl(angle=90, color=col) {
E:Cowl(color=col) { }
}
N:Cowl(angle=90, color=col) {
E:Cowl(color=col) {
N:Cowl(angle=90, color=col) { }
}
N:Cowl(angle=90, color=col) { }
}
W:Cowl(angle=10, color=col) {
W:Cowl(color=col) {
N:Cowl(angle=90, color=col) { }
S:Cowl(angle=90, color=col) { }
}
S:Cowl(angle=90, color=col) { }
N:Cowl(angle=90, color=col) { }
}
}
}
}
}
W:Frame(option=1) {
W:Jet(angle=180, power=SJP, name=SJ) { }
}
E:Frame(option=1) {
E:Jet(angle=180, power=NJP, name=NJ) { }
}
}
}
N:Frame(angle=-45) {
N:Chip(angle=45) { }
}
S:Frame() { }
W:TrimF(angle=90, option=1) {
W:Frame(angle=30, option=1) {
W:Arm(angle=60, power=Gun2, option=50000) {
E:Cowl(option=5, color=col) { }
}
}
}
E:TrimF(angle=-90, option=1) {
W:TrimF() {
N:Jet(angle=180, power=recoil) { }
}
E:Frame(angle=30, option=1) {
E:Arm(angle=60, power=Gun2, option=50000) {
W:Cowl(option=5, color=col) { }
}
}
}
S:Frame() { }
S:Frame() { }
E:Cowl(color=col) {
E:Cowl(color=col) {
S:Cowl(option=3, color=col) { }
}
}
W:Cowl(color=col) {
W:Cowl(color=col) {
S:Cowl(option=4, color=col) { }
}
}
}
S:Cowl(angle=30, color=#1D1D1D) {
S:Cowl(angle=-30, color=col) {
S:Cowl(color=col) {
S:Cowl(color=col) { }
N:Cowl(angle=25, effect=#5000) {
N:Cowl(angle=-15, effect=#5000) {
N:Cowl(angle=-10, color=col) {
N:Cowl(angle=-5, color=col) {
N:Cowl(color=col) {
W:Cowl(angle=-90, color=col) { }
E:Cowl(angle=-90, color=col) { }
}
W:Cowl(angle=-90, color=col) { }
E:Cowl(angle=-90, color=col) { }
}
W:Cowl(angle=-90, color=col) { }
E:Cowl(angle=-90, color=col) { }
N:Cowl(angle=-90, color=col) { }
}
W:Cowl(angle=-90, effect=#5000) { }
E:Cowl(angle=-90, effect=#5000) { }
}
W:Cowl(angle=-90, effect=#5000) { }
E:Cowl(angle=-90, effect=#5000) { }
N:Cowl(angle=1, effect=#F000) {
W:Cowl(angle=-90, effect=#F000) {
S:Cowl(angle=-150, effect=#F000) {
S:Cowl(angle=150, effect=#F000) {
S:Cowl(option=5, color=#00FF40, effect=#C000) {
E:Cowl(angle=150, option=4, color=#00FF40, effect=#C000) { }
E:Cowl(angle=-150, option=4, color=#00FF40, effect=#C000) { }
}
}
}
}
}
}
}
S:Cowl(angle=-90, color=col) { }
S:Cowl(angle=-89, option=2, color=#050505) { }
}
}
S:Frame() { }
S:Chip() {
S:Arm(power=Gun, option=100000, name=GUN) {
S:Cowl(angle=-30, effect=#F000) {
S:Cowl(angle=30, color=col) { }
}
}
N:Frame(angle=150, option=1) {
N:Jet(angle=120, power=ENG) { }
}
W:Frame(option=1) {
W:Jet(angle=180, power=EJP, name=EJ) { }
}
E:Frame(option=1) {
E:Jet(angle=180, power=WJP, name=WJ) { }
}
}
S:Frame() { }
S:Frame() { }
S:Frame() { }
}
}
}
}
Script
{ print 1, "True altitude: ", _Y(CORE), "m"
print 0, "Set altitude: ", ALT, "m"
print 2, "Mass: ",_WEIGHT()," kg"
if _KEY(15)=(1){
ALT=ALT+1/2
}
if _KEY(8)=(1){
ALT=ALT-1/5
}
if _KEY(7)>0 {
Timer=Timer+1
}
if Timer=0 {
GUN=100000
recoil=100000
}
if Timer=20 {
Timer=-1
}
if M=0 {
ALT=_Y(0)
M=1
}
if _E(GUN)<100000 {
Col2=#FF0000
}
if _E(GUN)=100000 {
Col2=#80FFFF
}
if ENG<0 {
RCOL=#FF0000
}
if ENG>0 {
RCOL=#00FF00
}
if ENG=0 {
RCOL=#000000
}
if _KEY(12)>0 {
ABCOL=#FF8000
}
if _KEY(12)=0 {
ABCOL=#000000
}
CJP = 20*_POW((ALT -_Y(CORE)),2)
NJP = 5000*(ALT -_Y(NJ))-_VY(NJ)*1000
EJP = 5000*(ALT -_Y(EJ))-_VY(EJ)*1000
SJP = 5000*(ALT -_Y(SJ))-_VY(SJ)*1000
WJP = 5000*(ALT -_Y(WJ))-_VY(WJ)*1000
//Targeting recticle
sightrange=0.6 //ŽlŠp˜g•`‰æ
sightwidth=0.03025
sightheight=0.025
sx=_XX(chip)*sightheight-_YX(chip)*sightheight-_ZX(chip)*sightrange
sy=_XY(chip)*sightheight-_YY(chip)*sightheight-_ZY(chip)*sightrange
sz=_XZ(chip)*sightheight-_YZ(chip)*sightheight-_ZZ(chip)*sightrange
ex=-_XX(chip)*sightheight-_YX(chip)*sightheight-_ZX(chip)*sightrange
ey=-_XY(chip)*sightheight-_YY(chip)*sightheight-_ZY(chip)*sightrange
ez=-_XZ(chip)*sightheight-_YZ(chip)*sightheight-_ZZ(chip)*sightrange
dummy=_MOVE3D(_X(chip)+sx,_Y(chip)+sy,_Z(chip)+sz)
dummy=_LINE3D(_X(chip)+ex,_Y(chip)+ey,_Z(chip)+ez)
sx=ex
sy=ey
sz=ez
ex=-_XX(chip)*sightheight+_YX(chip)*sightheight-_ZX(chip)*sightrange
ey=-_XY(chip)*sightheight+_YY(chip)*sightheight-_ZY(chip)*sightrange
ez=-_XZ(chip)*sightheight+_YZ(chip)*sightheight-_ZZ(chip)*sightrange
dummy=_MOVE3D(_X(chip)+sx,_Y(chip)+sy,_Z(chip)+sz)
dummy=_LINE3D(_X(chip)+ex,_Y(chip)+ey,_Z(chip)+ez)
sx=ex
sy=ey
sz=ez
ex=_XX(chip)*sightheight+_YX(chip)*sightheight-_ZX(chip)*sightrange
ey=_XY(chip)*sightheight+_YY(chip)*sightheight-_ZY(chip)*sightrange
ez=_XZ(chip)*sightheight+_YZ(chip)*sightheight-_ZZ(chip)*sightrange
dummy=_MOVE3D(_X(chip)+sx,_Y(chip)+sy,_Z(chip)+sz)
dummy=_LINE3D(_X(chip)+ex,_Y(chip)+ey,_Z(chip)+ez)
sx=ex
sy=ey
sz=ez
ex=_XX(chip)*sightheight-_YX(chip)*sightheight-_ZX(chip)*sightrange
ey=_XY(chip)*sightheight-_YY(chip)*sightheight-_ZY(chip)*sightrange
ez=_XZ(chip)*sightheight-_YZ(chip)*sightheight-_ZZ(chip)*sightrange
dummy=_MOVE3D(_X(chip)+sx,_Y(chip)+sy,_Z(chip)+sz)
dummy=_LINE3D(_X(chip)+ex,_Y(chip)+ey,_Z(chip)+ez)
color=col2 //ü‚ÌF
dummy=_SETCOLOR(color)
lineheight=sightheight*0.6
linewidth=sightwidth*0.6
sx=-_YX(chip)*lineheight-_ZX(chip)*sightrange
sy=-_YY(chip)*lineheight-_ZY(chip)*sightrange
sz=-_YZ(chip)*lineheight-_ZZ(chip)*sightrange
ex=_YX(chip)*lineheight-_ZX(chip)*sightrange
ey=_YY(chip)*lineheight-_ZY(chip)*sightrange
ez=_YZ(chip)*lineheight-_ZZ(chip)*sightrange
dummy=_MOVE3D(_X(chip)+sx,_Y(chip)+sy,_Z(chip)+sz)
dummy=_LINE3D(_X(chip)+ex,_Y(chip)+ey,_Z(chip)+ez)
sx=-_XX(chip)*lineheight-_ZX(chip)*sightrange
sy=-_XY(chip)*lineheight-_ZY(chip)*sightrange
sz=-_XZ(chip)*lineheight-_ZZ(chip)*sightrange
ex=_XX(chip)*lineheight-_ZX(chip)*sightrange
ey=_XY(chip)*lineheight-_ZY(chip)*sightrange
ez=_XZ(chip)*lineheight-_ZZ(chip)*sightrange
dummy=_MOVE3D(_X(chip)+sx,_Y(chip)+sy,_Z(chip)+sz)
dummy=_LINE3D(_X(chip)+ex,_Y(chip)+ey,_Z(chip)+ez)
}
Maurice- Hover
- Posts : 153
Join date : 2011-10-07
Age : 28
Location : The early 1970's
Similar topics
» Space fighter 1.0 prototype
» Doom Class Space Battleship
» Tsiol'kowskij Class Space Cruiser
» Space Shuttle
» Space Craft
» Doom Class Space Battleship
» Tsiol'kowskij Class Space Cruiser
» Space Shuttle
» Space Craft
RigidChips :: Rigid-Chips :: Files :: Others
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum