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

Members Online

»
0 Active | 11 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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 MP Mapping
CoD 4 mapping and level design for multiplayer.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: What is "map stuff"?
18Rabbit
General Member
Since: Apr 12, 2009
Posts: 196
Last: Jul 11, 2010
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Sunday, Jun. 14, 2009 12:54 am
I'm scripting my first trapdoor, using this tut http://www.modsonline.com/Tutorials-read-479.html

Code:
nullmapsmp_load::main();

2nd) Copy paste this script into a new text file and name it _door.gsc then save it in your maps/mp folder.


main()
{
*map stuff here*

doortriggers = getentarray("doortrig","targetname");
for(i=0;i<doortriggers.size;i++)
doortriggers[i] thread door_think();
}

door_think()



so, the question is what is "map stuff"?

Thank you,

nashntth
Share |
.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1437
Last: Jul 3, 2017
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Sunday, Jun. 14, 2009 01:43 am
That would the code that sets your minimap and player types

like -
Code:

main()
{
	maps\mp\mp_mymap_fx::main();
	maps\createart\mp_mymap_art::main();
	maps\mp\_load::main();	
	
	maps\mp\_compass::setupMiniMap("compass_map_mp_test5");

	//setExpFog(500, 2200, 0.81, 0.75, 0.63, 0);
	//VisionSetNaked( "mp_test5" );
	ambientPlay("ambient_test5_ext");

	game["allies"] = "marines";
	game["axis"] = "opfor";
	game["attackers"] = "axis";
	game["defenders"] = "allies";
	game["allies_soldiertype"] = "desert";
	game["axis_soldiertype"] = "desert";

	setdvar( "r_specularcolorscale", "1" );

	setdvar("r_glowbloomintensity0",".25");
	setdvar("r_glowbloomintensity1",".25");
	setdvar("r_glowskybleedintensity0",".3");
	setdvar("compassmaxrange","1800");
}



Hmm, I see people have started to use my way of scripting ^^
Share |
18Rabbit
General Member
Since: Apr 12, 2009
Posts: 196
Last: Jul 11, 2010
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Sunday, Jun. 14, 2009 05:37 am
Okay, so just open mymap.gsc and copy everything and paste it to the top of _door.gsc?

nashntth
Share |
rdxradar
General Member
Since: Jan 19, 2008
Posts: 55
Last: Mar 3, 2012
[view latest posts]
Level 3
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Saturday, Oct. 24, 2009 11:15 pm
I'm having the same issue....followed the tut to the letter but the door doesn't open. I'm also not sure what "map stuff" actually means. I wouldn't think its the same as what's in the mymapname.gsc. If anyone has working _door.gsc file....I sure would appreciate seeing it.

Thanks!
Share |
DeekCiti
General Member
Since: Mar 13, 2008
Posts: 1293
Last: Jul 9, 2016
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Saturday, Oct. 24, 2009 11:27 pm
Take the first post, and Replace the words in the script that says "map stuff here" with .KiLL3R.'s code box.

That is what = map stuff, what he has in the code box. [thumbs_up]
Share |
rdxradar
General Member
Since: Jan 19, 2008
Posts: 55
Last: Mar 3, 2012
[view latest posts]
Level 3
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Sunday, Oct. 25, 2009 12:28 am
DeekCiti writes...
Quote:
Take the first post, and Replace the words in the script that says "map stuff here" with .KiLL3R.'s code box.

That is what = map stuff, what he has in the code box. [thumbs_up]


Thanks Deek....I've been working on this for a couple of day now to no avail.

I've been trying to use what you did in this post but its still not working:

http://www.modsonline.com/Forums-top-101845.html
Share |
DeekCiti
General Member
Since: Mar 13, 2008
Posts: 1293
Last: Jul 9, 2016
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Sunday, Oct. 25, 2009 12:36 am
What is working and what isn't working?

If you have errors, post them, otherwise let me know what is going wrong.
Share |
rdxradar
General Member
Since: Jan 19, 2008
Posts: 55
Last: Mar 3, 2012
[view latest posts]
Level 3
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Sunday, Oct. 25, 2009 02:17 am
Ok....I've made some progress. I made the trigger "trigger_use" (had been using "trigger_use_touch"). Finally I got it to work and made the door work going both directions. Oh, I am getting an error about missing sounds....how do I add them? One more thing....how do I reduce the time the door is open?

BTW....thanks so much Deek for your help. I'm no scripter and appreciate your help on these matters.[thumbs_up]

Share |
DeekCiti
General Member
Since: Mar 13, 2008
Posts: 1293
Last: Jul 9, 2016
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Sunday, Oct. 25, 2009 02:26 am
The sounds are semi-complicated for someone who never did them, you want to PM me a chat handle to make this easier?
Share |
DeekCiti
General Member
Since: Mar 13, 2008
Posts: 1293
Last: Jul 9, 2016
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Sunday, Oct. 25, 2009 03:15 am
attachment: application(577.1Kb)
Ok, I zipped up a default soundalias, and wooden door sounds and metal door sounds that you can use for the script.
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 MP Mapping

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

»