Only People authorized on the tc they are going after can kill the npc and only the npc can attack them.
You can use kits plugin from umod to kit them with clothing and guns See config example below.
Perms are set in config per raid type.
Permissions
npcraiders.use - Needed to use /raidme chat command.
npcraiders.admin - Needed to use /raidme reload chat command.
npcraiders.nocooldown - Disable the setting of your cooldown.
npcraiders.nocost - Disable the being charged.
Chat Command
/raidme - Will show raid help menu.
/raidme buy - Will show raid buy help menu and costs.
/raidme buy <type> - To start raid of the type.
/raidme reload player <playerName> = Will cancel there raid event.
/raidme reload all - Will cancel all events.
/raidme terrain - Get Terrain name your standing on.
/raidme loot - Generate a loot profile with all the items in your inventory
Loot Profiles
/raidme loot add <profileName> - Create or add more items to a profile
/raidme loot clear <profileName> - Clear all information from a profile
When you create a loot profile you will need to edit its datafile and set the min and max amount of items to give.. There you can change other min/max for item ammounts default is 1 to Amount when created
Config BuyType
ByTypes can be "Itemid" , "ServerRewards", or "Economics"
Default is scrap "-932201673"
Config.RewardType
RewardType can be "Itemid" , "ServerRewards", "Economics" , or "kit"
"enabled": true,
"rewardAll": false,
"RewardType": "kit",
"RewardAmmount": "MyKitName"
----------------------- Random kit ----------------------------
"RewardAmmount": [ "kit1", "kit2" ]
"rewardAll": false,
"RewardType": "kit",
"RewardAmmount": "MyKitName"
----------------------- Random kit ----------------------------
"RewardAmmount": [ "kit1", "kit2" ]
"enabled": true,
"rewardAll": false,
"RewardType": "-932201673",
"RewardAmmount": 50
"rewardAll": false,
"RewardType": "-932201673",
"RewardAmmount": 50
"enabled": true,
"rewardAll": false,
"RewardType": "serverrewards",
"RewardAmmount": 150
"rewardAll": false,
"RewardType": "serverrewards",
"RewardAmmount": 150
Config.AutoTurretDamage
"AutoTurretDamage": 0.0 - Disable targeting the npc.
"AutoTurretDamage": 1.0 - Full damage to the npc / Range is 0.0 to 1.0.
Code:
{
"Random settings": {
"Chat command": "raidme",
"The Maxum amount of raid events that can go on at once": 6,
"Cooldown before you can call in another raid": 3600,
"Cooldown after authorising on a tc be for you can start a raid": 86400,
"The maxum amount of time a rocket will fly before exploding": 4.0,
"Limit the damage to players building": false
},
"All Raid Types": {
"Raid types must be in lowercase": {
"easy": {
"The Permission": "npcraiders.easy",
"Total npcs per wave": 15,
"How many extra waves": 0,
"Seconds untell next wave": 120,
"Total event time in seconds": 640,
"Npc drop loot on death": true,
"Npc drop loot config names": [
"easy"
],
"Spawn health of the npc": 100.0,
"Rocket damage scale": 0.01,
"Auto turret damage scale to npc": 1.0,
"Explosive item shortnames": [
"explosive.timed",
"explosive.satchel"
],
"Names to give the npcs": [
"Cobalt Scientist"
],
"Spawn kits for the npcs": []
},
"medium": {
"The Permission": "npcraiders.medium",
"Total npcs per wave": 15,
"How many extra waves": 3,
"Seconds untell next wave": 120,
"Total event time in seconds": 900,
"Npc drop loot on death": true,
"Npc drop loot config names": [],
"Spawn health of the npc": 200.0,
"Rocket damage scale": 1.0,
"Auto turret damage scale to npc": 1.0,
"Explosive item shortnames": [
"explosive.timed",
"explosive.satchel"
],
"Names to give the npcs": [
"Cobalt Scientist"
],
"Spawn kits for the npcs": []
},
"hard": {
"The Permission": "npcraiders.hard",
"Total npcs per wave": 20,
"How many extra waves": 4,
"Seconds untell next wave": 120,
"Total event time in seconds": 1200,
"Npc drop loot on death": true,
"Npc drop loot config names": [],
"Spawn health of the npc": 400.0,
"Rocket damage scale": 1.0,
"Auto turret damage scale to npc": 1.0,
"Explosive item shortnames": [
"explosive.timed",
"explosive.satchel"
],
"Names to give the npcs": [
"Cobalt Scientist"
],
"Spawn kits for the npcs": []
},
"expert": {
"The Permission": "npcraiders.expert",
"Total npcs per wave": 30,
"How many extra waves": 4,
"Seconds untell next wave": 120,
"Total event time in seconds": 1500,
"Npc drop loot on death": true,
"Npc drop loot config names": [],
"Spawn health of the npc": 400.0,
"Rocket damage scale": 1.0,
"Auto turret damage scale to npc": 1.0,
"Explosive item shortnames": [
"explosive.timed",
"explosive.satchel"
],
"Names to give the npcs": [
"Cobalt Scientist"
],
"Spawn kits for the npcs": []
},
"nightmare": {
"The Permission": "npcraiders.nightmare",
"Total npcs per wave": 30,
"How many extra waves": 5,
"Seconds untell next wave": 120,
"Total event time in seconds": 2100,
"Npc drop loot on death": true,
"Npc drop loot config names": [],
"Spawn health of the npc": 400.0,
"Rocket damage scale": 1.0,
"Auto turret damage scale to npc": 1.0,
"Explosive item shortnames": [
"explosive.timed",
"explosive.satchel"
],
"Names to give the npcs": [
"Cobalt Scientist"
],
"Spawn kits for the npcs": []
}
}
},
"Raid Buy Options": {
"BuyOptions": {
"easy": {
"BuyType": "-932201673",
"BuyAmmount": 5000
},
"medium": {
"BuyType": "-932201673",
"BuyAmmount": 1000
},
"hard": {
"BuyType": "-932201673",
"BuyAmmount": 1500
},
"expert": {
"BuyType": "-932201673",
"BuyAmmount": 1500
},
"nightmare": {
"BuyType": "-932201673",
"BuyAmmount": 1500
}
}
},
"Raid Reward Options": {
"RewardOptions": {
"easy": {
"enabled": true,
"rewardAll": false,
"RewardType": "kit",
"RewardAmmount": [
"test",
"test"
]
},
"medium": {
"enabled": false,
"rewardAll": false,
"RewardType": "-932201673",
"RewardAmmount": 1000
},
"hard": {
"enabled": false,
"rewardAll": false,
"RewardType": "-932201673",
"RewardAmmount": 1500
},
"expert": {
"enabled": false,
"rewardAll": false,
"RewardType": "-932201673",
"RewardAmmount": 1500
},
"nightmare": {
"enabled": false,
"rewardAll": false,
"RewardType": "-932201673",
"RewardAmmount": 1500
}
}
},
"Block raid in colider": {
"Blocked": [
"iceberg",
"ice_berg",
"ice_sheet",
"icesheet"
]
},
"Version": {
"Major": 1,
"Minor": 1,
"Patch": 15
}
}