What's new

Discussion [INFO]Need more room in Missions.gsc?

  • Thread starter shanegillespie2
  • Start date
  • Views 1,078
Status
Not open for further replies.
shanegillespie2

shanegillespie2

Enthusiast
Messages
399
Reaction score
281
Points
115
Sin$
0
Hi guys. I found that you are allowed to delete the below to add more room. It does not affect anything.

Code:
ch_kills( data, time ){        data.victim playerDied();                if ( !isDefined( data.attacker ) || !isPlayer( data.attacker ) )                return;                player = data.attacker;                time = data.time;                if ( player.pers["cur_kill_streak"] == 10 )                player processChallenge( "ch_fearless" );        if ( level.teamBased )        {                if ( level.teamCount[data.victim.pers["team"]] > 3 && player.killedPlayers.size >= level.teamCount[data.victim.pers["team"]] )                {                        player processChallenge( "ch_tangodown" );                                                maps\mp\_awards::addAwardWinner( "killedotherteam", player.clientid );                }                        if ( level.teamCount[data.victim.pers["team"]] > 3 && player.killedPlayersCurrent.size >= level.teamCount[data.victim.pers["team"]] )                {                        player processChallenge( "ch_extremecruelty" );                                        maps\mp\_awards::addAwardWinner( "killedotherteamonelife", player.clientid );                }        }        if ( isDefined( player.killedPlayers[data.victim.guid] ) && player.killedPlayers[data.victim.guid] == 5 )                player processChallenge( "ch_rival" );        if ( isdefined( player.tookWeaponFrom[ data.sWeapon ] ) )        {                if ( player.tookWeaponFrom[ data.sWeapon ] == data.victim && data.sMeansOfDeath != "MOD_MELEE" )                        player processChallenge( "ch_cruelty" );        }        oneLeftCount = 0;        secondaryCount = 0;        longshotCount = 0;        killsLast10s = 1;                killedPlayers[data.victim.name] = data.victim.name;        usedWeapons[data.sWeapon] = data.sWeapon;        uniqueKills = 1;        killstreakKills = [];                foreach ( killData in player.killsThisLife )        {                if ( isCACSecondaryWeapon( killData.sWeapon ) && killData.sMeansOfDeath != "MOD_MELEE" )                        secondaryCount++;                                if ( isDefined( killData.modifiers["longshot"] ) )                        longshotCount++;                if ( time - killData.time < 10000 )                        killsLast10s++;                         if ( isKillstreakWeapon( killData.sWeapon ) )                {                        if ( !isDefined( killstreakKills[ killData.sWeapon ] ) )                                killstreakKills[ killData.sWeapon ] = 0;                        killstreakKills[ killData.sWeapon ]++;                }                else                {                        if ( isDefined( level.oneLeftTime[player.team] ) && killData.time > level.oneLeftTime[player.team] )                                oneLeftCount++;                        if ( isDefined( killData.victim ) )                        {                                if ( !isDefined( killedPlayers[killData.victim.name] ) && !isDefined( usedWeapons[killData.sWeapon] ) && !isKillStreakWeapon( killData.sWeapon ) )                                        uniqueKills++;                                                killedPlayers[killData.victim.name] = killData.victim.name;                        }                                                usedWeapons[killData.sWeapon] = killData.sWeapon;                }        }        foreach ( weapon, killCount in killstreakKills )        {                if ( killCount >= 10 )                        player processChallenge( "ch_crabmeat" );        }        if ( uniqueKills == 3 )                player processChallenge( "ch_renaissance" );        if ( killsLast10s > 3 && level.teamCount[data.victim.team] <= killsLast10s )                player processChallenge( "ch_omnicide" );        if ( isCACSecondaryWeapon( data.sWeapon ) && secondaryCount == 2 )                player processChallenge( "ch_sidekick" );        if ( isDefined( data.modifiers["longshot"] ) && longshotCount == 2 )                player processChallenge( "ch_nbk" );                if ( isDefined( level.oneLeftTime[player.team] ) && oneLeftCount == 2 )                player processChallenge( "ch_enemyofthestate" );        if ( data.victim.score > 0 )        {                if ( level.teambased )                {                        victimteam = data.victim.pers["team"];                        if ( isdefined( victimteam ) && victimteam != player.pers["team"] )                        {                                if ( isHighestScoringPlayer( data.victim ) && level.players.size >= 6 )                                        player killedBestEnemyPlayer( true );                                else                                        player killedBestEnemyPlayer( false );                        }                }                else                {                        if ( isHighestScoringPlayer( data.victim ) && level.players.size >= 4 )                                player killedBestEnemyPlayer( true );                        else                                player killedBestEnemyPlayer( false );                }        }        if ( isDefined( data.modifiers["avenger"] ) )                player processChallenge( "ch_avenger" );                if ( isDefined( data.modifiers["buzzkill"] ) && data.modifiers["buzzkill"] >= 9 )                player processChallenge( "ch_thedenier" );        // Filter out killstreak weapons                if ( isKillstreakWeapon( data.sWeapon ) )                return;        if ( isDefined( data.modifiers["jackintheboxkill"] ) )                player processChallenge( "ch_jackinthebox" );        if ( isDefined( data.modifiers["clonekill"] ) )                player processChallenge( "ch_identitytheft" );        if ( isDefined( data.modifiers["cooking"] ) )                player processChallenge( "ch_no" );        if ( isDefined( player.finalKill ) )        {                player processChallenge( "ch_theedge" );                if ( isDefined( data.modifiers["revenge"] ) )                        player processChallenge( "ch_moneyshot" );                                if ( isDefined(player.inLastStand) && player.inLastStand )                {                        player processChallenge( "ch_lastresort" );                                     }        }        if ( player isAtBrinkOfDeath() )        {                player.brinkOfDeathKillStreak++;                if ( player.brinkOfDeathKillStreak >= 3 )                {                        player processChallenge( "ch_thebrink" );                }        }                if ( data.sMeansOfDeath == "MOD_PISTOL_BULLET" || data.sMeansOfDeath == "MOD_RIFLE_BULLET" )        {                weaponClass = getWeaponClass( data.sWeapon );                ch_bulletDamageCommon( data, player, time, weaponClass );                        if ( isMG( data.sWeapon ) )                {                        player MGKill();                }                else                {                        baseWeapon = getBaseWeaponName( data.sWeapon );                                                if ( isDefined( level.challengeInfo["ch_marksman_" + baseWeapon] ) )                                player processChallenge( "ch_marksman_" + baseWeapon );                        if ( isDefined( level.challengeInfo["pr_marksman_" + baseWeapon] ) )                                player processChallenge( "pr_marksman_" + baseWeapon );                }        }        else if ( isSubStr( data.sMeansOfDeath, "MOD_GRENADE" ) || isSubStr( data.sMeansOfDeath, "MOD_EXPLOSIVE" ) || isSubStr( data.sMeansOfDeath, "MOD_PROJECTILE" ) )        {                if ( player _hasPerk( "specialty_explosivedamage" ) )                        player processChallenge( "ch_dangerclose_pro" );                if ( isStrStart( data.sWeapon, "frag_grenade_short" ) && ( !isDefined( data.victim.explosiveInfo["throwbackKill"] ) || !data.victim.explosiveInfo["throwbackKill"] ) )                        player processChallenge( "ch_martyr" );                // this isdefined check should not be needed... find out where these mystery explosions are coming from                if ( isDefined( data.victim.explosiveInfo["damageTime"] ) && data.victim.explosiveInfo["damageTime"] == time )                {                        if ( data.sWeapon == "none" )                                data.sWeapon = data.victim.explosiveInfo["weapon"];                                                expId = time + "_" + data.victim.explosiveInfo["damageId"];                        if ( !isDefined( player.explosiveKills[expId] ) )                        {                                player.explosiveKills[expId] = 0;                        }                        player thread clearIDShortly( expId );                                                player.explosiveKills[expId]++;                                                baseWeapon = getBaseWeaponName( data.sWeapon );                                                if ( baseWeapon == "javelin" || baseWeapon == "m79" || baseWeapon == "at4" || baseWeapon == "rpg" )                        {                                if ( player.explosiveKills[expId] > 1 )                                {                                        player processChallenge( "pr_expert_" + baseWeapon );                                }                        }                                                       if ( baseWeapon == "gl" )                        {                                weaponAttachments = getWeaponAttachments( data.sweapon );                                player processChallenge( "ch_" + weaponAttachments[0] + "_gl" );                                if ( isDefined( level.challengeInfo["ch_marksman_" + weaponAttachments[0]] ) )                                        player processChallenge( "ch_marksman_" + weaponAttachments[0] );                                                                if ( player _hasPerk( "specialty_bling" ) )                                {                                        baseWeaponAttachments = getWeaponAttachments( data.sprimaryweapon );                                                    if ( baseWeaponAttachments.size == 2 && IsSubStr( data.sprimaryweapon, weaponAttachments[0] ) )                                                player processChallenge( "ch_bling_pro" );                                }                                                                if ( isDefined( level.challengeInfo["pr_marksman_" + weaponAttachments[0]] ) )                                        player processChallenge( "pr_marksman_" + weaponAttachments[0] );                        }                                                if ( isDefined( data.victim.explosiveInfo["stickKill"] ) && data.victim.explosiveInfo["stickKill"] )                        {                                if ( isDefined( data.modifiers["revenge"] ) )                                         player processChallenge( "ch_overdraft" );                                                              if ( isDefined( player.finalKill ) )                                        player processChallenge( "ch_stickman" );                                if ( player.explosiveKills[expId] > 1 )                                        player processChallenge( "ch_grouphug" );                        }                        if ( isDefined( data.victim.explosiveInfo["stickFriendlyKill"] ) && data.victim.explosiveInfo["stickFriendlyKill"] )                        {                                player processChallenge( "ch_resourceful" );                        }                                                if ( !isSubStr( baseWeapon, "stinger" ) )                        {                                if ( isDefined( level.challengeInfo["ch_marksman_" + baseWeapon] ) )                                        player processChallenge( "ch_marksman_" + baseWeapon );                                        if ( isDefined( level.challengeInfo["pr_marksman_" + baseWeapon] ) )                                        player processChallenge( "pr_marksman_" + baseWeapon );                        }                                                if ( isStrStart( data.sWeapon, "frag_" ) )                        {                                if ( player.explosiveKills[expId] > 1 )                                        player processChallenge( "ch_multifrag" );                                        if ( isDefined( data.modifiers["revenge"] ) )                                         player processChallenge( "ch_bangforbuck" );                                                                                            player processChallenge( "ch_grenadekill" );                                                                if ( data.victim.explosiveInfo["cookedKill"] )                                        player processChallenge( "ch_masterchef" );                                                                if ( data.victim.explosiveInfo["suicideGrenadeKill"] )                                        player processChallenge( "ch_miserylovescompany" );                                                                if ( data.victim.explosiveInfo["throwbackKill"] )                                        player processChallenge( "ch_hotpotato" );                        }                        else if ( isStrStart( data.sWeapon, "semtex_" ) )                        {                                if ( isDefined( data.modifiers["revenge"] ) )                                         player processChallenge( "ch_timeismoney" );                                                    }                        else if ( isStrStart( data.sWeapon, "c4_" ) )                        {                                if ( isDefined( data.modifiers["revenge"] ) )                                         player processChallenge( "ch_iamrich" );                                                                if ( player.explosiveKills[expId] > 1 )                                        player processChallenge( "ch_multic4" );                                if ( data.victim.explosiveInfo["returnToSender"] )                                        player processChallenge( "ch_returntosender" );                                                                                         if ( data.victim.explosiveInfo["counterKill"] )                                        player processChallenge( "ch_counterc4" );                                                                if ( data.victim.explosiveInfo["bulletPenetrationKill"] )                                        player processChallenge( "ch_howthe" );                                if ( data.victim.explosiveInfo["chainKill"] )                                        player processChallenge( "ch_dominos" );                                player processChallenge( "ch_c4shot" );                                                                if ( isDefined(player.inLastStand) && player.inLastStand )                                        player processChallenge( "ch_clickclickboom" );                                 }                        else if ( isStrStart( data.sWeapon, "claymore_" ) )                        {                                if ( isDefined( data.modifiers["revenge"] ) )                                         player processChallenge( "ch_breakbank" );                                                              player processChallenge( "ch_claymoreshot" );                                if ( player.explosiveKills[expId] > 1 )                                        player processChallenge( "ch_multiclaymore" );                                if ( data.victim.explosiveInfo["returnToSender"] )                                        player processChallenge( "ch_returntosender" );                                                         if ( data.victim.explosiveInfo["counterKill"] )                                        player processChallenge( "ch_counterclaymore" );                                                                if ( data.victim.explosiveInfo["bulletPenetrationKill"] )                                        player processChallenge( "ch_howthe" );                                if ( data.victim.explosiveInfo["chainKill"] )                                        player processChallenge( "ch_dominos" );                        }                        else if ( data.sWeapon == "explodable_barrel" )                        {                                //player processChallenge( "ch_redbarrelsurprise" );                        }                        else if ( data.sWeapon == "destructible_car" )                        {                                player processChallenge( "ch_carbomb" );                        }                        else if ( isStrStart( data.sWeapon, "rpg_" ) || isStrStart( data.sWeapon, "at4_" ) )                        {                                if ( player.explosiveKills[expId] > 1 )                                        player processChallenge( "ch_multirpg" );                        }                }        }        else if ( isSubStr( data.sMeansOfDeath, "MOD_MELEE" ) && !isSubStr( data.sweapon, "riotshield_mp" ) )        {                player endMGStreak();                                player processChallenge( "ch_knifevet" );                player.pers["meleeKillStreak"]++;                if ( player.pers["meleeKillStreak"] == 3 )                        player processChallenge( "ch_slasher" );                                if ( player _hasPerk( "specialty_extendedmelee" ) )                        player processChallenge( "ch_extendedmelee_pro" );                                if ( player _hasPerk( "specialty_heartbreaker" ) )                                player processChallenge( "ch_deadsilence_pro" );                                vAngles = data.victim.anglesOnDeath[1];                pAngles = player.anglesOnKill[1];                angleDiff = AngleClamp180( vAngles - pAngles );                if ( abs(angleDiff) < 30 )                {                        player processChallenge( "ch_backstabber" );                                                if ( isDefined( player.attackers ) )                        {                                foreach ( attacker in player.attackers )                                {                                        if ( attacker != data.victim )                                                continue;                                                                                        player processChallenge( "ch_neverforget" );                                        break;                                }                        }                }                if ( !player playerHasAmmo() )                        player processChallenge( "ch_survivor" );                                        if ( isDefined( player.infected ) )                        data.victim processChallenge( "ch_infected" );                if ( isDefined( data.victim.plague ) )                        player processChallenge( "ch_plague" );                                baseWeapon = getBaseWeaponName( data.sWeapon );                weaponAttachments = getWeaponAttachments( data.sweapon );                                if ( isDefined( weaponAttachments[0] ) && weaponAttachments[0] == "tactical" )                {                        if ( isDefined( level.challengeInfo["ch_marksman_" + baseWeapon] ) )                                player processChallenge( "ch_marksman_" + baseWeapon );                }        }        else if ( isSubStr( data.sMeansOfDeath, "MOD_MELEE" ) && isSubStr( data.sweapon, "riotshield_mp" ) )        {                player endMGStreak();                                player processChallenge( "ch_shieldvet" );                player.pers["shieldKillStreak"]++;                if ( player.pers["shieldKillStreak"] == 3 )                        player processChallenge( "ch_smasher" );                if ( isDefined( player.finalKill ) )                        player processChallenge( "ch_owned" );                                if ( player _hasPerk( "specialty_extendedmelee" ) )                        player processChallenge( "ch_extendedmelee_pro" );                                vAngles = data.victim.anglesOnDeath[1];                pAngles = player.anglesOnKill[1];                angleDiff = AngleClamp180( vAngles - pAngles );                if ( abs(angleDiff) < 30 )                        player processChallenge( "ch_backsmasher" );                    if ( !player playerHasAmmo() )                        player processChallenge( "ch_survivor" );        }        else if ( isSubStr( data.sMeansOfDeath, "MOD_IMPACT" ) )        {                if ( isStrStart( data.sWeapon, "frag_" ) )                        player processChallenge( "ch_thinkfast" );                else if ( isStrStart( data.sWeapon, "concussion_" ) )                        player processChallenge( "ch_thinkfastconcussion" );                else if ( isStrStart( data.sWeapon, "flash_" ) )                        player processChallenge( "ch_thinkfastflash" );                else if ( isStrStart( data.sWeapon, "gl_" ) )                        player processChallenge( "ch_ouch" );                if ( data.sWeapon == "throwingknife_mp" )                {                        if ( isDefined( data.modifiers["revenge"] ) )                                player processChallenge( "ch_atm" );                                            if ( time < player.flashEndTime )                                player processChallenge( "ch_didyouseethat" );                        if ( isDefined( player.finalKill ) )                                player processChallenge( "ch_unbelievable" );                                                        player processChallenge( "ch_carnie" );                                                if ( isDefined( data.victim.attackerData[player.guid].isPrimary ) )                                player processChallenge( "ch_its_personal" );                }                                baseWeapon = getBaseWeaponName( data.sWeapon );                        if ( baseWeapon == "gl" )                {                        weaponAttachments = getWeaponAttachments( data.sweapon );                                                if ( isDefined( level.challengeInfo["ch_" + weaponAttachments[0] + "_" + "gl"] ) )                                player processChallenge( "ch_" + weaponAttachments[0] + "_" + "gl" );                        if ( isDefined( level.challengeInfo["ch_marksman_" + weaponAttachments[0]] ) )                                player processChallenge( "ch_marksman_" + weaponAttachments[0] );                        if ( isDefined( level.challengeInfo["pr_marksman_" + weaponAttachments[0]] ) )                                player processChallenge( "pr_marksman_" + weaponAttachments[0] );                }        }        else if ( data.sMeansOfDeath == "MOD_HEAD_SHOT" )        {                weaponClass = getWeaponClass( data.sWeapon );                                ch_bulletDamageCommon( data, player, time, weaponClass );                        switch ( weaponClass )                {                        case "weapon_smg":                                player processChallenge( "ch_expert_smg" );                                break;                        case "weapon_lmg":                                player processChallenge( "ch_expert_lmg" );                                break;                        case "weapon_assault":                                player processChallenge( "ch_expert_assault" );                                break;                }                if ( isDefined( data.modifiers["revenge"] ) )                        player processChallenge( "ch_colorofmoney" );                if ( isMG( data.sWeapon ) )                {                        player MGKill();                }                else if ( isStrStart( data.sWeapon, "frag_" ) )                {                        player processChallenge( "ch_thinkfast" );                }                else if ( isStrStart( data.sWeapon, "concussion_" ) )                {                        player processChallenge( "ch_thinkfastconcussion" );                }                else if ( isStrStart( data.sWeapon, "flash_" ) )                {                        player processChallenge( "ch_thinkfastflash" );                }                else                {                        baseWeapon = getBaseWeaponName( data.sWeapon );                                                if ( isDefined( level.challengeInfo["ch_expert_" + baseWeapon] ) )                                player processChallenge( "ch_expert_" + baseWeapon );                        if ( isDefined( level.challengeInfo["pr_expert_" + baseWeapon] ) )                                player processChallenge( "pr_expert_" + baseWeapon );                        if ( isDefined( level.challengeInfo["ch_marksman_" + baseWeapon] ) )                                player processChallenge( "ch_marksman_" + baseWeapon );                        if ( isDefined( level.challengeInfo["pr_marksman_" + baseWeapon] ) )                                player processChallenge( "pr_marksman_" + baseWeapon );                }        }                        if ( data.sMeansOfDeath == "MOD_PISTOL_BULLET" || data.sMeansOfDeath == "MOD_RIFLE_BULLET" || data.sMeansOfDeath == "MOD_HEAD_SHOT" && !isKillstreakWeapon( data.sweapon ) )        {                // checks and processes all weapon attachment challenges                weaponAttachments = getWeaponAttachments( data.sweapon );                baseWeapon = getBaseWeaponName( data.sWeapon );                                foreach( weaponAttachment in weaponAttachments )                {                        switch ( weaponAttachment )                        {                                case "heartbeat":                                        player processChallenge( "ch_" + baseWeapon + "_" + weaponAttachment );                                        continue;                                case "silencer":                                        player processChallenge( "ch_" + baseWeapon + "_" + weaponAttachment );                                        continue;                                case "reflex":                                        if ( player playerAds() )                                                player processChallenge( "ch_" + baseWeapon + "_" + weaponAttachment );                                        continue;                                case "acog":                                        if ( player playerAds() )                                                player processChallenge( "ch_" + baseWeapon + "_" + weaponAttachment );                                        continue;                                case "rof":                                        player processChallenge( "ch_" + baseWeapon + "_" + weaponAttachment );                                        continue;                                case "fmj":                                        if ( data.victim.iDFlags & level.iDFLAGS_PENETRATION )                                                  player processChallenge( "ch_" + baseWeapon + "_" + weaponAttachment );                                        continue;                                default:                                        continue;                                                               }                }                                if ( player _hasPerk( "specialty_bulletaccuracy" ) && !player playerAds() )                        player processChallenge( "ch_bulletaccuracy_pro" );                                if ( distanceSquared( player.origin, data.victim.origin )< 65536 )// 256^2                 {                        if ( player _hasPerk( "specialty_heartbreaker" ) )                                player processChallenge( "ch_deadsilence_pro" );                                                if ( player _hasPerk( "specialty_localjammer" ) )                                player processChallenge( "ch_scrambler_pro" );                  }                                if ( player _hasPerk( "specialty_fastreload" ) )                        player processChallenge( "ch_sleightofhand_pro" );                                if ( player _hasPerk( "specialty_bling" ) && weaponAttachments.size == 2 )                        player processChallenge( "ch_bling_pro" );                                if ( player _hasPerk( "specialty_bulletdamage" ) )                        player processChallenge( "ch_stoppingpower_pro" );                                        if ( player _hasPerk( "specialty_pistoldeath" ) && isDefined(player.inLastStand) && player.inLastStand && !level.dieHardMode                && ( !isDefined(player.inFinalStand) || !player.inFinalStand ) && ( !isDefined(player.inC4Death) || !player.inC4Death ) )                {                        if ( isDefined( data.modifiers["revenge"] ) )                                player processChallenge( "ch_robinhood" );                                                        player processChallenge( "ch_laststand_pro" );                }                       }                if ( player _hasperk( "specialty_onemanarmy" ) || isDefined( player.OMAClassChanged ) && player.OMAClassChanged )                player processChallenge( "ch_onemanarmy_pro" );                if ( isDefined( data.victim.isPlanting ) && data.victim.isPlanting )                player processChallenge( "ch_bombplanter" );                    if ( isDefined( data.victim.isDefusing ) && data.victim.isDefusing )                player processChallenge( "ch_bombdefender" );        if ( isDefined( data.victim.isBombCarrier ) && data.victim.isBombCarrier && ( !isDefined( level.dd ) || !level.dd ) )                player processChallenge( "ch_bombdown" );        if ( isDefined( data.victim.wasTI ) && data.victim.wasTI )                player processChallenge( "ch_tacticaldeletion" );}ch_bulletDamageCommon( data, player, time, weaponClass ){        if ( !isMG( data.sWeapon ) )                player endMGStreak();                        if ( isKillstreakWeapon( data.sweapon ) )                return;                if ( player.pers["lastBulletKillTime"] == time )                player.pers["bulletStreak"]++;        else                player.pers["bulletStreak"] = 1;                player.pers["lastBulletKillTime"] = time;        if ( !data.victimOnGround )                player processChallenge( "ch_hardlanding" );                assert( data.attacker == player );        if ( !data.attackerOnGround )                player.pers["midairStreak"]++;                if ( player.pers["midairStreak"] == 2 )                player processChallenge( "ch_airborne" );                if ( time < data.victim.flashEndTime )                player processChallenge( "ch_flashbangvet" );                if ( time < player.flashEndTime )                player processChallenge( "ch_blindfire" );                if ( time < data.victim.concussionendTime )                player processChallenge( "ch_concussionvet" );                if ( time < player.concussionendTime )                player processChallenge( "ch_slowbutsure" );                        if ( player.pers["bulletStreak"] == 2  )        {                if ( isDefined( data.modifiers["headshot"] ) )                {                        foreach ( killData in player.killsThisLife )                        {                                if ( killData.time != time )                                        continue;                                                                        if ( !isDefined( data.modifiers["headshot"] ) )                                        continue;                                                                        player processChallenge( "ch_allpro" );                        }                }                if ( weaponClass == "weapon_sniper" )                        player processChallenge( "ch_collateraldamage" );        }                if ( weaponClass == "weapon_pistol" )        {                if ( isdefined( data.victim.attackerData ) && isdefined( data.victim.attackerData[player.guid] ) )                {                        if ( isDefined ( data.victim.attackerData[player.guid].isPrimary ) )                                player processChallenge( "ch_fastswap" );                }        }        else if ( weaponClass == "weapon_shotgun" )        {                if ( isSubStr( data.sWeapon, "ranger" ) && isDefined( player.bothBarrels ) )                {                        player processChallenge( "ch_bothbarrels" );                        player.bothBarrels = undefined;                }        }                if ( data.victim.iDFlagsTime == time )        {                if ( data.victim.iDFlags & level.iDFLAGS_PENETRATION )                        player processChallenge( "ch_xrayvision" );         }                if ( data.attackerInLastStand && !data.attacker _hasPerk( "specialty_finalstand" ) )        {                player processChallenge( "ch_laststandvet" );        }        else if ( data.attackerStance == "crouch" )        {                player processChallenge( "ch_crouchshot" );        }        else if ( data.attackerStance == "prone" )        {                player processChallenge( "ch_proneshot" );                if ( weaponClass == "weapon_sniper" )                {                        player processChallenge( "ch_invisible" );                }        }                if ( weaponClass == "weapon_sniper" )        {                if ( isDefined( data.modifiers["oneshotkill"] ) )                        player processChallenge( "ch_ghillie" );                }                if ( isSubStr( data.sWeapon, "_silencer_" ) )                player processChallenge( "ch_stealth" ); }

Replace it with this!
Code:
ch_kills( data, time ){        return;}ch_bulletDamageCommon( data, player, time, weaponClass ){        return;}
 
H

h23jdmlude

Enthusiast
Messages
85
Reaction score
4
Points
55
Sin$
7
Nice find. Its nice to see people sharing their findings
 
Z89

zackf89

Xbox Modification/Repair Master
Messages
1,574
Reaction score
893
Points
230
Sin$
0
u can delete all of the ch_ threads that are called at the top...off the top of my head i remember ch_vehicle ch_vehicle_kills ch_hardpoints and a few others
 
shanegillespie2

shanegillespie2

Enthusiast
Messages
399
Reaction score
281
Points
115
Sin$
0
u can delete all of the ch_ threads that are called at the top...off the top of my head i remember ch_vehicle ch_vehicle_kills ch_hardpoints and a few others


You cant delete them because it makes calls to them. So you will get a syntax error. You have to delete the body and put return;
 
Z89

zackf89

Xbox Modification/Repair Master
Messages
1,574
Reaction score
893
Points
230
Sin$
0
You cant delete them because it makes calls to them. So you will get a syntax error. You have to delete the body and put return;

yes u can...just delete the calls at the top
 
Z89

zackf89

Xbox Modification/Repair Master
Messages
1,574
Reaction score
893
Points
230
Sin$
0
this is the right way to do it....

Code:
init()
{
precacheString(&"MP_CHALLENGE_COMPLETED");

if ( !mayProcessChallenges() )
return;

level.missionCallbacks = [];

registerMissionCallback( "playerKilled", ::ch_kills );	//delete this & its thread below
registerMissionCallback( "playerKilled", ::ch_vehicle_kills ); //delete this & its thread below
registerMissionCallback( "playerHardpoint", ::ch_hardpoints );//delete this & its thread below
registerMissionCallback( "playerAssist", ::ch_assists );	//delete this & its thread below
registerMissionCallback( "roundEnd", ::ch_roundwin );//delete this & its thread below
registerMissionCallback( "roundEnd", ::ch_roundplayed );//delete this & its thread below
registerMissionCallback( "vehicleKilled", ::ch_vehicle_killed );//delete this & its thread below

level thread createPerkMap();

level thread onPlayerConnect();
}
 
IMonarchy

IMonarchy

Enthusiast
Messages
458
Reaction score
145
Points
125
Sin$
0
I did this and Now I'm getting a unknown function error... Not POSITIVE it is related but I usually get unknown functions' due to modifying / deleting parts of patches. Then again this one is bigger than the rest.
 
shanegillespie2

shanegillespie2

Enthusiast
Messages
399
Reaction score
281
Points
115
Sin$
0
I did this and Now I'm getting a unknown function error... Not POSITIVE it is related but I usually get unknown functions' due to modifying / deleting parts of patches. Then again this one is bigger than the rest.


I know my way works i have not tested zacks so. I dont know.
 
Z89

zackf89

Xbox Modification/Repair Master
Messages
1,574
Reaction score
893
Points
230
Sin$
0
it works ive done it in all my patches
 
CraigChrist8239

CraigChrist8239

VIP
VIP
Hardened Veteran Experienced Veteran Grizzled Veteran
Messages
2,641
Reaction score
3,924
Points
660
Sin$
-7
You can actually delete about 98% of the stuff in the entire patch_mp.ff file. I'm working on a patch that has as much removed as possible, hopefully will be released tomorrow.
 
shanegillespie2

shanegillespie2

Enthusiast
Messages
399
Reaction score
281
Points
115
Sin$
0
You can actually delete about 98% of the stuff in the entire patch_mp.ff file. I'm working on a patch that has as much removed as possible, hopefully will be released tomorrow.


Thats cool i didnt know. No one had posted it so i figured i would post my findings!
 
Status
Not open for further replies.
Top Bottom
Login
Register