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

Members Online

»
0 Active | 51 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

»
CoD2 Mapping
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
Adding a mortar team to your map
Versions: You must be logged in to view history.
Seawolf explains how to add a mortar team to your sp map
Welcome to the on how to add a german mortar team to your map tutorial.

Its very simple, the most part is done in radiant and it evolves very little scripting. Just follow the steps bellow and you should be fine.

Step 1. Creating a trigger brush

First step will be to create a trigger brush that will spawn the mortar team when the player crosses it.

Simply draw out a trigger brush and make it a trigger multiple.

Now give the trigger these values.

key: targetname
Value: mortar_team

Step 2. Creating AI actors

Now we are going to create the mortar team itself

Simply insert any Axis AI actor that you want and make him a Spawner.

Once you have created the actor connect the trigger to the actor (NOT the actor to the trigger or it won't work).


Step 3. Setting the destination of the team using a pathnode

Place a pathnode on the map where you want your team to go to once they are spawnd. Once your team reaches this node they will set up their mortar and start doing their thing.

once you've placed the node connect the actor to the node (NOT the node to the actor).

Step 4. Placing script origins where you want your mortars to land

Next step will be to place script origins on your map where you want the mortars to land (the mortars will randomly land on one of these origins).

Simply place the script origins and then connect the pathnode to the origins.

And thats it for radiant.

Step 5. Scripting

Its very simple, all you have to do is add the following line to the main section of your yourmapname.gsc file

maps\_mortarteam::main();

So it looks something like this

main()
{
maps\_load::main();
maps\_mortarteam::main();

level.player takeallweapons();
level.player giveWeapon ("m1garand");
level.player giveWeapon ("colt");
level.player giveWeapon ("fraggrenade");
level.player switchToWeapon ("m1garand");

}

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

»