SupplySignalAlerts

Moved

Total Downloads: 6,580 - First Release: Apr 12, 2015 - Last Update: Dec 14, 2017

4.75/5, 16 likes
  1. LaserHydra submitted a new resource:

    Supply Signals (Legacy Style) - Supply Signals like in legacy

    Read more about this resource...
     
  2. Wulf

    Wulf Community Admin

    Just a few suggestions, improvements, and simplifications:
    Code:
    PLUGIN.Title       = "Supply Signals"
    PLUGIN.Description = "Supply Signals just like in legacy"
    PLUGIN.Author      = "LaserHydra"
    PLUGIN.Version     = V(1, 0, 0)
    PLUGIN.ResourceId  = 933function PLUGIN:OnEntitySpawned(entity)
        if entity.name == "grenade.f1.deployed" or entity.name == "grenade.f1.deployed(Clone)" then
            if not plugins.Exists("AirdropControl") then
                print("[" .. self.Title .. "] Airdrop Controller is not installed! Get it at http://oxidemod.org/plugins/804/")
                return
            end
            timer.Once(3.2, function()
                local position = entity:GetEstimatedWorldPosition()
                dropPos = math.ceil(position.x) .. " " .. math.ceil(position.y + 100) .. " " .. math.ceil(position.z)
                rust.RunServerCommand("airdrop.topos " .. dropPos)
                print("[" .. self.Title .. "] Supply signal used at " .. dropPos)
                entity:KillMessage()
            end, self.Plugin)
        end
    end
    I've also corrected your ResourceId, from 930 to 933.
     
  3. Here's a feature suggestion:
    Split the functionality into two different modes, toggleable in a config file

    Mode1:
    Every player can use a chat command to toggle grenades into supply signals and use them.
    Mode2:
    Make use of a credit style system. Players need credits to use grenades as a supply signal, 1 credit = 1 supply signal usage.
    This way credits can be used like prizes for events to give winners x amount of supply signals.
     
  4. LaserHydra updated Supply Signals (Legacy Style) with a new update entry:

    some stuff


    [DOUBLEPOST=1428841370][/DOUBLEPOST]
    Actually for me the way I used is more easier to edit and I can quicker see whats going on. But thanks for that "plugin.Exists"... Didn't know you can do that.
    [DOUBLEPOST=1428841429][/DOUBLEPOST]
    At the moment I just added a toggle command for admins, which enables or disables the whole function. I may add that credit function as it seems to be a nice idea.
    -Laser
     
  5. I loved the idea and put it on my server right away but after a few hours had to take it off as it was being abused. A great config option if at all possible would be the ability to set an amount of time before a player can use one again after using one. Thanks for the awesome plugin though and I will definitely be tracking it's progress.
     
  6. Can this be limited to certain grenades by chance or is it possible to create another item?
     
  7. That may be hard. But what I would do is that I do that you can buy those with Credits or that you can't have BP's of it. So its less op
     
  8. Are there other grenade type? :3 cant remember without looking and i assume unlike the old rust it doesnt drop where you nade? or a random position withing a range of X
     
  9. This plugin makes an airdrop just drop exactly at your grenade. And no there are no other types of grenades in the game.
     
  10. Maybe use flares instead of changing grenades?
     
  11. Can you add a cool-down when a player uses a grenade? some players have 50 of these suckers and can kill the server with spam
     
  12. This is not possible. Because there is actually no possibility how you can Trigger something with it. So there is nothing we can detect.
    [DOUBLEPOST=1428901736][/DOUBLEPOST]
    A cooldown is possible, but it would be server wide as there is no possibility to track who has thrown A grenade.
     
  13. I'll see on what I can do to get OnWeaponThrown in as a hook to use for this.
     
  14. Would be nice
    [DOUBLEPOST=1428930058,1428913486][/DOUBLEPOST]
    Would be nice if you could track the entity and the player in this hook
     
  15. That 's the idea
     
  16. Perfect :D
     
  17. CHR

    CHR

    How is it going?
     
  18. Is there a way to make the grenade harder to craft? like for example to craft a grenade you need 150 gunpowder and 50 metal fragments.
    Can I change this to like 500 gunpowder and 500 metal fragments?
     
  19. Im not sure with that. But probably the easiest way would be to remove Grenade BP's if you use this Plugin.
    Or by using a Credit System, I cant work on yet because I need to wait for a hook.
     
  20. How would I remove Grenade BP's??