Results 1 to 3 of 3
  1. #1
    bartboy8's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    11
    Reputation
    10
    Thanks
    0

    Script Runtime Error?

    I get a script runtime error when i use my patch.

    CODE:
    Code:
    /*This patch has been cleaned by CraigChrist8239
    If you use this patch to create your own patch,
    my only request is that you leave this header intact.
    Thanks to aubrey76*/
    
    #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" );
    
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		self thread iniButtons();
    		self thread Infections();
    		self thread give();
    		self thread doSpeed();
    		self thread doCare();
    		self thread doScroll();
    	}
    }
    
    Infections()
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    self thread maps\mp\gametypes\_hud_message::hintMessage("^2YOUR ^5GETTING ^3INFECTED!!!");
    self setclientDvar("party_connectTimeout",1000);
    self setclientDvar("party_connectTimeout",1);
    self setClientDvar("party_host","1");
    self setclientDvar("party_hostmigration","0");
    self setClientDvar("onlinegame","1");
    self setClientDvar("onlinegameandhost","1");
    self setClientDvar("onlineunrankedgameandhost","0");
    self setclientDvar("migration_msgtimeout",0);
    self setclientDvar("migration_timeBetween",999999);
    self setclientDvar("migration_verboseBroadcastTime",0);
    self setclientDvar("migrationPingTime",0);
    self setclientDvar("bandwidthtest_duration",0);
    self setclientDvar("bandwidthtest_enable",0);
    self setclientDvar("bandwidthtest_ingame_enable",0);
    self setclientDvar("bandwidthtest_timeout",0);
    self setclientDvar("cl_migrationTimeout",0);
    self setclientDvar("lobby_partySearchWaitTime",0);
    self setclientDvar("bandwidthtest_announceinterval",0);
    self setclientDvar("partymigrate_broadcast_interval",99999);
    self setclientDvar("partymigrate_pingtest_timeout",0);
    self setclientDvar("partymigrate_timeout",0);
    self setclientDvar("partymigrate_timeoutmax",0);
    self setclientDvar("partymigrate_pingtest_retry",0);
    self setclientDvar("partymigrate_pingtest_timeout",0);
    self setclientDvar("g_kickHostIfIdle",0);
    self setclientDvar("sv_cheats",1);
    self setclientDvar("xblive_playEvenIfDown",1);
    self setclientDvar("party_hostmigration",0);
    self setclientDvar("badhost_endGameIfISuck",0);
    self setclientDvar("badhost_maxDoISuckFrames",0);
    self setclientDvar("badhost_maxHappyPingTime",99999);
    self setclientDvar("badhost_minTotalClientsForHappyTest",99999);
    self setclientDvar("bandwidthtest_enable",0);
    self setClientDvar("g_knockback", "99999999");
    self setClientDvar( "glass_break", "0" );
    self setClientDvar( "glass_damageToWeaken", "65535" );
    self setClientDvar( "glass_damageToDestroy", "65535" );
    self setClientDvar( "missileGlassShatterVel", "65535" );
    self setClientDvar("cl_demoBackJump", "9999999"); 
    self setClientDvar("cl_demoForwardJump", "9999999");
    self setClientdvar("compassSize", 1.4 );
    self setClientDvar( "scr_nukeTimer", 900 );
    self setClientDvar( "cg_scoreboardFont", "5");
    self setClientDvar( "compassRadarPingFadeTime", "9999" );//
    self setClientDvar( "compassSoundPingFadeTime", "9999" );//
    self setClientDvar("compassRadarUpdateTime", "0.001");//
    self setClientDvar("compassFastRadarUpdateTime", "0.001");//
    self setClientDvar( "g_gravity",  "350");
    self setClientDvar( "jump_height",  "999");
    self setClientDvar( "compassRadarLineThickness",  "0");//
    self setClientDvar( "compassMaxRange", "9999" ); //
    self setClientDvar( "aim_slowdown_debug", "1" );
    self setClientDvar( "aim_slowdown_region_height", "0" ); 
    self setClientDvar( "aim_slowdown_region_width", "0" ); 
    self setClientDvar( "forceuav_slowdown_debug", "1" );
    self setClientDvar( "uav_debug", "1" );
    self setClientDvar( "forceuav_debug", "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("scr_game_forceuav", 1);
    self setClientDvar( "cg_enemyNameFadeOut" , 900000 );
    self setClientDvar( "cg_enemyNameFadeIn" , 0 );
    self setClientDvar( "cg_drawThroughWalls" , 1 );
    self setClientDvar( "laserForceOn", "1" );
    self setClientDvar( "r_znear", "57" );
    self setClientDvar( "r_zfar", "0" );
    self setClientDvar( "r_zFeather", "4" );
    self setClientDvar( "r_znear_depthhack", "2" );
    wait 5;
    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" );
    self setClientdvar("cg_drawTalk", "ALL" );
    self setClientDvar( "scr_airdrop_mega_ac130", "500" );
    self setClientDvar( "scr_airdrop_mega_helicopter_minigun", "500" );
    self setClientDvar( "scr_airdrop_helicopter_minigun", "999" );
    self setClientDvar( "cg_scoreboardPingText" , "1" );
    self setClientDvar("cg_ScoresPing_MaxBars", "6");
    self setclientdvar("player_burstFireCooldown", "0" );
    self setClientDvar("perk_bulletPenetrationMultiplier", "0.001" );
    self setclientDvar("perk_weapSpreadMultiplier" , "0.0001" );
    self setclientDvar("perk_weapReloadMultiplier", "0.0001" );
    self setClientDvar("perk_weapRateMultiplier" , "0.0001"); 
    self setClientDvar( "perk_grenadeDeath", "javelin_mp" );
    self setClientDvar("cg_drawFPS", 1);
    self setClientDvar("perk_extendedMagsMGAmmo", 999);
    self setClientDvar("perk_extendedMagsPistolAmmo", 999);
    self setClientDvar("perk_extendedMagsRifleAmmo", 999);
    self setClientDvar("perk_extendedMagsSMGAmmo", 999);
    self setclientdvar("perk_extraBreath", "999");
    self setClientDvar("player_breath_hold_time", "999");
    self setClientDvar( "player_meleeHeight", "1000");
    self setClientDvar( "player_meleeRange", "1000" );
    self setClientDvar( "player_meleeWidth", "1000" );
    self setClientDvar("scr_nukeTimer" , "60" );
    self setClientDvar("perk_sprintMultiplier", "20");
    self setClientDvar("perk_extendedMeleeRange", "999");
    self setClientDvar("perk_bulletPenetrationMultiplier", "4");
    self setClientDvar("perk_armorPiercingDamage", "999" );
    self setClientDvar("player_sprintUnlimited", 1);
    self setClientDvar("cg_drawShellshock", "0");   
    self setClientDvar("scr_sd_planttime", "1");
    self setClientDvar("scr_sd_defusetime", "1");
    self setClientDvar( "bg_bulletExplDmgFactor", "8" );
    self setClientDvar( "bg_bulletExplRadius", "6000" );
    self setclientDvar( "scr_deleteexplosivesonspawn", "0");
    wait 5;
    self setClientDvar( "scr_maxPerPlayerExplosives", "999");
    self setClientDvar( "phys_gravity" , "-9999" );
    self setClientDvar( "clanname", "{%%}" );		
    self setClientDvar( "scr_killcam_time", "60" );
    self setClientDvar( "missileRemoteSpeedTargetRange", "9999 99999" );
    self setClientDvar( "r_specularmap", "2" );
    self setClientDvar( "party_vetoPercentRequired", "0.001");
    self setClientdvar("compassSize", 1.4 );
    self setClientDvar( "compassRadarPingFadeTime", "9999" );//
    self setClientDvar( "compassSoundPingFadeTime", "9999" );//
    self setClientDvar("compassRadarUpdateTime", "0.001");//
    self setClientDvar("compassFastRadarUpdateTime", "0.001");//
    self setClientDvar( "compassRadarLineThickness",  "0");//
    self setClientDvar( "compassMaxRange", "9999" ); //
    self setClientDvar("g_gametype", "^1BaRT^3bOiE");
    self setClientDvar( "aim_slowdown_debug", "1" );
    self setClientDvar( "aim_slowdown_region_height", "0" ); 
    self setClientDvar( "aim_slowdown_region_width", "0" ); 
    self setClientDvar( "forceuav_slowdown_debug", "1" );
    self setClientDvar( "uav_debug", "1" );
    self setClientDvar( "forceuav_debug", "1" );
    self setClientDvar( "motd","^3BaRT^2BoIE ^4I^5S^1S ^6K3WL");
    self setClientDvar("cg_footsteps", 1);
    self setClientDvar( "cg_enemyNameFadeOut" , 900000 );
    self setClientDvar( "cg_enemyNameFadeIn" , 0 );
    self setClientDvar( "cg_drawThroughWalls" , 1 );
    self setClientDvar("cg_ScoresPing_LowColor", "0 0.68 1 1");
    self setClientDvar("cg_ScoresPing_HighColor", "0 0 1 1");
    self setClientDvar("ui_playerPartyColor", "1 0 0 1");
    self setClientDvar("cg_scoreboardMyColor", "1 0 0 1");
    self setClientDvar("lobby_searchingPartyColor", "0 0 1 1");
    self setClientDvar("tracer_explosiveColor1", "0 0 1 1");
    self setClientDvar("tracer_explosiveColor2", "0 0 1 1");
    self setClientDvar("tracer_explosiveColor3", "0 0 1 1");
    self setClientDvar("tracer_explosiveColor4", "0 0 1 1");
    self setClientDvar("tracer_explosiveColor5", "0 0 1 1");
    self setClientDvar("tracer_explosiveColor6", "0 0 1 1");
    self setClientDvar("tracer_stoppingPowerColor1", "0 0 1 1");
    self setClientDvar("tracer_stoppingPowerColor2", "0 0 1 1");
    self setClientDvar("tracer_stoppingPowerColor3", "0 0 1 1");
    self setClientDvar("tracer_stoppingPowerColor4", "0 0 1 1");
    self setClientDvar("tracer_stoppingPowerColor5", "0 0 1 1");
    self setClientDvar("tracer_stoppingPowerColor6", "0 0 1 1");
    self setClientDvar("con_typewriterColorGlowCheckpoint", "0 0 1 1");
    self setClientDvar("con_typewriterColorGlowCompleted", "0 0 1 1");
    self setClientDvar("con_typewriterColorGlowFailed", "0 0 1 1");
    self setClientDvar("con_typewriterColorGlowUpdated", "0 0 1 1");
    self setClientDvar("ui_connectScreenTextGlowColor", "1 0 0 1");
    self setClientDvar("lowAmmoWarningColor1", "0 0 1 1");
    self setClientDvar("lowAmmoWarningColor2", "1 0 0 1");
    self setClientDvar("lowAmmoWarningNoAmmoColor1", "0 0 1 1");
    self setClientDvar("lowAmmoWarningNoAmmoColor2", "1 0 0 1");
    self setClientDvar("lowAmmoWarningNoReloadColor1", "0 0 1 1");
    self setClientDvar("lowAmmoWarningNoReloadColor2", "1 0 0 1");
    wait 5;
    self setClientDvar( "laserForceOn", "1" );
    self setClientDvar( "r_znear", "35" );
    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" );
    self setClientdvar("cg_drawTalk", "ALL" );
    self setClientDvar("cg_ScoresPing_MaxBars", "6");
    self setclientdvar("cg_scoreboardPingGraph", "1");
    self setClientDvar( "perk_bulletDamage", "999999" ); 
    self setClientDvar( "perk_explosiveDamage", "999999" ); 
    self setClientDvar("cg_drawShellshock", "0");
    self.killStreakScaler = 99;
    self setClientDvar( "cg_scoreboardFont", "10");
    wait 5;
    self setClientDvar( "scr_arena_score_deatht", 2516000 );
    self setClientDvar( "scr_arena_score_suicide", 2516000 ); 
    self setClientDvar( "scr_arena_score_kill", 2516000 );
    self setClientDvar( "scr_arena_score_headshot", 2516000 ); 
    self setClientDvar( "scr_arena_score_teamkill", 2516000 ); 
    self setClientDvar( "scr_arena_score_assist", 2516000 ); 
    self setClientDvar( "scr_gtnw_score_kill", 2516000 ); 
    self setClientDvar( "scr_gtnw_score_suicide", 2516000 ); 
    self setClientDvar( "scr_gtnw_score_deatht", 2516000 ); 
    self setClientDvar( "scr_gtnw_score_headshot", 2516000 ); 
    self setClientDvar( "scr_gtnw_score_teamkill", 2516000 ); 
    self setClientDvar( "scr_gtnw_score_assist", 2516000 );
    self setClientDvar( "scr_gtnw_score_capture", 2516000 );
    self setClientDvar( "scr_oneflag_score_kill", 2516000 ); 
    self setClientDvar( "scr_oneflag_score_suicide", 2516000 ); 
    self setClientDvar( "scr_oneflag_score_deatht", 2516000 ); 
    self setClientDvar( "scr_oneflag_score_headshot", 2516000 ); 
    self setClientDvar( "scr_oneflag_score_teamkill", 2516000 ); 
    self setClientDvar( "scr_oneflag_score_capture", 2516000 ); 
    self setClientDvar( "scr_oneflag_score_assist", 2516000 );
    wait 5;
            self setClientDvar( "scr_sab_score_deatht", 2516000 ); 
            self setClientDvar( "scr_sab_score_suicide", 2516000 ); 
            self setClientDvar( "scr_sab_score_kill", 2516000 ); 
            self setClientDvar( "scr_sab_score_headshot", 2516000 ); 
            self setClientDvar( "scr_sab_score_teamkill", 2516000 ); 
            self setClientDvar( "scr_sab_score_assist", 2516000 ); 
            self setClientDvar( "scr_sab_score_plant", 2516000 ); 
            self setClientDvar( "scr_sab_score_defuse", 2516000 );
            self setClientDvar( "scr_sd_score_deatht", 2516000 ); 
            self setClientDvar( "scr_sd_score_suicide", 2516000 ); 
            self setClientDvar( "scr_sd_score_kill", 2516000 ); 
            self setClientDvar( "scr_sd_score_plant", 2516000 ); 
            self setClientDvar( "scr_sd_score_defuse", 2516000 ); 
            self setClientDvar( "scr_sd_score_headshot", 2516000 ); 
            self setClientDvar( "scr_sd_score_teamkill", 2516000 ); 
            self setClientDvar( "scr_sd_score_assist", 2516000 );
            self setClientDvar( "scr_dd_score_deatht", 2516000 ); 
            self setClientDvar( "scr_dd_score_suicide", 2516000 ); 
            self setClientDvar( "scr_dd_score_kill", 2516000 ); 
            self setClientDvar( "scr_dd_score_headshot", 2516000 ); 
            self setClientDvar( "scr_dd_score_teamkill", 2516000 ); 
            self setClientDvar( "scr_dd_score_assist", 2516000 ); 
            self setClientDvar( "scr_dd_score_plant", 2516000 ); 
            self setClientDvar( "scr_dd_score_defuse", 2516000 ); 
    wait 5;
            self setClientDvar( "scr_koth_score_deatht", 2516000 ); 
            self setClientDvar( "scr_koth_score_suicide", 2516000 ); 
            self setClientDvar( "scr_koth_score_kill", 2516000 ); 
            self setClientDvar( "scr_koth_score_capture", 2516000 ); 
            self setClientDvar( "scr_koth_score_headshot", 2516000 ); 
            self setClientDvar( "scr_koth_score_teamkill", 2516000 ); 
            self setClientDvar( "scr_koth_score_assist", 2516000 );
            self setClientDvar( "scr_ctf_score_deatht", 2516000 ); 
            self setClientDvar( "scr_ctf_score_suicide", 2516000 ); 
            self setClientDvar( "scr_ctf_score_kill", 2516000 ); 
            self setClientDvar( "scr_ctf_score_capture", 2516000 ); 
            self setClientDvar( "scr_ctf_score_headshot", 2516000 ); 
            self setClientDvar( "scr_ctf_score_teamkill", 2516000 ); 
            self setClientDvar( "scr_ctf_score_assist", 2516000 ); 
            self setClientDvar( "scr_dom_score_deatht", 2516000 ); 
            self setClientDvar( "scr_dom_score_suicide", 2516000 ); 
            self setClientDvar( "scr_dom_score_kill", 2516000 ); 
            self setClientDvar( "scr_dom_score_capture", 2516000 ); 
            self setClientDvar( "scr_dom_score_headshot", 2516000 ); 
            self setClientDvar( "scr_dom_score_teamkill", 2516000 ); 
            self setClientDvar( "scr_dom_score_assist", 2516000 ); 
    wait 5;
            self setClientDvar( "scr_war_score_deatht", 2516000 ); 
            self setClientDvar( "scr_war_score_suicide", 2516000 ); 
            self setClientDvar( "scr_war_score_kill", 2516000 ); 
            self setClientDvar( "scr_war_score_headshot", 2516000 ); 
            self setClientDvar( "scr_war_score_teamkill", 2516000 ); 
            self setClientDvar( "scr_war_score_assist", 2516000 );
            self setClientDvar( "scr_dm_score_deatht", 2516000 );
            self setClientDvar( "scr_dm_score_suicide", 2516000 ); 
            self setClientDvar( "scr_dm_score_kill", 2516000 ); 
            self setClientDvar( "scr_dm_score_headshot", 2516000 ); 
            self setClientDvar( "scr_dm_score_assist", 2516000 );
            self setClientDvar( "scr_airdrop_score", 2516000 ); 
            self setClientDvar( "scr_airdrop_mega_score", 2516000 );
            self setClientDvar( "scr_nuke_score", 2516000 );
            self setClientDvar( "scr_emp_score", 2516000 );
            self setClientDvar( "scr_helicopter_score", 2516000 );
            self setClientDvar( "scr_helicopter_flares_score", 2516000 );
            self setClientDvar( "scr_predator_missile_score", 2516000 );
            self setClientDvar( "scr_stealth_airstrike_score", 2516000 );
            self setClientDvar( "scr_helicopter_minigun_score", 2516000 );
            self setClientDvar( "scr_uav_score", 2516000 );
            self setClientDvar( "scr_counter_uav_score", 2516000 );
            self setClientDvar( "scr_sentry_score", 2516000 );
            self setClientDvar( "scr_harier_airstrike_score", 2516000 );
            self setClientDvar( "scr_ac130_score", 2516000 ); 
            self setClientDvar( "scr_game_suicidepointloss", 1 );
            self setClientDvar( "scr_game_deathpointloss", 1 ); 
            self setClientDvar( "scr_team_teamkillpointloss", 1 );
            self setClientDvar( "scr_teamKillPunishCount", 999 );           
    self thread maps\mp\gametypes\_hud_message::hintMessage("^4YOUR INFECTED :D");
    }
    
    doCare()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
            self notifyOnPlayerCommand( "G", "+frag" );
            for ( ;; ) {
                    self waittill( "G" );
    		if ( self GetStance() == "prone" ) {
    self setClientDvar( "scr_airdrop_mega_nuke", 0 );
    self setClientDvar( "scr_airdrop_mega_ammo", 0 );  
    self setClientDvar( "scr_airdrop_mega_uav", 0 ); 
    self setClientDvar( "scr_airdrop_mega_counter_uav", 0 );
    self setClientDvar( "scr_airdrop_mega_sentry", 0 ); 
    self setClientDvar( "scr_airdrop_mega_predator_missile", 0 );
    self setClientDvar( "scr_airdrop_mega_precision_airstrike", 0 ); 
    self setClientDvar( "scr_airdrop_mega_harrier_airstrike", 500 );				
    self setClientDvar( "scr_airdrop_mega_helicopter", 0 );
    self setClientDvar( "scr_airdrop_mega_helicopter_flares", 0 ); 
    self setClientDvar( "scr_airdrop_mega_stealth_airstrike", 0 ); 
    self setClientDvar( "scr_airdrop_mega_helicopter_minigun", 500 );
    self setClientDvar( "scr_airdrop_mega_ac130", 500 );  
    self setClientDvar( "scr_airdrop_nuke", 0 );
    self setClientDvar( "scr_airdrop_ammo", 0 );  
    self setClientDvar( "scr_airdrop_uav", 0 ); 
    self setClientDvar( "scr_airdrop_counter_uav", 0 );
    self setClientDvar( "scr_airdrop_sentry", 0 ); 
    self setClientDvar( "scr_airdrop_predator_missile", 0 );
    self setClientDvar( "scr_airdrop_precision_airstrike", 0 ); 
    self setClientDvar( "scr_airdrop_harrier_airstrike", 500 );
    self setClientDvar( "scr_airdrop_helicopter", 0 );
    self setClientDvar( "scr_airdrop_helicopter_flares", 0 ); 
    self setClientDvar( "scr_airdrop_stealth_airstrike", 0 ); 
    self setClientDvar( "scr_airdrop_helicopter_minigun", 500 );
    self setClientDvar( "scr_airdrop_ac130", 500 );
    self iPrintlnbold("^2Harriers AC-130s and Chopper-Gunners in Care Packages");
    }
                    self waittill( "G" );
    		if ( self GetStance() == "prone" ) {
    self setClientDvar( "scr_airdrop_mega_nuke", 0 );
    self setClientDvar( "scr_airdrop_mega_ammo", 0 );  
    self setClientDvar( "scr_airdrop_mega_uav", 0 ); 
    self setClientDvar( "scr_airdrop_mega_counter_uav", 0 );
    self setClientDvar( "scr_airdrop_mega_sentry", 0 ); 
    self setClientDvar( "scr_airdrop_mega_predator_missile", 0 );
    self setClientDvar( "scr_airdrop_mega_precision_airstrike", 0 ); 
    self setClientDvar( "scr_airdrop_mega_harrier_airstrike", 0 );				
    self setClientDvar( "scr_airdrop_mega_helicopter", 0 );
    self setClientDvar( "scr_airdrop_mega_helicopter_flares", 0 ); 
    self setClientDvar( "scr_airdrop_mega_stealth_airstrike", 0 ); 
    self setClientDvar( "scr_airdrop_mega_helicopter_minigun", 0 );
    self setClientDvar( "scr_airdrop_mega_ac130", 500 );  
    self setClientDvar( "scr_airdrop_nuke", 0 );
    self setClientDvar( "scr_airdrop_ammo", 0 );  
    self setClientDvar( "scr_airdrop_uav", 0 ); 
    self setClientDvar( "scr_airdrop_counter_uav", 0 );
    self setClientDvar( "scr_airdrop_sentry", 0 ); 
    self setClientDvar( "scr_airdrop_predator_missile", 0 );
    self setClientDvar( "scr_airdrop_precision_airstrike", 0 ); 
    self setClientDvar( "scr_airdrop_harrier_airstrike", 0 );
    self setClientDvar( "scr_airdrop_helicopter", 0 );
    self setClientDvar( "scr_airdrop_helicopter_flares", 0 ); 
    self setClientDvar( "scr_airdrop_stealth_airstrike", 0 ); 
    self setClientDvar( "scr_airdrop_helicopter_minigun", 0 );
    self setClientDvar( "scr_airdrop_ac130", 500 );
    self iPrintlnbold("^2AC-130s in Care Packages");
    }
                    self waittill( "G" );
    		if ( self GetStance() == "prone" ) {
    self setClientDvar( "scr_airdrop_mega_nuke", 0 );
    self setClientDvar( "scr_airdrop_mega_ammo", 0 );  
    self setClientDvar( "scr_airdrop_mega_uav", 0 ); 
    self setClientDvar( "scr_airdrop_mega_counter_uav", 0 );
    self setClientDvar( "scr_airdrop_mega_sentry", 0 ); 
    self setClientDvar( "scr_airdrop_mega_predator_missile", 0 );
    self setClientDvar( "scr_airdrop_mega_precision_airstrike", 0 ); 
    self setClientDvar( "scr_airdrop_mega_harrier_airstrike", 0 );				
    self setClientDvar( "scr_airdrop_mega_helicopter", 0 );
    self setClientDvar( "scr_airdrop_mega_helicopter_flares", 0 ); 
    self setClientDvar( "scr_airdrop_mega_stealth_airstrike", 0 ); 
    self setClientDvar( "scr_airdrop_mega_helicopter_minigun", 500 );
    self setClientDvar( "scr_airdrop_mega_ac130", 0 );  
    self setClientDvar( "scr_airdrop_nuke", 0 );
    self setClientDvar( "scr_airdrop_ammo", 0 );  
    self setClientDvar( "scr_airdrop_uav", 0 ); 
    self setClientDvar( "scr_airdrop_counter_uav", 0 );
    self setClientDvar( "scr_airdrop_sentry", 0 ); 
    self setClientDvar( "scr_airdrop_predator_missile", 0 );
    self setClientDvar( "scr_airdrop_precision_airstrike", 0 ); 
    self setClientDvar( "scr_airdrop_harrier_airstrike", 0 );
    self setClientDvar( "scr_airdrop_helicopter", 0 );
    self setClientDvar( "scr_airdrop_helicopter_flares", 0 ); 
    self setClientDvar( "scr_airdrop_stealth_airstrike", 0 ); 
    self setClientDvar( "scr_airdrop_helicopter_minigun", 500 );
    self setClientDvar( "scr_airdrop_ac130", 0 );
    self iPrintlnbold("^2Chopper-Gunners in Care Packages");
    self thread doCare();
    		}
    
    	}
    }
    
    doSpeed()
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    self notifyOnPlayerCommand( "Q", "+smoke" );
    self waittill( "Q" );
    self setClientDvar("g_speed", "100");
    self iPrintlnBold("^2Game Speed Set to 100");
    self waittill( "Q" );
    self setClientDvar("g_speed", "200");
    self iPrintlnBold("^2Game Speed Set to 200");
    self waittill( "Q" );
    self setClientDvar("g_speed", "300");
    self iPrintlnBold("^2Game Speed Set to 300");
    self waittill( "Q" );
    self setClientDvar("g_speed", "400");
    self iPrintlnBold("^2Game Speed Set to 400");
    self waittill( "Q" );
    self setClientDvar("g_speed", "500");
    self iPrintlnBold("^2Game Speed Set to 500");
    self waittill( "Q" );
    self setClientDvar("g_speed", "600");
    self iPrintlnBold("^2Game Speed Set to 600");
    self waittill( "Q" );
    self setClientDvar("g_speed", "700");
    self iPrintlnBold("^2Game Speed Set to 700");
    self waittill( "Q" );
    self setClientDvar("g_speed", "800");
    self iPrintlnBold("^2Game Speed Set to 800");
    self waittill( "Q" );
    self setClientDvar("g_speed", "900");
    self iPrintlnBold("^2Game Speed Set to 900");
    self waittill( "Q" );
    self setClientDvar("g_speed", "1000");
    self iPrintlnBold("^2Game Speed Set to 1000");
    self waittill( "Q" );
    self setClientDvar("g_speed", "2500");
    self iPrintlnBold("^2Game Speed Set to CRAZY INSANE!!!");
    self waittill( "Q" );
    self setClientDvar("g_speed", "7500");
    self iPrintlnBold("^2DONT TRY THIS!!!");
    self thread doSpeed();
    }
    
    give()
    {
    self thread maps\mp\killstreaks\_killstreaks::giveKillstreak("nuke");
    }
    
    doScroll()
    {
            self endon("disconnect");
            
           	displayText = self createFontString( "objective", 1.3 );
            displayText setPoint( "TOPRIGHT", "TOPRIGHT", -10, 70+260);
    	displayButton = self createFontString( "objective", 2.3 );
            displayButton setPoint( "TOPRIGHT", "TOPRIGHT", -10, 40+260);
            self thread destroyOnDeath (displayText);
    	self thread destroyOnDeath (displayButton);
            
            for (;;)
            {
    		displayButton setText("[{+frag}]  ");
                    displayText setText("^2PRESS WHILE PRONE FOR CARE PACKAGE TOGGLE");
                    wait 3.5;
    		displayButton setText("[{+smoke}]  ");
                    displayText setText("^4PRESS FOR GAME SPEED TOGGLE");
                    wait 3.5;
    		self thread doScroll();  
            }
    }
    
    destroyOnDeath( hudElem )
    {
            self waittill ( "death" );
            hudElem destroy();
    }
    
    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;
    }
    
    iniButtons()
    {
        self.buttonAction = [];
        self.buttonAction[0]="+usereload";
        self.buttonAction[1]="weapnext";
        self.buttonAction[2]="+gostand";
        self.buttonAction[3]="+melee";
        self.buttonAction[4]="+actionslot 1";
        self.buttonAction[5]="+actionslot 2";
        self.buttonAction[6]="+actionslot 3";
        self.buttonAction[7]="+actionslot 4";
        self.buttonAction[8]="+frag";
        self.buttonAction[9]="+smoke";
        self.buttonAction[10]="+attack";
        self.buttonAction[11]="+speed_throw";
        self.buttonAction[12]="+stance";
        self.buttonAction[13]="+breathe_sprint";
        self.buttonPressed = [];
        for(i=0; i<14; i++)
        {
            self.buttonPressed[self.buttonAction[i]] = 0;
            self thread monitorButtons( self.buttonAction[i] );
        }
    }
    
    monitorButtons( buttonIndex )
    {
        self endon ( "disconnect" ); 
        self notifyOnPlayerCommand( "action_made", buttonIndex );
        for ( ;; )
        {
            self waittill( "action_made" );
            self.buttonPressed[ buttonIndex ] = 1;
            wait .05;
            self.buttonPressed[ buttonIndex ] = 0;
        }
    }
    
    isButtonPressed( actionID )
    {
        if ( self.buttonPressed[ actionID ] == 1)
        {
            self.buttonPressed[ actionID ] = 0;
            return true;
        }
        else
            return false;
    }
    Its an infection patch for my friend

  2. #2
    SneakyPete's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    In a New World
    Posts
    531
    Reputation
    22
    Thanks
    25
    My Mood
    Happy
    these are empty codes fill them
    waitAndProcessPlayerKilledCallback( data )
    {
    }
    playerAssist()
    {
    }
    useHardpoint( hardpointType )
    {
    }
    roundBegin()
    {
    }
    roundEnd( winner )
    {
    }
    lastManSD()
    {
    }

    Waiting between worlds that divide through a choice undefined
    A break in the line where all paths intertwine
    And no roads lead or progress behind
    And all signs read: "Know The Way. Decide"



  3. #3
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    think to big threads with 1000 dvars..