Author Message

mitko

bg
Posts: 267
http://www.youtube.com/channel/UC...
Location: Bulgaria Varna
Occupation: YouTUBE
Age: 26
V$:
#152575   2019-01-02 15:47          
# Lagano : Seems like those cars use only one texture so try changing it. How did you get them in front of the garage, by the way?
The cars change their colors in traffic, but when they are added on track or in valo like in this case the use only the yellow color, and i don't know how to set them to use other colors or set different color as default for each one i add.

And for adding, in Valocity.java i used these lines:

GameType TRAFFIC0;
GameType TRAFFIC1;
GameType TRAFFIC2;
etc.
GameType gt;


TRAFFIC0 = new GameType();
TRAFFIC0.create_native(map, new GameRef(cars.fake_racers.Sunset:0x0006r), "1,1,1,1,1,1", "test_car"); //G1 neighbor mc
TRAFFIC0.setMatrix(new Vector3(-331.205, 10.774, 1016.761), new Ypr(1.671,0.092,0.002));

TRAFFIC1 = new GameType();
TRAFFIC1.create_native(map, new GameRef(cars.fake_racers.Stallion:0x0006r), "1,1,1,1,1,1", "test_car");
TRAFFIC1.setMatrix(new Vector3(-364.061, 10.288, 1052.002), new Ypr(-0.103,0.109,0.015));

TRAFFIC2 = new GameType();
TRAFFIC2.create_native(map, new GameRef(cars.traffic.Wagon:0x0006r), "1,1,1,1,1,1", "test_car"); //G1 neighbor wagon
TRAFFIC2.setMatrix(new Vector3(-313.180, 11.083, 1124.049), new Ypr(-1.554,-0.131,0.022));
etc.

Just download Martin Benet: Valo City remake and you'll get an idea of how it's done :)

Added 11 seconds later:

BTW does someone know how to make a chase bot to start when i want, i mean i made one but when i open map its starting to chase and i want to make it like Test Track Police - when you get close to him or when you hit him :)

This post was edited by mitko (2019-01-02 15:54, ago)