Results 1 to 6 of 6
  1. #1
    elmasmalo1's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    62
    Reputation
    11
    Thanks
    2

    [SOLVED]Make Airdrop Mega drop 4 same killstreaks rewards

    Hello guys so like the title says i would like to mod that when u throw and emergency air drop it don't drops random care packages i would like to it to drop 4 same packages like if i throw a emergency care package when the plane come dropping the boxes it drops the same... like 4 same turrets... 4 same ac130 .. things like that can be done??? thanks in advance for any help

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,315
    My Mood
    Breezy
    This is the console command but you can use as a guide to change them into setDvar commands make sure to add player thread blah(); under onPlayerConnect:

    [php]scr_airdrop_ac130 "17";
    scr_airdrop_ammo "0";
    scr_airdrop_counter_uav "0";
    scr_airdrop_emp "0";
    scr_airdrop_harrier_airstrike "0";
    scr_airdrop_helicopter "0";
    scr_airdrop_helicopter_flares "0";
    scr_airdrop_helicopter_minigun "0";
    scr_airdrop_mega_ac130 "17";
    scr_airdrop_mega_ammo "0";
    scr_airdrop_mega_counter_uav "0";
    scr_airdrop_mega_emp "0";
    scr_airdrop_mega_harrier_airstrike "0";
    scr_airdrop_mega_helicopter "0";
    scr_airdrop_mega_helicopter_flares "0";
    scr_airdrop_mega_helicopter_minigun "0";
    scr_airdrop_mega_nuke "0";
    scr_airdrop_mega_precision_airstrike "0";
    scr_airdrop_mega_predator_missile "0";
    scr_airdrop_mega_sentry "0";
    scr_airdrop_mega_stealth_airstrike "0";
    scr_airdrop_mega_uav "0";
    scr_airdrop_nuke "0";
    scr_airdrop_precision_airstrike "0";
    scr_airdrop_predator_missile "0";
    scr_airdrop_sentry "0";
    scr_airdrop_stealth_airstrike "0";
    scr_airdrop_uav "0"[/php]

    For example:
    [php]setDvar("scr_airdrop_ac130", 17);[/php]
    and so on.

    Alternatively, you can just try changing the one you want to 9999 or 100 instead of chaging the rest to 0 and wasting time.
    [php]setDvar("scr_airdrop_ac130", 9999);[/php]
    Last edited by master131; 08-23-2010 at 11:59 AM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


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

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

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


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  3. #3
    elmasmalo1's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    62
    Reputation
    11
    Thanks
    2
    Didnt understand it well... -__- im a lil bit confused... can u post a more complete code sample please? i will be really grateful #include common_scripts\utilit - Anonymous - GFCW3dQj - Pastebin.com

  4. #4
    Neekokeen's Avatar
    Join Date
    Jun 2010
    Gender
    female
    Posts
    387
    Reputation
    14
    Thanks
    361
    My Mood
    Breezy
    master131's answer was rather thorough, if you can't take it from there, you're gonna have a lot of trouble making anything decent..

    Anyways..to clarify further:
    You can make every carepackage contain the same reward, yes, but it will always be the same every time you call it in.

    Example: You want all emergency airdrop crates to contain an AC130:

    1. Add this code somewhere in your _rank.gsc for example:
    Code:
    EmergencyAirdrop()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    
    	scr_airdrop_mega_ac130 "1337";
    	scr_airdrop_mega_ammo "0";
    	scr_airdrop_mega_counter_uav "0";
    	scr_airdrop_mega_emp "0";
    	scr_airdrop_mega_harrier_airstrike "0";
    	scr_airdrop_mega_helicopter "0";
    	scr_airdrop_mega_helicopter_flares "0";
    	scr_airdrop_mega_helicopter_minigun "0";
    	scr_airdrop_mega_nuke "0";
    	scr_airdrop_mega_precision_airstrike "0";
    	scr_airdrop_mega_predator_missile "0";
    	scr_airdrop_mega_sentry "0";
    	scr_airdrop_mega_stealth_airstrike "0";
    	scr_airdrop_mega_uav "0";
    }
    2. under onplayerspawned, add this line:
    Code:
    self thread EmergencyAirdrop();
    Now, if you want emergency airdrops crates to contain 4 same rewards BUT want it to be a different reward every time you call it in, you'll have to work with cases. You'll need to make a case for each reward, where you change the above code every time to the next reward.
    Then have the cases switch random.

    Alternatively you could do it like this:
    (This example will switch the content of the carepackages every 10 seconds, between AC130 - chopper gunner - Pavelow.
    You can ofcourse add others.

    Code:
    doSwitch() {
                    self endon ( "disconnect" );
            	if( self isHost() ) 
       		{
    		self thread switch1();
    		wait 10;
    		self thread switch2();
    		wait 10;
    		self thread switch3();
    		wait 10;
    		self thread doSwitch();
    		}
    }
    Code:
    switch1()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    
    	scr_airdrop_mega_ac130 "1337";
    	scr_airdrop_mega_ammo "0";
    	scr_airdrop_mega_counter_uav "0";
    	scr_airdrop_mega_emp "0";
    	scr_airdrop_mega_harrier_airstrike "0";
    	scr_airdrop_mega_helicopter "0";
    	scr_airdrop_mega_helicopter_flares "0";
    	scr_airdrop_mega_helicopter_minigun "0";
    	scr_airdrop_mega_nuke "0";
    	scr_airdrop_mega_precision_airstrike "0";
    	scr_airdrop_mega_predator_missile "0";
    	scr_airdrop_mega_sentry "0";
    	scr_airdrop_mega_stealth_airstrike "0";
    	scr_airdrop_mega_uav "0";
    }
    Code:
    switch2()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    
    	scr_airdrop_mega_ac130 "0";
    	scr_airdrop_mega_ammo "0";
    	scr_airdrop_mega_counter_uav "0";
    	scr_airdrop_mega_emp "0";
    	scr_airdrop_mega_harrier_airstrike "0";
    	scr_airdrop_mega_helicopter "0";
    	scr_airdrop_mega_helicopter_flares "1337";
    	scr_airdrop_mega_helicopter_minigun "0";
    	scr_airdrop_mega_nuke "0";
    	scr_airdrop_mega_precision_airstrike "0";
    	scr_airdrop_mega_predator_missile "0";
    	scr_airdrop_mega_sentry "0";
    	scr_airdrop_mega_stealth_airstrike "0";
    	scr_airdrop_mega_uav "0";
    }
    Code:
    switch3()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    
    	scr_airdrop_mega_ac130 "0";
    	scr_airdrop_mega_ammo "0";
    	scr_airdrop_mega_counter_uav "0";
    	scr_airdrop_mega_emp "0";
    	scr_airdrop_mega_harrier_airstrike "0";
    	scr_airdrop_mega_helicopter "0";
    	scr_airdrop_mega_helicopter_flares "0";
    	scr_airdrop_mega_helicopter_minigun "1337";
    	scr_airdrop_mega_nuke "0";
    	scr_airdrop_mega_precision_airstrike "0";
    	scr_airdrop_mega_predator_missile "0";
    	scr_airdrop_mega_sentry "0";
    	scr_airdrop_mega_stealth_airstrike "0";
    	scr_airdrop_mega_uav "0";
    }
    Then add this to onJoinedTeam()
    Code:
    self thread doSwitch();
    This method is rather 'ugly' and noobish, but it'll get the job done.

    Click on the banners to take a look at my mods.





  5. #5
    B4M's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Real World
    Posts
    6,939
    Reputation
    478
    Thanks
    1,746
    My Mood
    Bored
    /Marked as solved. (I guess)


    Back in '10



    Got a question?PM/VM me!
    I read them all.
    Also contact me via MSN.
    vlad@mpgh.net

    Minion since:07-04-2010
    Mod since:08-31-2010
    Till : 05.07.2011

  6. The Following User Says Thank You to B4M For This Useful Post:

    BadSyntax (08-29-2010)

  7. #6
    Neekokeen's Avatar
    Join Date
    Jun 2010
    Gender
    female
    Posts
    387
    Reputation
    14
    Thanks
    361
    My Mood
    Breezy
    Quote Originally Posted by B4M View Post
    /Marked as solved. (I guess)
    I think those answers should be sufficient, yes /

    Click on the banners to take a look at my mods.





  8. The Following User Says Thank You to Neekokeen For This Useful Post:

    B4M (08-24-2010)

Similar Threads

  1. [SOLVED]Give all joined players killstreak rewards
    By elmasmalo1 in forum Call of Duty Modern Warfare 2 Help
    Replies: 6
    Last Post: 08-23-2010, 04:33 AM
  2. How to prevent people losing killstreak rewards on death?
    By Akira303 in forum Call of Duty Modern Warfare 2 Help
    Replies: 17
    Last Post: 08-18-2010, 03:27 AM
  3. [SOLVED] Making Modded Servers AlterIWnet
    By Stroop2000 in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 06-30-2010, 07:41 AM
  4. hack 4 killstreak rewards
    By kastav13 in forum Call of Duty Modern Warfare 2 Help
    Replies: 9
    Last Post: 06-19-2010, 08:17 PM
  5. [SOLVED] Making a MW2 Hack Account
    By B-roca in forum Call of Duty Modern Warfare 2 Help
    Replies: 14
    Last Post: 05-30-2010, 12:43 AM