Not able to reload rocket launcher ammo
Hey Orange,
I'm using your plugin with the following config. For a reason i can't spot. The Rocket Launcher won't allow players to relove HV or Incendiary rockets. 
Any ideas? Not come across any other combo that is blocked. 
I did also noticed that the attachements in the block list are also useable on weapons. Though not a massive issue the block is due to expire in the next few hours.

{
  "Shortname -> Block time": {
    "lmg.m249": 259200,
    "rifle.lr300": 259200,
    "rifle.l96": 259200,
    "ammo.rifle.explosive": 259200,
    "ammo.rifle.incendiary": 259200,
    "ammo.rifle.hv": 259200,
    "ammo.rocket.basic": 259200,
    "door.hinged.toptier": 259200,
    "door.double.hinged.toptier": 259200,
    "gates.external.high.stone": 259200,
    "wall.window.bars.toptier": 259200,
    "metal.facemask": 259200,
    "metal.plate.torso": 259200,
    "explosive": 259200,
    "explosive.timed": 259200,
    "weapon.mod.holosight": 259200,
    "weapon.mod.lasersight": 259200,
    "weapon.mod.small.scope": 259200,
    "rifle.ak": 259200,
    "rifle.bolt": 259200,
    "smg.mp5": 259200
  },
  "Announcement duration": 5.0
}​

I have the same problem (rocket launcher ammo). And it is kinda crucial on my server as 2 events I have need players to use HV rockets :D 

Orange, any chance of it being fixed? I checked the code in case it being just a mistake, but I can't spot anything wrong. (I'm a C# amateur though) :P

Edit: As time is important for me, I started to work things out and projectile.primaryMagazine.ammoType.shortname returns ammo.rocket.basic for all 3 ammo types you try to load into launcher. And now I'm stuck as I have no clue how to fix that =D Hope it at least helps 

Edit2: Ok, more testing gave me the answer. When a rocket launcher is new, the property returns ammo.rocket.basic. But when I commented in OnReloadWeapon the return line and replaced it with 'return null;', it obviously broke the plugin and let me reload the rocket launcher. I reversed the change and now this one launcher correctly returns ammo.rocket.hv for HVs, and if I try to switch to normal rockets plugin blocks it as it returns ammo.rocket.basic. I reload HV again and it still works fine. Its just like the new rocket launchers return wrong value as if it is returned BEFORE it switches ammo type.

Edit3: Ok, now it is ridicilous.. So after I did that return null part, reverted the changes.. It works fine.. I mean, I can craft a new launcher, and it recognizes ammo types fine, I downloaded original version of plugin, and it still works fine.. It looks like it did something to the server =D I don't know what to think. I might restart the server tomorrow morning and check if problem comes back. For now it works.

Thanks for your research mate, do let me know what you find out.

DuckTales

Thanks for your research mate, do let me know what you find out.

Sadly nothing more. For now I know only that for some reason it fixed itself by then.. but not for all launchers.. sometimes a launcher was like a bugged one, but majority was working. Protection went off few hours after I finish testing so I'll get back to it next friday or if plugin author replys, I'll do my best to help pin point it.

Hi.
I got normal rockets at 2 days.
HV rockets at 12 hours.
I cant use HV Rockets since it says: Blocked for 2 days (same time as normal rockets).
How do i fix this?
Whats your config?
{
  "Shortname -> Block time": {
    "lmg.m249": 43200,
    "rifle.l96": 43200,
    "rifle.ak": 43200,
    "grenade.beancan": 43200,
    "rocket.launcher": 43200,
    "multiplegrenadelauncher": 86400,
    "explosive.satchel": 172800,
    "explosive.timed": 172800,
    "surveycharge": 43200,
    "ammo.grenadelauncher.he": 86400,
    "ammo.rifle.explosive": 86400,
    "ammo.rocket.basic": 43200,
    "ammo.rocket.fire": 43200,
    "ammo.rocket.hv": 43200
  },
  "Announcement duration": 6.0
}

Thats how i have it now (to be able to use HV), if i change ammo.rockets.basic to xxxxx seconds, my HV rockets will use the same seconds, even if i leave them at 43200 seconds.
I want ppl to use HV rockets after 43600 seconds, but Rockets after 3 days.

I figured out why it happens. But i dont know when i will be able to make a patch
Cant wait! :) it will be very helpfull Orange :) Thanks
5ba216a6d7f65.png Orange
I figured out why it happens. But i dont know when i will be able to make a patch

Orange I love your entire work, like for real, if you tell me where the problem is I can try to make an ugly patch for now just so the plugin works properly, and then we can wait for your final and most likely much better solution (as I'm a PHP not C# programmer :P )

SzaKaaL

Orange I love your entire work, like for real, if you tell me where the problem is I can try to make an ugly patch for now just so the plugin works properly, and then we can wait for your final and most likely much better solution (as I'm a PHP not C# programmer :P )

Problem in correct ammo detection on weapon reloading

5ba216a6d7f65.png Orange

Problem in correct ammo detection on weapon reloading

I pointed this out a bunch of time ago :P 

But my players found a strange workaround.. I don't know if it helps you but I want to do as much as I can :)

So IF you have in your inventory at least 2 types of rockets (eg. inc rockets and hv rockets) you CAN switch rocket launcher ammo type normally.. and then that rocket launcher works as intented..

I tested it and you must have 2 types. If you have only hv rockets, brand new rocket launcher -> does not work.

If you have only inc rockets, brand new rocket launcher -> does not work

if you have basic + hv, brand new rocket launcher -> you can switch to hv rockets

do summing things up.. if you have in your inventory at least 2 different rocket types, you can switch ammo in rocket launcher as the plugin should work (still blocking basic rockets as intended), and after first ammo switch the launcher will work untill you try to load basic rockets into it. 

My players found a workaround. If you have in your inventory at least 2 types of rockets (for example normal rockets and hv) you can then switch the ammo type. If you have only hv rockets, you can not. It doesn't matter if these are normal or inc rockets, but you must have the second type to be able to load HVs. I have no clue why it is like that. Good luck Orange, you will need that :P