Plugin needs updating for modular guns

As the title says this plugins needs an update as if you put a gun that requires pistol bullets it will convert them to 5.56mm ammo

it will actually convert any ammo to whatever you have set as "Default" in the config, it does not (as some other turret plugins do) have multiple weapon mounting with multiple ammo types .

{
  "Auto": {
    "aimCones": {
      "turretconfig.default": 5.0
    },
    "ammoTypes": {
      "turretconfig.default": "ammo.rifle"
    },
    "autoHealths": {
      "turretconfig.default": 1000.0
    },
    "bulletSpeeds": {
      "turretconfig.default": 250.0
    },
    "defaultAimCone": 5.0,
    "defaultAmmoType": "ammo.rifle",
    "defaultAutoHealth": 1000.0,
    "defaultBulletDamage": 400.0,
    "defaultBulletSpeed": 250.0,
    "defaultSightRange": 350.0,
    "sightRanges": {
      "turretconfig.default": 350.0
    }
  },​

Some options for the ammoType:

ammo.pistol
ammo.shotgun
ammo.rifle.hv
ammo.rifle.incendiary
ammo.rifle.explosive
ammo.pistol.hv
ammo.pistol.fire

Note: Multiple ammunition types are not supported. You may only choose one type.

bzwfpvXGKFixR79.jpg pookins

it will actually convert any ammo to whatever you have set as "Default" in the config, it does not (as some other turret plugins do) have multiple weapon mounting with multiple ammo types .

{
  "Auto": {
    "aimCones": {
      "turretconfig.default": 5.0
    },
    "ammoTypes": {
      "turretconfig.default": "ammo.rifle"
    },
    "autoHealths": {
      "turretconfig.default": 1000.0
    },
    "bulletSpeeds": {
      "turretconfig.default": 250.0
    },
    "defaultAimCone": 5.0,
    "defaultAmmoType": "ammo.rifle",
    "defaultAutoHealth": 1000.0,
    "defaultBulletDamage": 400.0,
    "defaultBulletSpeed": 250.0,
    "defaultSightRange": 350.0,
    "sightRanges": {
      "turretconfig.default": 350.0
    }
  },​

Some options for the ammoType:

ammo.pistol
ammo.shotgun
ammo.rifle.hv
ammo.rifle.incendiary
ammo.rifle.explosive
ammo.pistol.hv
ammo.pistol.fire

Note: Multiple ammunition types are not supported. You may only choose one type.

yea but if you put a gun that requires Pistol ammo and put pistol ammo in, it will convert that pistol ammo to 5.56mm and then wont shoot the 5.56 as its incompatible with a pistol. thats why i said it needs an update to remove that part as its useless now and makes turrets actually broken since the modular turret update. i can make a video showing the problem if needed.



Merged post

or it needs to be changed to just the type of bullet like hv not both size and type. for example instead of putting ammo.rifle.hv all you need is to put hv and it reads the gun type then changes it to either ammo.rifle.hv or ammo.pistol.hv depending on the gun.
Rustyspoon342

yea but if you put a gun that requires Pistol ammo and put pistol ammo in, it will convert that pistol ammo to 5.56mm and then wont shoot the 5.56 as its incompatible with a pistol. thats why i said it needs an update to remove that part as its useless now and makes turrets actually broken since the modular turret update. i can make a video showing the problem if needed.



Merged post

or it needs to be changed to just the type of bullet like hv not both size and type. for example instead of putting ammo.rifle.hv all you need is to put hv and it reads the gun type then changes it to either ammo.rifle.hv or ammo.pistol.hv depending on the gun.

This has been suggested since the release of the plugin

Any way you can add as default it will take any type of 5.56 rounds so you can put a combo of different types into it once it uses up one type it will go to the next one

Resistance, Nov 5, 2015
#17
Calytic
Calytic
Community Admin
Community Mod

Resistance said: ↑

Any way you can add as default it will take any type of 5.56 rounds so you can put a combo of different types into it once it uses up one type it will go to the next one

Yes, that is technically feasible. It would, however, require quite a bit of effort and may adversely affect performance. The only problem I had with doing that is that it is incredibly likely that the turret, in it's current incarnation, is only a first draft. It is likely we will see more turrets and more options in the near future (now that the base code is working). I personally don't want to invest a lot of time in a feature and then not soon after have the rug pulled out from under me. In any case, just give it some time, if we don't see the changes I expect then I definitely will add this option.

cannot see it happening soon :)

4F13b3SMBtZOtVz.jpg pookins

This has been suggested since the release of the plugin

Any way you can add as default it will take any type of 5.56 rounds so you can put a combo of different types into it once it uses up one type it will go to the next one

Resistance, Nov 5, 2015
#17
Calytic
Calytic
Community Admin
Community Mod

Resistance said: ↑

Any way you can add as default it will take any type of 5.56 rounds so you can put a combo of different types into it once it uses up one type it will go to the next one

Yes, that is technically feasible. It would, however, require quite a bit of effort and may adversely affect performance. The only problem I had with doing that is that it is incredibly likely that the turret, in it's current incarnation, is only a first draft. It is likely we will see more turrets and more options in the near future (now that the base code is working). I personally don't want to invest a lot of time in a feature and then not soon after have the rug pulled out from under me. In any case, just give it some time, if we don't see the changes I expect then I definitely will add this option.

cannot see it happening soon :)

thats not my problem my problem is its converting pistol ammo into 556 when i have not put any 556 in the turret and once it converts the pistol ammo to 556 the turret will run out of ammo in its clip then not be able to reload as there now no pistol ammo as its turned into 556. i dont understand where puting different combos of ammo is related as turrets can take any ammo as long as it suits the gun in the turrets so it can shoot. turrets can take any type of ammo now and thats the problem its still thinking turrets are old school and only have aks so yea any ammo put in it will converts to 556 or what you have set that used to be fine but now they take all types of ammo converting it to just one ammo type is stupid as the gun might not support that ammo type 

Rustyspoon342

thats not my problem my problem is its converting pistol ammo into 556 when i have not put any 556 in the turret and once it converts the pistol ammo to 556 the turret will run out of ammo in its clip then not be able to reload as there now no pistol ammo as its turned into 556. i dont understand where puting different combos of ammo is related as turrets can take any ammo as long as it suits the gun in the turrets so it can shoot. turrets can take any type of ammo now and thats the problem its still thinking turrets are old school and only have aks so yea any ammo put in it will converts to 556 or what you have set that used to be fine but now they take all types of ammo converting it to just one ammo type is stupid as the gun might not support that ammo type 

well i am sorry but i dont know what you are doing . i just a couple of foundations , put an unauthorised turret on it with a python revolver , put pistol ammo in the turret and then turned it on , it used up a lot of the ammo (i was in gm) then i "removed" it, and picked up the pistol and pistol ammo , i have 556 rifle ammo as the default in the plugin, and no the turrets are not "old school" i have been using it since 2015 so maybe i am old school too, but i have ak47's, L96's, L300's and M249's in my turrets .
I have offered all the info i can , so i hope you find someone who can help you