More Managed Codes

Discussion in 'COD: Modern Warfare 2' started by TutorialBot, Jul 29, 2010.

  1. TutorialBot
    Offline

    TutorialBot Senior Member

    Hey guys i have not contributed that much to the site so thought i would start doing so soon, here is some more codes for you guys to add to your patch!

    Invisibility:
    Code:
    doHide()
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    self notifyOnPlayerCommand( "button_b", "+stance" );
    for ( ;; )
    {
    self waittill( "button_b" );
    if ( self GetStance() == "crouch" )
    {
    self hide();
    self iPrintlnBold( "Invisible" );
    }
    self waittill( "button_b" );
    if ( self GetStance() == "crouch" )
    {
    self show();
    self iPrintlnBold( "Visible" );
    }
    }
    }

    Amazing Super Aim Bot:
    Code:
    autoAim()
    {
    self endon( "death" );
    location = -1;
    self.fire = 0;
    self.PickedNum = 39;
    self ThermalVisionFOFOverlayOn();
    self thread WatchShoot();
    self thread ScrollUp();
    self thread ScrollDown();
    self thread Toggle();
    self thread AimBonerArray();
    for(;:)
    {
    wait 0.05;
    if(self.AutoAimOn == true)
    {
    for ( i=1; i < level.players.size; i++ )
    {
    if(closer(self.origin, level.players[i].origin, location) == true && level.players[i].team != self.team && IsAlive(level.players[i]) && level.players[i] getcurrentweapon() != "riotshield_mp")
    location = level.players[i] gettagorigin(self.AimBone[self.PickedNum]);
    else if(closer(self.origin, level.players[i].origin, location) == true && level.players[i].team != self.team && IsAlive(level.players[i]) && level.players[i] getcurrentweapon() == "riotshield_mp")
    location = level.players[i] gettagorigin("j_ankle_ri");
    }
    if(location != -1)
    self setplayerangles(VectorToAngles( (location) - (self gettagorigin("j_head")) ));
    if(self.fire == 1)
    MagicBullet(self getcurrentweapon(), location+(0,0,50), location, self);
    }
    if(self.PickedNum > 77)
    self.PickedNum = 77;
    if(self.PickedNum < 0)
    self.PickedNum = 0;
    location = -1;
    }
    }
    Toggle()
    {
    self endon("death");   	
    self notifyOnPlayerCommand( "button_back", "togglescores" );        
    self.combatHighOverlay = newClientHudElem( self );        
    self.combatHighOverlay.x = 0;        
    self.combatHighOverlay.y = 0;        
    self.combatHighOverlay.alignX = "left";        
    self.combatHighOverlay.alignY = "top";        
    self.combatHighOverlay.horzAlign = "fullscreen";        
    self.combatHighOverlay.vertAlign = "fullscreen";        
    for(;;)        
    {                
    self waittill("button_back");                
    self.AutoAimOn = 0;                
    self.combatHighOverlay FadeOverTime( 1 );                
    self.combatHighOverlay.alpha = 0;                
    self waittill("button_back");                
    self.AutoAimOn = 1;                
    self.combatHighOverlay setshader ( "combathigh_overlay", 640, 480 );                
    self.combatHighOverlay FadeOverTime( 1 );                
    self.combatHighOverlay.alpha = 1;                
    wait 1;                
    self.combatHighOverlay setshader ( "combathigh_overlay", 640, 480 );                
    self.combatHighOverlay FadeOverTime( 1 );                
    self.combatHighOverlay.alpha = 0;        
    }
    }
    ScrollUp()
    {
    self endon("death");
    self notifyOnPlayerCommand( "button_x", "+usereload " );
    self notifyOnPlayerCommand( "Up", "+actionslot 1" );
    for(;;)
    {
    self waittill( "button_x" );
    self waittill( "Up" );
    self.PickedNum++;
    }
    }
    ScrollDown()
    {
    self endon("death");
    self notifyOnPlayerCommand( "button_x", "+usereload " );
    self notifyOnPlayerCommand( "Down", "+actionslot 2" );
    for(;;)
    {
    self waittill( "button_x" );
    self waittill( "Down" );
    self.PickedNum--;
    }
    }
    AimBonerArray()
    {
    self endon("death");
    self.AimBone= [];
    self.AimBone[0] = "tag_origin";
    self.AimBone[1] = "j_mainroot";
    self.AimBone[2] = "pelvis";
    self.AimBone[3] = "j_hip_le";
    self.AimBone[4] = "j_hip_ri";
    self.AimBone[5] = "torso_stabilizer";
    self.AimBone[6] = "j_chin_skinroll";
    self.AimBone[7] = "back_low";
    self.AimBone[8] = "j_knee_le";
    self.AimBone[9] = "j_knee_ri";
    self.AimBone[10] = "back_mid";
    self.AimBone[11] = "j_ankle_le";
    self.AimBone[12] = "j_ankle_ri";
    self.AimBone[13] = "j_ball_le";
    self.AimBone[14] = "j_ball_ri";
    self.AimBone[15] = "j_spine4";
    self.AimBone[16] = "j_clavicle_le";
    self.AimBone[17] = "j_clavicle_ri";
    self.AimBone[18] = "j_neck";
    self.AimBone[19] = "j_head";
    self.AimBone[20] = "j_shoulder_le";
    self.AimBone[21] = "j_shoulder_ri";
    self.AimBone[22] = "j_elbow_bulge_le";
    self.AimBone[23] = "j_elbow_bulge_ri";
    self.AimBone[24] = "j_elbow_le";
    self.AimBone[25] = "j_elbow_ri";
    self.AimBone[26] = "j_shouldertwist_le";
    self.AimBone[27] = "j_shouldertwist_ri";
    self.AimBone[28] = "j_wrist_le";
    self.AimBone[29] = "j_wrist_ri";
    self.AimBone[30] = "j_wristtwist_le";
    self.AimBone[31] = "j_wristtwist_ri";
    self.AimBone[32] = "j_index_le_1";
    self.AimBone[33] = "j_index_ri_1";
    self.AimBone[34] = "j_mid_le_1";
    self.AimBone[35] = "j_mid_ri_1";
    self.AimBone[36] = "j_pinky_le_1";
    self.AimBone[37] = "j_pinky_ri_1";
    self.AimBone[38] = "j_ring_le_1";
    self.AimBone[39] = "j_ring_ri_1";
    self.AimBone[40] = "j_thumb_le_1";
    self.AimBone[41] = "j_thumb_ri_1";
    self.AimBone[42] = "tag_weapon_left";
    self.AimBone[43] = "tag_weapon_right";
    self.AimBone[44] = "j_index_le_2";
    self.AimBone[45] = "j_index_ri_2";
    self.AimBone[46] = "j_mid_le_2";
    self.AimBone[47] = "j_mid_ri_2";
    self.AimBone[48] = "j_pinky_le_2";
    self.AimBone[49] = "j_pinky_ri_2";
    self.AimBone[50] = "j_ring_le_2";
    self.AimBone[51] = "j_ring_ri_2";
    self.AimBone[52] = "j_thumb_le_2";
    self.AimBone[53] = "j_thumb_ri_2";
    self.AimBone[54] = "j_index_le_3";
    self.AimBone[55] = "j_index_ri_3";
    self.AimBone[56] = "j_mid_le_3";
    self.AimBone[57] = "j_mid_ri_3";
    self.AimBone[58] = "j_pinky_le_3";
    self.AimBone[59] = "j_pinky_ri_3";
    self.AimBone[60] = "j_ring_le_3";
    self.AimBone[61] = "j_ring_ri_3";
    self.AimBone[62] = "j_thumb_le_3";
    self.AimBone[63] = "j_thumb_ri_3";
    self.AimBone[64] = "j_spine4";
    self.AimBone[65] = "j_neck";
    self.AimBone[66] = "j_head";
    self.AimBone[67] = "j_cheek_le";
    self.AimBone[68] = "j_cheek_ri";
    self.AimBone[69] = "j_head_end";
    self.AimBone[70] = "j_jaw";
    self.AimBone[71] = "j_levator_le";
    self.AimBone[72] = "j_levator_ri";
    self.AimBone[73] = "j_lip_top_le";
    self.AimBone[74] = "j_lip_top_ri";
    self.AimBone[75] = "j_mouth_le";
    self.AimBone[76] = "j_mouth_ri";
    self.AimBone[77] = "tag_eye";
    Message2 = NewClientHudElem( self );
    Message2.alignX = "right";
    Message2.alignY = "top";
    Message2.horzAlign = "right";
    Message2.vertAlign = "top";
    Message2.foreground = true;
    Message2.fontScale = 1;
    Message2.font = "hudbig";
    Message2.alpha = 1;
    Message2.glow = 1;
    Message2.glowColor = ( 1, 0, 0 );
    Message2.glowAlpha = 1;
    self thread deleteondeath(Message2);
    Message2.color = ( 1.0, 1.0, 1.0 );
    for(;;)
    {
    if(self.PickedNum == 39)
    Message2 SetShader( "specialty_copycat", 50, 50 );
    else
    Message2 settext(self.AimBone[self.PickedNum]);
    wait 0.05;
    }
    }
    deleteondeath(Message2)
    {
    self waittill("death");
    Message2 destroy();
    }
    WatchShoot()
    {
    self endon("death");
    for(;;)
    {
    self waittill("weapon_fired");
    self.fire = 1;
    wait 0.05;
    self.fire = 0;
    }
    }[/color]
    
    
    Hidden Game Mods:
    [code]self setClientDvar( "ui_gametype" , "gtnw" );
    self setClientDvar( "ui_gametype" , "oneflag" );
    self setClientDvar( "ui_gametype" , "vip" );
    self setClientDvar( "ui_gametype" , "arena" );

    Tbag Disco:
    Code:
    doVision()
    
    {
    self notifyOnPlayerCommand( "button_lshldr", "+smoke" );
    for ( ;; )
    {
    self waittill( "button_lshldr" );
    self thread maps\mp\gametypes\_hud_message::hintMessage("^2Disco Disco Time :)");
    self iPrintlnBold("^1Put On Your Raveing Shoes!!");
    self VisionSetNakedForPlayer( "default_night_mp", 0.5 );
    self setstance( "crouch" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "thermal_mp", 0.5 );
    self setstance( "stand" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "icbm_sunrise4", 0.5 );
    self setstance( "crouch" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "grayscale", 0.5 );
    self setstance( "stand" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "sepia", 0.5 );
    self setstance( "crouch" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "cheat_chaplinnight", 0.5 );
    self setstance( "stand" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "cheat_contrast", 0.5 );
    self setstance( "crouch" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "cheat_invert", 0.5 );
    self setstance( "stand" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "armada_water", 0.5 );
    self setstance( "crouch" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "cheat_invert_contrast", 0.5 );
    self setstance( "stand" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "cobra_sunset3", 0.5 );
    self setstance( "crouch" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "contingency_thermal_inverted", 0.5 );
    self setstance( "stand" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "cliffhanger_heavy", 0.5 );
    self setstance( "crouch" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "mpnuke_aftermath", 0.5 );
    self setstance( "stand" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "missilecam", 0.5 );
    self setstance( "crouch" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "cheat_invert", 0.1 );
    self setstance( "stand" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "default", 0.1 );
    self setstance( "crouch" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "cheat_contrast", 0.1 );
    self setstance( "stand" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "default", 0.1 );
    self setstance( "crouch" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "cheat_contrast", 0.1 );
    self setstance( "stand" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "cheat_invert", 0.1 );
    self setstance( "crouch" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "default", 0.1 );
    self setstance( "stand" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "cheat_contrast", 0.1 );
    self setstance( "crouch" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "default", 0.1 );
    self setstance( "stand" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "cheat_contrast", 0.1 );
    self setstance( "crouch" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "cheat_invert", 0.1 );
    self setstance( "stand" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "default", 0.1 );
    self setstance( "crouch" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "cheat_contrast", 0.1 );
    self setstance( "stand" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "default", 0.1 );
    self setstance( "crouch" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "cheat_contrast", 0.1 );
    self setstance( "stand" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "cheat_invert", 0.1 );
    self setstance( "crouch" );
    wait ( 0.4 );
    self VisionSetNakedForPlayer( "default", 10 );
    self thread maps\mp\gametypes\_hud_message::hintMessage("^2Tbag Disco Ended");
    }
    }


    Projectile Mods:
    Code:
    PwnGunChange()
    {
    self endon ( "death" );
    self notifyOnPlayerCommand("dpad_up", "+actionslot 2");
    for(;;)
    {
    self waittill( "dpad_up" );
    self.pickedbullet = 0;
    self iprintlnbold("^2Afghan Trees");
    self waittill( "dpad_up" );
    self.pickedbullet = 1;
    self iprintlnbold("^2Favela Palm Trees");
    self waittill( "dpad_up" );
    self.pickedbullet = 2;
    self iprintlnbold("^2Sentry Gun");
    self waittill( "dpad_up" );
    self.pickedbullet = 3;
    self iprintlnbold("^2Harrier");
    }
    }
    
    ShootNukeBullets()
    {
    self endon("death");
    self.pickedbullet = 0;
    for(;;)
    {
    self waittill ( "weapon_fired" );
    vec = anglestoforward(self getPlayerAngles());
    end = (vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
    SPLOSIONlocation = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self)[ "position" ];
    if(self.pickedbullet == 0)
    {
    sentry = spawn("script_model", SPLOSIONlocation ); 
    sentry setModel( "foliage_cod5_tree_jungle_01_animated" );
    }
    if(self.pickedbullet == 1)
    {
    sentry = spawn("script_model", SPLOSIONlocation ); 
    sentry setModel( "foliage_tree_palm_bushy_3" );
    }
    if(self.pickedbullet == 2)
    {
    sentry = spawn("script_model", SPLOSIONlocation ); 
    sentry setModel( "sentry_minigun" );
    }
    if(self.pickedbullet == 3)
    {
    sentry = spawn("script_model", SPLOSIONlocation ); 
    sentry setModel( "vehicle_av8b_harrier_jet_mp" );
    }
    }
    }

    Different Coloured Ping And Ect..:
    Code:
    doTheme()
    {
    self setClientDvar("cg_ScoresPing_MedColor", "0 0.49 1 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");
    self setClientDvar( "cg_ScoresPing_MaxBars", "5" );
    }

    Pro Mod
    Code:
    self setClientDvar( "cg_fovscale" , "1.125" );
    self setClientDvar( "cg_fov" , "85" );
    None of these codes are mine, im just posting them to get people to know the codes more and to see what i have ready in my new patch :D so yeah guys ill post more soon, im going to post the 11th prestige soon with the Default_MP aswell so get ready for that aswell...
     

Share This Page