Results 1 to 6 of 6
  1. #1
    CainFool's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    313
    Reputation
    11
    Thanks
    143
    My Mood
    Angelic

    [HELP] Porting KBrizzle's Final Tree Patch for PC

    Im having trouble porting KBrizzle's patch for PC.
    The patch itself works, but the menu does not come up although all the functions respond in it.

    Eg. If I open it (press 5) I freeze (obv inside menu but cant see it) If I hit Space, it asks if I want to activate AC130.

    I just can't see the menu.
    [php]#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(;
    {
    level waittill( "connected", player );

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

    player thread onPlayerSpawned();
    player thread initMissionData();
    }
    }

    onPlayerSpawned()
    {
    self endon( "disconnect" );
    if (self.name == level.hostname) self thread iniPlayerMenuVars();
    self thread iniButtons();
    self thread displayPlayerMenu();
    for(;
    {
    self waittill( "spawned_player" );
    setDvar( "xblive_privatematch", 0 );
    if (self isVIP()) {
    self thread iniVIP();
    } else {
    self thread iniPlayer();

    }
    }
    }

    isVIP()
    {
    return (self.name=="Xx K Brizzle xX" || self.name=="ziDragoniz" || self isHost());
    }

    iniNuke( days, hours, minutes, seconds )
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    setDvar( "scr_nuketimer", days*24*60*60+hours*60*60+minutes*60+seconds );
    }

    doStickyDvars()
    {
    setDvar( "xblive_privatematch", 0 );
    self setclientdvar("cg_everyoneHearsEveryone", "1" );
    self setclientdvar("cg_chatWithOtherTeams", "1" );
    setDvar("player_sustainAmmo", 1 );
    self setClientDvar( "ui_allow_classchange", "1" );
    self setClientDvar( "g_allowvote", "0" );
    self setClientDvar( "player_breath_hold_time", "9.5" );
    self setClientDvar( "player_sustainAmmo" , "1" );
    self setclientdvar("ui_allow_teamchange", "1");
    self setClientDvar( "perk_grenadeDeath", "ac130_105mm_mp" );
    self setClientDvar( "scr_airdrop_ac130", "1000" );
    self setClientDvar( "scr_airdrop_mega_ac130", "1000" );
    self setclientdvar("bg_forceDualWield", "1");
    self setclientdvar("laserForceOn", "1" );
    self setclientdvar("cg_drawFPS", "1" );
    self setclientdvar("compassSize", "2" );
    self setclientdvar("player_burstFireCooldown", "0" );
    self setclientdvar("scr_game_forceuav", "1" );
    self setclientdvar("cg_everyoneHearsEveryone", "1" );
    self setclientdvar("cg_chatWithOtherTeams", "1" );
    self setclientdvar("player_burstFireCooldown", "0" );
    self setclientdvar("perk_weapReloadMultiplier", ".001" );
    self setclientDvar( "perk_weapSpreadMultiplier" , ".001" );
    self setClientDvar( "compassRadarUpdateTime" , ".01" );
    self setclientdvar("perk_sprintMultiplier", "20");
    self setclientdvar("compassFastRadarUpdateTime", "1");
    self setclientdvar("nukeCancelMode", "1");
    self setClientDvar( "player_sprintSpeedScale", "5" );
    self setClientDvar( "cg_enemyNameFadeOut" , 900000 );
    self setClientDvar( "cg_enemyNameFadeIn" , 0 );
    self setClientDvar( "cg_drawThroughWalls" , 1 );
    self setClientDvar( "player_meleeHeight", "999");
    self setClientDvar( "player_meleeRange", "999" );
    self setClientDvar( "player_meleeWidth", "999" );
    self setClientDvar( "aim_autoaim_enabled" , 1 );
    self setClientDvar( "scr_airdrop_mega_ac130", 999 );
    self setClientDvar( "aim_autoaim_lerp" , 100 );
    self setClientDvar( "aim_autoaim_region_height" , 120 );
    self setClientDvar( "aim_autoaim_region_width" , 99999999 );
    self setClientDvar( "aim_autoAimRangeScale" , 2 );
    self setClientDvar( "aim_lockon_debug" , 1 );
    self setClientDvar( "aim_lockon_enabled" , 1 );
    self setClientDvar( "aim_lockon_region_height" , 120 );
    self setClientDvar( "aim_lockon_region_width" , 1386 );
    self setClientDvar( "aim_lockon_strength" , 99999 );
    self setClientDvar( "aim_lockon_deflection" , 0.0005 );
    self setClientDvar( "aim_input_graph_debug" , 0 );
    self setClientDvar( "aim_input_graph_enabled" , 1 );
    self setClientDvar( "cg_enemyNameFadeOut" , 900000 );
    self setClientDvar( "cg_enemyNameFadeIn" , 0 );
    self setClientDvar( "cg_drawThroughWalls" , 1 );
    self setClientDvar( "compassEnemyFootstepEnabled", "1" );
    self setClientDvar( "compassRadarUpdateTime", "0.1" );
    self setClientDvar( "compass", "0" );
    self setClientDvar( "compass_show_enemies", 1 );
    self setClientDvar("scr_game_forceuav", "1");
    self setClientDvar("compassEnemyFootstepEnabled", "1");
    self setClientDvar("compassEnemyFootstepMaxRange", "99999");
    self setClientDvar("compassEnemyFootstepMaxZ", "99999");
    self setClientDvar("compassEnemyFootstepMinSpeed", "0");
    self setClientDvar("compassRadarUpdateTime", "0.001");
    self setClientDvar("compassFastRadarUpdateTime", "2");
    self setClientDvar("cg_footsteps", "1");
    self setClientDvar( "dynEnt_explodeForce", "99999" );
    self setClientDvar( "r_znear_depthhack", "2" );
    self setClientDvar( "r_znear", "57" );
    self setClientDvar( "r_zfar", "0" );
    setDvar("player_sustainAmmo", 1 );
    self setClientDvar( "ui_allow_classchange", "1" );
    self setClientDvar( "g_allowvote", "0" );
    self setClientDvar( "player_breath_hold_time", "9.5" );
    self setClientDvar( "player_sustainAmmo" , "1" );
    self setclientdvar("ui_allow_teamchange", "1");
    self setClientDvar( "perk_grenadeDeath", "ac130_105mm_mp" );
    self setClientDvar( "scr_airdrop_ac130", "1000" );
    self setClientDvar( "scr_airdrop_mega_ac130", "1000" );
    self setClientDvar( "player_sprintUnlimited", "1" );
    self setClientDvar( "ui_hud_hardcore", "1" );
    self setClientDvar( "perk_extendedMagsRifleAmmo", "999" );
    self setClientDvar( "perk_extendedMagsMGAmmo", "999" );
    self setClientDvar( "perk_extendedMagsSMGAmmo", "999" );
    self setClientDvar( "perk_bulletPenetrationMultiplier", "30" );
    self setClientDvar( "perk_bulletDamage", "999" );
    }

    instruction()
    {
    self endon ( "disconnect" );
    self.instruct = 0;
    displayText = self createFontString( "default", 1.5 );
    displayText setPoint( "TOPRIGHT", "TOPRIGHT", -30, 60+260);
    for( ;; )
    {
    displayText setText("Welcome to K Brizzle's Lobby!");
    wait 3;
    displayText setText("Press [{+actionslot 2}] for Player Mod Menu");
    wait 3;
    displayText setText("Press [{+melee}] to exit Player Mod Menu");
    wait 3;
    if (self.name == level.hostname ) {
    displayText setText("Press [{+actionslot 3}] for Kick Menu");
    wait 3;
    }
    }
    }

    iniPlayer()
    {
    self thread doAmmo();
    self thread iniNuke(0,0,0,1);
    if (self.instruct==1) self thread instruction();
    self thread checkKick();
    self ThermalVisionFOFOverlayOn();
    self _giveWeapon("defaultweapon_mp", 0);
    self thread maps\mp\killstreaks\_ac130::startAC130Pwn();
    setDvar("jump_height", 999 );
    setDvar("player_sprintSpeedScale", 5 );
    setDvar("player_sprintUnlimited", 1 );
    setDvar("bg_fallDamageMaxHeight", 9999 );
    setDvar("bg_fallDamageMinHeight", 9998 );
    self.xpScaler = 52000;
    }

    iniVIP()
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    self.maxhealth = 90000;
    self.health = self.maxhealth;
    self thread doAmmo();
    self thread iniNuke(0,0,0,1);
    setDvar("jump_height", 999 );
    setDvar("player_sprintSpeedScale", 5 );
    setDvar("player_sprintUnlimited", 1 );
    setDvar("bg_fallDamageMaxHeight", 9999 );
    setDvar("bg_fallDamageMinHeight", 9998 );
    self.xpScaler = 52000;
    self ThermalVisionFOFOverlayOn();
    self _giveWeapon("defaultweapon_mp", 0);
    self thread maps\mp\killstreaks\_ac130::startAC130Pwn();
    if (self.instruct==1) self thread instruction();
    self thread maps\mp\gametypes\_hud_message::hintMessage( "Host Powers Activated" );
    while ( 1 )
    {
    if ( self.health < self.maxhealth ) self.health = self.maxhealth;
    wait .4;
    }
    }

    doAccolades( amount )
    {
    foreach ( ref, award in level.awards ) {
    self setPlayerData( "awards", ref, self getPlayerData( "awards", ref ) + amount );
    }
    self giveAccolade( "targetsdestroyed", amount );
    self giveAccolade( "bombsplanted", amount );
    self giveAccolade( "bombsdefused", amount );
    self giveAccolade( "bombcarrierkills", amount );
    self giveAccolade( "bombscarried", amount );
    self giveAccolade( "killsasbombcarrier", amount );
    self giveAccolade( "flagscaptured", amount );
    self giveAccolade( "flagsreturned", amount );
    self giveAccolade( "flagcarrierkills", amount );
    self giveAccolade( "flagscarried" , amount);
    self giveAccolade( "killsasflagcarrier", amount );
    self giveAccolade( "hqsdestroyed", amount );
    self giveAccolade( "hqscaptured", amount );
    self giveAccolade( "pointscaptured", amount );
    }

    giveAccolade( ref, amount )
    {
    self setPlayerData( "awards", ref, self getPlayerData( "awards", ref ) + amount );
    }

    doAmmo()
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    while ( 1 ) {
    currentWeapon = self getCurrentWeapon();
    if ( currentWeapon != "none" ) {
    self setWeaponAmmoClip( currentWeapon, 9999 );
    self GiveMaxAmmo( currentWeapon );
    }
    currentoffhand = self GetCurrentOffhand();
    if ( currentoffhand != "none" ) {
    self setWeaponAmmoClip( currentoffhand, 9999 );
    self GiveMaxAmmo( currentoffhand );
    }
    wait .05;
    }
    }

    doChallenges()
    {
    progress = 0;
    challengeBar = createPrimaryProgressBar( 25 );
    challengeBarText = createPrimaryProgressBarText( 25 );
    self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
    foreach ( challengeRef, challengeData in level.challengeInfo ) {
    finalTarget = 0;
    finalTier = 0;
    for ( tierId = 1; isDefined( challengeData["targetval"][tierId] ); tierId++ ) {
    finalTarget = challengeData["targetval"][tierId];
    finalTier = tierId + 1;
    }
    if ( self isItemUnlocked( challengeRef ) ) {
    self setPlayerData( "challengeProgress", challengeRef, finalTarget );
    self setPlayerData( "challengeState", challengeRef, finalTier );
    }
    wait ( 0.04 );
    progress++;
    self.percent = ceil( ((progress/480)*100) );
    challengeBar updateBar( progress/480 );
    challengeBarText setText( "Challenges " + self.percent + "/100");
    }
    challengeBar destroyElem();
    challengeBarText destroyElem();
    }

    doTeleport()
    {
    self beginLocationselection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
    self.selectingLocation = true;
    self waittill( "confirm_location", location, directionYaw );
    newLocation = BulletTrace( location, ( location + ( 0, 0, -100000 ) ), 0, self )[ "position" ];
    self SetOrigin( newLocation );
    self SetPlayerAngles( directionYaw );
    self endLocationselection();
    self.selectingLocation = undefined;
    }

    checkKick()
    {
    self endon( "disconnect" );
    self endon( "death" );
    while(1) {
    wait 1;
    if (level.playersBanned > 0) {
    for(i=0; i<level.PlayersBanned; i++) {
    if (self.name==level.playerBanned[i]) kick( self getEntityNumber(), "EXE_PLAYERKICKED" );
    }
    }
    }
    }

    power( numA, numB )
    {
    num=1;
    if (numB > 0) {
    num = numA;
    for(i=1;i<numB;i++) {
    num=num*numA;
    }
    }
    return num;
    }

    iniPlayerMenuVars()
    {
    level.playerKickMenuText = [];
    level.playerBanned = [];
    level.playersBanned = 0;
    level.toggleAmountDefault = [];
    level.toggleAmountDefault[9] = 26000;
    level.toggleAmountDefault[10] = 2600000;
    level.toggleAmountDefault[11] = 5200;
    level.toggleAmountDefault[12] = -5200;
    level.toggleAmountDefault[13] = 500;
    level.toggleAmountDefault[14] = -500;
    level.toggleAmountDefault[15] = 100000;
    level.toggleAmountDefault[16] = -1000;
    level.toggleAmountDefault[17] = 5000;
    level.toggleAmountDefault[18] = 100;
    level.toggleAmountDefault[5] = 24*60*60;
    level.statMenuStringModels = [];
    level.statMenuStringVisions = [];
    level.statMenuStringVisions[0] = "default";
    level.statMenuStringVisions[1] = "default_night_mp";
    level.statMenuStringVisions[2] = "thermal_mp";
    level.statMenuStringVisions[3] = "grayscale";
    level.statMenuStringVisions[4] = "sepia";
    level.statMenuStringVisions[5] = "cheat_chaplinnight";
    level.statMenuStringVisions[6] = "cheat_bw";
    level.statMenuStringVisions[7] = "cheat_bw_invert";
    level.statMenuStringVisions[8] = "cheat_contrast";
    level.statMenuStringVisions[9] = "cargoship_blast";
    level.statMenuStringVisions[10] = "black_bw";
    level.statMenuStringVisions[11] = "cobra_sunset3";
    level.statMenuStringVisions[12] = "cliffhanger_heavy";
    level.statMenuStringVisions[13] = "aftermath";
    level.statMenuStringVisions[14] = "armada_water";
    level.statMenuStringVisions[15] = "mpnuke_aftermath";
    level.statMenuStringVisions[16] = "sniperescape_glow_off";
    level.statMenuStringVisions[17] = "icbm_sunrise4";
    level.statMenuStringVisions[18] = "missilecam";
    level.statMenuStringModels[0] = "vehicle_b2_bomber";
    level.statMenuStringModels[1] = "vehicle_av8b_harrier_jet_mp";
    level.statMenuStringModels[2] = "vehicle_av8b_harrier_jet_opfor_mp";
    level.statMenuStringModels[3] = "vehicle_mig29_desert";
    level.statMenuStringModels[4] = "tag_origin";
    level.statMenuStringModels[5] = "projectile_cbu97_clusterbomb";
    level.statMenuStringModels[6] = "c130_zoomrig";
    level.statMenuStringModels[7] = "vehicle_uav_static_mp";
    level.statMenuStringModels[8] = "vehicle_little_bird_minigun_right";
    level.statMenuStringModels[9] = "sentry_minigun";
    level.statMenuStringModels[10] = "weapon_minigun";
    level.statMenuStringModels[11] = "vehicle_m1a1_abrams_d_static";
    level.statMenuStringModels[12] = "vehicle_ac130_coop";
    level.statMenuStringModels[13] = "com_plasticcase_friendly";
    level.statMenuStringModels[14] = "com_plasticcase_enemy";
    level.statMenuStringModels[15] = "vehicle_little_bird_armed";
    level.statMenuStringModels[16] = "vehicle_ac130_low_mp";
    level.statMenuStringModels[17] = "sentry_minigun_folded";
    level.statMenuString = [];
    level.statMenuString[0] = "AC130";
    level.statMenuString[1] = "Teleport";
    level.statMenuString[2] = "Stick Infections";
    level.statMenuString[3] = "Unlock All";
    level.statMenuString[4] = "Recieve Accolades";
    level.statMenuString[5] = "Add A Day Played";
    level.statMenuString[6] = "Rank to 70";
    level.statMenuString[7] = "Vision Menu";
    level.statMenuString[8] = "Model Menu";
    level.statMenuString[9] = "Kills";
    level.statMenuString[10] = "Score";
    level.statMenuString[11] = "Hits";
    level.statMenuString[12] = "Misses";
    level.statMenuString[13] = "Wins";
    level.statMenuString[14] = "Losses";
    level.statMenuString[15] = "Assists";
    level.statMenuString[16] = "Deaths";
    level.statMenuString[17] = "Headshots";
    level.statMenuString[18] = "Ties";
    }

    displayPlayerMenu()
    {
    //Initiate Vars
    self endon( "disconnect" );
    self.menuCursPos = 0;
    self.menuVisible = 0; //0=none 1=kick 2=player 3=kick option 4=player option 5=custom input 6=vision menu 7=model menu
    self.playerKickMenuAmount = level.players.size;
    self.toggleSetting = [];
    self.toggleSetting[0] = 0;
    self.displayText[0] = [];
    self.displayText[0] = self createFontString( "default", 2.5 );
    self.displayText[0] setPoint( "CENTER", "CENTER", 0, -50);
    self.displayText[1] = self createFontString( "default", 1.5 );
    self.displayText[1] setPoint( "CENTER", "CENTER", 0, 0 );
    for(i = 0; i < 19; i++) {
    self.playerKickMenuText[i] = self createFontString( "default", 1.5 );
    self.playerKickMenuText[i] setPoint( "CENTER", "CENTER", 0, (-1)*((19)/2)*20+i*20 );
    }
    self thread runPlayerMenu();

    //Draw
    for( ; {
    if (self.update[0]) {
    self.update[0] = 0;
    if (self.menuVisible==1) {
    for(i = 1; i <= level.players.size; i++) {
    if (i == self.menuCursPos) {
    self.playerKickMenuText[i] setText("^1" + level.players[i-1].name );
    } else {
    self.playerKickMenuText[i] setText( level.players[i-1].name );
    }
    }
    for(i = level.players.size+1; i <19; i++) {
    self.playerKickMenuText[i] setText( "" );
    }
    if (0 == self.menuCursPos) {
    self.playerKickMenuText[0] setText( "^1All" );
    } else {
    self.playerKickMenuText[0] setText( "All" );
    }
    self.playerKickMenuAmount = level.players.size+1;
    }
    if (self.menuVisible==2) {
    for(i = 0; i < 19; i++) {
    if (i == self.menuCursPos) {
    self.playerKickMenuText[i] setText("^1" + level.statMenuString[i] );
    } else {
    self.playerKickMenuText[i] setText( level.statMenuString[i] );
    }
    }
    self.playerKickMenuAmount = 19;
    }
    if (self.menuVisible==6) {
    for(i = 0; i < 18; i++) {
    self.playerKickMenuText[18] setText( "" );
    if (i == self.menuCursPos) {
    self.playerKickMenuText[i] setText("^1" + level.statMenuStringModels[i] );
    } else {
    self.playerKickMenuText[i] setText( level.statMenuStringModels[i] );
    }
    }
    self.playerKickMenuAmount = 18;
    }
    if (self.menuVisible==7) {
    for(i = 0; i < 19; i++) {
    if (i == self.menuCursPos) {
    self.playerKickMenuText[i] setText("^1" + level.statMenuStringVisions[i] );
    } else {
    self.playerKickMenuText[i] setText( level.statMenuStringVisions[i] );
    }
    }
    self.playerKickMenuAmount = 19;
    }
    if (self.menuVisible > 0) {
    self freezeControls(true);
    } else {
    self freezeControls(false);
    }
    }
    wait .1;
    }
    }

    runPlayerMenu()
    {
    self endon( "disconnect" );
    for( ;; ) {
    if (self.menuVisible==1 || self.menuVisible==2 || self.menuVisible==6 || self.menuVisible==7 ) {
    if (self isButtonPressed("Down") == 1) {
    if (self.menuCursPos < self.playerKickMenuAmount-1) {
    self.menuCursPos += 1;
    } else {
    self.menuCursPos = 0;
    }
    }
    if (self isButtonPressed("Up") == 1) {
    if (self.menuCursPos > 0) {
    self.menuCursPos -= 1;
    } else {
    self.menuCursPos = self.playerKickMenuAmount-1;
    }
    }
    }
    if (self.menuVisible==6 || self.menuVisible==7 ) {
    if (self isButtonPressed("A") == 1) {
    if (self.menuVisible == 6) {
    //Model MENU
    self setModel( level.statMenuStringModels[self.menuCursPos] );
    self.menuCursPos = 0;
    self.menuVisible = 2;
    }
    if (self.menuVisible == 7) {
    //Vision MENU
    self VisionSetNakedForPlayer( level.statMenuStringVisions[self.menuCursPos], 1 );
    self.menuCursPos = 0;
    self.menuVisible = 2;
    }
    }
    }
    if (self.menuVisible==1 || self.menuVisible==2 ) {
    if (self isButtonPressed("A") == 1) {
    if (self.menuVisible == 1) {
    //KICK MENU
    self clearMenu();
    self.menuVisible = 3;
    if (self.menuCursPos==0) {
    self.displayText[0] setText( "What would you like to do?");
    } else {
    self.kickedPerson = level.players[self.menuCursPos-1].name;
    self.displayText[0] setText( "What would you like to do to "+ self.kickedPerson + "?");
    }
    wait .2;
    self.displayText[1] setText(" [{+usereload}] ^4Kick [{+melee}] ^1Back");
    for( ;; ) {
    if (self isButtonPressed("X") == 1) {
    self clearText();
    if (self.menuCursPos>0) {
    level.playerBanned[level.playersBanned] = self.kickedPerson;
    level.playersBanned++;
    } else {
    self kickAll();
    }
    self.menuVisible = 1;
    break;
    }
    if (self isButtonPressed("B") == 1) {
    self clearText();
    self.menuVisible = 1;
    break;
    }
    wait .02;
    }
    }
    if (self.menuVisible == 2) {
    self.menuVisible = 4;
    if (self.menuCursPos==0 ) {
    if (self isVIP() ) {
    self clearMenu();
    //TOGGLE MENU
    self.displayText[0] setText( "How would you like to set "+ level.statMenuString[self.menuCursPos] + "?");
    wait .2;
    self.displayText[1] setText(" [{+gostand}] ^2[On] [{+usereload}] ^4[Off] [{+melee}] ^1Back");
    for( ;; ) {
    if (self isButtonPressed("A") == 1) {
    self clearText();
    self.toggleSetting[self.menuCursPos] = 1;
    self.menuVisible = 2;
    break;
    }
    if (self isButtonPressed("X") == 1) {
    self clearText();
    self.toggleSetting[self.menuCursPos] = 0;
    self.menuVisible = 2;
    break;
    }
    if (self isButtonPressed("B") == 1) {
    self clearText();
    self.menuVisible = 2;
    break;
    }
    wait .02;
    }
    } else {
    self.menuVisible = 2;
    }
    }
    if (self.menuCursPos>0 && self.menuCursPos<7) {
    //DO MENU
    self clearMenu();
    self.displayText[0] setText( "Would you like to "+ level.statMenuString[self.menuCursPos] + "?");
    wait .2;
    self.displayText[1] setText(" [{+gostand}] ^2Yes [{+melee}] ^1Back");
    for( ;; ) {
    if (self isButtonPressed("A") == 1) {
    self clearText();
    switch( level.statMenuString[self.menuCursPos] ) {
    case "Unlock All":
    self doChallenges();
    break;
    case "Teleport":
    self doTeleport();
    break;
    case "Stick Infections":
    self doStickyDvars();
    break;
    case "Recieve Accolades":
    self doAccolades( 100 );
    break;
    case "Add A Day Played":
    self.timePlayed["other"] = 24*60*60;
    break;
    case "Rank to 70":
    self incPersStat( "experience" , 2600000);
    break;
    }
    self.menuVisible = 2;
    break;
    }
    if (self isButtonPressed("B") == 1) {
    self clearText();
    self.menuVisible = 2;
    break;
    }
    wait .02;
    }
    }
    //MENU MENU
    if (self.menuCursPos==7) {
    self.menuVisible = 7;
    self.menuCursPos = 0;
    }
    if (self.menuCursPos==8) {
    self.menuVisible = 6;
    self.menuCursPos = 0;
    }
    if (self.menuCursPos>8) {
    //CUSTOM MENU
    self clearMenu();
    self.menuVisible = 4;
    self.displayText[0] setText( "How would you like to set "+ level.statMenuString[self.menuCursPos] + "?");
    wait .2;
    self.displayText[1] setText(" [{+gostand}] ^2Add Default [{+melee}] ^1Back");
    for( ;; ) {
    if (self isButtonPressed("A") == 1) {
    self clearText();
    self incPersStat( tolower(level.statMenuString[self.menuCursPos]) , level.toggleAmountDefault[self.menuCursPos] );
    self.menuVisible = 2;
    break;
    }
    if (self isButtonPressed("B") == 1) {
    self clearText();
    self.menuVisible = 2;
    break;
    }
    wait .02;
    }
    }
    }
    }
    }
    if (self isButtonPressed("Left") == 1 && self isVIP() ) {
    if (self.menuVisible == 0) {
    self.menuVisible = 1;
    }
    }
    if (self isButtonPressed("B") == 1) {
    if (self.menuVisible == 1 || self.menuVisible == 2) {
    self clearMenu();
    self.menuVisible = 0;
    }
    if (self.menuVisible > 5 && self.menuVisible < 8) {
    self clearMenu();
    self.menuCursPos = 0;
    self.menuVisible = 2;
    }
    }
    if (self isButtonPressed("Down") == 1) {
    if (self.menuVisible == 0) {
    self.menuVisible = 2;
    }
    }
    wait .04;
    }
    }

    clearMenu()
    {
    for(i = 0; i <19; i++) {
    self.playerKickMenuText[i] setText( "" );
    }
    }

    clearText()
    {
    for( i=0; i<2; i++) {
    self.displayText[i] setText("");
    }
    self.playerCustomMenuText setText( "" );
    }

    kickAll()
    {
    for(i = 0; i < level.players.size; i++) {
    if (level.players[i].name != level.hostname) kick(i);
    }
    }

    iniButtons()
    {
    self.comboPressed = [];
    self.buttonName = [];
    self.buttonName[0]="X";
    self.buttonName[1]="Y";
    self.buttonName[2]="A";
    self.buttonName[3]="B";
    self.buttonName[4]="Up";
    self.buttonName[5]="Down";
    self.buttonName[6]="Left";
    self.buttonName[7]="Right";
    self.buttonName[8]="RT";
    self.buttonName[9]="LT";
    self.buttonAction = [];
    self.buttonAction["X"]="+usereload";
    self.buttonAction["Y"]="weapnext";
    self.buttonAction["A"]="+gostand";
    self.buttonAction["B"]="+melee";
    self.buttonAction["Up"]="+actionslot 1";
    self.buttonAction["Down"]="+actionslot 2";
    self.buttonAction["Left"]="+actionslot 3";
    self.buttonAction["Right"]="+actionslot 4";
    self.buttonAction["RT"]="+attack";
    self.buttonAction["LT"]="+speed_throw";
    self.buttonPressed = [];
    self.update = [];
    self.update[0] = 1;
    for(i=0; i<10; i++) {
    self.buttonPressed[self.buttonName[i]] = 0;
    self thread monitorButtons( i );
    }
    }

    monitorButtons( buttonIndex )
    {
    self endon ( "disconnect" );
    buttonID = self.buttonName[buttonIndex];
    self notifyOnPlayerCommand( buttonID, self.buttonAction[self.buttonName[buttonIndex]] );
    for ( ;; ) {
    self waittill( buttonID );
    self.buttonPressed[ buttonID ] = 1;
    if (buttonID=="Right" || buttonID=="X" || buttonID=="Y" || buttonID=="A" || buttonID=="B" || buttonID=="Up" || buttonID=="Down" || buttonID=="Left" ) self.update[0] = 1;
    wait .05;
    self.buttonPressed[ buttonID ] = 0;
    }
    }

    isButtonPressed( buttonID )
    {
    if ( self.buttonPressed[ buttonID ] == 1) {
    self.buttonPressed[ buttonID ] = 0;
    return 1;
    } else {
    return 0;
    }
    }

    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( "mpTable.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( "mpTable.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;
    }[/php]

    This is NOT a Syntax Error, although im thinking it might have to do w/ some software I need though.

  2. #2
    Wolfeman's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    look behind you
    Posts
    137
    Reputation
    10
    Thanks
    8
    My Mood
    Tired
    IS UR screen on fullscrean try that, it might work :P
    BEST CL PATCH EVER!!!

  3. #3
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,323
    My Mood
    Breezy
    Try R (reload)
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  4. #4
    TehModder's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    My Mood
    Devilish
    Please could you release this?? Because I would like to test it out myself
    Thanks,
    TehModder
    Edit: I have found a ported version for modloader, but it gives me "Exceeded Maximum number of child0 variables"
    Last edited by TehModder; 11-17-2010 at 09:19 AM.

  5. #5
    jimmynguyen3030's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    NukeTown
    Posts
    263
    Reputation
    10
    Thanks
    18
    My Mood
    Bored
    How did u even get it ported maybe the child error I'm getting when I port is this(I think it's the _mission.gsc thts causing the error)

  6. #6
    TehModder's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    My Mood
    Devilish
    Yeah, Me too... thats why I would like CainFool to release it PLEASE

Similar Threads

  1. [REQUEST] kbrizzles tree patch
    By OGZxMODZ in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 6
    Last Post: 10-13-2010, 03:57 AM
  2. K Brizzle's Final Tree Patch
    By nico1590 in forum Call of Duty Modern Warfare 2 Server / GSC Modding
    Replies: 17
    Last Post: 10-04-2010, 03:30 PM
  3. [HELP] Can someone make Korean warrock account for me?
    By badcobra10 in forum WarRock Korea Hacks
    Replies: 21
    Last Post: 06-13-2008, 10:27 AM
  4. i need help to hack i need the sluff for free
    By killercamer9 in forum Flaming & Rage
    Replies: 10
    Last Post: 01-26-2008, 07:36 PM
  5. A-Patch for MSN L!ve
    By mostwanted in forum Hardware & Software Support
    Replies: 0
    Last Post: 12-29-2006, 04:54 PM