MODSonline Subscriptions
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
The next MODSonair show will air LIVE on:
03/21/2010 12:03 EDT

Time remaining:
We Dontated to PixelEquity
"Modding refers to the act of modifying a piece of hardware or software or anything else for that matter, to perform a function not originally conceived or intended by the designer." 4
 
Site News   |   Aggregated News   |   Forums   |   Tutorials   |   Downloads   |   Projects   |   Weblinks
Latest Forum Threads 
CoD2 MP Mapping.. Posts: (6) Views: (46) by PanZerReBorN
CoD4 Map + Mod R.. Posts: (30) Views: (205) by sam_fisher3000
CoD4 MP Mapping.. Posts: (24) Views: (468) by DeekCiti
CoD4 Scripting.. Posts: (3) Views: (15) by Samuel033
General.. Posts: (1) Views: (15) by Morphisnb
CoD4 SP Mapping.. Posts: (8) Views: (105) by voidsource
CoD2 MP Mapping.. Posts: (8) Views: (53) by Infern4ll
CoDUO Mapping.. Posts: (3) Views: (34) by Fawlty
CoDUO Mapping.. Posts: (4) Views: (29) by morgawr
CoD4 Map + Mod R.. Posts: (2) Views: (46) by Hajas
Back to Home Page
MODSCON 2010 L4D2 Contest
 
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 4
Category: CoD4 SP Mapping
CoD 4 mapping and level design for single player.
Moderators: foyleman, Foxhound, StrYdeR, techno2sl, batistablr, Welshy, Rasta, supersword, batistablr, playername, NovemberDobby
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: A few questions...
Ediblemittens
General Member
Since: Jun 17, 2008
Posts: 91
Last: Aug 5, 2009
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Saturday, Jul. 5, 2008 11:12 pm
A few questions:

1.) How do you blend terrain?

2.) How do you get the little green words explaining the level name, time, and location at the beginning of the level? (I remember an old tutorial for this, but I can't find it anymore.)

Thanks.
82ndAB-Talon
General Member
Since: May 14, 2006
Posts: 86
Last: Apr 12, 2009
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Sunday, Jul. 6, 2008 02:41 am
http://www.modsonline.com/Tutorials-read-122.html
http://www.modsonline.com/Tutorials-read-379.html

I think there is also a video in COD video section

Not sure what you're talking about with the green letters, time & location.
Ediblemittens
General Member
Since: Jun 17, 2008
Posts: 91
Last: Aug 5, 2009
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Sunday, Jul. 6, 2008 11:07 am
When you begin the level, It'll say something like:

'All Ghilled Up'
Pripyat, Ukraine
Lt. Price
15 Years ago

In green glowing letters.
82ndAB-Talon
General Member
Since: May 14, 2006
Posts: 86
Last: Apr 12, 2009
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Sunday, Jul. 6, 2008 02:32 pm
I have no clue. Is it even possible?
techno2sl
General Member
Since: Aug 5, 2004
Posts: 2737
Last: Mar 15, 2010
[view latest posts]
Level 9
Forum Moderator
Im a fan of MODSonair
Category: CoD4 SP Mapping
Posted: Sunday, Jul. 6, 2008 03:33 pm
Ofcourse, probably the same method as an intro screen, just load up some stock singleplayer files (gsc and csvs) to see how IW did it.
Rasta
General Member
Since: Apr 10, 2004
Posts: 5061
Last: Mar 16, 2010
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Category: CoD4 SP Mapping
Posted: Sunday, Jul. 6, 2008 07:04 pm
You could do it like this:

First you need to precache you intro screen lines, lets say you are using 5 lines

Code:
	
precacheString(&"MAP_INTROSCREEN_LINE_1");
	precacheString(&"MAP_INTROSCREEN_LINE_2");
	precacheString(&"MAP_INTROSCREEN_LINE_3");
	precacheString(&"MAP_INTROSCREEN_LINE_4");
	precacheString(&"MAP_INTROSCREEN_LINE_5");

	lines = [];
	lines[ lines.size ] 	= &"MAP_INTROSCREEN_LINE_1";
	lines[ "date" ] 	= &"MAP_INTROSCREEN_LINE_2";
	lines[ lines.size ] 	= &"MAP_INTROSCREEN_LINE_3";
	lines[ lines.size ] 	= &"MAP_INTROSCREEN_LINE_4";
	lines[ lines.size ] 	= &"MAP_INTROSCREEN_LINE_5";
This just needs to be called in your .gsc above the _load function. MAP needs to be replaced with your mapname. Now the description for each line is handled in your .str files, if you don't have one (being a singleplayer you probably do) just create one, ok again for 5 lines
Code:

REFERENCE           INTROSCREEN_LINE_1
LANG_ENGLISH        "'Name of mission!'"

REFERENCE           INTROSCREEN_LINE_2
LANG_ENGLISH        "Day 1 - 04:05"

REFERENCE           INTROSCREEN_LINE_3
LANG_ENGLISH        "Location"

REFERENCE           INTROSCREEN_LINE_4
LANG_ENGLISH        "Name"

REFERENCE           INTROSCREEN_LINE_5
LANG_ENGLISH        "Rank"
Another nice little trick is to use a fake second counter on hte time line so something like
Code:

"Day 1 - 04:05:[{FAKE_INTRO_SECONDS:26}]"


should work fine, try it out and see how you get on.
Ediblemittens
General Member
Since: Jun 17, 2008
Posts: 91
Last: Aug 5, 2009
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Tuesday, Jul. 15, 2008 08:42 pm
I got a bad syntax error. Don't know if its from this or my door kicking function. Here it is anyways:

#include maps\_utility;
#include maps\_anim;




main()

{

precachestring( &"FALLUJAH_INTRO_1" );
precachestring( &"FALLUJAH_INTRO_2" );
precachestring( &"FALLUJAH_CPL_HENRY_JOHNSON" );
precachestring( &"FALLUJAH_3RD_BATTALION" );
precachestring( &"FALLUJAH_FALLUJAH" );
precachestring( &"MARKET");
precachestring( &"APARTMENT");
precachestring( &"DEFEND_THE_CONVOY");

lines = [];
lines[ lines.size ] = &"FALLUJAH_INTRO_1";
lines[ "date" ] = &"FALLUJAH_INTRO_2";
lines[ lines.size ] = &"FALLUJAH_CPL_HENRY_JOHNSON";
lines[ lines.size ] = &"FALLUJAH_3RD_BATTALION";
lines[ lines.size ] = &"FALLUJAH_FALLUJAH";



maps\_load::main();
maps\Fallujah_anim::main();

level.player takeallweapons();
level.player giveWeapon("saw");
level.player giveMaxAmmo("saw");
level.player giveWeapon("colt45");
level.player giveMaxAmmo("colt45");
level.player switchtoWeapon( "saw" );

thread kick_door();
}
kick_door()
{




door_node = getnode ("door_node","targetname");

doortrig = getent("door_trig","targetname");


doortrig waittill("trigger",other);


level.doorkicker = getent("sarge","targetname");
level.doorkicker.animname = "open_door_kick";
level.doorkicker.anim_node = door_node;
level.doorkicker notify ("stop friendly think");

level.doorkicker thread magic_bullet_shield();
level.doorkicker.ignoreme = true;

level.maps\_anim::anim_reach_solo (level.doorkicker, "kickdoor", undefined, door_node);
level.doorkicker pushPlayer (false);
door_node thread maps\_anim::anim_single_solo (level.doorkicker, "kickdoor");

level.doorkicker waittillmatch ("single anim", "soundfx = Door_WD_kick");

door = getent ("door1", "targetname");
door playsound ("Door_WD_kick");

door rotateyaw(90,.5,.2,.2);

door connectpaths();

level.doorkicker notify ("stop magic bullet shield");
level.doorkicker.ignoreme = false;

}
techno2sl
General Member
Since: Aug 5, 2004
Posts: 2737
Last: Mar 15, 2010
[view latest posts]
Level 9
Forum Moderator
Im a fan of MODSonair
Category: CoD4 SP Mapping
Posted: Wednesday, Jul. 16, 2008 05:17 am
Load your map in developer mode and see exactly what the error is (usually)


Game menu:

/developer 1
/devmap mapname

Then drop the extended console "¬"+"shift"
Ediblemittens
General Member
Since: Jun 17, 2008
Posts: 91
Last: Aug 5, 2009
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Wednesday, Jul. 16, 2008 12:53 pm
Appearantly, the line of code causing the trouble is this one:

level.maps\_anim::anim_reach_solo(level.doorkicker, "kickdoor", undefined, door_node); (Line 63)

To be honest, I'm pretty stoked that this is the only error.
[rocking]

edited on Jul. 16, 2008 12:53 pm by Ediblemittens
Ediblemittens
General Member
Since: Jun 17, 2008
Posts: 91
Last: Aug 5, 2009
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Wednesday, Jul. 16, 2008 01:03 pm
The name of the doorkicker is "sarge"

The name of the scripted node is: "door_node"

The door is: "door1"

the sound is: "Door_WD_kick"

the animation is: "open_door_kick"
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 SP Mapping