home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn WWW 2001 May
/
cd49www.iso
/
inne
/
soh_vrtour
/
panoswf
/
pano_68.swf
/
scripts
/
DefineSprite_53
/
frame_2
/
DoAction.as
Wrap
Text File
|
2001-02-22
|
481b
|
32 lines
counter += 1;
if(counter < 2)
{
aRPM = RevScaler;
}
throttle = eval("/DragControllerInst/:DragOutput") + RevScaler;
if(aRPM < throttle)
{
inertia = accel;
}
if(throttle < aRPM)
{
inertia = deccel;
}
if(aRPM < throttle)
{
aRPM *= inertia;
if(throttle < aRPM)
{
aRPM = throttle;
}
}
if(throttle < aRPM)
{
aRPM *= inertia;
if(aRPM < throttle)
{
aRPM = throttle;
}
}
EngineOutput = (aRPM - RevScaler) * 0.25;