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
Rules
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoDWW Mapping
CoD FAQs
CoD Wiki

HL2 Mapping
L4D Mapping
HL2 FAQs

SoF1 Mapping
SoF2 Mapping
SoF2 FAQs

Crysis Mapping

Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs

UT2K3 Mapping

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
Hippster [Forum]
Unknown_So... [Forum]
Mari [Versi]
cutter-III [Forum]

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

download TeamSpeak

In-The-News
Friday, Jul. 3rd
MODSonair Episode 186
Sunday, Jun. 28th
MODSonair 186 LIVE
Friday, Jun. 26th
MODSonair Episode 185
Monday, Jun. 22nd
Through The Fire and Flames on Drums
Sunday, Jun. 21st
MODSonair 185 LIVE
Latest Poll
Will you be switching to Windows 7?
I already pre-ordered my copy. 3.13%
Looking forward to 32 bit. 7.81%
Looking forward to 64 bit. 25%
Waiting for the everyone else to beta the new OS. 9.38%
I'm sticking with my trusted copy of XP. 53.13%
Screw Windows, I'm on [insert other OS here]. 1.56%
Read More...
7 comments

Your Membership
User Name:
Password:
Register.
In The Forums
[NOOB] Random Script Help
CoD 4 Scripting.. Posts: (1) Views: (5) by Hippster
Classtable Issue !!!
CoD:WW Scripting.. Posts: (3) Views: (32) by irishstorm
Weapon Modding... Need Help
CoD General Gami.. Posts: (2) Views: (48) by IvenGO
Portal Issue...
CoD:WW Multiplay.. Posts: (4) Views: (35) by Mortician
Art of War Central 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 4
Category: CoD 4 Single Player
Call of Duty 4 single player mapping, scripting and everything single player.
Moderators: foyleman, rEdrUmMDK, Foxhound, Rasta, StrYdeR, The_Caretaker, supersword, techno2sl, playername, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: A few questions...
Ediblemittens
General Member
Since: Jun 17, 2008
Posts: 84
Last: Jun 23, 2009
[view latest posts]
Level 3
Category: CoD 4 Single Player
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: CoD 4 Single Player
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: 84
Last: Jun 23, 2009
[view latest posts]
Level 3
Category: CoD 4 Single Player
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: CoD 4 Single Player
Posted: Sunday, Jul. 6, 2008 02:32 pm
I have no clue. Is it even possible?
techno2sl
General Member
Since: Aug 5, 2004
Posts: 2275
Last: Jul 3, 2009
[view latest posts]
Level 8
Forum Moderator
Im a fan of MODSonair
Category: CoD 4 Single Player
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: 4663
Last: Jul 4, 2009
[view latest posts]
Level 9
Forum Moderator
Im a fan of MODSonair
Category: CoD 4 Single Player
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: 84
Last: Jun 23, 2009
[view latest posts]
Level 3
Category: CoD 4 Single Player
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: 2275
Last: Jul 3, 2009
[view latest posts]
Level 8
Forum Moderator
Im a fan of MODSonair
Category: CoD 4 Single Player
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: 84
Last: Jun 23, 2009
[view latest posts]
Level 3
Category: CoD 4 Single Player
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: 84
Last: Jun 23, 2009
[view latest posts]
Level 3
Category: CoD 4 Single Player
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 : CoD 4 Single Player
All logos and trademarks and information in this site are property of MODSonline LLC © 2009.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
MODSonline Subscriptions
Partners
Bash and Slash Podcast
modbase.be
XoXide
Call of Duty Headquarters
Frag Universe
The Firing Box
CODAddicts - Call of Duty News & Downloads
CoD World Task Force
Battle for Europe COD2
Ask About
Advertising
Friends
The Clan Database
Call of Duty Message Boards
Great Gamer
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.
Next Show
The next MODSonair show will air LIVE on:
07/05/2009 12:07 EDT

Time remaining:
We Dontated to PixelEquity
Copyright © 2009 MODSonline
Tresware Content Management System Copyright © 2009 Tresware
Website Designed and Hosted   Tresware