Attachment System #45


  • New
  • Enhancment
Open
Assigned to shampaggon
  • _ForgeUser6965652 created this issue Jul 11, 2013

    I'll start of by saying that I'm aware it's a huge request but I believe it can really improve this plugin a lot.

    What happened?: Right now the only way to have attachments on guns (like scopes, suppressors, etc) is by having multiple files for each gun and changing in every single file stuff like Bullet Spread, gun Sounds, etc. (That's how I currently have it set up)

    What is supposed to happen?: Have an "attachment" item (like M320 Grenade Launcher) that when attached to a weapon the values set in the file will decrease/increase and maybe even override specific modules. And just like in the Inventory Group Control maybe each attachment has it's own list of guns that it can be attached on. Example:

    Suppressor:
        Item_Information:
            Item_Name: "&eSuppressor"
            Item_Type: <itemID> OR <itemID~data>
            Item_Lore: ""
            Skip_Name_Check: true
            Sounds_Acquired: BAT_TAKEOFF-1-1-0
            Attachments:
                Type: accessory
        Shooting:
            Recoil_Amount: +0
            Projectile_Amount: +0
            Projectile_Speed: -5
            Projectile_Damage: +1
            Bullet_Spread: -0.5
            Sounds_Shoot: suppression sound
        Attachable:
            Limit: Carbine,Python,etc
            Message: "&e[INFO]&f: You can't use this attachment on that gun!"
            Sounds: LAVA_POP-1-1-0

    The only way I thought of to get the attachment on a gun is to have an item that acts like the Attachment like I've showed above and you use it with a gun in the crafting table to craft the weapon with that attachment.

    How it will help?: It can increase drastically the diversity of guns and decrease the amount of files required to achieve something like this. As I said I have multiple files for 1 gun, each with 1 more attachment:
    You get a gun like the AK-47 and then you can add a Red Dot Sight and after you added that you can then add a Laser Sight and then an Extended Magazine.
    To have it skip the Red Dot Sight and Laser Sight and go straight for Extended Magazine and then still be able to add other attachments requires A LOT of files.

  • _ForgeUser6965652 added the tags New Enhancment Jul 11, 2013
  • _ForgeUser6965652 posted a comment Oct 26, 2013

    I've made a plugin for myself that generates the gun files based on the attachments so I no longer need this :P I guess other people may still want this, I don't know. All I'm trying to say is that I don't need this enhancement anymore but it would still be a nice addition to the plugin, although I know how hard it can be to actually add this feature.

  • cobrayt101 posted a comment Jul 19, 2019

    How do I get an attachment like without autommatically applying to gun


To post a comment, please login or register a new account.