Results 1 to 1 of 1
  1. #1
    iAM_BRiLLiANT's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0

    [Help] MW2 Random Weapon Box

    Hey i have a problem with my Mystery box . The weapon i get have attachments and i would like to have a mystery box where i get only the weapon with no attachment can you help me ?

    This is my Code:

    MysteryBox()
    {

    level.packRB = spawn( "script_model", (1068,5913,235) );
    level.packRB.angles = (0,0,0);
    level.packRB setModel( "com_plasticcase_friendly" );
    level.wep = spawn("script_model",(1070,5913,265));
    level.wep.angles = (0,0,0);
    for(;
    {
    while(1)
    {
    model = level.weaponList[RandomInt( level.weaponList.size)];
    level.wep setModel(GetWeaponModel(model));
    wait 0.2;
    self.indiRB destroy();
    if(distance(self.origin, level.packRB.origin) <100)
    if(self usebuttonpressed())
    {
    wait 1;
    self takeWeapon(self getCurrentWeapon());
    self freezeControls(false);
    self.upw[model] = 1;
    self freezeControls(false);
    self giveWeapon( model);
    self SwitchToWeapon(model);
    self thread updFTW( model);
    }
    else {
    }
    }
    }
    }
    Last edited by iAM_BRiLLiANT; 12-08-2013 at 03:41 AM.

Similar Threads

  1. Random weapon box code
    By keny330 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 4
    Last Post: 05-21-2011, 07:53 PM
  2. Random Weapon Box
    By Arasonic in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 26
    Last Post: 01-11-2011, 08:25 PM
  3. [RELEASE] Random Weapon Mod V1.1
    By minichrister in forum Call of Duty Modern Warfare 2 Server / GSC Modding
    Replies: 2
    Last Post: 08-26-2010, 11:05 AM
  4. [Release] Random Weapon Mod v1.1
    By Insane in forum Call of Duty Modern Warfare 2 Server / GSC Modding
    Replies: 9
    Last Post: 08-16-2010, 07:36 PM
  5. Cod MW2 Random Banner-For Anyone
    By jakeh in forum Showroom
    Replies: 5
    Last Post: 03-29-2010, 03:51 PM