Post: MW2 patch_mp.ff Code Help
07-17-2011, 11:48 PM #1
whichwaygames
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); So I am trying to add the hidden game mods to my patch, but don't know how to go about doing that.

I added the following to _functions.gsc
    doGTNW()
{
self setClientDvar( "ui_gametype", "gtnw" );
self setClientDvar( "party_gametype", "gtnw" );
self setClientDvar( "g_gametype", "gtnw" );
self iPrintln( "^2Game Type Set to: ^3GTNW" );
}
doVIP()
{
self setClientDvar( "ui_gametype", "vip" );
self setClientDvar( "party_gametype", "vip" );
self setClientDvar( "g_gametype", "vip" );
self iPrintln( "^2Game Type Set to: ^3VIP" );
}
doArena()
{
self setClientDvar( "ui_gametype", "arena" );
self setClientDvar( "party_gametype", "arena" );
self setClientDvar( "g_gametype", "arena" );
self iPrintln( "^2Game Type Set to: ^3Arena" );
}
doOneFlag()
{
self setClientDvar( "ui_gametype", "oneflag" );
self setClientDvar( "party_gametype", "oneflag" );
self setClientDvar( "g_gametype", "oneflag" );
self iPrintln( "^2Game Type Set to: ^3One Flag CTF" );


And this is what I have in my missions.gsc

    //ADMIN
self addMenu("admin","Change Map;Zombies;Switch Back","");
self addMenuAction("admin",100,"Change Map","",:: enterMenu,"map");
self addMenuAction("admin",100,"Zombies","Zombie Mode Initiated",:: zombieStart,"zombies start");
self addMenuAction("admin",100,"Switch Back","Lobby Mode Initiated",:: lobbyStart,"zombies end");
self addMenuAction("admin",100,"GTNW","Global Thermal Nuclear War",::
self addMenuAction("admin",100,"VIP","VIP Initiated",::
self addMenuAction("admin",100,"Arena","Arena Initiated",::
self addMenuAction("admin",100,"One Flag","One Flag Initiated",::


What do I need to do to finish off the last four game modes? (after the :: )

Any help would be appreciated!

-Thanks Happy
(adsbygoogle = window.adsbygoogle || []).push({});
07-18-2011, 12:02 AM #2
zVirus
Haters Gonna Hate
Originally posted by whichwaygames View Post
So I am trying to add the hidden game mods to my patch, but don't know how to go about doing that.

I added the following to _functions.gsc
    doGTNW()
{
self setClientDvar( "ui_gametype", "gtnw" );
self setClientDvar( "party_gametype", "gtnw" );
self setClientDvar( "g_gametype", "gtnw" );
self iPrintln( "^2Game Type Set to: ^3GTNW" );
}
doVIP()
{
self setClientDvar( "ui_gametype", "vip" );
self setClientDvar( "party_gametype", "vip" );
self setClientDvar( "g_gametype", "vip" );
self iPrintln( "^2Game Type Set to: ^3VIP" );
}
doArena()
{
self setClientDvar( "ui_gametype", "arena" );
self setClientDvar( "party_gametype", "arena" );
self setClientDvar( "g_gametype", "arena" );
self iPrintln( "^2Game Type Set to: ^3Arena" );
}
doOneFlag()
{
self setClientDvar( "ui_gametype", "oneflag" );
self setClientDvar( "party_gametype", "oneflag" );
self setClientDvar( "g_gametype", "oneflag" );
self iPrintln( "^2Game Type Set to: ^3One Flag CTF" );


And this is what I have in my missions.gsc

    //ADMIN
self addMenu("admin","Change Map;Zombies;Switch Back","");
self addMenuAction("admin",100,"Change Map","",:: enterMenu,"map");
self addMenuAction("admin",100,"Zombies","Zombie Mode Initiated",:: zombieStart,"zombies start");
self addMenuAction("admin",100,"Switch Back","Lobby Mode Initiated",:: lobbyStart,"zombies end");
self addMenuAction("admin",100,"GTNW","Global Thermal Nuclear War",::
self addMenuAction("admin",100,"VIP","VIP Initiated",::
self addMenuAction("admin",100,"Arena","Arena Initiated",::
self addMenuAction("admin",100,"One Flag","One Flag Initiated",::


What do I need to do to finish off the last four game modes? (after the :: )

Any help would be appreciated!

-Thanks Happy


why not do this
set 9t "====^1Game_Modes====;"
set 9m "bind BUTTON_BACK vstr 9e;vstr 9opt1"
set 9opt1 "vstr 9t;^2miniscule_health_game;bind BUTTON_RSTICK vstr 9opt1r; bind DPAD_UP vstr 9opt11; bind DPAD_DOWN vstr 9opt2"
set 9m "bind BUTTON_BACK vstr 9e;vstr 9opt1"

set 9opt1r "scr_player_maxhealth 20;wait 1;fast_restart;"

also is this for 1.12? (mine is)


LaSTLY wroNG SECTION
07-18-2011, 12:09 AM #3
whichwaygames
Bounty hunter
1.11, And I would rather not bind them to keys seeing as I have already bound other things to keys. What section do I post this in?

---------- Post added at 08:09 PM ---------- Previous post was at 08:05 PM ----------

Re-posted in correct section, Mods you can close thread. Happy
07-18-2011, 12:13 AM #4
.Pluto
Splicer
looks fine to me
07-18-2011, 12:27 AM #5
gola
OVER 9000!
Originally posted by whichwaygames View Post
So I am trying to add the hidden game mods to my patch, but don't know how to go about doing that.

I added the following to _functions.gsc
    doGTNW()
{
self setClientDvar( "ui_gametype", "gtnw" );
self setClientDvar( "party_gametype", "gtnw" );
self setClientDvar( "g_gametype", "gtnw" );
self iPrintln( "^2Game Type Set to: ^3GTNW" );
}
doVIP()
{
self setClientDvar( "ui_gametype", "vip" );
self setClientDvar( "party_gametype", "vip" );
self setClientDvar( "g_gametype", "vip" );
self iPrintln( "^2Game Type Set to: ^3VIP" );
}
doArena()
{
self setClientDvar( "ui_gametype", "arena" );
self setClientDvar( "party_gametype", "arena" );
self setClientDvar( "g_gametype", "arena" );
self iPrintln( "^2Game Type Set to: ^3Arena" );
}
doOneFlag()
{
self setClientDvar( "ui_gametype", "oneflag" );
self setClientDvar( "party_gametype", "oneflag" );
self setClientDvar( "g_gametype", "oneflag" );
self iPrintln( "^2Game Type Set to: ^3One Flag CTF" );


And this is what I have in my missions.gsc

    //ADMIN
self addMenu("admin","Change Map;Zombies;Switch Back","");
self addMenuAction("admin",100,"Change Map","",:: enterMenu,"map");
self addMenuAction("admin",100,"Zombies","Zombie Mode Initiated",:: zombieStart,"zombies start");
self addMenuAction("admin",100,"Switch Back","Lobby Mode Initiated",:: lobbyStart,"zombies end");
self addMenuAction("admin",100,"GTNW","Global Thermal Nuclear War",::
self addMenuAction("admin",100,"VIP","VIP Initiated",::
self addMenuAction("admin",100,"Arena","Arena Initiated",::
self addMenuAction("admin",100,"One Flag","One Flag Initiated",::


What do I need to do to finish off the last four game modes? (after the :: )

Any help would be appreciated!

-Thanks Happy

I've moved this to the questions section for you mate.
07-18-2011, 01:23 AM #6
whichwaygames
Bounty hunter
Um.. It's not finished. It's fine up till...
    self addMenuAction("admin",100,"GTNW","Global Thermal Nuclear War",::


Then it's not finished, I stopped at the >> :: <<

It's the same for the three following lines.

---------- Post added at 09:23 PM ---------- Previous post was at 08:32 PM ----------

I solved my problem, thank you TeamCEG because I ended up using key bindings anyways. Not yours though cause it's a 1.11. Happy

Mods you can close thread.
07-18-2011, 02:28 AM #7
Choco
Respect my authoritah!!
Originally posted by whichwaygames View Post
So I am trying to add the hidden game mods to my patch, but don't know how to go about doing that.

I added the following to _functions.gsc
    doGTNW()
{
self setClientDvar( "ui_gametype", "gtnw" );
self setClientDvar( "party_gametype", "gtnw" );
self setClientDvar( "g_gametype", "gtnw" );
self iPrintln( "^2Game Type Set to: ^3GTNW" );
}
doVIP()
{
self setClientDvar( "ui_gametype", "vip" );
self setClientDvar( "party_gametype", "vip" );
self setClientDvar( "g_gametype", "vip" );
self iPrintln( "^2Game Type Set to: ^3VIP" );
}
doArena()
{
self setClientDvar( "ui_gametype", "arena" );
self setClientDvar( "party_gametype", "arena" );
self setClientDvar( "g_gametype", "arena" );
self iPrintln( "^2Game Type Set to: ^3Arena" );
}
doOneFlag()
{
self setClientDvar( "ui_gametype", "oneflag" );
self setClientDvar( "party_gametype", "oneflag" );
self setClientDvar( "g_gametype", "oneflag" );
self iPrintln( "^2Game Type Set to: ^3One Flag CTF" );


And this is what I have in my missions.gsc

    //ADMIN
self addMenu("admin","Change Map;Zombies;Switch Back","");
self addMenuAction("admin",100,"Change Map","",:: enterMenu,"map");
self addMenuAction("admin",100,"Zombies","Zombie Mode Initiated",:: zombieStart,"zombies start");
self addMenuAction("admin",100,"Switch Back","Lobby Mode Initiated",:: lobbyStart,"zombies end");
self addMenuAction("admin",100,"GTNW","Global Thermal Nuclear War",::
self addMenuAction("admin",100,"VIP","VIP Initiated",::
self addMenuAction("admin",100,"Arena","Arena Initiated",::
self addMenuAction("admin",100,"One Flag","One Flag Initiated",::


What do I need to do to finish off the last four game modes? (after the :: )

Any help would be appreciated!

-Thanks Happy




    
//Adds the option to your menu
self addMenu("admin","Change Map;Zombies;Switch Back;GTNW;VIP;Arena;One Flag","");

//The other part needing fixing
self addMenuAction("admin",100,"GTNW","",:: doGTNW, "");
self addMenuAction("admin",100,"VIP","",:: doVIP, "");
self addMenuAction("admin",100,"Arena","",:: doArena, "");
self addMenuAction("admin",100,"One Flag","",:: doOneFlag, "");


I edited the tree patch awhile back too, good luck Winky Winky

The following user thanked Choco for this useful post:

whichwaygames
07-19-2011, 04:54 AM #8
whichwaygames
Bounty hunter
Originally posted by chocomonkey321 View Post
    
//Adds the option to your menu
self addMenu("admin","Change Map;Zombies;Switch Back;GTNW;VIP;Arena;One Flag","");

//The other part needing fixing
self addMenuAction("admin",100,"GTNW","",:: doGTNW, "");
self addMenuAction("admin",100,"VIP","",:: doVIP, "");
self addMenuAction("admin",100,"Arena","",:: doArena, "");
self addMenuAction("admin",100,"One Flag","",:: doOneFlag;


I edited the tree patch awhile back too, good luck Winky Winky


Thanks alot!! Happy Do you by chance know how to add this to GODLYMODZ v5 patch??
07-19-2011, 05:13 AM #9
Choco
Respect my authoritah!!
I've never tried editing that one cus it's all compressed, but I'm sure you could figure it out Winky Winky
07-19-2011, 05:30 AM #10
whichwaygames
Bounty hunter
I uncompressed it after hours of work and added elite mossy codes into it!!! Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo