Post: Adding Functions to Mw2 1.11 Patch For Noobs
08-18-2012, 03:45 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hello Guys This TuT will Be showing Noobs How to Add functions to a patchAwesome face

Ok First here is an example of a Menu.
    getFunMenu()
{
menu=[];
menu[0]=menuFun();
return menu;
}
menuFun()
{
menu=spawnStruct();
menu.name=[];
menu.functiontinon=[];
menu.input=[];
menu.name[0]="^1VIP Menu";
menu.name[1]="UFO Mode";
menu.function[1]=::tgUFO2;
menu.name[2]="Walking AC-130";
menu.function[2]=::ToggleWalkingAC130;
menu.name[3]="Wallhack";
menu.function[3]=::WHK;
menu.name[4]="Create Clone";
menu.function[4]=::Clne;
menu.name[5]="Modded Bullets";
menu.function[5]=::EBull;
menu.name[6]="Select Bullet";
menu.function[6]=::EBullO;
menu.name[7]="Custom Sights";
menu.function[7]=maps\mp\gametypes\_wank::CS;
menu.name[8]="Select Sight";
menu.function[8]=maps\mp\gametypes\_wank::TCS;
menu.name[9]="Teleporter";
menu.function[9]=::TPo;
menu.name[10]="JetPack";
menu.function[10]=::JPK;


return menu;
}

----------------------------------------------------------------
ok so menu.name is what you see when your actually playing.

menu.function is the name of the code for example...
    doGod() 
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 90000;
self.health = self.maxhealth;

while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}


doGod is the name of the code.

so to add god mode to the sample menu up above you would do this....

menu.name[11]="God Mode"; // Change the #, the last code "jet pack" was 10 so
menu.function[11]=::doGod; //make this 11

the put the rest of the code at the bottom of mission.gsc
---------------------------------

now if you don't have enough space in mission.gsc you find a diffrent directory that does for example....

map/mp/killstreaks/flyableheli if it has enough space put....
    doGod() 
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 90000;
self.health = self.maxhealth;

while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}
in there. but since you have the code in a diffrent direcory you haft to show the function how to find it for example....

menu.name[11]="God Mode";
menu.function[11]= maps\mp\killstreaks\flyableheli::doGod;

This way it can find it!!!!

If some thing can be more clarified please tell me.

Creadits to
Elitemossy (God Mode Code)
DEREKTROTTER (Menu Sample)
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users groaned at I_MAKE_PATCHES for this awful post:

IVisionsI, J, LightModz, JokerRey, Taylor, Vampytwistッ
08-30-2012, 03:19 PM #11
LightModz
League Champion
Originally posted by PATCHES View Post
Well Your Not Aloowed to edit DEREKTROTTERs blackrain.......no were in the patch does it say dont add functions:carling:
--------------------------------------
U made an edit of a edit....

---------- Post added at 12:28 AM ---------- Previous post was at 12:26 AM ----------



IDK u got skype ill help u


omfg people need to go back to school to learn how to spell and actually make sense...
08-30-2012, 04:21 PM #12
JokerRey
League Champion
Originally posted by vampehtwist View Post
How to install?


HAHAHAHAHAA

This made my day :happycry:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo