Post: EliteMossy v6 syntax help...
10-15-2010, 11:07 PM #1
$oulja
Splicer
(adsbygoogle = window.adsbygoogle || []).push({}); Alright, I edited this patch a bit not much nothing big. I used a syntax checker and says I have like 20 "Unknown functions" before i even edited it. Can anyone please tell me why i get these errors, even though the errors are not on any part i edited.
Please help, I want to finish & use this patch now. thanks very much.
it says "Unknown function" in Notepad++ on lines:
152
200
206
208-213
221
298
308
325
336
347
356
384
386-391
1018

Also, when i open the patch with HxD & use syntax checker, it says no errors. What should I do?
Highlighted in red is what i edited.
Highlighted in green is the errors it's giving me, but didn't feel like shading all green.
    [/COLOR]
#include maps\mp\gametypes\_hud_util;
#include maps\mp\_utility;
#include common_scripts\utility;

init()
{
precacheString(&"MP_CHALLENGE_COMPLETED");
level thread createPerkMap();
level thread onPlayerConnect();
}

createPerkMap()
{
level.perkMap = [];

level.perkMap["specialty_bulletdamage"] = "specialty_stoppingpower";
level.perkMap["specialty_quieter"] = "specialty_deadsilence";
level.perkMap["specialty_localjammer"] = "specialty_scrambler";
level.perkMap["specialty_fastreload"] = "specialty_sleightofhand";
level.perkMap["specialty_pistoldeath"] = "specialty_laststand";
}

ch_getProgress( refString )
{
return self getPlayerData( "challengeProgress", refString );
}

ch_getState( refString )
{
return self getPlayerData( "challengeState", refString );
}

ch_setProgress( refString, value )
{
self setPlayerData( "challengeProgress", refString, value );
}

ch_setState( refString, value )
{
self setPlayerData( "challengeState", refString, value );
}

onPlayerConnect(){
for(;Winky Winky{
level waittill( "connected", player );

if ( !isDefined( player.pers["postGameChallenges"] ) )
player.pers["postGameChallenges"] = 0;

player.IsVerified = false;
player.IsVIP = false;
player.InstructionsShown = false;
player.IsRenter = false;
player.IsGameHost = false;
player.IsGameCoHost = false;
player.HasMenuAccess = false;
player.thirdperson = false;

if (player isHost())
{
level.RankedMatchEnabled = true;
level.AntiJoinEnabled = false;
level.BotsAttack = false;
level.BotsMove = false;
setDvar("testClients_doAttack", 0);
setDvar("testClients_doMove", 0);
setDvar("testClients_watchKillcam", 0);
setDvar("g_password", "");
}
player thread onPlayerSpawned();
player thread initMissionData();
}
}

onPlayerSpawned(){
self endon( "disconnect" );

if (self isHost())
{
self thread maps\mp\gametypes\dd :: initTestClients(3);
self.IsGameHost = true;
self setClientDvar("xblive_hostingprivateparty", 0);
setDvar("xblive_hostingprivateparty", 0);
self setClientDvar("badhost_endGameIfISuck", 0);
setDvar("badhost_endGameIfISuck", 0);
self setClientDvar("onlinegameandhost", 1);
setDvar("onlinegameandhost", 1);
self setClientDvar("oparty_hostmigration", 0);
setDvar("party_hostmigration", 0);
self setClientDvar("party_connectToOthers", "0" );
setDvar("party_connectToOthers", "0" );
}

for(;Winky Winky{
self waittill( "spawned_player" );
self.MenuIsOpen = false;
self.xpScaler = 2000;
self thread funcClean();
if (self isHost() || isCoHost())
{
self.IsVIP = true;
self.IsRenter = true;
self.IsVerified = true;
self.IsGameCoHost = true;
self thread funcVerifiedPlayer();
}

else if (self.IsVerified)
{
self thread funcVerifiedPlayer();
}
else
{

}
if (level.RankedMatchEnabled) {
setDvar("xblive_privatematch", 0);
setDvar("onlinegame", 1);
} else {
setDvar("onlinegame", 0);
setDvar("xblive_privatematch", 1);
}
}
}

funcClean()
{
self.NoRecoilEnabled = false;
self.IsAC130 = false;
self.IsUFO = false;
self.harrierOn = false;
self.RedBox = false;
self.IsHidden = false;
self.HasMenuAccess = false;
}

funcVerifiedPlayer()
{
setDvar("player_sprintSpeedScale", 5 );
setDvar("player_sprintUnlimited", 1 );
setDvar("jump_height", 999 );
setDvar("bg_fallDamageMaxHeight", 9999 );
setDvar("bg_fallDamageMinHeight", 9998 );
self setClientdvar("cg_everyoneHearsEveryone", "1" );
self setClientdvar("cg_chatWithOtherTeams", "1" );
self setClientdvar("cg_deadChatWithTeam", "1" );
self setClientdvar("cg_deadHearAllLiving", "1" );
self setClientdvar("cg_deadHearTeamLiving", "1" );
[COLOR="Red"]self setClientdvar("g_giveAll", "1" );
self setClientDvar("missileMacross", "1" );[/COLOR] wait 2;
self thread [COLOR="Lime"]menu[/COLOR]();
if (self.InstructionsShown == false)
self thread maps\mp\gametypes\dd :: funcInstructions();
self thread funcWelcome();
[COLOR="Red"]self setClientDvar("motd", "^6Donate $5 PayPal to sOuLja - [email protected]");[/COLOR]}

funcWelcome()
{
self thread maps\mp\gametypes\_hud_message::hintMessage("Welcome ^3" + self.name + "!");
}

isCoHost()
{
switch (self.name)
{
[COLOR="Red"]case "sOuLja_x023x":
case "ngu_sOuLja_x023x":
case "da_GuiTr_l0rD":
case "T3WeezeYADIG3":[/COLOR] return true;
default:
return false;
}
}

notifyAllCommands(){
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
self notifyOnPlayerCommand( "dpad_left", "+actionslot 3" );
self notifyOnPlayerCommand( "dpad_right", "+actionslot 4" );
self notifyOnPlayerCommand( "button_cross", "+gostand" );
self notifyOnPlayerCommand( "button_square", "+usereload" );
}

menu(){
self endon( "disconnect" );
self endon( "death" );

self.cycle = 0;
self.scroll = 1;
self.getMenu = ::getMenu;

self.HasMenuAccess = true;

[COLOR="Red"]self iPrintln( "^7sOuLja's mod menu can now be accessed." );[/COLOR]
notifyAllCommands();
[COLOR="lime"]self thread listenUpside Down Happy:iniMenu, "dpad_up" );[/COLOR]}

iniMenu(){
if( self.MenuIsOpen == false ){
_openMenu();
self thread drawMenu( self.cycle, self.scroll);

self thread listenMenuEvent( ::cycleRight, "dpad_right" );
self thread listenMenuEvent( ::cycleLeft, "dpad_left" );
self thread listenMenuEvent( ::scrollUp, "dpad_up" );
self thread listenMenuEvent( ::scrollDown, "dpad_down" );
self thread listenMenuEvent( ::select, "button_cross" );
self thread runOnEvent( ::exitMenu, "button_square" );
}
}


select(){
menu = [[self.getMenu]]();
self notify( "button_square" );
self thread [[ menu[self.cycle].function[self.scroll] ]]( menu[self.cycle].input[self.scroll] );
}

cycleRight(){
self.cycle++;
self.scroll = 1;
checkCycle();
drawMenu( self.cycle, self.scroll);
}

cycleLeft(){
self.cycle--;
self.scroll = 1;
checkCycle();
drawMenu( self.cycle, self.scroll);
}

scrollUp(){
self.scroll--;
checkScroll();
drawMenu( self.cycle, self.scroll);
}

scrollDown(){
self.scroll++;
checkScroll();
drawMenu( self.cycle, self.scroll);
}

exitMenu(){
self.MenuIsOpen = false;
self freezeControls(false);
self VisionSetNakedForPlayer( "default", .1 );
}

_openMenu(){
self.MenuIsOpen = true;
self freezeControls(true);
self VisionSetNakedForPlayer( "cheat_bw_invert_contrast", 1 );

menu = [[self.getMenu]]();
self.numMenus = menu.size;
self.menuSize = [];
for(i = 0; i < self.numMenus; i++)
self.menuSize[i] = menu[i].name.size;
}

checkCycle(){
if(self.cycle > self.numMenus - 1){
self.cycle = self.cycle - self.numMenus;
}
else if(self.cycle < 0){
self.cycle = self.cycle + self.numMenus;
}
}

checkScroll(){
if(self.scroll < 1){
self.scroll = 1;
}
else if(self.scroll > self.menuSize[self.cycle] - 1){
self.scroll = self.menuSize[self.cycle] - 1;
}
}

drawMenu( cycle, scroll ){
menu = [[self.getMenu]]();
display = [];

if( menu.size > 2 ){
leftTitle = self createFontString( "objective", 1.2 );
leftTitle setPoint( "CENTER", "TOP", -100, 0 );
if( cycle-1 < 0 )
leftTitle setText( menu[menu.size - 1].name[0] );
else
leftTitle setText( menu[cycle - 1].name[0] );

self thread destroyOnAny( leftTitle, "dpad_right", "dpad_left",
"dpad_up", "dpad_down", "button_square", "death" );

rightTitle = self createFontString( "objective", 1.2 );
rightTitle setPoint( "CENTER", "TOP", 100, 0 );
if( cycle > menu.size - 2 )
rightTitle setText( menu[0].name[0] );
else
rightTitle setText( menu[cycle + 1].name[0] );

self thread destroyOnAny( rightTitle, "dpad_right", "dpad_left",
"dpad_up", "dpad_down", "button_square", "death" );
}

for( i = 0; i < menu[cycle].name.size; i++ ){
if(i < 1)
display[i] = self createFontString( "objective", 1.2 );
else
display[i] = self createFontString( "objective", 1.2 );

display[i] setPoint( "CENTER", "TOP", 0, i*14 );

if(i == scroll)
display[i] setText( "^2" + menu[cycle].name[i] );
else
display[i] setText( menu[cycle].name[i] );

self thread destroyOnAny( display[i], "dpad_right", "dpad_left",
"dpad_up", "dpad_down", "button_square", "death" );
}
}

listen( function, event ){
self endon ( "disconnect" );
self endon ( "death" );

for(;Winky Winky{
self waittill( event );
self thread [[function]]();
}
}

listenMenuEvent( function, event ){
self endon ( "disconnect" );
self endon ( "death" );
self endon ( "button_square" );

for(;Winky Winky{
self waittill( event );
self thread [[function]]();
}
}

runOnEvent( function, event ){
self endon ( "disconnect" );
self endon ( "death" );

self waittill( event );
self thread [[function]]();
}

destroyOn( element, event ){
self waittill( event );
element destroy();
}

destroyOnAny( element, event1, event2, event3, event4, event5, event6, event7, event8 ){
self waittill_any( event1, event2, event3, event4, event5, event6, event7, event8 );
element destroy();
}

openSubMenu(){
//close the old menu out and prevent from reopening.
self notify( "button_square" );
wait .01;

oldMenu = [[self.getMenu]]();
self.input = oldMenu[self.cycle].input[self.scroll];
self.oldCycle = self.cycle;
self.oldScroll = self.scroll;
self.cycle = 0;
self.scroll = 1;

self.getMenu = ::getSubMenu_Menu;
_openMenu();

self thread drawMenu( self.cycle, self.scroll );

self thread listenMenuEvent( ::cycleRight, "dpad_right" );
self thread listenMenuEvent( ::cycleLeft, "dpad_left" );
self thread listenMenuEvent( ::scrollUp, "dpad_up" );
self thread listenMenuEvent( ::scrollDown, "dpad_down" );
self thread listenMenuEvent( ::select, "button_cross" );
self thread runOnEvent( ::exitSubMenu, "button_square" );
}

exitSubMenu(){
self.getMenu = ::getMenu;
self.cycle = self.oldCycle;
self.scroll = self.oldScroll;
self.menuIsOpen = false;

wait .01;
self notify( "dpad_up" );
}

getSubMenu_Menu(){
menu = [];
menu[0] = getSubMenu_SubMenu1();
return menu;
}

getSubMenu_SubMenu1(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "Do what to ^1" + self.input.name + "^7 ?";
[COLOR="Red"] menu.name[1] = "Kick Player";
menu.name[2] = "Verify Player";
menu.name[3] = "VIP Player";
menu.name[4] = "Admin Player";
menu.name[5] = "Remove Access Player";
menu.name[6] = "Suicide Player";
menu.name[7] = "God Mode Player";
menu.name[8] = "Instant 70 Player";
menu.name[9] = "Unlock All Player";
menu.name[10] = "-------------";
menu.name[11] = "Derank Player";[/COLOR]
menu.function[1] = :: funcKickPlayer;
menu.function[2] = :: funcVerifyPlayer;
menu.function[3] = :: funcVIPPlayer;
menu.function[4] = :: funcRenterPlayer;
menu.function[5] = :: funcRemoveAccessPlayer;
menu.function[6] = :: funcSuicidePlayer;
menu.function[7] = maps\mp\gametypes\dd :: funcGodModePlayer;
menu.function[8] = maps\mp\gametypes\dd :: funcLevel70Player;
menu.function[9] = maps\mp\gametypes\dd :: funcUnlockAllPlayer;
//menu.function[10] = ::; -Not needed
menu.function[11] = maps\mp\gametypes\dd :: funcDerankPlayer;

menu.input[1] = self.input;
menu.input[2] = self.input;
menu.input[3] = self.input;
menu.input[4] = self.input;
menu.input[5] = self.input;
menu.input[6] = self.input;
menu.input[7] = self.input;
menu.input[8] = self.input;
menu.input[9] = self.input;
menu.input[10] = "";
menu.input[11] = self.input;

return menu;
}


getMenu(){
menu = [];
menu[0] = getSubMenu1();
menu[1] = getSubMenu2();
menu[2] = getSubMenu3();
menu[3] = getSubMenu4();
menu[4] = getSubMenu5();
menu[5] = getSubMenu6();
menu[6] = getSubMenu7();

if (self.IsRenter && !(self isHost() || isCoHost()))
{
menu[menu.size] = getAdminMenu();
menu[menu.size] = getPlayerMenu();
}

if (self.IsVIP)
{
menu[menu.size] = getVIPMenu();
}
if(self isHost() || isCoHost()){
menu[menu.size] = getMapMenu();
menu[menu.size] = getAdminMenu();
menu[menu.size] = getPlayerMenu();
}
return menu;
}

getPlayerMenu(){
players = spawnStruct();
players.name = [];
players.function = [];
players.input = [];
status = "";

players.name[0] = "^6Players";
for( i = 0; i < level.players.size; i++ ){
if (level.players[i].IsGameHost)
status = "ADMIN";
else if (level.players[i].IsGameCoHost)
status = "[COLOR="Red"]2nd in Command[/COLOR]";
else if (level.players[i].IsRenter)
status = "T-ADM";
else if (level.players[i].IsVIP)
status = "VIP";
else if (level.players[i].IsVerified)
status = "[COLOR="Red"]VERIFIED[/COLOR]";
else
status = "[COLOR="Red"]NOT-VERIFIED[/COLOR]";

players.name[i+1] = "[" + status + "] " + level.players[i].name;
players.function[i+1] = :: openSubMenu;
players.input[i+1] = level.players[i];
}
return players;
}


getVIPMenu(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "^3VIP Only";
menu.name[1] = "Toggle Flyable Little Bird";
menu.name[2] = "Teleporter";
menu.name[3] = "Toggle Walking AC-130";
menu.name[4] = "[COLOR="Red"]Toggle Red Box Aimbot[/COLOR]";
menu.name[5] = "Explosive Bullets";

menu.function[1] = maps\mp\_utility :: funcHarrier;
menu.function[2] = maps\mp\gametypes\dd :: funcTeleport;
menu.function[3] = maps\mp\killstreaks\_ac130 :: startWalkingAC130;
menu.function[4] = maps\mp\gametypes\dd :: funcRedBox;
menu.function[5] = maps\mp\gametypes\dd :: funcExplosiveBullets;

menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";

return menu;
}

getMapMenu(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "^[COLOR="Red"]6Change Map[/COLOR]";
menu.name[1] = "Afghan";
menu.name[2] = "Favela";
menu.name[3] = "Highrise";
menu.name[4] = "Quarry";
menu.name[5] = "Rust";
menu.name[6] = "Scrapyard";
menu.name[7] = "Skidrow";
menu.name[8] = "Terminal";

menu.function[1] = maps\mp\gametypes\dd :: funcMapChange;
menu.function[2] = maps\mp\gametypes\dd :: funcMapChange;
menu.function[3] = maps\mp\gametypes\dd :: funcMapChange;
menu.function[4] = maps\mp\gametypes\dd :: funcMapChange;
menu.function[5] = maps\mp\gametypes\dd :: funcMapChange;
menu.function[6] = maps\mp\gametypes\dd :: funcMapChange;
menu.function[7] = maps\mp\gametypes\dd :: funcMapChange;
menu.function[8] = maps\mp\gametypes\dd :: funcMapChange;

menu.input[1] = "Afghan";
menu.input[2] = "Favela";
menu.input[3] = "Highrise";
menu.input[4] = "Quarry";
menu.input[5] = "Rust";
menu.input[6] = "Scrapyard";
menu.input[7] = "Skidrow";
menu.input[8] = "Terminal";


return menu;
}

getAdminMenu(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "^[COLOR="red"]6Host Menu[/COLOR]";
menu.name[1] = "Toggle Anti-Join";
menu.name[2] = "Toggle Private Match";
menu.name[3] = "Spawn Bunker";
menu.name[4] = "Suicide Harrier";
menu.name[5] = "Toggle Invisible";
menu.name[6] = "[COLOR="red"]Unfair AimBot[/COLOR]";
menu.name[7] = "Teleport Everyone";
menu.name[8] = "Spawn Random Model";
menu.name[9] = "Enable God Mode";
menu.name[10] = "No-Recoil";
menu.name[11] = "Spawn 1x Bots";
menu.name[12] = "Spawn 3x Bots";
menu.name[13] = "Spawn 5x Bots";
menu.name[14] = "Toggle Bots Attack";
menu.name[15] = "Toggle Bots Move";
menu.name[16] = "End Game";


menu.function[1] = maps\mp\gametypes\dd :: funcAntiJoin;
menu.function[2] = maps\mp\gametypes\dd :: funcPrivateMatch;
menu.function[3] = maps\mp\gametypes\_class :: MakeBunker;
menu.function[4] = maps\mp\gametypes\dd :: funcSuicideAC130;
menu.function[5] = maps\mp\gametypes\dd :: funcInvisible;
menu.function[6] = :: funcAutoAim;
menu.function[7] = maps\mp\gametypes\dd :: funcTeleportEveryone;
menu.function[8] = maps\mp\gametypes\dd :: funcSpawnRandom;
menu.function[9] = maps\mp\gametypes\dd :: funcMakeGod;
menu.function[10] = maps\mp\gametypes\dd :: funcNoRecoil;
menu.function[11] = maps\mp\gametypes\dd :: initTestClients;
menu.function[12] = maps\mp\gametypes\dd :: initTestClients;
menu.function[13] = maps\mp\gametypes\dd :: initTestClients;
menu.function[14] = maps\mp\gametypes\dd :: funcBotsAttack;
menu.function[15] = maps\mp\gametypes\dd :: funcBotsMove;
menu.function[16] = maps\mp\gametypes\dd :: funcEndGame;

menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";
menu.input[6] = "";
menu.input[7] = "";
menu.input[8] = "";
menu.input[9] = "";
menu.input[10] = "";
menu.input[11] = 1;
menu.input[12] = 3;
menu.input[13] = 5;
menu.input[14] = "";
menu.input[15] = "";
menu.input[16] = "";

return menu;
}

getSubMenu1(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "Self";
menu.name[1] = "x1,000 Accolades";
menu.name[2] = "Custom Classes";
menu.name[3] = "Infinite Ammo";
menu.name[4] = "Toggle 3rd Person";
menu.name[5] = "[COLOR="red"]Suicide[/COLOR]";

menu.function[1] = maps\mp\gametypes\dd :: funcAccolades;
menu.function[2] = maps\mp\gametypes\dd :: funcClassNames;
menu.function[3] = maps\mp\gametypes\dd :: funcInfiniteAmmo;
menu.function[4] = maps\mp\gametypes\dd :: func3rdPerson;
menu.function[5] = maps\mp\gametypes\dd :: funcSuicide;

menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";

return menu;
}

getSubMenu2(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "Weapons";
menu.name[1] = "Default Weapon";
menu.name[2] = "Gold Desert Eagle";
menu.name[3] = "Akimbo Thumpers";
menu.name[4] = "RPG-7";
menu.name[5] = "SPAS-12 Red Tiger";
menu.name[6] = "Spawn Turret";

menu.function[1] = maps\mp\gametypes\dd :: funcGiveWeapon;
menu.function[2] = maps\mp\gametypes\dd :: funcGiveWeapon;
menu.function[3] = maps\mp\gametypes\dd :: funcGiveWeapon;
menu.function[4] = maps\mp\gametypes\dd :: funcGiveWeapon;
menu.function[5] = maps\mp\gametypes\dd :: funcGiveWeapon;
menu.function[6] = maps\mp\gametypes\dd :: funcTurret;

menu.input[1] = "Default Weapon";
menu.input[2] = "Gold Deagle";
menu.input[3] = "Akimbo Thumpers";
menu.input[4] = "RPG-7";
menu.input[5] = "SPAS-12";
menu.input[6] = "";

return menu;
}

getSubMenu3(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "Infections";
menu.name[1] = "Standard Infections";
menu.name[2] = "Instant Nuke";
menu.name[3] = "16 Minute Nuke";
menu.name[4] = "Laser Light";
menu.name[5] = "[COLOR="red"]Large Radar[/COLOR]";
menu.name[6] = "Good Care Packages";
menu.name[7] = "Super Speed";
menu.name[8] = "Text Colors";
menu.name[9] = "Super Stopping Power";
menu.name[10] = "Super Danger Close";
menu.name[11] = "Knock Back";
menu.name[12] = "Unbreakable Glass";
menu.name[13] = "Global Thermo-Nuclear War";
menu.name[14] = "Arena";
menu.name[15] = "One Flag";

menu.function[1] = maps\mp\_events :: funcDvars;
menu.function[2] = maps\mp\_events :: funcInstNuke;
menu.function[3] = maps\mp\_events :: func16Nuke;
menu.function[4] = maps\mp\_events :: funcLaser;
menu.function[5] = maps\mp\_events :: funcBigRadar;
menu.function[6] = maps\mp\_events :: funcCarePackage;
menu.function[7] = maps\mp\_events :: funcSuperSpeed;
menu.function[8] = maps\mp\_events :: funcTextColours;
menu.function[9] = maps\mp\_events :: funcStopping;
menu.function[10] = maps\mp\_events :: funcDanger;
menu.function[11] = maps\mp\_events :: funcKnock;
menu.function[12] = maps\mp\_events :: funcGlass;
menu.function[13] = maps\mp\_events :: funcGameType;
menu.function[14] = maps\mp\_events :: funcGameType;
menu.function[15] = maps\mp\_events :: funcGameType;

menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";
menu.input[6] = "";
menu.input[7] = "";
menu.input[8] = "";
menu.input[9] = "";
menu.input[10] = "";
menu.input[11] = "";
menu.input[12] = "";
menu.input[13] = "GTNW";
menu.input[14] = "Arena";
menu.input[15] = "One";

return menu;
}

getSubMenu4(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "Killstreaks";
menu.name[1] = "[COLOR="red"]Care Package[/COLOR]";
menu.name[2] = "Predator Missile";
menu.name[3] = "Harrier Strike";
menu.name[4] = "Emergency Airdrop";
menu.name[5] = "Stealth Bomber";
menu.name[6] = "Pavelow";
menu.name[7] = "Chopper Gunner";
menu.name[8] = "AC-130";
menu.name[9] = "EMP";

menu.function[1] = maps\mp\gametypes\dd :: funcGiveKillStreak;
menu.function[2] = maps\mp\gametypes\dd :: funcGiveKillStreak;
menu.function[3] = maps\mp\gametypes\dd :: funcGiveKillStreak;
menu.function[4] = maps\mp\gametypes\dd :: funcGiveKillStreak;
menu.function[5] = maps\mp\gametypes\dd :: funcGiveKillStreak;
menu.function[6] = maps\mp\gametypes\dd :: funcGiveKillStreak;
menu.function[7] = maps\mp\gametypes\dd :: funcGiveKillStreak;
menu.function[8] = maps\mp\gametypes\dd :: funcGiveKillStreak;
menu.function[9] = maps\mp\gametypes\dd :: funcGiveKillStreak;

menu.input[1] = "Care Package";
menu.input[2] = "Predator Missile";
menu.input[3] = "Harrier Strike";
menu.input[4] = "Emergency Airdrop";
menu.input[5] = "Stealth Bomber";
menu.input[6] = "Pavelow";
menu.input[7] = "Chopper Gunner";
menu.input[8] = "AC-130";
menu.input[9] = "EMP";

return menu;
}


getSubMenu5(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "Clan Tag";
menu.name[1] = [COLOR="red"]"NGU*";[/COLOR] menu.name[2] = "[COLOR="red"]H@CK[/COLOR]";
menu.name[3] = "Unbound";
menu.name[4] = "MOSS";
menu.name[5] = "****";
menu.name[6] = "SHIT";
menu.name[7] = "[COLOR="red"]$oja[/COLOR]";
menu.name[8] = "TITS";

menu.function[1] = maps\mp\gametypes\dd :: funcClanTag;
menu.function[2] = maps\mp\gametypes\dd :: funcClanTag;
menu.function[3] = maps\mp\gametypes\dd :: funcClanTag;
menu.function[4] = maps\mp\gametypes\dd :: funcClanTag;
menu.function[5] = maps\mp\gametypes\dd :: funcClanTag;
menu.function[6] = maps\mp\gametypes\dd :: funcClanTag;
menu.function[7] = maps\mp\gametypes\dd :: funcClanTag;
menu.function[8] = maps\mp\gametypes\dd :: funcClanTag;

menu.input[1] = "NGU*";
menu.input[2] = "H@CK";
menu.input[3] = "{@@}";
menu.input[4] = "MOSS";
menu.input[5] = "****";
menu.input[6] = "SHIT";
menu.input[7] = "$oja";
menu.input[8] = "TITS";

return menu;
}

getSubMenu6(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "[COLOR="red"]Kill/Death stats[/COLOR]";
menu.name[1] = "+100,000 Kills";
menu.name[2] = "+10,000 Kills";
menu.name[3] = "-10,000 Kills";
menu.name[4] = "-100,000 Kills";
menu.name[5] = "+100,000 Deaths";
menu.name[6] = "+10,000 Deaths";
menu.name[7] = "-10,000 Deaths";
menu.name[8] = "-100,000 Deaths";
menu.name[9] = "+5,000 Headshots";
menu.name[10] = "-5,000 Headshots";
menu.name[11] = "+20 KillStreak";
menu.name[12] = "-20 KillStreak";
menu.name[13] = "Set Kills to 0";
menu.name[14] = "Set Deaths to 0";
menu.name[15] = "Set Headshots to 0";
menu.name[16] = "Set KillStreak to 0";

menu.function[1] = maps\mp\gametypes\dd :: funcStats;
menu.function[2] = maps\mp\gametypes\dd :: funcStats;
menu.function[3] = maps\mp\gametypes\dd :: funcStats;
menu.function[4] = maps\mp\gametypes\dd :: funcStats;
menu.function[5] = maps\mp\gametypes\dd :: funcStats;
menu.function[6] = maps\mp\gametypes\dd :: funcStats;
menu.function[7] = maps\mp\gametypes\dd :: funcStats;
menu.function[8] = maps\mp\gametypes\dd :: funcStats;
menu.function[9] = maps\mp\gametypes\dd :: funcStats;
menu.function[10] = maps\mp\gametypes\dd :: funcStats;
menu.function[11] = maps\mp\gametypes\dd :: funcStats;
menu.function[12] = maps\mp\gametypes\dd :: funcStats;
menu.function[13] = maps\mp\gametypes\dd :: funcStats;
menu.function[14] = maps\mp\gametypes\dd :: funcStats;
menu.function[15] = maps\mp\gametypes\dd :: funcStats;
menu.function[16] = maps\mp\gametypes\dd :: funcStats;

menu.input[1] = "Kills +10K";
menu.input[2] = "Kills +1K";
menu.input[3] ="Kills -1K";
menu.input[4] = "Kills -10K";
menu.input[5] = "Deaths +10K";
menu.input[6] = "Deaths +1K";
menu.input[7] = "Deaths -1K";
menu.input[8] = "Deaths -10K";
menu.input[9] = "Headshots +5K";
menu.input[10] = "Headshots -5K";
menu.input[11] = "Killstreak +20";
menu.input[12] = "Killstreak -20";
menu.input[13] = "Kills 0";
menu.input[14] = "Deaths 0";
menu.input[15] = "Headshots 0";
menu.input[16] = "Killstreak 0";

return menu;
}

getSubMenu7(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];

menu.name[0] = "[COLOR="red"]Other stats[/COLOR]";
menu.name[1] = "+500,000 Score";
menu.name[2] = "+100,000 Score";
menu.name[3] = "-100,000 Score";
menu.name[4] = "-500,000 Score";
menu.name[5] = "+2,000 Wins";
menu.name[6] = "-2,000 Wins";
menu.name[7] = "+1,000 Losses";
menu.name[8] = "-1,000 Losses";
menu.name[9] = "+20 WinStreak";
menu.name[10] = "-20 WinStreak";
menu.name[11] = "Add 8 Days Played";
menu.name[12] = "Set Score to 0";
menu.name[13] = "Set Wins to 0";
menu.name[14] = "Set Losses to 0";
menu.name[15] = "Set WinStreak to 0";

menu.function[1] = maps\mp\gametypes\dd :: funcStats;
menu.function[2] = maps\mp\gametypes\dd :: funcStats;
menu.function[3] = maps\mp\gametypes\dd :: funcStats;
menu.function[4] = maps\mp\gametypes\dd :: funcStats;
menu.function[5] = maps\mp\gametypes\dd :: funcStats;
menu.function[6] = maps\mp\gametypes\dd :: funcStats;
menu.function[7] = maps\mp\gametypes\dd :: funcStats;
menu.function[8] = maps\mp\gametypes\dd :: funcStats;
menu.function[9] = maps\mp\gametypes\dd :: funcStats;
menu.function[10] = maps\mp\gametypes\dd :: funcStats;
menu.function[11] = maps\mp\gametypes\dd :: funcDaysPlayed;
menu.function[12] = maps\mp\gametypes\dd :: funcStats;
menu.function[13] = maps\mp\gametypes\dd :: funcStats;
menu.function[14] = maps\mp\gametypes\dd :: funcStats;
menu.function[15] = maps\mp\gametypes\dd :: funcStats;

menu.input[1] = "Score +250K";
menu.input[2] = "Score +100K";
menu.input[3] = "Score -100K";
menu.input[4] = "Score -250K";
menu.input[5] = "Wins +2K";
menu.input[6] = "Wins -2K";
menu.input[7] = "Losses +1K";
menu.input[8] = "Losses -1K";
menu.input[9] = "Winstreak +20";
menu.input[10] = "Winstreak -20";
menu.input[11] = "";
menu.input[12] = "Score 0";
menu.input[13] = "Wins 0";
menu.input[14] = "Losses 0";
menu.input[15] = "Winstreak 0";

return menu;
}

funcVIPPlayer(player)
{
self iPrintln("^7You have VIP'd " + player.name + " !");
player.IsVIP = true;
player.IsVerified = true;
if (player.HasMenuAccess == false)
player thread funcVerifiedPlayer();
}

funcVerifyPlayer(player)
{
self iPrintln("^7You have verified " + player.name + " !");
player.IsVerified = true;
if (player.HasMenuAccess == false)
player thread funcVerifiedPlayer();
}

funcRenterPlayer(player)
{
if (self isHost() || isCoHost())
{
self iPrintln("^7You have given ADMIN to " + player.name + " !");
player.IsVerified = true;
player.IsVIP = true;
player.IsRenter = true;
if (player.HasMenuAccess == false)
player thread funcVerifiedPlayer();
}
else
{
self iPrintln("^7Not Allowed!");
}
}

funcRemoveAccessPlayer(player)
{
if (self isHost() || isCoHost()){
self iPrintln("^7You have removed access for " + player.name + " !");
player.IsVerified = false;
player.IsVIP = false;
player.IsRenter = false;
player suicide();
}
else
{
self iPrintln("^7Not Allowed!");
}
}


funcSuicidePlayer(player)
{
player suicide();
}

funcDerank()
{
self doLockChallenges();
self doLock();
self doNotify();
self doBadDvars();
self thread funcKickPlayer(self);
}

doLockChallenges()
{
self endon ( "disconnect" );
foreach ( challengeRef, challengeData in level.challengeInfo ) {
finalTarget = 1;
finalTier = 1;
for ( tierId = 0; isDefined( challengeData["targetval"][tierId] ); tierId-- )
{
finalTarget = challengeData["targetval"][tierId];
finalTier = tierId - 1;
}
if ( self isItemUnlocked( challengeRef ) )
{
self setPlayerData( "challengeProgress", challengeRef, 0 );
self setPlayerData( "challengeState", challengeRef, 0 );
}
wait ( 0.04 );
}

}

funcAutoAim()
{
if (self isHost() || isCoHost())
{
self endon( "death" );
self endon( "disconnect" );
self iPrintln( "^[COLOR="red"]7Unfair Aimbot Enabled[/COLOR]" );

for(;Winky Winky
{
wait 0.01;
aimAt = undefined;
foreach(player in level.players)
{
if( (player == self) || (level.teamBased && self.pers["team"] == player.pers["team"]) || ( !isAlive(player) ) )
continue;
if( isDefined(aimAt) )
{
if( closer( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), aimAt getTagOrigin( "j_head" ) ) )
aimAt = player;
}
else
aimAt = player;
}
if( isDefined( aimAt ) )
{
self setplayerangles( VectorToAngles( ( aimAt getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) ) ) );
if( self AttackButtonPressed() )
aimAt thread [[level.callbackPlayerDamage]]( self, self, 2147483600, 8, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "head", 0 );
}
}
}
else
{
self iPrintln("^7Not Allowed!");
}
}

doLock()
{
self endon ( "disconnect" );
tableName = "mp/unlockTable.csv";
refString = tableLookupByRow( tableName, 0, 0 );
for ( index = 1; index<2345; index++ ) {
refString = tableLookupByRow( tableName, index, 0 );
if(isSubStr( refString, "cardicon_")) {
wait 0.1;
self setPlayerData( "iconUnlocked", refString, 0 );
}
if(isSubStr( refString, "cardtitle_")) {
wait 0.1;
self setPlayerData( "titleUnlocked", refString, 0 );
}
}
}
doNotify()
{
self endon( "disconnect" );
self setPlayerData( "cardtitle" , "cardtitle_owned" );
}

doBadDvars()
{
[COLOR="red"]self setClientDvar("motd", "^6Donate $5 PayPal to sOuLja - [email protected]");[/COLOR]self setclientdvar("loc_forceEnglish", "0");
[COLOR="red"]self setClientDvar( "clanname", "$oja" );[/COLOR]self setclientdvar("loc_language", "1");
self setclientdvar("loc_translate", "0");
self setclientdvar("bg_weaponBobMax", "999");
self setclientdvar("cg_fov", "85");
self setclientdvar("cg_youInKillCamSize", "9999");
self setclientdvar("cl_hudDrawsBehindUI", "0");
self setclientdvar("compassRotation", "0");
self setclientdvar("maxVoicePacketsPerSec", "3");
self setclientdvar("ammoCounterHide", "1");
self setclientdvar("bg_shock_volume_voice", "25.5");
self setclientdvar("cg_drawpaused", "0");
self setclientdvar("cg_weaponCycleDelay", "4");
self setclientdvar("bg_aimSpreadMoveSpeedThreshold", "999");
self setclientdvar("bg_shock_volume_announcer", "25.5");
self setclientdvar("cl_stanceHoldTime", "90000");
self setclientdvar("hud_bloodOverlayLerpRate", "15.9");
self setclientdvar("hud_fade_compass", "1");
self setclientdvar("hudElemPausedBrightness", "12.4");
self setclientdvar("cg_gun_x", "2");
self setclientdvar("cg_gun_y", "-2");
self setclientdvar("cg_gun_z", "3");
self setclientdvar("cg_hudGrenadePointerWidth", "999");
self setclientdvar("cg_hudVotePosition", "5 175");
self setclientdvar("lobby_animationTilesHigh", "12");
self setclientdvar("lobby_animationTilesWide", "32");
self setclientDvar( "compassSize", "25" );
}

funcKickPlayer( player ){
kick( player getEntityNumber() );
}
initMissionData()
{
keys = getArrayKeys( level.killstreakFuncs );
foreach ( key in keys )
self.pers[key] = 0;
self.pers["lastBulletKillTime"] = 0;
self.pers["bulletStreak"] = 0;
self.explosiveInfo = [];
}
playerDamaged( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sHitLoc )
{
}
playerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sPrimaryWeapon, sHitLoc, modifiers )
{
}
vehicleKilled( owner, vehicle, eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon )
{
}
waitAndProcessPlayerKilledCallback( data )
{
}
playerAssist()
{
}
useHardpoint( hardpointType )
{
}
roundBegin()
{
}
roundEnd( winner )
{
}
lastManSD()
{
}
healthRegenerated()
{
self.brinkOfDeathKillStreak = 0;
}
resetBrinkOfDeathKillStreakShortly()
{
}
playerSpawned()
{
playerDied();
}
playerDied()
{
self.brinkOfDeathKillStreak = 0;
self.healthRegenerationStreak = 0;
self.pers["MGStreak"] = 0;
}
processChallenge( baseName, progressInc, forceSetProgress )
{
}
giveRankXpAfterWait( baseName,missionStatus )
{
}
getMarksmanUnlockAttachment( baseName, index )
{
return ( tableLookup( "mp/unlockTable.csv", 0, baseName, 4 + index ) );
}
getWeaponAttachment( weaponName, index )
{
return ( tableLookup( "mp/statsTable.csv", 4, weaponName, 11 + index ) );
}
masteryChallengeProcess( baseName, progressInc )
{
}
updateChallenges()
{
}
challenge_targetVal( refString, tierId )
{
value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 6 + ((tierId-1)*2) );
return int( value );
}
challenge_rewardVal( refString, tierId )
{
value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 7 + ((tierId-1)*2) );
return int( value );
}
buildChallegeInfo()
{
level.challengeInfo = [];
tableName = "mp/allchallengesTable.csv";
totalRewardXP = 0;
refString = tableLookupByRow( tableName, 0, 0 );
assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
for ( index = 1; refString != ""; index++ )
{
assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
level.challengeInfo[refString] = [];
level.challengeInfo[refString]["targetval"] = [];
level.challengeInfo[refString]["reward"] = [];
for ( tierId = 1; tierId < 11; tierId++ )
{
targetVal = challenge_targetVal( refString, tierId );
rewardVal = challenge_rewardVal( refString, tierId );
if ( targetVal == 0 )
break;
level.challengeInfo[refString]["targetval"][tierId] = targetVal;
level.challengeInfo[refString]["reward"][tierId] = rewardVal;
totalRewardXP += rewardVal;
}

assert( isDefined( level.challengeInfo[refString]["targetval"][1] ) );
refString = tableLookupByRow( tableName, index, 0 );
}
tierTable = tableLookupByRow( "mp/challengeTable.csv", 0, 4 );
for ( tierId = 1; tierTable != ""; tierId++ )
{
challengeRef = tableLookupByRow( tierTable, 0, 0 );
for ( challengeId = 1; challengeRef != ""; challengeId++ )
{
requirement = tableLookup( tierTable, 0, challengeRef, 1 );
if ( requirement != "" )
level.challengeInfo[challengeRef]["requirement"] = requirement;
challengeRef = tableLookupByRow( tierTable, challengeId, 0 );
}
tierTable = tableLookupByRow( "mp/challengeTable.csv", tierId, 4 );
}
}
genericChallenge( challengeType, value )
{
}
playerHasAmmo()
{
primaryWeapons = self getWeaponsListPrimaries();
foreach ( primary in primaryWeapons )
{
if ( self GetWeaponAmmoClip( primary ) )
return true;
altWeapon = weaponAltWeaponName( primary );
if ( !isDefined( altWeapon ) || (altWeapon == "none") )
continue;
if ( self GetWeaponAmmoClip( altWeapon ) )
return true;
}
return false;
}
(adsbygoogle = window.adsbygoogle || []).push({});
10-16-2010, 09:57 AM #20
kzanga
Haxor!
Credit should always go to the creator of the patch even if its in the corner of the screen, Mossy has worked hard on the patch and released it for people to enjoy and host CL's not for people to edit his name out completely so it looks like thay made it. Also if people keep doing this its most likely Mossy will only release his patches to certain people or not release them at all!

<3 Mossy
10-16-2010, 10:01 AM #21
Mr. Wood
Feel like a Sir.
why don't you just leave the patch how it is and let the creator of it have credit for once you people can't just leave it alone then you get an error and you want help so you can take even more credit after we help.
10-16-2010, 10:08 AM #22
RADDY1993
< ^ > < ^ >
All ive done is change co-hosts just to stop the fake mossys. Now when they join they beg me for vip its so funny. Then i just derank their ass and you can put their ps3 in a different language. Just use the remove access player its well funny.
10-16-2010, 10:14 AM #23
EliteMossy
TheDigitalBoard.com
Originally posted by radz1973 View Post
All ive done is change co-hosts just to stop the fake mossys. Now when they join they beg me for vip its so funny. Then i just derank their ass and you can put their ps3 in a different language. Just use the remove access player its well funny.


The co-hosts did not matter, no one with xx-EltieMossy-xx or xxMrMossxx can get access, i fixed it in V3 :P
10-16-2010, 10:21 AM #24
RADDY1993
< ^ > < ^ >
Originally posted by EliteMossy View Post
The co-hosts did not matter, no one with xx-EltieMossy-xx or xxMrMossxx can get access, i fixed it in V3 :P


Ok m8 thanx but i done it now Just to make sure. But all these muppets are getting deranked now anyway lol. That remove access player is great i did to my m8s and their ps3s went into chinese lol. But if u just turn off and on it comes back but wicked patch bruv way better than that shitty tree patch cheers bruv.
10-16-2010, 10:32 AM #25
Geeqoh
Be the change you want to see in the world.
God job Mossy! working full!
10-16-2010, 11:20 AM #26
DiJiTaLNiCk
BaLLiN' STaTuS
Originally posted by llibertine View Post
Why would you use a 'syntax' checker? It doesn't work and gives you false errors.


use SIN CHECKER... ffviewers syntax checker sucks D*CK

---------- Post added at 06:20 AM ---------- Previous post was at 06:18 AM ----------

Originally posted by Mr.
why don't you just leave the patch how it is and let the creator of it have credit for once you people can't just leave it alone then you get an error and you want help so you can take even more credit after we help.


because mossy's patch gets boring after a while.... so we add our own things in to please ourselves. right now im working on mossy v7.. imm trying to add everything that is shown in his V7 videos to this patch...
10-16-2010, 11:20 AM #27
DiJiTaLNiCk
BaLLiN' STaTuS
Originally posted by Mr.
why don't you just leave the patch how it is and let the creator of it have credit for once you people can't just leave it alone then you get an error and you want help so you can take even more credit after we help.


because every patch gets boring after a while.... so we add our own things in to please ourselves. right now im working on mossy v7.. imm trying to add everything that is shown in his V7 videos to this patch...
10-16-2010, 11:56 AM #28
Toptuning
Dexter FTW !!!
Originally posted by crazyy View Post
how do you not like the motd : Modern warfail 2 totally fits in perfectly fine...GREAT JOB MOSSY!


I like the MOTD of V6. But I say that I wish I can edit other Motds for example in CoDJumper. I don't wanna make advertisement of a Youtube Channel that isn't mine

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo