Home Soccer Drift
2 posters
Page 1 of 1
Good idea for a Competition? (Read topic before voting!)
Home Soccer Drift
Alright, as the title says, Home Soccer Drift. Obviously, its a drifting competition on the main map for rigidchips.
Only problem is I have no idea on making a goal race track, though for this competition its not really needed.
Only post while following these two rule guide lines, the chit chat about how to improve shall be kept for the second topic.
Why I find the effective, is not only is there no time limit for submitting posts and times, but there is no race for everyone to be online, you can pit races online (Other topic) but this challenge there is no need. This competition will lose its edge sooner or later, most likely in a week or so, but it is always open!
I'll post an example, this is a basic chip running the course:
You are available to submit more than one chip, log and time.
Update topic is at March 19/20
Any sujestions or correction to this topic are received openly.
Have fun!
Only problem is I have no idea on making a goal race track, though for this competition its not really needed.
Only post while following these two rule guide lines, the chit chat about how to improve shall be kept for the second topic.
Why I find the effective, is not only is there no time limit for submitting posts and times, but there is no race for everyone to be online, you can pit races online (Other topic) but this challenge there is no need. This competition will lose its edge sooner or later, most likely in a week or so, but it is always open!
I'll post an example, this is a basic chip running the course:
- Spoiler:
- Code:
//BasicCar
Val
{
Brake(default=0,min=0,max=80,step=80)
HBrake(default=0,min=0,max=100,step=100)
Handle(default=0,min=-20,max=20,step=5)
Engine(default=0,min=-2500,max=2500,step=2500)
}
Key
{
0:Engine(step=-500)
1:Engine(step=500)
2:Handle(step=-0.5)
3:Handle(step=0.5)
7:Brake(step=30),HBrake(step=20)
8:HBrake(step=20)
}
Body {
Core(){
N:Chip(){
N:Rudder(angle=Handle){
W:Frame(){
W:Wheel(angle=90,brake=Brake){
}
}
E:Frame(){
E:Wheel(angle=90,brake=Brake){
}
}
}
}
S:Chip(){
W:Frame(){
W:Wheel(angle=90,power=Engine,brake=HBrake){
}
}
E:Frame(){
E:Wheel(angle=90,power=-Engine,brake=HBrake){
}
}
}
}
}
You are available to submit more than one chip, log and time.
Update topic is at March 19/20
Any sujestions or correction to this topic are received openly.
Have fun!
Last edited by Runner on Thu Mar 17, 2011 1:40 am; edited 2 times in total (Reason for editing : Update v0.01.03)
Re: Home Soccer Drift
racing will usually take benefit from grippier(maybe even computer controlled for doing so) vehicles instead of drifting ones, which means the fastest times won't be the best ones. also, the slope of the default stadium isn't smooth enough for drifting.
anyway, owhari(japanese RC user) made a script-controlled vehicle, which is pretty much a contest ender, done a few years ago...
edit: should i upload its model pack(which was previously posted on the old forums)?
anyway, owhari(japanese RC user) made a script-controlled vehicle, which is pretty much a contest ender, done a few years ago...
- Code:
val{
fbrake(default=0,min=0,max=100,step=100)
rbrake(default=0,min=0,max=100,step=100)
handle(default=0,min=-30,max=30,step=5)
engine(default=-10000,min=-10000,max=10000,step=10000)
fltrc(default=1,min=0.01,max=1,step=0)
frtrc(default=1,min=0.01,max=1,step=0)
rltrc(default=1,min=0.01,max=1,step=0)
rrtrc(default=1,min=0.01,max=1,step=0)
flpower(default=0,min=-100000,max=100000,step=0)
frpower(default=0,min=-100000,max=100000,step=0)
rlpower(default=0,min=-100000,max=100000,step=0)
rrpower(default=0,min=-100000,max=100000,step=0)
flwing(default=180,min=150,max=210)
frwing(default=180,min=150,max=210)
rlwing(default=180,min=150,max=210)
rrwing(default=180,min=150,max=210)
damper(default=0.8)
spring(default=0.4)
tgt_x(default=0,min=-10000,max=10000,step=0)
tgt_y(default=0,min=-10000,max=10000,step=0)
tgt_z(default=0,min=-10000,max=10000,step=0)
time(default=0,min=0,max=100000,step=0)
}
key{
// 4:engine(step=1000)
// 5:engine(step=-1000)
// 2:handle(step=-2)
// 3:handle(step= 2)
// 7:fbrake(step=20),rbrake(step=20)
// 8:rbrake(step=20)
}
body{
core(){
n:chip(){
n:chip(){
n:chip(){
w:rudderf(angle=handle){
w:frame(angle=-150,damper=damper,spring=spring){
w:frame(angle=150,damper=damper,spring=spring){
w:wheel(angle=90,power=flpower,brake=fbrake,name=wfl){
}
s:chip(angle=flwing){
}
}
}
w:chip(angle=-90){
}
}
e:rudderf(angle=handle){
e:frame(angle=-150,damper=damper,spring=spring){
e:frame(angle=150,damper=damper,spring=spring){
e:wheel(angle=90,power=-frpower,brake=fbrake,name=wfr){
}
s:chip(angle=frwing){
}
}
}
e:chip(angle=-90){
}
}
}
}
}
s:chip(){
s:chip(){
s:chip(){
w:chip(){
w:frame(angle=-150,damper=damper,spring=spring){
w:frame(angle=150,damper=damper,spring=spring){
w:wheel(angle=90,power=rlpower,brake=rbrake,name=wrl){
}
s:chip(angle=rlwing){
}
}
}
w:chip(angle=-90){
}
}
e:chip(){
e:frame(angle=-150,damper=damper,spring=spring){
e:frame(angle=150,damper=damper,spring=spring){
e:wheel(angle=90,power=-rrpower,brake=rbrake,name=wrr){
}
s:chip(angle=rrwing){
}
}
}
e:chip(angle=-90){
}
}
}
}
}
w:chip(){
w:chip(angle=-90){
n:chip(angle=-15){
}
s:chip(angle=15){
}
}
}
e:chip(){
e:chip(angle=-90){
n:chip(angle=-15){
}
s:chip(angle=15){
}
}
}
}
}
script{
if(time=0){
tgt_x=_int(_rnd()*200-100)
tgt_z=_int(_rnd()*200-100)
}
time=_mod(time+1,500)
if(_len2(tgt_x-_x(0),tgt_z-_z(0))<100){
tgt_x=_int(_rnd()*200-100)
tgt_z=_int(_rnd()*200-100)
}
x=tgt_x-_x(0)
z=tgt_z-_z(0)
a=_atan2(-x,-z)
a=_todeg(a-_ay(0))
if(a<-10){handle=handle-1}
if(a>10){handle=handle+1}
flwing=180+(_ax(0)-_az(0)*1.5)*40*_sgn(_vz(0))+_vz(0)*0.5
frwing=180+(_ax(0)+_az(0)*1.5)*40*_sgn(_vz(0))+_vz(0)*0.5
rlwing=180-(_ax(0)+_az(0)*1.5)*40*_sgn(_vz(0))+_vz(0)*0.5
rrwing=180-(_ax(0)-_az(0)*1.5)*40*_sgn(_vz(0))+_vz(0)*0.5
if(_vel(0)>10){
k=_PI()
fltrc=_abs(_vz(0))*k/(_abs(_wy(wfl))+0.01)
frtrc=_abs(_vz(0))*k/(_abs(_wy(wfr))+0.01)
rltrc=_abs(_vz(0))*k/(_abs(_wy(wrl))+0.01)
rrtrc=_abs(_vz(0))*k/(_abs(_wy(wrr))+0.01)
}
if(_vel(0)<=10){
fltrc=1
frtrc=1
rltrc=1
rrtrc=1
}
if((handle=0)&(fltrc<frtrc)){frtrc=fltrc}
if((handle=0)&(fltrc>frtrc)){fltrc=frtrc}
if((handle=0)&(rltrc<rrtrc)){rrtrc=rltrc}
if((handle=0)&(rltrc>rrtrc)){rltrc=rrtrc}
flpower=engine*fltrc
frpower=engine*frtrc
rlpower=engine*rltrc
rrpower=engine*rrtrc
print 0,"(x,y,z)=(",_x(0),",",_y(0),",",_z(0),")"
print 1,"Len=",_len2(tgt_x-_x(0),tgt_z-_z(0))
}
edit: should i upload its model pack(which was previously posted on the old forums)?
RA2lover- Walker
- Posts : 382
Join date : 2010-10-11
Age : 29
Location : Brazil
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum