Here's a couple of things I found you could do:
Car Name
In case anyone needs to know, you can make a box in the botton right that says the car name.
Fine these lines in Hud.tsl:
Code:
$CarName = create ('TTextWindow', $hud);
$CarName.top = 0.675;
$CarName.left = 0.500;
$CarName.right = 0.975;
$CarName.bottom = 0.750;
$CarName.backGround = ARGB(128, 255, 128, 0);
$CarName.borderWidth = 0.002;
$CarName.visible = 0;
$CarName.color = ARGB(255, 255, 255, 255);
$CarName.shadowColor = ARGB(128, 0, 0, 0);
$CarName.fontSize = 0.04;
Code:
event carEnter($human) {
if ($human == $engine.player) {
$speedometer.valueAddress = $engine.player.car.speedAddress;
$speedometer.fadeTo(1);
$RPMmeter.valueAddress = $engine.player.car.RPMAddress;
$RPMmeter.fadeTo(1);
//$CarName.text = $engine.player.car.name;
//$CarName.fadeTo(1);
//global $carNameTimer = timeOut(3.0, '$CarName.fadeTo(0)');
}
}
event carExit($human) {
if ($human == $engine.player) {
$speedometer.valueAddress = 0;
$speedometer.fadeTo(0);
$RPMmeter.valueAddress = 0;
$RPMmeter.fadeTo(0);
//cancelTimeOut($carNameTimer);
//$CarName.fadeTo(0);
}
}
I just took out the // slashes and changed "$CarName.visible = 0;" to a 1 value.
It should look like this:
Code:
$CarName = create ('TTextWindow', $hud);
$CarName.top = 0.675;
$CarName.left = 0.500;
$CarName.right = 0.975;
$CarName.bottom = 0.750;
$CarName.backGround = ARGB(128, 255, 128, 0);
$CarName.borderWidth = 0.002;
$CarName.visible = 1;
$CarName.color = ARGB(255, 255, 255, 255);
$CarName.shadowColor = ARGB(128, 0, 0, 0);
$CarName.fontSize = 0.04;
Code:
event carEnter($human) {
if ($human == $engine.player) {
$speedometer.valueAddress = $engine.player.car.speedAddress;
$speedometer.fadeTo(1);
$RPMmeter.valueAddress = $engine.player.car.RPMAddress;
$RPMmeter.fadeTo(1);
$CarName.text = $engine.player.car.name;
$CarName.fadeTo(1);
global $carNameTimer = timeOut(3.0, '$CarName.fadeTo(0)');
}
}
event carExit($human) {
if ($human == $engine.player) {
$speedometer.valueAddress = 0;
$speedometer.fadeTo(0);
$RPMmeter.valueAddress = 0;
$RPMmeter.fadeTo(0);
cancelTimeOut($carNameTimer);
$CarName.fadeTo(0);
}
}
at least that's what I did. You may not need the bottom section.
ConsoleNo, I can't tell you how to get the console. But I did notice these lines (in Console.tsl, obviously):
Code:
function TssRocks {
for ($i=0; $i<20; $i++) {
CreateTssObj('TTssObject', 'Ball.obj', 3000+Random(-10, 10), 50, 3000+Random(-10, 10), false);
}
}
function ItRains {
$Engine.Sky.PosX = 0.3;
$Engine.Sky.PosZ = 0.3;
}
This looks like if you type "TssRocks" it makes a ball and if you type "ItRains" it starts raining.
MusicTo add your own music for the radio (i'm sure a lot of you can figure this out...)
In freeride.tsl:
1.Put your music in the "Music" folder (We'll use example.wav)
2.Find these lines:
Code:
event carEnter($human) {
if ($human == $engine.player) {
$engine.musicName = ['funkkis.ogg', 'trance.ogg', 'rokki.ogg'][random(3)];
$engine.musicVolume = 1.0;
}
}
event carExit($human) {
if ($human == $engine.player) {
$engine.musicName = 'Noise.mp3';
$engine.musicVolume = 0.6;
}
}
by changing these lines you can change the music that plays on the radio, the volume, and the music/ambience that plays outside.
Here's what you change. This is if you want to add "example.wav" to the radio at a less volume and "Amibience.mp3" OR "Noise.mp3" for the noise outside AND change it to be a little louder.
Code:
event carEnter($human) {
if ($human == $engine.player) {
$engine.musicName = ['funkkis.ogg', 'trance.ogg', 'rokki.ogg', 'example.wav'][random(4)];
$engine.musicVolume = 0.8;
}
}
event carExit($human) {
if ($human == $engine.player) {
$engine.musicName = ['Noise.mp3', 'Ambience.mp3'][random(2)];
$engine.musicVolume = 1.0;
}
}
If you want to go the extra mile, change the lines above those:
Code:
$engine.musicName = 'Noise.mp3';
$engine.musicVolume = 0.6;
To something like this
Code:
$engine.musicName = 'Noise.mp3', 'Ambience.mp3'][random(2)];
$engine.musicVolume = 1.0;
To see the
music name, put this into Hud.tsl under the "$CarName" Lines:
Code:
$musicName = create ('TTextWindow', $hud);
$musicName.top = 0.001;
$musicName.left = 0.700;
$musicName.right = 0.990;
$musicName.bottom = 0.05;
$musicName.backGround = ARGB(128, 0, 128, 0);
$musicName.borderWidth = 0.002;
$musicName.visible = 1;
$musicName.color = ARGB(255, 255, 255, 255);
$musicName.shadowColor = ARGB(128, 0, 0, 0);
$musicName.fontSize = 0.05;
Now, replace the next couple of lines (That start with "event carEnter($human)") with these lines.
Code:
event carEnter($human) {
if ($human == $engine.player) {
$speedometer.valueAddress = $engine.player.car.speedAddress;
$speedometer.fadeTo(1);
$RPMmeter.valueAddress = $engine.player.car.RPMAddress;
$RPMmeter.fadeTo(1);
$musicName.text = $engine.musicName;
$musicName.fadeTo(1);
$CarName.text = $engine.player.car.name;
$CarName.fadeTo(1);
global $carNameTimer = timeOut(7.0, '$CarName.fadeTo(0)');
global $musicNameTimer = timeOut(5.0, '$musicName.fadeTo(0)');
Credit goes to TSSkies
Pause menuGo to MainMenu.tsl and change:
Code:
event esc() {
quit()
}
to:
Code:
load 'PauseMenu';
Its at the bottom
Glitches: Settings don't work but are fun to look at.
Hitting esc again leaves a permanent pause screen on the game, no pause buttons will work except exit (which leaves the game, resume brings you back)
Credit goes to Lumpy!
Hope this helps for some people. feel free to suggest something to put in here.