Results 1 to 5 of 5
  1. #1
    krijnrien's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    7
    My Mood
    Goofy

    custom airstrike edit help

    hi guys or girls

    first i'm explaining what i have
    i got this code from 4funplayin, the mother of all bombs code!
    Code:
    useMOAB()
    {
        self endon ( "disconnect" );
    self notifyOnPlayerCommand("N", "+actionslot 1");
            self waittill("N"); 
            self beginLocationSelection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
            self.selectingLocation = true;
            self waittill( "confirm_location", location, directionYaw );
            NapalmLoc = BulletTrace( location, ( location + ( 0, 0, -100000 ) ), 0, self )[ "position" ];
            NapalmLoc += (0, 0, 0); // fixes the gay low ground glitch
    	// above should be 0,0,400
    
    
    
    	if(getdvar("mapname")=="mp_crash")
    	  NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    
    	if(getdvar("mapname")=="mp_strike")
    	  NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    
    	if(getdvar("mapname")=="mp_overgrown")
    	  NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    
    	if(getdvar("mapname")=="mp_vacant")
    	  NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    
    	if(getdvar("mapname")=="mp_rust")
    	  NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    	 
    	if(getdvar("mapname")=="mp_boneyard")
    	 NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    
    	if(getdvar("mapname")=="mp_terminal")
    	  NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    	 
    	if(getdvar("mapname")=="mp_subbase")
    	 NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    	 
    	if(getdvar("mapname")=="mp_derail")
    	  NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    	 
    	if(getdvar("mapname")=="mp_favela")
    	 NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    	 
    	if(getdvar("mapname")=="mp_highrise")
    	  NapalmLoc += (0, 0, 2800); // fixes the gay low ground glitch, default is 400
    	 
    	if(getdvar("mapname")=="mp_invasion")
    	 NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    	 
    	if(getdvar("mapname")=="mp_checkpoint")
    	 NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    	 
    	if(getdvar("mapname")=="mp_compact")
    	  NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    	 
    	if(getdvar("mapname")=="mp_afghan")
    	 NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    	 
    	if(getdvar("mapname")=="mp_estate")
    	 NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    	 
    	if(getdvar("mapname")=="mp_rundown")
    	 NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    	 
    	if(getdvar("mapname")=="mp_underpass")
    	  NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400	
    
    	if(getdvar("mapname")=="mp_brecourt")
    	 NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    
    	if(getdvar("mapname")=="mp_quarry")
    	 NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400
    
    	if(getdvar("mapname")=="mp_nightshift")
    	  NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch, default is 400fh
    
            self endLocationSelection();
            self.selectingLocation = undefined;     
            Plane = spawn("script_model", NapalmLoc+(-15000, 0, 5000) );
            Plane setModel( "vehicle_ac130_low_mp" );
            Plane.angles = (0, 0, 0);
            Plane playLoopSound( "veh_ac130_dist_loop" );
            Plane moveTo( NapalmLoc + (15000, 0, 5000), 40 );// 20 was 40
           // wait 20;
    
    
    
    //moveleft
    //moveright
    //forward
    //backward??
    
    self notifyOnPlayerCommand("D", "+moveright");
    self waittill("D"); 
    Plane moveTo( NapalmLoc + (15000, -16000, 5000), 40 );
    
    
    self notifyOnPlayerCommand("A", "+moveleft");
    self waittill("A"); 
    Plane moveTo( NapalmLoc + (15000, 16000, 5000), 40 );
    
    self notifyOnPlayerCommand("D", "+moveright");
    self waittill("D"); 
    Plane moveTo( NapalmLoc + (15000, -16000, 5000), 40 );
    
    
    self notifyOnPlayerCommand("A", "+moveleft");
    self waittill("A"); 
    Plane moveTo( NapalmLoc + (15000, 16000, 5000), 40 );
    
    self notifyOnPlayerCommand("D", "+moveright");
    self waittill("D"); 
    Plane moveTo( NapalmLoc + (15000, -16000, 5000), 40 );
    
    
    self notifyOnPlayerCommand("A", "+moveleft");
    self waittill("A"); 
    Plane moveTo( NapalmLoc + (15000, 16000, 5000), 40 );
    
    self notifyOnPlayerCommand("D", "+moveright");
    self waittill("D"); 
    Plane moveTo( NapalmLoc + (15000, -16000, 5000), 40 );
    
    
    self notifyOnPlayerCommand("A", "+moveleft");
    self waittill("A"); 
    Plane moveTo( NapalmLoc + (15000, 16000, 5000), 40 );
    
    self notifyOnPlayerCommand("D", "+moveright");
    self waittill("D"); 
    Plane moveTo( NapalmLoc + (15000, -16000, 5000), 40 );
    
    
    self notifyOnPlayerCommand("A", "+moveleft");
    self waittill("A"); 
    Plane moveTo( NapalmLoc + (15000, 16000, 5000), 40 );
    
    self notifyOnPlayerCommand("D", "+moveright");
    self waittill("D"); 
    Plane moveTo( NapalmLoc + (15000, -16000, 5000), 40 );
    
    
    self notifyOnPlayerCommand("A", "+moveleft");
    self waittill("A"); 
    Plane moveTo( NapalmLoc + (15000, 16000, 5000), 40 );
    
    self notifyOnPlayerCommand("D", "+moveright");
    self waittill("D"); 
    Plane moveTo( NapalmLoc + (15000, -16000, 5000), 40 );
    
    
    self notifyOnPlayerCommand("A", "+moveleft");
    self waittill("A"); 
    Plane moveTo( NapalmLoc + (15000, 16000, 5000), 40 );
    
    self notifyOnPlayerCommand("D", "+moveright");
    self waittill("D"); 
    Plane moveTo( NapalmLoc + (15000, -16000, 5000), 40 );
    
    
    self notifyOnPlayerCommand("A", "+moveleft");
    self waittill("A"); 
    Plane moveTo( NapalmLoc + (15000, 16000, 5000), 40 );
    
    self notifyOnPlayerCommand("D", "+moveright");
    self waittill("D"); 
    Plane moveTo( NapalmLoc + (15000, -16000, 5000), 40 );
    
    
    self notifyOnPlayerCommand("A", "+moveleft");
    self waittill("A"); 
    Plane moveTo( NapalmLoc + (15000, 16000, 5000), 40 );
    
    
    
    
    
    
    
    
    
    
    
    
    
    // 15000= naar voren!
    // 16000= de kant waar c130 neertoe gaat, gaat ie naar links
    // -16000= naar rechts 
    //--> als die zo gaat dan naar boven!
    //40= naar achter of stoppen
    // 5000= height of the plane
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    self notifyOnPlayerCommand("N", "+actionslot 1");
            self waittill("N"); 
            MOAB = MagicBullet( "ac130_105mm_mp", Plane.origin, NapalmLoc, self );
    self notifyOnPlayerCommand("N", "+actionslot 1");
            self waittill("N"); 
            MOAB = MagicBullet( "ac130_105mm_mp", Plane.origin, NapalmLoc, self );
    self notifyOnPlayerCommand("N", "+actionslot1");
            self waittill("N"); 
            MOAB = MagicBullet( "ac130_105mm_mp", Plane.origin, NapalmLoc, self );
    
    
    
    
    
    
    
            wait 1.6;
            Plane playsound( "nuke_explosion" );
            Plane playsound( "nuke_explosion" );
            Plane playsound( "nuke_explosion" );
            MOAB delete();
            RadiusDamage( NapalmLoc, 1400, 5000, 4999, self );
            Earthquake( 1, 4, NapalmLoc, 4000 );
            level.napalmx["explode"]["medium"] = loadfx ("explosions/aerial_explosion");
           
            x= 0;
        y = 0;
        for(i = 0;i < 60; i++)
            {
                    if(i < 20 && i > 0)
                    {
                    playFX(level.chopper_fx["explode"]["medium"], NapalmLoc+(x, y, 0));
                            playFX(level.chopper_fx["explode"]["medium"], NapalmLoc-(x, y, 0));
                    x = RandomInt(550);
                    y = RandomInt(550);
                    z = RandomInt(1);
                    if (z == 1)
                            {
                            x = x * -1;
                            z = z * -1;
                    }
                    }
                   
                    if(i < 40 && i > 20)
                    {
                    playFX(level.chopper_fx["explode"]["medium"], NapalmLoc+(x, y, 150));
                            playFX(level.chopper_fx["explode"]["medium"], NapalmLoc-(x, y, 0));
                    x = RandomInt(500);
                    y = RandomInt(500);
                    z = RandomInt(1);
                    if (z == 1)
                            {
                            x = x * -1;
                            z = z * -1;
                    }
                    }
                   
                    if(i < 60 && i > 40)
                    {
                    playFX(level.chopper_fx["explode"]["medium"], NapalmLoc+(x, y, 300));
                            playFX(level.chopper_fx["explode"]["medium"], NapalmLoc-(x, y, 0));
                    x = RandomInt(450);
                    y = RandomInt(450);
                    z = RandomInt(1);
                    if (z == 1)
                            {
                            x = x * -1;
                            z = z * -1;
                    }
                    }
        }
            NapalmLoc = undefined;
            wait 30;
            Plane delete();
           
            wait 30;
    }
    Code:
    as you see i edited a bit
    - the map dvars, so when you play highrise the plane is on a good height above the map too, and not in the ground
    - if you press D, or A the plane goes to the left or the right
    - if you press n The plane drops a 105mm bullet under hum, 3 bullets
    what i would like to fix or to get
    Code:
    -a code that gives you a "cam" under the plane, so you can see better where you will shoot 9 open laptop and you see the map from the plane)
    -that the move to the right, or left won't be so buggy, it's a easy way that i did but i didn't knew any other, and you dont need to press D (to the right) first before you press A ( to the left)and the plane can go too the left

    important!
    Code:
    -i want HELP not that some1 actually just give the whole code and i just copy and paste it
    so i wont learn anything about modding
    and MAYBE! if all this is finnaly done, (first the other things if you would help me)
    Code:
     that you have like the chopper gun under it
    i mean witht that
    you have a free sight of whats going on and when you shoot, the bullet goes to thee place where you aiming at ( i have no idea how to do that)
    Last edited by krijnrien; 11-02-2011 at 12:24 PM.

  2. #2
    raminr63's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    0
    hi

    ok i test it but it just teleport you to new location and do not any things and AC130 is coming up of the map and me just standing in the ground and just can do move left and right of AC130 in down and just nothings ?!!!
    Last edited by raminr63; 11-02-2011 at 02:06 PM.

  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
    Tip: checkout master131's mod with the spycamera

  4. #4
    raminr63's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    0
    ???!!! :|

  5. #5
    krijnrien's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    7
    My Mood
    Goofy
    xD ramir

    did you even looked over the whole code and the name??

    4funplayin mother of all bombs<< check that on youtube

    then you see the original custom killstreak,
    i just made the plane could retarted go to the left and to the right
    and when you press N it drops the bom ( you have 3 bombs)

    EDIT: i will mathieutje
    Last edited by krijnrien; 11-03-2011 at 07:26 AM.

Similar Threads

  1. [Help Request] Custom Killstreaks
    By isokasi in forum Call of Duty Modern Warfare 2 Help
    Replies: 1
    Last Post: 05-01-2011, 11:24 AM
  2. [Tutorial] How To Make Custom Killstreaks
    By Jorndel in forum Call of Duty Modern Warfare 2 Tutorials
    Replies: 2
    Last Post: 04-29-2011, 02:21 AM
  3. [QUESTION] Custom killstreaks, need fast!
    By Imthebosss in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 10
    Last Post: 10-22-2010, 08:57 AM
  4. [Release] Custom Killstreaks
    By AZUMIKKEL in forum Call of Duty Modern Warfare 2 Server / GSC Modding
    Replies: 36
    Last Post: 09-09-2010, 08:39 AM
  5. [Preview] Custom Killstreaks
    By AZUMIKKEL in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 56
    Last Post: 09-01-2010, 12:04 AM