RigidChips

Latest Shouts In The Shoutbox --     View The Shoutbox
Sorry, guests cant view the RigidChips shoutbox, Please register if you'd like to use it.


  Reply to this topicStart new topicStart Poll

» [VEH] here is a code the battmobile, code for rigid chips
Christcross9
  Posted: Aug 12 2007, 07:08 PM
Quote Post




Newbie
*

Group: Members
Posts: 25
Joined: 12-August 07
Member No.: 4





// [RCD]
Val
{
ARM(default=0)
BCOLOR(default=0, disp=0)
BRAKE(default=0, max=3000)
EBRAKE(default=0, max=5000)
ENGINE_FL(default=0, min=-60000, max=200000)
ENGINE_FR(default=0, min=-60000, max=200000)
ENGINE_RL(default=0, min=-60000, max=200000)
ENGINE_RR(default=0, min=-60000, max=200000)
HANDLE(default=180, min=150, max=210)
HLIGHT(default=0, disp=0)
TLIGHT(default=0, disp=0)
WING_FL(default=15, disp=0)
WING_FR(default=15, disp=0)
WING_R(default=-15, min=-50, max=50, disp=0)
WING_V(default=15, disp=0)
}
Key
{
}
Body
{
Core(color=BCOLOR) {
S:Frame(color=BCOLOR) {
S:Frame(color=BCOLOR) {
S:TrimF(angle=90, color=BCOLOR) {
W:Frame(angle=120, color=BCOLOR) {
W:Frame(angle=-30, color=BCOLOR) {
W:Wheel(angle=-90, power=-ENGINE_RR, brake=BRAKE, option=1, effect=4, color=BCOLOR) { }
}
}
W:Frame(angle=-120, color=BCOLOR) {
W:Frame(angle=30, color=BCOLOR) {
W:Wheel(angle=90, power=-ENGINE_RL, brake=BRAKE, option=1, effect=4, color=BCOLOR) { }
}
}
N:RudderF(angle=WING_R, color=BCOLOR) {
W:Chip(angle=90, color=BCOLOR) { }
W:Chip(angle=-90, color=BCOLOR) { }
}
}
}
}
N:Cowl(angle=-30, color=BCOLOR, color=BCOLOR) {
N:Cowl(angle=30, color=BCOLOR) {
E:Cowl(color=BCOLOR) {
E:Cowl(color=BCOLOR) {
N:Cowl(angle=20, color=BCOLOR) {
N:Cowl(angle=5, color=BCOLOR) {
W:Cowl(angle=60, color=BCOLOR) { }
N:Cowl(angle=30, color=BCOLOR) {
E:Cowl(angle=71, option=3, color=BCOLOR) { }
W:Cowl(angle=60, option=4, color=BCOLOR) { }
}
E:Cowl(angle=70, color=BCOLOR) { }
}
W:Cowl(angle=60, color=BCOLOR) { }
E:Cowl(angle=70, option=4, color=BCOLOR) { }
N:Cowl(angle=4, option=4, color=HLIGHT, effect=#5FFF) { }
}
S:Cowl(angle=45, color=BCOLOR) { }
}
N:Cowl(angle=90, color=BCOLOR) { }
S:Cowl(angle=5, color=BCOLOR) {
S:Cowl(angle=-5, color=BCOLOR) {
S:Cowl(color=BCOLOR) {
S:Cowl(angle=-5, color=BCOLOR) {
S:Cowl(angle=-5, color=BCOLOR) {
W:Cowl(angle=70, color=BCOLOR) { }
E:Cowl(angle=30, color=BCOLOR) { }
S:Cowl(angle=10, color=BCOLOR) {
S:Cowl(angle=60, color=BCOLOR) {
E:Cowl(angle=30, color=BCOLOR) { }
S:Cowl(angle=110, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) {
S:Cowl(angle=172, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) {
S:Cowl(angle=172, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) {
S:Cowl(angle=172, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) {
S:Cowl(angle=172, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) {
S:Cowl(angle=172, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) { }
}
}
}
}
}
}
}
}
}
}
}
}
E:Cowl(angle=30, color=BCOLOR) { }
}
}
E:Cowl(angle=60, color=BCOLOR) { }
W:Cowl(angle=70, color=BCOLOR) { }
}
E:Cowl(angle=60, color=BCOLOR) { }
}
E:Cowl(angle=60, color=BCOLOR) { }
}
E:Cowl(angle=60, color=BCOLOR) { }
}
}
W:Cowl(color=BCOLOR) {
W:Cowl(color=BCOLOR) {
N:Cowl(angle=20, color=BCOLOR) {
N:Cowl(angle=5, color=BCOLOR) {
E:Cowl(angle=60, color=BCOLOR) { }
N:Cowl(angle=30, color=BCOLOR) {
E:Cowl(angle=60, option=3, color=BCOLOR) { }
W:Cowl(angle=71, option=4, color=BCOLOR) { }
}
W:Cowl(angle=70, color=BCOLOR) { }
}
E:Cowl(angle=60, color=BCOLOR) { }
W:Cowl(angle=70, option=3, color=BCOLOR) { }
N:Cowl(angle=4, option=3, color=HLIGHT, effect=#5FFF) { }
}
S:Cowl(angle=45, color=BCOLOR) { }
}
S:Cowl(angle=5, color=BCOLOR) {
S:Cowl(angle=-5, color=BCOLOR) {
S:Cowl(color=BCOLOR) {
S:Cowl(angle=-5, color=BCOLOR) {
S:Cowl(angle=-5, color=BCOLOR) {
E:Cowl(angle=70, color=BCOLOR) { }
W:Cowl(angle=30, color=BCOLOR) { }
S:Cowl(angle=10, color=BCOLOR) {
S:Cowl(angle=60, color=BCOLOR) {
W:Cowl(angle=30, color=BCOLOR) { }
S:Cowl(angle=110, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) {
S:Cowl(angle=172, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) {
S:Cowl(angle=172, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) {
S:Cowl(angle=172, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) {
S:Cowl(angle=172, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) {
S:Cowl(angle=172, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) { }
}
}
}
}
}
}
}
}
}
}
}
}
E:Cowl(color=BCOLOR) {
S:Cowl(angle=60, color=BCOLOR) {
S:Cowl(angle=110, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) {
S:Cowl(angle=172, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) {
S:Cowl(angle=172, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) {
S:Cowl(angle=172, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) {
S:Cowl(angle=172, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) {
S:Cowl(angle=172, color=BCOLOR) {
S:Cowl(angle=-172, color=BCOLOR) { }
}
}
}
}
}
}
}
}
}
}
}
}
}
W:Cowl(angle=30, color=BCOLOR) { }
}
}
W:Cowl(angle=60, color=BCOLOR) { }
E:Cowl(angle=70, color=BCOLOR) { }
}
W:Cowl(angle=60, color=BCOLOR) { }
}
W:Cowl(angle=60, color=BCOLOR) { }
}
W:Cowl(angle=60, color=BCOLOR) { }
}
N:Cowl(angle=90, color=BCOLOR) { }
}
N:Cowl(angle=20, color=BCOLOR) {
N:Cowl(angle=5, color=BCOLOR) {
N:Cowl(angle=30, color=BCOLOR) {
E:Cowl(angle=60, option=3, color=BCOLOR) { }
W:Cowl(angle=60, option=4, color=BCOLOR) { }
}
E:Cowl(angle=60, color=BCOLOR) { }
W:Cowl(angle=60, color=BCOLOR) { }
}
E:Cowl(angle=60, color=BCOLOR) { }
W:Cowl(angle=60, color=BCOLOR) { }
S:Cowl(angle=-10, color=#000000, effect=#A0FB) {
S:Cowl(angle=20, color=BCOLOR) {
S:Cowl(angle=30, color=#000000, effect=#A0FB) {
E:Cowl(angle=40, color=#000000, effect=#A0FB) { }
W:Cowl(angle=40, color=#000000, effect=#A0FB) { }
S:Cowl(color=#000000, effect=#A0FB) {
E:Cowl(angle=40, color=#000000, effect=#A0FB) { }
W:Cowl(angle=40, color=#000000, effect=#A0FB) { }
S:Cowl(angle=-20, color=BCOLOR) {
S:Cowl(angle=-5, color=BCOLOR) { }
E:Cowl(angle=60, color=BCOLOR) { }
W:Cowl(angle=60, color=BCOLOR) { }
}
}
}
E:Cowl(angle=40, color=#000000, effect=#A0FB) { }
W:Cowl(angle=40, color=#000000, effect=#A0FB) { }
}
E:Cowl(angle=40, color=#000000, effect=#A0FB) { }
W:Cowl(angle=40, color=#000000, effect=#A0FB) { }
}
}
}
}
E:Cowl(color=BCOLOR) {
N:Cowl(angle=-10, color=BCOLOR) {
N:Cowl(angle=10, color=BCOLOR) {
N:Cowl(angle=10, color=BCOLOR) {
N:Cowl(angle=10, color=BCOLOR) {
N:Cowl(angle=160, color=BCOLOR) {
N:Cowl(angle=-170, color=BCOLOR) {
N:Cowl(angle=170, color=BCOLOR) {
N:Cowl(angle=-170, color=BCOLOR) {
N:Cowl(angle=170, color=BCOLOR) {
N:Cowl(angle=-170, color=BCOLOR) {
N:Cowl(angle=170, color=BCOLOR) {
N:Cowl(angle=-170, color=BCOLOR) {
N:Cowl(angle=170, color=BCOLOR) { }
}
}
}
}
}
}
}
}
}
}
}
}
E:Cowl(color=BCOLOR) {
E:Cowl(angle=70, color=BCOLOR) { }
S:Cowl(color=BCOLOR) {
E:Cowl(angle=70, color=BCOLOR) { }
S:Cowl(color=BCOLOR) { }
}
N:Cowl(color=BCOLOR) {
E:Cowl(angle=70, color=BCOLOR) {
E:Cowl(angle=110, color=BCOLOR) {
S:Cowl(angle=15, color=BCOLOR) {
S:Cowl(angle=10, color=BCOLOR) {
S:Cowl(angle=5, color=BCOLOR) {
S:Cowl(angle=-5, color=BCOLOR) {
S:Cowl(angle=-15, color=BCOLOR) {
S:Cowl(angle=-45, color=BCOLOR) {
S:Cowl(angle=-5, color=BCOLOR) {
S:Cowl(angle=-75, color=BCOLOR) {
W:Cowl(angle=-71, option=4, color=BCOLOR) { }
E:Cowl(angle=-20, option=3, color=BCOLOR) { }
}
W:Cowl(angle=-70, color=BCOLOR) { }
E:Cowl(angle=-55, color=BCOLOR) { }
}
W:Cowl(angle=-70, option=4, color=BCOLOR) { }
E:Cowl(angle=-50, color=BCOLOR) { }
S:Cowl(angle=-4, option=4, color=TLIGHT, effect=#5FFF) { }
}
W:Cowl(angle=-70, option=4, color=BCOLOR) { }
E:Cowl(angle=-55, color=BCOLOR) { }
}
}
W:Cowl(angle=-70, option=3, color=BCOLOR) { }
E:Cowl(angle=-70, color=BCOLOR) { }
}
W:Cowl(angle=-70, option=4, color=BCOLOR) { }
}
}
}
}
}
}
}
W:Cowl(color=BCOLOR) {
N:Cowl(angle=-10, color=BCOLOR) {
N:Cowl(angle=10, color=BCOLOR) {
N:Cowl(angle=10, color=BCOLOR) {
N:Cowl(angle=10, color=BCOLOR) {
N:Cowl(angle=160, color=BCOLOR) {
N:Cowl(angle=-170, color=BCOLOR) {
N:Cowl(angle=170, color=BCOLOR) {
N:Cowl(angle=-170, color=BCOLOR) {
N:Cowl(angle=170, color=BCOLOR) {
N:Cowl(angle=-170, color=BCOLOR) {
N:Cowl(angle=170, color=BCOLOR) {
N:Cowl(angle=-170, color=BCOLOR) {
N:Cowl(angle=170, color=BCOLOR) { }
}
}
}
}
}
}
}
}
}
}
}
}
W:Cowl(color=BCOLOR) {
W:Cowl(angle=70, color=BCOLOR) { }
N:Cowl(color=BCOLOR) {
W:Cowl(angle=70, color=BCOLOR) {
W:Cowl(angle=110, color=BCOLOR) {
S:Cowl(angle=15, color=BCOLOR) {
S:Cowl(angle=10, color=BCOLOR) {
S:Cowl(angle=5, color=BCOLOR) {
S:Cowl(angle=-5, color=BCOLOR) {
S:Cowl(angle=-15, color=BCOLOR) {
S:Cowl(angle=-45, color=BCOLOR) {
S:Cowl(angle=-5, color=BCOLOR) {
S:Cowl(angle=-75, color=BCOLOR) {
E:Cowl(angle=-70, option=3, color=BCOLOR) { }
W:Cowl(angle=-20, option=4, color=BCOLOR) { }
}
E:Cowl(angle=-70, color=BCOLOR) { }
W:Cowl(angle=-55, color=BCOLOR) { }
}
E:Cowl(angle=-70, option=3, color=BCOLOR) { }
W:Cowl(angle=-55, color=BCOLOR) { }
S:Cowl(angle=-4, option=3, color=TLIGHT, effect=#5FFF) { }
}
E:Cowl(angle=-70, option=3, color=BCOLOR) { }
W:Cowl(angle=-55, color=BCOLOR) { }
}
}
E:Cowl(angle=-70, option=4, color=BCOLOR) { }
}
E:Cowl(angle=-70, option=3, color=BCOLOR) { }
}
}
}
}
}
S:Cowl(color=BCOLOR) {
W:Cowl(angle=70, color=BCOLOR) { }
S:Cowl(color=BCOLOR) { }
}
}
}
N:TrimF(angle=90, color=BCOLOR) {
N:Frame(color=BCOLOR) {
E:Frame(angle=120, color=BCOLOR) {
E:Frame(angle=-30, color=BCOLOR) {
E:RudderF(angle=-HANDLE, color=BCOLOR) {
W:Wheel(angle=-90, power=ENGINE_FL, brake=EBRAKE, option=1, effect=4, color=BCOLOR) { }
}
}
}
E:Frame(angle=-120, color=BCOLOR) {
E:Frame(angle=30, color=BCOLOR) {
E:RudderF(angle=HANDLE, color=BCOLOR) {
W:Wheel(angle=90, power=ENGINE_FR, brake=EBRAKE, option=1, effect=4, color=BCOLOR) { }
}
}
}
N:Arm(power=ARM, option=350000, color=BCOLOR, name=GUN) { }
}
N:RudderF(angle=WING_FL, color=BCOLOR) {
E:Chip(angle=90, color=BCOLOR) { }
}
N:RudderF(angle=WING_FR, color=BCOLOR) {
E:Chip(angle=-90, color=BCOLOR) { }
}
}
}
}
Lua
{dgearl = 1
dgearr = 1
fflag = -1
lflag = -1
cflag = 0

function engine(a)
fpower=6000+(math.abs(_VZ(0))*340)
rpower=8000+(math.abs(_VZ(0))*340)

if _KEY(0) == 1 then
ENGINE_FL = math.min((ENGINE_FL + a)*dgearl , fpower*dgearl)
ENGINE_FR = math.min((ENGINE_FR + a)*dgearr , fpower*dgearr)
ENGINE_RL = math.min((ENGINE_RL + a)*dgearl , rpower*dgearl)
ENGINE_RR = math.min((ENGINE_RR + a)*dgearr , rpower*dgearr)
elseif _KEY(1) == 1 then
ENGINE_FL = math.max((ENGINE_FL - a)*dgearl , -fpower*dgearl)
ENGINE_FR = math.max((ENGINE_FR - a)*dgearr , -fpower*dgearr)
ENGINE_RL = math.max((ENGINE_RL - a)*dgearl , -rpower*dgearl)
ENGINE_RR = math.max((ENGINE_RR - a)*dgearr , -rpower*dgearr)
else
ENGINE_FL = 0
ENGINE_FR = 0
ENGINE_RL = 0
ENGINE_RR = 0
end
end

function handle(cool.gif
VELO = -(_VZ(0)*3.6)

if _KEYDOWN(8) == 1 then
fflag = -fflag
end
if fflag == -1 then
out(4,"STEERING : MILD")
if 150 < VELO then
ang = 15
elseif 100 < VELO and VELO <= 150 then
ang = 20
elseif 50 < VELO and VELO <= 100 then
ang = 22.5
else
ang = 25
end
elseif fflag == 1 then
out(4,"STEERING : SHARP")
if 150 < VELO then
ang = 23
elseif 100 < VELO and VELO <= 150 then
ang = 25
elseif 50 < VELO and VELO <= 100 then
ang = 28
else
ang = 30
end
end

if _KEY(2) == 1 and _KEY(3) == 0 then
HANDLE = math.max(HANDLE - b , 180 - ang)
dgearl = math.max(dgearl - 0.02 , 0.8)
dgearr = math.min(dgearr + 0.02 , 1.1)
elseif _KEY(3) == 1 and _KEY(2)==0 then
HANDLE = math.min(HANDLE + b , 180 + ang)
dgearl = math.min(dgearl + 0.02 , 1.1)
dgearr = math.max(dgearr - 0.02 , 0.8)
else
dgearl = 1
dgearr = 1
end
if _KEY(3) ~= 1 and HANDLE > 180 then
HANDLE = math.max(HANDLE - b , 180)
end
if _KEY(2) ~= 1 and HANDLE < 180 then
HANDLE = math.min(HANDLE + b , 180)
end
end

normwing = 15
function wing(cool.gif
VELO = math.abs(_VZ(0)*3.6)

if 150 < VELO then
variwing = 35
elseif 100 < VELO and VELO <= 150 then
variwing = 30
elseif 50 < VELO and VELO <= 100 then
variwing = 28
elseif 0 <= VELO and VELO <= 50 then
variwing = 25
end

if _H(0) > 1.2 or -1.2 > _H(0) then
normwing = math.max(normwing - 5 , 0)
elseif -2 <_H(0) and _H(0) < 2 then
normwing = math.min(normwing + 5 , 15)
end

if _KEY(2) == 1 and _KEY(3) == 0 then
WING_FL = math.min(WING_FL + b/2 , variwing)
WING_R = math.max(WING_R - b/2 , -variwing)
elseif _KEY(3) == 1 and _KEY(2) == 0 then
WING_FR = math.min(WING_FR + b/2 , variwing)
WING_R = math.max(WING_R - b/2 , -variwing)
end

if _KEY(3) ~= 1 and HANDLE > 180 then
WING_FL = math.max(WING_FL - b , normwing)
WING_FR = math.max(WING_FR - b , normwing)
WING_R = math.min(WING_R + b/2 , -normwing)
elseif _KEY(2) ~= 1 and HANDLE < 180 then
WING_FL = math.max(WING_FL - b , normwing)
WING_FR = math.max(WING_FR - b , normwing)
WING_R = math.min(WING_R + b/2 , -normwing)
end
end

function brake()
if _KEY(4) == 1 then
BRAKE = math.min(BRAKE + 1000 , 1000)
TLIGHT = rgb(255,00,00)
elseif _KEY(5) == 1 then
BRAKE = math.min(BRAKE + 1000 , 1000)
EBRAKE = math.min(EBRAKE + 600 , 400)
TLIGHT = rgb(255,00,00)
else
BRAKE = 0
EBRAKE = 0
TLIGHT = rgb(100,00,00)
end
end

function gun()
if _KEY(6) == 1 then
ARM = 10000000
else
ARM = 0
end
end

function light()
if _KEYDOWN(7) == 1 then
lflag = -lflag
end
if lflag == 1 then
HLIGHT = rgb(255,255,255)
out(2,"LIGHT: ON")
else
HLIGHT = rgb(99,99,99)
out(2,"LIGHT: OFF")
end
end

function bodycolor()
if _KEYDOWN(9) == 1 then
cflag = cflag + 1
end
if 7 < cflag then
cflag = 0
end

if cflag == 0 then
BCOLOR = rgb(35,35,35) -- default
out(3,"COLOR : GRAY")
elseif cflag == 1 then
BCOLOR = rgb(45,35,25) -- brown
out(3,"COLOR : BROWN")
elseif cflag == 2 then
BCOLOR = rgb(45,0,100) -- purple
out(3,"COLOR : PURPLE")
elseif cflag == 3 then
BCOLOR = rgb(150,75,0) -- orange
out(3,"COLOR : ORANGE")
elseif cflag == 4 then
BCOLOR = rgb(65,90,20) -- green
out(3,"COLOR : GREEN")
elseif cflag == 5 then
BCOLOR = rgb(30,30,150) -- blue
out(3,"COLOR : BLUE")
elseif cflag == 6 then
BCOLOR = rgb(100,0,0) -- red
out(3,"COLOR : RED")
elseif cflag == 7 then
BCOLOR = rgb(0,0,0) -- black
out(3,"COLOR : BLACK")
end
end

function rgb(r,g,cool.gif
return math.floor(math.min(r,255)) * 65536 + math.floor(math.min(g,255)) * 256 + math.floor(math.min(b,255))
end

function release()
if _KEYDOWN(10) == 1 then
_BYE(GUN)
end
end

function display()
out(0,":: Eura 4WD :: ")
out(1,string.format("FPS : %2.1f Weight : %.1f Speed : %3.1f km/h",_FPS(),_WEIGHT(),-(_VZ(0)*3.6)))
out(6,"[A: LIGHT]")
out(7,"[S: STEERING]")
out(8,"[D: COLOR]")
out(9,"[Z: BRAKE]")
out(10,"[X: SIDEBRAKE]")
out(11,"[C: GUN] ")
out(12,"[V: DISARM]")
end


function main()
engine(2000)
handle(3)
wing(3)
brake()
gun()
light()
bodycolor()
display()
release()
end
}

PMEmail Poster
Top
Skcorps
Posted: Feb 5 2008, 12:39 AM
Quote Post




Advanced Member
***

Group: Members
Posts: 127
Joined: 22-January 08
Member No.: 52





Error. PUT THE THING IN A CODE BOX!
PMEmail Poster
Top
jaybud4
Posted: Feb 6 2008, 04:37 PM
Quote Post




Newbie
*

Group: Members
Posts: 4
Joined: 3-February 08
Member No.: 58





Yeah, [code] it, it turns certain pairs of symbols into smilies and causes copy and paste to not work.
PMEmail Poster
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Lo-Fi Version
   Script Execution time: 0.5481    14 queries used    GZIP Enabled
Your last action was on: A minute ago
Please Help Pay for the Rent of the Server and Domain