Support for SAM SiteFixed
Would it be possible to use this plugin to prevent damage (esp., degrade damage from firing missiles) to a SAM?

I've configured my server to allow shooting *any* flying object (including Heli) but the problem is the SAMs degrade pretty quickly (esp., during a Heli fight).
Thanks. I'll give it a try later and let you know if it works.

EDIT:

Seems to be a partial success. They decay seems to have gone away (which is good) but it's still getting damaged even when I have set 0.0 on the multiplyer

  "SAMSite_Multipliers": {
    "arrow": 0.0,
    "bite": 0.0,
    "bleeding": 0.0,
    "blunt": 0.0,
    "bullet": 0.0,
    "cold": 0.0,
    "coldexposure": 0.0,
    "decay": 0.0,
    "drowned": 0.0,
    "electricshock": 0.0,
    "explosion": 0.0,
    "fall": 0.0,
    "generic": 0.0,
    "heat": 0.0,
    "hunger": 0.0,
    "poison": 0.0,
    "radiation": 0.0,
    "radiationexposure": 0.0,
    "slash": 0.0,
    "stab": 0.0,
    "suicide": 0.0,
    "thirst": 0.0​


The downside is that the missles no longer seem to damage the Heli.I'm using default settings of 1.0 on all other multipliers.

I'll continue to investigate.
shoot me your json, could be you have the heli damage set to zero.  Heli or mini copter?
here ya go....


{
  "Animal_Time_Multipliers": {
    " 0": 1.0,
    " 1": 1.0,
    " 2": 1.0,
    " 3": 1.0,
    " 4": 1.0,
    " 5": 1.0,
    " 6": 1.0,
    " 7": 1.0,
    " 8": 1.0,
    " 9": 1.0,
    "10": 1.0,
    "11": 1.0,
    "12": 1.0,
    "13": 1.0,
    "14": 1.0,
    "15": 1.0,
    "16": 1.0,
    "17": 1.0,
    "18": 1.0,
    "19": 1.0,
    "20": 1.0,
    "21": 1.0,
    "22": 1.0,
    "23": 1.0
  },
  "APC_Multipliers": {
    "arrow": 1.0,
    "bite": 1.0,
    "bleeding": 1.0,
    "blunt": 1.0,
    "bullet": 1.0,
    "cold": 1.0,
    "coldexposure": 1.0,
    "decay": 1.0,
    "drowned": 1.0,
    "electricshock": 1.0,
    "explosion": 1.0,
    "fall": 1.0,
    "generic": 1.0,
    "heat": 1.0,
    "hunger": 1.0,
    "poison": 1.0,
    "radiation": 1.0,
    "radiationexposure": 1.0,
    "slash": 1.0,
    "stab": 1.0,
    "suicide": 1.0,
    "thirst": 1.0
  },
  "Balloon_Multipliers": {
    "arrow": 1.0,
    "bite": 1.0,
    "bleeding": 1.0,
    "blunt": 1.0,
    "bullet": 1.0,
    "cold": 1.0,
    "coldexposure": 1.0,
    "decay": 1.0,
    "drowned": 1.0,
    "electricshock": 1.0,
    "explosion": 1.0,
    "fall": 1.0,
    "generic": 1.0,
    "heat": 1.0,
    "hunger": 1.0,
    "poison": 1.0,
    "radiation": 1.0,
    "radiationexposure": 1.0,
    "slash": 1.0,
    "stab": 1.0,
    "suicide": 1.0,
    "thirst": 1.0
  },
  "Bear_Multipliers": {
    "arrow": 1.0,
    "bite": 1.0,
    "bleeding": 1.0,
    "blunt": 1.0,
    "bullet": 1.0,
    "cold": 1.0,
    "coldexposure": 1.0,
    "decay": 1.0,
    "drowned": 1.0,
    "electricshock": 1.0,
    "explosion": 1.0,
    "fall": 1.0,
    "generic": 1.0,
    "heat": 1.0,
    "hunger": 1.0,
    "poison": 1.0,
    "radiation": 1.0,
    "radiationexposure": 1.0,
    "slash": 1.0,
    "stab": 1.0,
    "suicide": 1.0,
    "thirst": 1.0
  },
  "Boar_Multipliers": {
    "arrow": 1.0,
    "bite": 1.0,
    "bleeding": 1.0,
    "blunt": 1.0,
    "bullet": 1.0,
    "cold": 1.0,
    "coldexposure": 1.0,
    "decay": 1.0,
    "drowned": 1.0,
    "electricshock": 1.0,
    "explosion": 1.0,
    "fall": 1.0,
    "generic": 1.0,
    "heat": 1.0,
    "hunger": 1.0,
    "poison": 1.0,
    "radiation": 1.0,
    "radiationexposure": 1.0,
    "slash": 1.0,
    "stab": 1.0,
    "suicide": 1.0,
    "thirst": 1.0
  },
  "Bradley_Time_Multipliers": {
    " 0": 1.0,
    " 1": 1.0,
    " 2": 1.0,
    " 3": 1.0,
    " 4": 1.0,
    " 5": 1.0,
    " 6": 1.0,
    " 7": 1.0,
    " 8": 1.0,
    " 9": 1.0,
    "10": 1.0,
    "11": 1.0,
    "12": 1.0,
    "13": 1.0,
    "14": 1.0,
    "15": 1.0,
    "16": 1.0,
    "17": 1.0,
    "18": 1.0,
    "19": 1.0,
    "20": 1.0,
    "21": 1.0,
    "22": 1.0,
    "23": 1.0
  },
  "Building": {
    "AllowDecay": "true",
    "ModifyBarrel": 1.0,
    "ModifyDeployed": 1.0,
    "ModifyDoor": 1.0,
    "ModifyFloor": 1.0,
    "ModifyFoundation": 1.0,
    "ModifyHighExternal": 1.0,
    "ModifyOther": 1.0,
    "ModifyRoof": 1.0,
    "ModifyStairs": 1.0,
    "ModifyToolCupboard": 1.0,
    "ModifyWall": 1.0
  },
  "Building_Grade_Multipliers": {
    "Metal": 1.0,
    "Stone": 1.0,
    "TopTier": 1.0,
    "Twigs": 1.0,
    "Wood": 1.0
  },
  "BuildingBlock_Multipliers": {
    "arrow": 1.0,
    "bite": 1.0,
    "bleeding": 1.0,
    "blunt": 1.0,
    "bullet": 1.0,
    "cold": 1.0,
    "coldexposure": 1.0,
    "decay": 1.0,
    "drowned": 1.0,
    "electricshock": 1.0,
    "explosion": 1.0,
    "fall": 1.0,
    "generic": 1.0,
    "heat": 1.0,
    "hunger": 1.0,
    "poison": 1.0,
    "radiation": 1.0,
    "radiationexposure": 1.0,
    "slash": 1.0,
    "stab": 1.0,
    "suicide": 1.0,
    "thirst": 1.0
  },
  "Bypasses": {
    "Heli_bypass": "false"
  },
  "Chicken_Multipliers": {
    "arrow": 1.0,
    "bite": 1.0,
    "bleeding": 1.0,
    "blunt": 1.0,
    "bullet": 1.0,
    "cold": 1.0,
    "coldexposure": 1.0,
    "decay": 1.0,
    "drowned": 1.0,
    "electricshock": 1.0,
    "explosion": 1.0,
    "fall": 1.0,
    "generic": 1.0,
    "heat": 1.0,
    "hunger": 1.0,
    "poison": 1.0,
    "radiation": 1.0,
    "radiationexposure": 1.0,
    "slash": 1.0,
    "stab": 1.0,
    "suicide": 1.0,
    "thirst": 1.0
  },
  "Global_Time_Multipliers": {
    " 0": 1.0,
    " 1": 1.0,
    " 2": 1.0,
    " 3": 1.0,
    " 4": 1.0,
    " 5": 1.0,
    " 6": 1.0,
    " 7": 1.0,
    " 8": 1.0,
    " 9": 1.0,
    "10": 1.0,
    "11": 1.0,
    "12": 1.0,
    "13": 1.0,
    "14": 1.0,
    "15": 1.0,
    "16": 1.0,
    "17": 1.0,
    "18": 1.0,
    "19": 1.0,
    "20": 1.0,
    "21": 1.0,
    "22": 1.0,
    "23": 1.0
  },
  "Heli_Multipliers": {
    "arrow": 1.0,
    "bite": 1.0,
    "bleeding": 1.0,
    "blunt": 1.0,
    "bullet": 1.0,
    "cold": 1.0,
    "coldexposure": 1.0,
    "decay": 1.0,
    "drowned": 1.0,
    "electricshock": 1.0,
    "explosion": 1.0,
    "fall": 1.0,
    "generic": 1.0,
    "heat": 1.0,
    "hunger": 1.0,
    "poison": 1.0,
    "radiation": 1.0,
    "radiationexposure": 1.0,
    "slash": 1.0,
    "stab": 1.0,
    "suicide": 1.0,
    "thirst": 1.0
  },
  "Heli_Time_Multipliers": {
    " 0": 1.0,
    " 1": 1.0,
    " 2": 1.0,
    " 3": 1.0,
    " 4": 1.0,
    " 5": 1.0,
    " 6": 1.0,
    " 7": 1.0,
    " 8": 1.0,
    " 9": 1.0,
    "10": 1.0,
    "11": 1.0,
    "12": 1.0,
    "13": 1.0,
    "14": 1.0,
    "15": 1.0,
    "16": 1.0,
    "17": 1.0,
    "18": 1.0,
    "19": 1.0,
    "20": 1.0,
    "21": 1.0,
    "22": 1.0,
    "23": 1.0
  },
  "Horse_Multipliers": {
    "arrow": 1.0,
    "bite": 1.0,
    "bleeding": 1.0,
    "blunt": 1.0,
    "bullet": 1.0,
    "cold": 1.0,
    "coldexposure": 1.0,
    "decay": 1.0,
    "drowned": 1.0,
    "electricshock": 1.0,
    "explosion": 1.0,
    "fall": 1.0,
    "generic": 1.0,
    "heat": 1.0,
    "hunger": 1.0,
    "poison": 1.0,
    "radiation": 1.0,
    "radiationexposure": 1.0,
    "slash": 1.0,
    "stab": 1.0,
    "suicide": 1.0,
    "thirst": 1.0
  },
  "Minicopter_Multipliers": {
    "arrow": 1.0,
    "bite": 1.0,
    "bleeding": 1.0,
    "blunt": 1.0,
    "bullet": 1.0,
    "cold": 1.0,
    "coldexposure": 1.0,
    "decay": 1.0,
    "drowned": 1.0,
    "electricshock": 1.0,
    "explosion": 1.0,
    "fall": 1.0,
    "generic": 1.0,
    "heat": 1.0,
    "hunger": 1.0,
    "poison": 1.0,
    "radiation": 1.0,
    "radiationexposure": 1.0,
    "slash": 1.0,
    "stab": 1.0,
    "suicide": 1.0,
    "thirst": 1.0
  },
  "NPC_Time_Multipliers": {
    " 0": 1.0,
    " 1": 1.0,
    " 2": 1.0,
    " 3": 1.0,
    " 4": 1.0,
    " 5": 1.0,
    " 6": 1.0,
    " 7": 1.0,
    " 8": 1.0,
    " 9": 1.0,
    "10": 1.0,
    "11": 1.0,
    "12": 1.0,
    "13": 1.0,
    "14": 1.0,
    "15": 1.0,
    "16": 1.0,
    "17": 1.0,
    "18": 1.0,
    "19": 1.0,
    "20": 1.0,
    "21": 1.0,
    "22": 1.0,
    "23": 1.0
  },
  "Other_Time_Multipliers": {
    " 0": 1.0,
    " 1": 1.0,
    " 2": 1.0,
    " 3": 1.0,
    " 4": 1.0,
    " 5": 1.0,
    " 6": 1.0,
    " 7": 1.0,
    " 8": 1.0,
    " 9": 1.0,
    "10": 1.0,
    "11": 1.0,
    "12": 1.0,
    "13": 1.0,
    "14": 1.0,
    "15": 1.0,
    "16": 1.0,
    "17": 1.0,
    "18": 1.0,
    "19": 1.0,
    "20": 1.0,
    "21": 1.0,
    "22": 1.0,
    "23": 1.0
  },
  "Player_Multipliers": {
    "arrow": 1.0,
    "bite": 1.0,
    "bleeding": 1.0,
    "blunt": 1.0,
    "bullet": 1.0,
    "cold": 1.0,
    "coldexposure": 1.0,
    "decay": 1.0,
    "drowned": 1.0,
    "electricshock": 1.0,
    "explosion": 1.0,
    "fall": 1.0,
    "generic": 1.0,
    "heat": 1.0,
    "hunger": 1.0,
    "poison": 1.0,
    "radiation": 1.0,
    "radiationexposure": 1.0,
    "slash": 1.0,
    "stab": 1.0,
    "suicide": 1.0,
    "thirst": 1.0
  },
  "Player_Time_Multipliers": {
    " 0": 1.0,
    " 1": 1.0,
    " 2": 1.0,
    " 3": 1.0,
    " 4": 1.0,
    " 5": 1.0,
    " 6": 1.0,
    " 7": 1.0,
    " 8": 1.0,
    " 9": 1.0,
    "10": 1.0,
    "11": 1.0,
    "12": 1.0,
    "13": 1.0,
    "14": 1.0,
    "15": 1.0,
    "16": 1.0,
    "17": 1.0,
    "18": 1.0,
    "19": 1.0,
    "20": 1.0,
    "21": 1.0,
    "22": 1.0,
    "23": 1.0
  },
  "SAMSite_Multipliers": {
    "arrow": 0.0,
    "bite": 0.0,
    "bleeding": 0.0,
    "blunt": 0.0,
    "bullet": 0.0,
    "cold": 0.0,
    "coldexposure": 0.0,
    "decay": 0.0,
    "drowned": 0.0,
    "electricshock": 0.0,
    "explosion": 0.0,
    "fall": 0.0,
    "generic": 0.0,
    "heat": 0.0,
    "hunger": 0.0,
    "poison": 0.0,
    "radiation": 0.0,
    "radiationexposure": 0.0,
    "slash": 0.0,
    "stab": 0.0,
    "suicide": 0.0,
    "thirst": 0.0
  },
  "Scientist_Multipliers": {
    "arrow": 1.0,
    "bite": 1.0,
    "bleeding": 1.0,
    "blunt": 1.0,
    "bullet": 1.0,
    "cold": 1.0,
    "coldexposure": 1.0,
    "decay": 1.0,
    "drowned": 1.0,
    "electricshock": 1.0,
    "explosion": 1.0,
    "fall": 1.0,
    "generic": 1.0,
    "heat": 1.0,
    "hunger": 1.0,
    "poison": 1.0,
    "radiation": 1.0,
    "radiationexposure": 1.0,
    "slash": 1.0,
    "stab": 1.0,
    "suicide": 1.0,
    "thirst": 1.0
  },
  "Stag_Multipliers": {
    "arrow": 1.0,
    "bite": 1.0,
    "bleeding": 1.0,
    "blunt": 1.0,
    "bullet": 1.0,
    "cold": 1.0,
    "coldexposure": 1.0,
    "decay": 1.0,
    "drowned": 1.0,
    "electricshock": 1.0,
    "explosion": 1.0,
    "fall": 1.0,
    "generic": 1.0,
    "heat": 1.0,
    "hunger": 1.0,
    "poison": 1.0,
    "radiation": 1.0,
    "radiationexposure": 1.0,
    "slash": 1.0,
    "stab": 1.0,
    "suicide": 1.0,
    "thirst": 1.0
  },
  "Wolf_Multipliers": {
    "arrow": 1.0,
    "bite": 1.0,
    "bleeding": 1.0,
    "blunt": 1.0,
    "bullet": 1.0,
    "cold": 1.0,
    "coldexposure": 1.0,
    "decay": 1.0,
    "drowned": 1.0,
    "electricshock": 1.0,
    "explosion": 1.0,
    "fall": 1.0,
    "generic": 1.0,
    "heat": 1.0,
    "hunger": 1.0,
    "poison": 1.0,
    "radiation": 1.0,
    "radiationexposure": 1.0,
    "slash": 1.0,
    "stab": 1.0,
    "suicide": 1.0,
    "thirst": 1.0
  },
  "Zombie_Multipliers": {
    "arrow": 1.0,
    "bite": 1.0,
    "bleeding": 1.0,
    "blunt": 1.0,
    "bullet": 1.0,
    "cold": 1.0,
    "coldexposure": 1.0,
    "decay": 1.0,
    "drowned": 1.0,
    "electricshock": 1.0,
    "explosion": 1.0,
    "fall": 1.0,
    "generic": 1.0,
    "heat": 1.0,
    "hunger": 1.0,
    "poison": 1.0,
    "radiation": 1.0,
    "radiationexposure": 1.0,
    "slash": 1.0,
    "stab": 1.0,
    "suicide": 1.0,
    "thirst": 1.0
  }
}​
Sorry I did not get a chance to test it tonight.  So the heli is not getting damaged with this config?  That seems odd given the multipliers are all 1.  I will load it up tomorrow to test.
In response to MalS ():
Sorry I did not get a chance to test it tonight.  So the heli is not getting damaged with this confi...
That is correct. With this plugin, I am not able to damage the heli.

Just for your info, I am using the TruePVE mod as well - I have that configured to allow damage to helis (config can be found here is you are interested: https://umod.org/community/true-pve/6115-allowing-damage-to-minicopter-from-samsite/post/19967)

So it's possible there's a conflct between the two plugins.
What plugin makes the sam attack the heli, or did you mean mini copter?  tested on the minicopter with 6 sams and well that was quick.

I suspect it is a config with another plugin causing the issue.

I did notice and correct a typo.  It is working for me so I am pushing this live.
Locked automatically