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

Members Online

»
0 Active | 66 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 4
Category: CoD4 Scripting
Scripting and coding with Call of Duty 4.
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: Creating Custom Gametypes
Markvis14
General Member
Since: Apr 27, 2009
Posts: 11
Last: Apr 30, 2009
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Tuesday, Apr. 28, 2009 09:06 am
Hello guys,

I just started looking into mods but can't find a good tutorial for myself.

I want to create my own gametype.
I want to make it so that 1 team has weapons and the other team doesn't (sounds unfair but I have an idea)

Could anyone help me get started? or give me a link to a good tutorial for this?

I am not really a person who asks stuff rights away, I have been looking all over the place but still couldnt find a good tut / guide.

Thanks in Advance,

Markvis14
Share |
dutchman16
General Member
Since: May 8, 2006
Posts: 177
Last: Apr 29, 2009
[view latest posts]
Level 4
Category: CoD4 Scripting
Posted: Tuesday, Apr. 28, 2009 09:12 am
Try taking a look in the gametypes folder:
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\raw\maps\mp\gametypes

Just copy a gametype like SD, paste it on your desktop and open the file (on your desktop) with Notepad / Programmer Notepad. Then check how the gametype is made. I think that's the first step to success :P

edited on Apr. 28, 2009 05:12 am by dutchman16
Share |
Markvis14
General Member
Since: Apr 27, 2009
Posts: 11
Last: Apr 30, 2009
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Tuesday, Apr. 28, 2009 09:15 am
Hey , quick reply :)

I already did that, I just can't seem to find out how to make a mod from it.
Thanks for the help :)
Any other help appreciated [thumbs_up]

edited on Apr. 28, 2009 05:21 am by Markvis14
Share |
dutchman16
General Member
Since: May 8, 2006
Posts: 177
Last: Apr 29, 2009
[view latest posts]
Level 4
Category: CoD4 Scripting
Posted: Tuesday, Apr. 28, 2009 09:26 am
Maybe it's a idea to download a mod in the "download section" of modsonline and take a look at the files inside the folder. So you can see how they did it. I should take a gametype mod if I were you like the Tactical Night mod.
Share |
Markvis14
General Member
Since: Apr 27, 2009
Posts: 11
Last: Apr 30, 2009
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Tuesday, Apr. 28, 2009 09:41 am
Hello again,

Any idea what category it is in?
Share |
Markvis14
General Member
Since: Apr 27, 2009
Posts: 11
Last: Apr 30, 2009
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Tuesday, Apr. 28, 2009 10:29 am
Okay I have got a general idea of how to make it :)
Now my first question: I want to make my own gametype based on TDM , I copied war.gsc and renamed it to my own gametype , after that I packed it and builded the mod.

Although when running cod4 with my mod my gametype doesnt show up in the start new server screen.

How can I fix that?

Also a second question: Instead of letting people pick teams I want them to use auto assign. Where should I add the code for that?

Also for example: game["dialog"]["gametype"] = "deathmatch";

Can I change that "deathmatch" to anything I want? so its a custom name?

edited on Apr. 28, 2009 06:33 am by Markvis14
Share |
dutchman16
General Member
Since: May 8, 2006
Posts: 177
Last: Apr 29, 2009
[view latest posts]
Level 4
Category: CoD4 Scripting
Posted: Tuesday, Apr. 28, 2009 10:56 am
1st question: Try to type /g_gametype ... and see if that works

For the 2nd question, I think you can change it because "deathmatch" is the name that pops up on the screen when you load the map and not the command that's FFA (I think). I think it's the same as "war" = Team Death Match.

edited on Apr. 28, 2009 06:58 am by dutchman16
Share |
Markvis14
General Member
Since: Apr 27, 2009
Posts: 11
Last: Apr 30, 2009
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Tuesday, Apr. 28, 2009 11:21 am
okay I did it but now it says "g_gametype test" is not a valid gametype [confused]
I did call my gametype .gsc file test .. any idea how to fix this?

edited on Apr. 28, 2009 07:30 am by Markvis14
Share |
_INSANE_
General Member
Since: Nov 7, 2008
Posts: 352
Last: Jul 10, 2011
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Tuesday, Apr. 28, 2009 06:52 pm
open up _gametypes.txt and add your gametype to the list.

Then pack that in the mod as well.

edited on Apr. 28, 2009 02:52 pm by -=INSANE=-
Share |
Markvis14
General Member
Since: Apr 27, 2009
Posts: 11
Last: Apr 30, 2009
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Wednesday, Apr. 29, 2009 10:23 am
Hello,

You mean add it to the CSV file? I tried but then it says: Error: Selected file "test\_gametypes.txt" is not supported, skipping
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

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

»