Page 1 of 2 12 LastLast
Results 1 to 15 of 27
  1. #1
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115

    Random Weapon Box



    Suggestions?
    Also, I'm using
    Code:
    model = level.weaponList[RandomInt( level.weaponList.size )];
    level.wep setModel(GetWeaponModel(model));
    to set the model, but it always seems to give me the same weapons, always get scar/m240/FAL <_<
    is it just random, or because of the code?
    Last edited by Arasonic; 12-11-2010 at 12:15 PM.

  2. The Following User Says Thank You to Arasonic For This Useful Post:

    XenonBliss (12-11-2010)

  3. #2
    XenonBliss's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    4
    Reputation
    17
    Thanks
    1
    My Mood
    Angelic
    This looks amazing.

  4. #3
    [WhA]4FunPlayinBackup's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    28
    Reputation
    10
    Thanks
    1
    My Mood
    Bitchy
    That's fucking awesome. I don't know why you are getting the same weapons.. try to randomize the list after usage? I mean like

    Code:
    level.Wep[w.size] = doRandomWeapon();
    level.Wep[w.size] = doRandomWeapon();
    level.Wep[w.size] = doRandomWeapon();
    
    doRandomWeapon()
    {
    ba = randomInt(1337);
    switch(ba)
    {
    case 0:
    wep = "fu_mp";
    break;
    
    case 1:
    wep = "lol_mp":
    break;
    
    /*etc*/
    }
    
    return wep; //returns the random weapon
    }
    IDK never tried.
    Last edited by [WhA]4FunPlayinBackup; 12-11-2010 at 12:53 PM.

  5. #4
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Dont want the code too long
    Right now I belive its at 80 lines..
    EDIT:
    Ohshi-, just realised it goes over to a new thread after 10 sec which stops the loop, and gives a random wep model.
    Guess its just RNG that it gives me the same weps then perhaps?
    Did
    Code:
    randomize = randomInt(3);
    if(randomize == 0){
    level.wep setModel(GetWeaponModel(model));}
    if(randomize == 1){
    level.wep setModel(GetWeaponModel(model));}
    if(randomize == 2){
    level.wep setModel(GetWeaponModel(model));}
    And for the first time I've actually gotten G18 and EBR, so might have helped
    ----------------------------------------------------------------
    Also, if thats managed, last thing I need is so that I can use it after its been used. Haha
    Last edited by Arasonic; 12-11-2010 at 01:28 PM.

  6. #5
    cacheat's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Spain,Aragon,Huesca
    Posts
    178
    Reputation
    10
    Thanks
    8
    My Mood
    Psychedelic
    looks amazing waiting for the release
    "It doesn't take the most powerful nations on Earth to create the next global conflict. Just the will of a single man."
    -- Vladimir Makarov

    [IMG]https://i1236.photobucke*****m/albums/ff441/hiere1/key_art_how_i_met_your_mother.jpg[/IMG]











  7. #6
    GoDZeN's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    150
    Reputation
    10
    Thanks
    1
    Niccceee^^ Can't wait!

  8. #7
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Finished... vid probably coming with some functions this week

  9. #8
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    158
    Really sweet done, but just one question...
    Haven't the guy who made the Nemesis mod already done a random box and also Lost4468? ;3

  10. #9
    Shucker's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    442
    Reputation
    16
    Thanks
    311
    My Mood
    Fine
    Oh god, CAN YOU PLEASE RELEASE THIS AWESOME MOD WHEN ITS DONE? ITS AWEEESOME!

  11. #10
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    I belive the ones others has made only gives you a weapon, however I did the thing where the weapon comes up etc

  12. #11
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    158
    Actually no, check Lost's video
    It's almost the same

  13. #12
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Gief link?
    Is it released? (If it is, then.. RAAAAAAAGE)

  14. #13
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    154
    My Mood
    Amazed
    Quote Originally Posted by Arasonic View Post
    Gief link?
    Is it released? (If it is, then.. RAAAAAAAGE)
    No, your one will be the first one which is released, :P, Man, awesome, amazing job, try to put the speed of the weapons switching faster, like the speed in BO/WaW,

  15. #14
    YuDi21's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    mp_complex
    Posts
    141
    Reputation
    12
    Thanks
    35
    My Mood
    Angelic
    o_O. i cant wait! its cool! release date) pls

  16. #15
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Release date?
    Dunno, might release it as one later on, or realease it with the mod I'm working on.
    I'm not that active on working on it, so it might take... loooooong.

    Yamato - Isn't it fast already? I thought the original ones wasn't that fast.

Page 1 of 2 12 LastLast