Post: How do I add a waw patch into my menu plz help!!
06-07-2015, 09:22 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I need help on how to add a world at war patch into my menu
06-07-2015, 10:16 AM #2
Jordan
Can’t trickshot me!
Originally posted by iliketrains1234 View Post
I need help on how to add a world at war patch into my menu


The best way would be to look at how a .gsc patch does it by opening it in ff viewer, I believe that it is done by adding custom dvars to the game that load different gamemodes from the .ff
06-09-2015, 12:25 PM #3
whothedaddy1990
Can’t trickshot me!
Hope This Helps :yes:


///////////////////////////////////////////////////////////////////////////////////////////
//////////////////// This One Go Under Init() Under level.rankTable = []; ////////////////
//////////////////////////////////////////////////////////////////////////////////////////
if
(
getDvar("gametypez")=="name here")
{
level.gametype=toLower(getDvar("g_gametype"));
level thread maps\mp\//name custom gsc where you put the patch::////put function here();
}


///////////////////////////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////////////////////////////
///// this one go under player.xpGains = []; just look up player thread onPlayerSpawned();////
////////////////player thread onJoinedTeam(); player thread onJoinedSpectators(); //////////
////////////////////////////////////////////////////////////////////////////////////////////



if
(
getDvar("gametypez")=="name here")
{
player thread maps\mp\////Same Here::////put function here();
}


///////////////////////////////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////
////////////// This One Go under onPlayerSpawned() //////////
/////////////////////////////////////////////////////////////

if(getDvar("gametypez")=="") // this go's under do spawned example

doplayerspawned()
{
self eond("death");
if(getDvar("gametypez")=="")
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////
//////// This Can Go Anywhere Just Remember to Link Your Patchs To It /////////////////////
///////////////////////////////////////////////////////////////////////////////////////////

StartGameMode(type)
{
if(self getEntityNumber()!=0)
{
self iPrintlnBold("^1You Cannot Do This!");
}
else
{
self endon("menu_exit");
wait 1;
setDvar("gametypez",type);
if(type=="")
{
self thread EndGameMessage("^7"+level.hostname+" ^7Loaded ......");
}
else
{
self thread EndGameMessage("^7"+level.hostname+" ^7Loaded"+type);
}
wait 0.5;
}
wait 4;
if(level.console)self thread KickToPreGame();
}
KickToPreGame()
{
exitLevel(false);
}
EndGameMessage(string)
{
self endon("disconnect");
for(i=0;i<level.players.size;i++)
{
players=level.players;
level thread maps\mp\gametypes\_globallogic::endGame(players,string);
}
}

changetoff()
{
self endon("disconnect");
if(self GetEntityNumber()==0)
{
for(;Winky Winky
{
if(self MeleeButtonPressed() && self GetStance() == "prone")
{
self thread changebacklol();
}
wait .1;
}
}
}
changebacklol()
{
self thread StartGameMode("");
}


///////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////
///// change back function u neeed map thread it to gsc where u put stargamemode() /////
///////////////////////////////////////////////////////////////////////////////////////

self thread maps\mp\gametypes\////edit here::changetoff();



/////////////////////////////////////////////////////////

///////////// End Off Function //////////////////////////

////////////////////////////////////////////////////////

The following user thanked whothedaddy1990 for this useful post:

Jordan

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo