Flashbang Grenade

Replaces grenade with a flashbang grenade

Total Downloads: 873 - First Release: Aug 3, 2015 - Last Update: Oct 19, 2016

5/5, 6 likes
  1. PaiN submitted a new resource:

    Flashbang Grenade - This plugin adds a flashbang to the game.

    Read more about this resource...
     
  2. PaiN updated Flashbang Grenade with a new update entry:

    0.2.0

     
  3. How do we change the explosion radius?
     
  4. If you dont know anything about C# then dont do it :x Open the file and search for the line where i replace {STRENGTH} with a number.
     
  5. I know, just do not know the term ...
    I use Notepad ++
     
  6. I will explain you this line so you know what the other are for...
    Lines
    http://screenshot.sh/m9k4rItLk8i8A

    If the distance between the players position and the flash position(grenade) is less or equals 2 then flash the player fully with strengh 1 for 4seconds
     
  7. thank you!
     
  8. Anyway to add a delay to the announcement or to have a config file to disable it. People love it so much my server is being spammed with them. Also some people are reporting that it was not working I reclogged and had to wait awhile before it worked again for me. plugin has been installed for awhile now.
     
  9. Yes, of course.. i will do it in 8-9hours :x
     
  10. Currently FlashBang not work. But success Loading ...
    Code:
    [Oxide] 9:23 AM [Info] Loaded plugin FlashBang v0.2.0 by PaiN
     
  11. Wulf

    Wulf Community Admin

    Try the below attachment. Made the item finding a bit less strict.
     
  12. wulf, thx
     
  13. PaiN updated Flashbang Grenade with a new update entry:

    0.2.1

     
  14. * edit - ok actually getting beancans to do it was super easy - now im just trying to fix why it wont blind everyone - It seems like regardless the incarnation of the addon it seems picky on WHO it blinds - and it seems to only blind one guy. Aside from getting that to work- i want to try and add some sort of noise as well.
     
    Last edited by a moderator: Sep 11, 2015
  15. PaiN updated Flashbang Grenade with a new update entry:

    0.3.0

     
  16. PaiN updated Flashbang Grenade with a new update entry:

    0.4.0

     
  17. no offense :D but the FlashBang you call it... I Call It A Hot Spa lol.
     
  18. Requests:
    • Option for the player to turn the flashbang option on/off ( kind of like the crosshair plugin )
    • Config options for for distance and timer
     
  19. 1. Option to disable flashbang ? So someone who has flashbang enable and throw it.. then the guy who has it disabled wont get flashed ?
    2. I dont have any ideas about how i would do this.. maybe later.
     
  20. Make a check that if the player throwing the grenade has the option turned on ( it should be a toogle ) then the grenade acts as a flash grenade and if the option is not toogled on then the grenade acts as, well a grenade

    Turn the hard-coded time and distance numbers into variables that are read from a config file when the plugin is loaded.
    Code:
    if (Vector3.Distance(current.transform.position, flashPos) <= 8)
                    {
                        CommunityEntity.ServerInstance.ClientRPCEx(new Network.SendInfo() { connection = current.net.connection }, null, "AddUI", new Facepunch.ObjectList(flash.Replace("{Strength}", "0.2"), null, null, null, null));
                        timer.Once(3.4F, () => CommunityEntity.ServerInstance.ClientRPCEx(new Network.SendInfo() { connection = current.net.connection }, null, "DestroyUI", new Facepunch.ObjectList("FlashBang", null, null, null, null)));
                        return;
                    }