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

Members Online

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

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: CoD2 MP Mapping
CoD 2 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
Author Topic: When making maps, can ur teammates never die?
.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1437
Last: Jul 3, 2017
[view latest posts]
Level 8
Category: CoD2 MP Mapping
Posted: Tuesday, Nov. 27, 2007 05:09 pm
yep ++ means add 1
+= 10 would add 10

while(1) would loop untill the break; is done

while(self.sessionstate == "playing") would only loop while your playing and stop when you die or go spec
Share |
Scratchy
General Member
Since: Feb 10, 2006
Posts: 276
Last: Mar 16, 2009
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Tuesday, Nov. 27, 2007 05:11 pm
thanks killer, youve been a big help
Share |
.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1437
Last: Jul 3, 2017
[view latest posts]
Level 8
Category: CoD2 MP Mapping
Posted: Tuesday, Nov. 27, 2007 05:12 pm
np
(lol a 2 letter post... well its more now)
Share |
sam_fisher3000
General Member
Since: Apr 18, 2007
Posts: 816
Last: Jul 16, 2016
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Tuesday, Nov. 27, 2007 09:55 pm
Scratchy writes...
Quote:
sam_fisher3000 writes...
Quote:
So ur saying that I can make more than one gsc file.

This is my first one

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

level.player takeallweapons();
level.player giveWeapon("m1carbine");
level.player giveWeapon("thompson");
level.player giveWeapon("fraggrenade");
level.player switchToWeapon("thompson");

}



My second one is


main()
{
thread ally_nodamage();
}

ally_nodamage()
{
allyteam =getentarray ("ally", "targetname");
for(i=0;i allyteam thread maps\_utility::magic_bullet_shield();
}


However, doesnt these two files have the same name or else it wouldnt work? U cant have the same name or else one will replace the other. So well, ur saying that I make another gsc file and apply "(map\mp\magicscript::main();) in your Main() function". I will have to apply it at the beginning right? Then the rest is something else right? I hope I am right.




Ok look. You have your Maps GSC, which is named after your map, and is runned when your map is runned. You make another GSC (call it watever you want to) and then call it from your Maps GSC. So here i what it should look like...

main()
{
maps\_load::main();
maps\mp\magic::main();

level.player takeallweapons();
level.player giveWeapon("m1carbine");
level.player giveWeapon("thompson");
level.player giveWeapon("fraggrenade");
level.player switchToWeapon("thompson");

}

^^This one is named after your map^^

Now you have a second GSC file named magic and in it is this...

main()
{
thread ally_nodamage();
}

ally_nodamage()
{
allyteam =getentarray ("ally", "targetname");
for(i=0;i allyteam thread maps\_utility::magic_bullet_shield();
}

And make sure you have your actors with the targetname ally

edited on Nov. 26, 2007 09:10 pm by Scratchy




ok back to the topic on scripting. So ur saying that wutever has the word main or maps\mp or wutever have to go into 1 gsc file along with the weapons scripting? The others go into a seperate GSC file? So wutever is the main thing like the map starter scripts have to go into one file. The rest go into a seperate file. Even though they are not related like a tank script or the infinite health have to be seperated and in 2 different gsc file. Is that wut ur saying? Or can I put 2 different things together on the second gsc file?
Share |
Scratchy
General Member
Since: Feb 10, 2006
Posts: 276
Last: Mar 16, 2009
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Tuesday, Nov. 27, 2007 10:01 pm
You must have a GSC file named after your map. In that file you can do what ever you want.

You can call other GSC files

You can execute code

The reason for having a second GSC file is for organization. Its so you dont clutter your Map GSC, and make it easier to read
Share |
sam_fisher3000
General Member
Since: Apr 18, 2007
Posts: 816
Last: Jul 16, 2016
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Tuesday, Nov. 27, 2007 10:17 pm
ok..... u say that I can do whatever I want in that gsc file however, I cant just do that I need to know wut goes first and wut goes afterwards like the main goes first and other stuff. Also call other GSC file? I mean I still dont get how do u do that. Also execute wut codes? I am so sorry I am so confused! Scripting isnt my thing. I can map but not script. So can u make ur speech a lot more easier like saying if there are multiple gsc files, which script goes in which? Wut I mean is wut do u put first in the first gsc file and wut do u put for the second gsc file. Wut important or main things have to be in the first gsc file (which is name after ur wap) and wut other things have to be in the second gsc file. Thx.


P.S. Sorry for being misunderstanding. I just dont get scripting and wut u say, I sort of dont get it too. I am so sorry. Maybe there is another way, I make the map and someone else script it for me and send it back. That being said, I still want to know how to script by myself too. Thx.
Share |
94sniper
General Member
Since: Jun 15, 2007
Posts: 907
Last: Jun 22, 2009
[view latest posts]
Level 7
Category: CoD2 MP Mapping
Posted: Tuesday, Nov. 27, 2007 10:21 pm
sam_fisher3000 writes...
Quote:
I still want to know how to script by myself too.


do you by chance know C scripting? if not, C is a good base idea. I consider CoD scripting a 1up version of C. actually I'm learning C right now. I'm kinda going backwards with all of CoD. first CoD2, then CoD, then CoD4, now It's all at once...
Share |
sam_fisher3000
General Member
Since: Apr 18, 2007
Posts: 816
Last: Jul 16, 2016
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Tuesday, Nov. 27, 2007 10:28 pm
ok.... I dont know wut c scripting is.......[confused]

But how does it solve my problem? Let me guess u want me to look at the COD scripting and see how to do it?
Share |
94sniper
General Member
Since: Jun 15, 2007
Posts: 907
Last: Jun 22, 2009
[view latest posts]
Level 7
Category: CoD2 MP Mapping
Posted: Tuesday, Nov. 27, 2007 10:36 pm
or you could use a tutorial! such as the one found here. There are other tutorials for sripting. and incase you don't already know, CoD, CoD2, and Cod4 scripting is pretty much the exact same. it's got the same layout which is really helpful for modders/mappers to switch from game to game.
Share |
TexasRebel
General Member
Since: May 1, 2006
Posts: 373
Last: Aug 20, 2013
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Tuesday, Nov. 27, 2007 10:38 pm
It is really not necessary to go back and learn basic C scripting. C++ is easier to use and then other languages are even easier.

What sniper is saying is to get a basic understanding of the game scripting it might be good to know just regular scripting seeing as the game scripting is a basic variation of it.

What specific parts do you need clarified sam? Maybe I can describe it to ya, although I do not think Im that great a trying to teach others, I am willing to help ya.
Share |
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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

»