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

Members Online

»
0 Active | 37 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Tutorials

»
CoD4 Mapping
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
Riding in Vehicle - during the map
Versions: You must be logged in to view history.

sam_fisher3000 will tell you how to ride vehicles in COD4 during the map. There will be some extra stuff.

To start off, I suggest people read the tutorial on how to spawn a vehicle.

Here is the tutorial.

http://modsonline.com/Tutorials-read-540.html

Okay, after you do all that is required to spawn and move a vehicle in radiant, proceed to this.

Place a trigger, call it whatever you like. Make sure it is trigger_multiple. You can use trigger_use if you like, but I haven't had much success with this. The trigger is essential for you to get in the vehicle. The trigger is important.

Assuming you moved a vehicle to a certain place, say in front of you. When it gets in front of you, you can activate the trigger to get in. To make it look realistic, like getting in then the vehicle moves, you need another trigger to move the vehicle.

TUTORIAL STARTS:

Step 1: Create the vehicle and vehicle nodes.

Step 2: Create a trigger anywhere you want, doesn't have to be in front of the vehicle. This is for moving the car after getting in.

Step 3: Create more vehicle nodes and JOIN them to the last one that you did. Then select the new node, the first one, and the last one that you created before the trigger. Select both and press shift + V to open up the vehicle window. Click on make vehicle gate.

Step 4: Create a trigger_multiple or trigger_use. This is for you to get in the vehicle. Call it whatever you want. Once you're done, you can move on to scripting.

Step 45: Assuming if did all that is required, like map_humvee::main("humvee"); then create a new thread. Call it whatever you want. For this tutorial, I will use what I used for my map.

thread ridein();

Step 6: Time to code!

ridein()
{
trig = getent("hum_spawn","targetname"); //whatever you called your trigger to spawn the vehicle.

trig waittill("trigger"); //wait until it is triggered.

maps_vehicle::scripted_spawn(0);  //spawn the vehicle. Just do it. The number is whatever group your vehicle is.

level.vehicle = getent("hum1","targetname"); //call the vehicle
level.vehicle.health = 200; //not necessary but it can be useful for some exciting scenes.

trig = getent("get_in","targetname"); //trigger used to get in vehicle
trig waittill("trigger"); //self-explanatory

keep = getent("keep","targetname"); //trigger used for the vehicle detour or moving your vehicle after getting in.
keep activate_trigger(); //actvate the trigger.

level.seat = spawn("script_model", level.vehicle.origin);
 
level.seat setmodel("tag_origin");
 
level.seat linkto(level.vehicle,"tag_passenger",(3,3,-30),(0,0,0));  //whatever tag you want.
 
level.player PlayerLinkToDelta( level.seat, "tag_origin", 0,360,360,360,360,360,"false" );

level.vehicle waittill ("reached_end_node"); //this and the next 2-3 codes aren't necessary, b/c if you want you can stay in the car for as long as you want. :DSmile

level.vehicle notify ("unload");

level.player unlink(); //unload player

//Extra stuff

wait 4; //as long as you want it

level.vehicle doDamage( level.vehicle.health + 200, (0,0,0) ); //set the damage
level.vehicle notify ("death");

Make sure you have maps_utility; and other stuff.

The tutorial is essentially for you to get in the vehicle without getting in at the start of the map.

To get in again, reuse the code.

level.player PlayerLinkToDelta( level.seat, "tag_origin", 0,360,360,360,360,360,"false" );

This can be used after the wait 4 seconds command. If you want the vehicle to move again, create anthor vehicle detour and do the same thing again. Call the trigger and activate it. After scripting, follow the basics of the zone file. Create the zone file like adding in vehicle components like you would for any vehicles.

 

This tutorial should work, since I have been using it many times.

 

Thanx for reading this tutorial, hope it helps you in your maps!

 

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

»