MODSonline
  Welcome Guest to MODSonline Home | Forums | Register | Login
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber *
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoDWW Mapping
CoD FAQs
HL2 Mapping
HL2 FAQs
SOF1 Mapping
Crysis Mapping
Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs
UT2K3 Mapping
SOF2 Mapping
SOF2 FAQs

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
starkk [Forum]
ThisGuy [Today]
Gordonreap... [News]
Arkadian [Forum]
lazygit [Tutor]
welshdom [Forum]
MEH-Steiner [Downl]
[DVDF]Blac... [Forum]
oppdelta [Today]
LibraNL [Today]

10 Members and 20 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Friday, Nov. 21st
MODSonair Episode 154
Thursday, Nov. 20th
Call Of Duty World At War - Mod Tools
Wednesday, Nov. 19th
Half-Life 1 $0.98
Sunday, Nov. 16th
MODSonair 154 Live
Friday, Nov. 14th
MODSonair Episode 153
Latest Poll
Would you pay for mod tools?
I would pay a one time fee for mod tools for my favorite title 8.54%
I would pay a monthly/yearly subsrciption fee for mod tools for my favorite title 0.5%
I already paid for the game - Tools should come bundled because I am just fixing what the developers broke 68.34%
100% definitely NOT! 18.59%
I haven't seen a game yet that wasn't 100% perfect when the developers released it 2.51%
Games are the devil! 1.51%
Read More...
16 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
cod5_backlot
CoD:WW Level Des.. Posts: (4) Views: (30) by [DVDF]BlackJack
Adding bots to mp map?
CoDUO Level Desi.. Posts: (3) Views: (49) by oppdelta
Anyone got the turret working?
CoD:WW Level Des.. Posts: (1) Views: (7) by Arkadian
Raygun ?
CoD:WW Level Des.. Posts: (2) Views: (21) by shivix
Google 468 Banner Half-Life 2 Mods for Dummies
CoDWW Download
Forums
MODSonline.com Forums

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD 2 Single Player
Call of Duty 2 single player mapping, scripting and everything single player.
Moderators: foyleman, rEdrUmMDK, Foxhound, Wyatt_Earp, Rasta, StrYdeR, The_Caretaker, Cypher2004, batistablr, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access
Page
Next Page
subscribe
Author Topic: [Turorial] Adding a mortar team to your map
Seawolf
General Member
Since: Apr 15, 2005
Posts: 87
Last: May 9, 2006
[view latest posts]
Level 3
Category: CoD 2 Single Player
Posted: Tuesday, May. 2, 2006 11:26 am
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");

}

edited on May. 2, 2006 11:29 am by Seawolf
Bodger2
General Member
Since: Sep 4, 2004
Posts: 132
Last: Aug 5, 2006
[view latest posts]
Level 4
Category: CoD 2 Single Player
Posted: Tuesday, May. 2, 2006 03:00 pm
Nice job on the tut Seawolf.[thumbs_up]

Just a quick question though. It might be confusing for some people because you only mention one actor in the tut. So does the trigger target both actors? Since it's a mortarteam.

edited on May. 2, 2006 03:04 pm by Bodger2
StrYdeR
Preferred PLUS Member
Since: May 11, 2004
Posts: 11322
Last: Nov 19, 2008
[view latest posts]
Level 10
Forum Moderator
Category: CoD 2 Single Player
Posted: Tuesday, May. 2, 2006 11:38 pm
added to the tutorials section

[angryalien]
Go ahead... You Play I Mod : MODSonline.com
Support Modsonline by becoming a PREFERRED MEMBER today
Have you heard the MODSonair Podcast?: www.modsonair.com
MODSonair is a weekly podcast bringing you the news from a modders perspective. Tune in every Sunday at 4pm GMT to listen LIVE.
veef
General Member
Since: Apr 24, 2006
Posts: 1258
Last: Aug 29, 2006
[view latest posts]
Level 8
Category: CoD 2 Single Player
Posted: Friday, May. 5, 2006 01:03 am
test
Bodger2
General Member
Since: Sep 4, 2004
Posts: 132
Last: Aug 5, 2006
[view latest posts]
Level 4
Category: CoD 2 Single Player
Posted: Friday, May. 5, 2006 02:03 am
Yes I knew that VIP, I mean mrvip, its at the top of _mortarteam.gsc. I was just being nice and giving him a chance to explain. As for the mortar explosions, you have to add another line to your maps gsc.

level.mortar = loadfx("insert efx path here");

You can have different types of mortar impacts depending on the style of map it is.

Looks like my friend StrYder's [angryalien] got some updating to do.

Edit: How the hex did that happen now mrvip's post is below mine.

edited on May. 5, 2006 02:07 am by Bodger2
mrvip
General Member
Since: Jan 21, 2005
Posts: 65
Last: May 20, 2006
[view latest posts]
Level 3
Category: CoD 2 Single Player
Posted: Friday, May. 5, 2006 02:14 am
no
you target the first actor to the second actor

the trigger is only targeted to the one actor.


btw. i did this tut but i dont see the explosion effects.
mrvip
General Member
Since: Jan 21, 2005
Posts: 65
Last: May 20, 2006
[view latest posts]
Level 3
Category: CoD 2 Single Player
Posted: Friday, May. 5, 2006 07:53 pm
i tried the level.mortar = loadfx ("fx/explosions/artilleryExp_dirt_brown.efx");

doesnt work.

help.
Bodger2
General Member
Since: Sep 4, 2004
Posts: 132
Last: Aug 5, 2006
[view latest posts]
Level 4
Category: CoD 2 Single Player
Posted: Saturday, May. 6, 2006 07:07 pm
It works for me.I used the same efx as you.

mrvip
General Member
Since: Jan 21, 2005
Posts: 65
Last: May 20, 2006
[view latest posts]
Level 3
Category: CoD 2 Single Player
Posted: Saturday, May. 6, 2006 07:09 pm
may i see your gsc. or do you wanna see mine. cause mine doesnt work. the effects part anyway.
Bodger2
General Member
Since: Sep 4, 2004
Posts: 132
Last: Aug 5, 2006
[view latest posts]
Level 4
Category: CoD 2 Single Player
Posted: Saturday, May. 6, 2006 07:30 pm
main()
{
maps\_load::main();
maps\_mortarteam::main();
//maps\_mortarteam::anims();

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

level.mortar = loadfx ("fx/explosions/artilleryExp_dirt_brown.efx");
}
Restricted Access Restricted Access
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD 2 Single Player
All logos and trademarks and information in this site are property of MODSonline LLC © 2008.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
Intergi
Partners
modbase.be
Frag Universe
The Firing Box
XoXide
Call of Duty Headquarters
CODAddicts - Call of Duty News & Downloads
Battle for Europe COD2
Ask About
Advertising
Friends
Great Gamer
SOF2 Files and Downloads
ModTheater
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
MODSonair Releases
MODSonair Episode 154
MODSonair Episode 153
MODSonair Episode 152
MODSonair Episode 151
Video server move
Next Show
The next MODSonair show will air LIVE on:
11/23/2008 12:00 EST

Time remaining:
Copyright © 2008 MODSonline
Tresware Content Management System Copyright © 2008 Tresware
Website Designed and Hosted   Tresware