InfiniteAmmo

Moved

Total Downloads: 4,448 - First Release: May 30, 2015 - Last Update: Jul 19, 2015

4.38889/5, 18 likes
  1. Thanks! Sorry for the noob question, it's working great again now.
     
  2. I do not believe this plugin is working. I used the /toggleammo command and received the message "Infinite Ammo: You now have infinite ammo!". But, when I fire my gun and then reload, it does infact use my ammo. I checked the oxide logs and rcon to see if there were any errors and there are none.
     
  3. Wulf

    Wulf Community Admin

    Which Oxide build are you using?
     
  4. Oxide 2.0.2854 for Rust 1102.83 (1935) sorry for not posting that earlier
     
  5. I need help with oxide plugin plz ..
    i am making a battlefield server and i want to put infinite ammo for every player who comes into the server but idk how can u guys help me?
     
  6. I keep getting this when reloading/loading the plugin:
    Missing plugin name prefix 'infiniteammo.' for permission 'infinite.ammo' (by plugin 'Infinite Ammo')
     
  7. With this plugin I only have an infinite clip, but I want to give players the possibility to reload without any rounds in the inventory, how do I do that?
     
  8. Maybe outdated but not working for me
     
  9. Missing plugin name prefix 'infiniteammo.' for permission 'infinite.ammo' (by plugin 'Infinite Ammo')


    getting that error message any idea on how to fix?
     
  10. Wulf

    Wulf Community Admin

    Change the prefix from "infinite" to "infiniteammo" in all instances.
     
  11. thanks it worked meaning it has no error message now but the plugin still doesnt work for some reason.
    no error messages either i assume the author will have to take a look at it.


    EDIT!

    Sorry the plugin works fine i forgot to use the /toggleammo command which i think should be added to the front page of the plugin.
     
  12. good plugin but it has a fatal flaw
    lets say you want to use this plugin for an event or fun. give everybody perms. if you later remove the perms the players will still have infinite ammo because their toggleammo status is saved in a data file. players could have infinite ammo despite having no permissions just because they toggled it on while it was active.
    maybe the data file should be cleared on plugin load
    or check for permission + toggle status when firing (no idea on cpu impact)
    or some other solution


    EDIT:
    Slapped together a fix. On weapon fire, it'll check for togglestatus + permission. If toggle is off or no permission then it returns. I still think the data should be cleared on plugin load but it works.

    Code:
    private void OnWeaponFired(BaseProjectile projectile, BasePlayer player)
            {
                if (!HasInfiniteAmmo(player) || !permission.UserHasPermission(player.userID.ToString(), "infiniteammo.ammo")) return;
                projectile.GetItem().condition = projectile.GetItem().info.condition.max;
                if (projectile.primaryMagazine.contents > 0) return;
                projectile.primaryMagazine.contents = projectile.primaryMagazine.capacity;
                projectile.SendNetworkUpdateImmediate();
            }        private void OnRocketLaunched(BasePlayer player)
            {
                if (!HasInfiniteAmmo(player) || !permission.UserHasPermission(player.userID.ToString(), "infiniteammo.ammo"))  return;
                var weapon = player.GetActiveItem().GetHeldEntity() as BaseProjectile;
                if (weapon == null) return;
                player.GetActiveItem().condition = player.GetActiveItem().info.condition.max;
                if (weapon.primaryMagazine.contents > 0) return;
                weapon.primaryMagazine.contents = weapon.primaryMagazine.capacity;
                weapon.SendNetworkUpdateImmediate();
            }        private void OnWeaponThrown(BasePlayer player)
            {
                if (!HasInfiniteAmmo(player) || !permission.UserHasPermission(player.userID.ToString(), "infiniteammo.ammo"))  return;
                var weapon = player.GetActiveItem().GetHeldEntity() as ThrownWeapon;
                if (weapon == null) return;
                weapon.GetItem().amount += 1;
            }
     
    Last edited by a moderator: Aug 24, 2017
  13. Oh crap, should have read the thread before posting but just in case someone cares to read:
    Hey, just a quick tip:
    Granting an user the permission to toggle infinite ammo and removing the permission while the player is still in infinite mode doesn't revert the toggle back to finite ammunition.
     
  14. A good plugin. But how do I do a recharge after 30 cartridges?
    Without recharging is not good. This meat is full.)
    As on the Battlefield server.
    или есть другой плагин.
     
  15. ... not longer working after RUST - Update (DevBlog 178):

    Missing plugin name prefix 'infiniteammo.' for permission 'infinite.ammo' (by plugin 'Infinite Ammo')
     
  16. Wulf

    Wulf Community Admin

    That's just a warning, not an error. It will not affect it working or not.
     

  17. but this warning is coming after update and plugin doesnt work longer. before update no warning and working.
     
  18. Wulf

    Wulf Community Admin

    The warning would not cause it to not work.
     
  19. ok, but again: after RUST-Update not working !
     
  20. Make sure you did /toggleammo