Skip to content
  • 0 Unread 0
  • Recent
  • Popular
  • Users
  • Donate
Collapse

Plutonium

  1. Home
  2. MW3 Client Support
  3. how to add infinite ammo WITH reload?

how to add infinite ammo WITH reload?

Scheduled Pinned Locked Moved MW3 Client Support
5 Posts 2 Posters 18 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ReadyBardYT Offline
    ReadyBardYT Offline
    ReadyBardYT
    wrote last edited by
    #1

    i want a script that has infinite ammo WITH reload. simple as that. thank you.

    1 Reply Last reply
    0
    • RETR0 EDIT Offline
      RETR0 EDIT Offline
      RETR0 EDIT
      Contributor
      wrote last edited by RETR0 EDIT
      #2

      hello,
      u didnt ask for infinite nade so i commented the section

      init()
      {
          level thread onPlayerConnect();
      }
      
      onPlayerConnect()
      {
          for (;;)
          {
              level waittill("connected", player);
              player thread onPlayerSpawned();
          }
      }
      
      onPlayerSpawned()
      {
          self endon("disconnect");
      
          for (;;)
          {
              self waittill("spawned_player");
              self thread refillStock();
          }
      }
      
      refillStock()
      {
          self endon("disconnect");
          self endon("death");
      
          for (;;)
          {
              // Refill the reserve of every primary weapon, not the magazine
              weapons = self getWeaponsListPrimaries();
              foreach (weapon in weapons)
                  self setWeaponAmmoStock(weapon, weaponMaxAmmo(weapon));
      
              // Grenades and equipment: uncomment for infinite ones too
              // offhands = self getWeaponsListOffhands();
              // foreach (weapon in offhands)
              //    self giveMaxAmmo(weapon);
      
              wait 0.5;
          }
      }
      
      RETR0 EDIT 1 Reply Last reply
      0
      • RETR0 EDIT RETR0 EDIT

        hello,
        u didnt ask for infinite nade so i commented the section

        init()
        {
            level thread onPlayerConnect();
        }
        
        onPlayerConnect()
        {
            for (;;)
            {
                level waittill("connected", player);
                player thread onPlayerSpawned();
            }
        }
        
        onPlayerSpawned()
        {
            self endon("disconnect");
        
            for (;;)
            {
                self waittill("spawned_player");
                self thread refillStock();
            }
        }
        
        refillStock()
        {
            self endon("disconnect");
            self endon("death");
        
            for (;;)
            {
                // Refill the reserve of every primary weapon, not the magazine
                weapons = self getWeaponsListPrimaries();
                foreach (weapon in weapons)
                    self setWeaponAmmoStock(weapon, weaponMaxAmmo(weapon));
        
                // Grenades and equipment: uncomment for infinite ones too
                // offhands = self getWeaponsListOffhands();
                // foreach (weapon in offhands)
                //    self giveMaxAmmo(weapon);
        
                wait 0.5;
            }
        }
        
        RETR0 EDIT Offline
        RETR0 EDIT Offline
        RETR0 EDIT
        Contributor
        wrote last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • ReadyBardYT Offline
          ReadyBardYT Offline
          ReadyBardYT
          wrote last edited by
          #4

          ill uncomment the infinite nades but still thank you 🙂

          1 Reply Last reply
          0
          • ReadyBardYT Offline
            ReadyBardYT Offline
            ReadyBardYT
            wrote last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Unread 0
            • Recent
            • Popular
            • Users
            • Donate