Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 14 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Tutorials

»
CoD2 Mapping
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
Adding a rideable Jeep
Versions: You must be logged in to view history.

Ok, this is how to add a ride able jeep to your map. This is what you have to do to make it work

Do this in radiant.

1. First, put in info_player_start. Then, open up the jeep model in radiant. Right click the 2d window and go to script -> vehicle. After that, put in model for the key and xmodel/vehicle_russian_jeep (OR whatever jeep you want. Note: jeeps only. Other vehicles doesn't work because they have their own script.)

2. Next, press N to open the entity window. Put in script_noteworthy for the Key. The value is vehicle. Then put in script_team for key, allies for value. Then again put in script_vehicleride for key and 0 for value. script_vehicelspawngroup for key and 1 for value. Then put in targetname for key and jeep for value. Put in vehicletype for key and jeep for value.

3. After that, put in a vehicle_start. Right click the 2d window and go to info -> vehicle_node. Open the entity window and check the start_node. Then put in script_noteworthy in key. Then put in vehicle_start_path. Put lookahead in key and put whatever number you want for the value. In this case, I put 2. Then put in the speed in the key and whatever number you want for the speed of the jeep in the value box. Next put 2 actors on your map. Then click one of them and press the N key. Put in script_vehicleride for key and 0 for value. Do the same for the other. Click on one actor and put in script_startposition for the key and 0 for value. 0 is the driver. The other actor put in 4. 4 is at the back of the jeep. 1 and 2 doesnt work well because they are sitting where you are sitting. You are done!

Now for the script.

main()
{
//*** Init Map

maps\_jeep::main("xmodel/vehicle_russia_jeep");
maps\_load::main();
level thread ridein();

maps\_vehicle::scripted_spawn(1); // Spawns vehiclegroup 1
level.vehicle = getent("vehicle", "script_noteworthy");
path = getvehiclenode ("vehicle_start_path", "script_noteworthy");

level.vehicle attachPath(path);

wait 1; // Just so you can see whats happening :-)

level.vehicle startPath();

level.vehicle waittill("reached_end_node");
level.vehicle notify ("unload");

// Uncomment these to blow up the jeep
wait 0; //amount of time after jeep stops to blow it up.
//level.vehicle doDamage( level.vehicle.health + 200, (0,0,0) );
//level.vehicle notify ("death"); //car dead


}

ridein()
{
wait 0.05; //any number you want. Time to wait before getting on
jeep = getent ("jeep","targetname"); //game finds the jeep
jeep.animname = "jeep"; //doesnt matter but put it in the script
level.player setorigin(jeep gettagorigin("tag_player_passenger"));
level.player setplayerangles(jeep gettagangles("tag_player_passenger"));
level.player playerLinkToDelta(jeep,"tag_player_passenger",.3);


jeep waittill ("reached_end_node");
//level.player shellshock ("default",5); //dont need it but can use it
//level.driver notify("stop_driving"); //same as above
thread jeepGetOut();
//level.player unlink();
//level.player setorigin ((1538,5626,24)); //leave it doesnt matter


}

jeepGetOut()
{
jeep = getent ("jeep","targetname"); //game finds the jeep
dummy = spawn("script_origin", jeep getTagOrigin("tag_player_passenger") ); //dont know, live it
dummy.angles = jeep getTagAngles("tag_player_passenger");

level.player unlink(); //put it in script
level.player linkto (dummy); //same as above

endPos = (736, -1392, 24); //the location where you want to get off
dummy moveTo(dummy.origin + (0,0,10), .6, .3, .2); //leave it
dummy moveTo(endPos, .6, .3, .2); //leave it unless
wait .5; //wait

level.player unlink(); //gets off of the dummy

}

For the endPos = (736, -1392, 24); code, I suggest you use a script origin. Place it next to where the jeep stops to make it realistic when getting off the vehicle. (Next to the jeep is the realism.) You can also put it wherever you want to get off.
 

Thanx for reading this guide. Hope there are comments and discussions on how to use ride in more than one vehicle

Thanx again!

sam_fisher3000

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»