Bases vs Entity codesSolved

Hello nivex,

Sorry if someone already asked this. Too many threads...
I want to be able to have players destroy doors, not walls, now window frames, etc. Just walls, ladder hactches, etc.
Is this plugin by default making that players CANT destroy a stone wall or foundations for example?
For the doors I already created an entity group and copied all the doors entity codes I could remember. I then added a "players can hurt doors" command on the rules.
But since there are no entity codes for walls, foundations, etc.., im not sure if by default you CANT damage these?

Thank you for keeping up with us :)

I figured out :)

it's always good to show the solution so others can see it

True :)
It was just looking at the posts already in here and I found it on one of them:

{
"name": "structures",
"members": "foundation, foundation.triangle, floor, floor.triangle, floor.frame, floor.triangle.frame, wall, wall.frame, wall.low, wall.half, wall.window, wall.doorway, block.stair, block.stair.lshape, block.stair.ushape, block.stair.spiral, roof, roof.triangle, foundation.step, ramp",
"exclusions": ""
},

ah, some typos in that one

block.stair.lshape, block.stair.spiral, block.stair.spiral.triangle, block.stair.ushape, floor, floor.frame, floor.triangle, floor.triangle.frame, foundation, foundation.steps, foundation.triangle, ramp, roof, roof.triangle, wall, wall.doorway, wall.frame, wall.half, wall.low, wall.window

Thank you, will change it :)
Im still testing to figure out how to make it work since I am able to destroy a base that I created with another account.

I had : players cannot destroy base (where I have walls and such) and anything cannot destroy base


Maybe the 2 together cancel each other.

Gonna remove one and test soon.

I want playersto only be able to raid through walls, windows,etc

yea, post your config. you are going about this the wrong way :p

ahahahahahaha XD
Well at least I was able to toggle the zonepvxinfo correctly to show pvp on pvp areas and pve on the rest XD

{
"Config Version": "1.2.0",
"Default RuleSet": "default",
"Configuration Options": {
"handleDamage": true,
"useZones": true
},
"Mappings": {
"default": "default",
"PVP": "PVP",
"harbor_2": "PVP",
"water_treatment_plant_1": "PVP",
"satellite_dish": "PVP",
"radtown_small_3": "PVP",
"junkyard_1": "PVP",
"airfield_1": "PVP",
"sphere_tank": "PVP",
"excavator": "PVP",
"harbor_1": "PVP",
"oilrigai": "PVP",
"oilrigai2": "PVP",
"launch_site": "PVP",
"powerplant_1": "PVP",
"military_tunnel_1": "PVP",
"lighthouse_1": "PVP",
"lighthouse_2": "PVP",
"gas_station_1": "PVP",
"gas_station_2": "PVP",
"gas_station_3": "PVP",
"supermarket_1": "PVP",
"supermarket_2": "PVP",
"supermarket_3": "PVP",
"miningoutpost_1": "PVP",
"miningoutpost_2": "PVP",
"miningoutpost_3": "PVP",
"swamp_a": "PVP",
"swamp_b": "PVP",
"swamp_c": "PVP",
"mining_quarry_a": "PVP",
"mining_quarry_b": "PVP",
"mining_quarry_c": "PVP",
"trainyard_1": "PVP",
"fishing_village_a": "PVP",
"fishing_village_b": "PVP",
"fishing_village_c": "PVP"
},
"Schedule": {
"enabled": true,
"useRealtime": true,
"broadcast": true,
"entries": [
"6.00:00 PVP CAREFULL, PVP IS NOW ON FOR 24H! YOU ARE FREE TO ENGAGE.."
"1.00:00 default PVE ENABLED AGAIN. PEACE IS RESTORED!",
]
},
"RuleSets": [
{
"name": "default",
"enabled": true,
"defaultAllowDamage": false,
"flags": "HumanNPCDamage, LockedBoxesImmortal, LockedDoorsImmortal, SelfDamage, AuthorizedDamage, TwigDamage, AdminsHurtSleepers",
"rules": [
"anything can hurt dispensers",
"anything can hurt players",
"players cannot hurt players",
"players cannot hurt traps",
"traps can hurt players",
"players cannot hurt barricades",
"barricades can hurt players",
"highwalls cannot hurt players",
"players cannot hurt highwalls",
"anything cannot hurt highwalls",
"players cannot hurt heli",
"anything cannot hurt heli",
"anything can hurt npcs",
"fire cannot hurt players",
"anything can hurt resources",
"anything cannot hurt doors",
"players cannot hurt structures",
"anything cannot hurt structures",
"players cannot hurt vehicles",
"anything cannot hurt vehicles",
"explosives cannot hurt players",
"players cannot hurt baseitems",
"anything cannot hurt baseitems"
]
}
{
"name": "PVP",
"enabled": true,
"defaultAllowDamage": true,
"flags": "HumanNPCDamage, SelfDamage, AuthorizedDamage, TwigDamage, AdminsHurtSleepers",
"rules": [
"anything can hurt dispensers",
"anything can hurt players",
"players can hurt players",
"anything can hurt traps",
"traps can hurt players",
"players can hurt barricades",
"barricades can hurt players",
"highwalls can hurt players",
"anything can hurt heli",
"anything can hurt npcs",
"fire can hurt players",
"anything can hurt resources",
"players can hurt doors",
"players cannot hurt structures",
"players can hurt vehicles",
"explosives can hurt players",
"players can hurt baseitems"
]
}
],
"Allow Killing Sleepers": false,
"Entity Groups": [
{
"name": "players",
"members": "BasePlayer",
"exclusions": ""
},
{
"name": "structures",
"members": "foundation, foundation.triangle, floor, floor.triangle, floor.frame, floor.triangle.frame, wall, wall.frame, wall.low, wall.half, wall.window, wall.doorway, block.stair, block.stair.lshape, block.stair.ushape, block.stair.spiral, roof, roof.triangle, foundation.step, ramp",
"exclusions": ""
},
{
"name": "baseitems",
"members": "small_refinery_static, refinery_small_deployed, furnace.large, generator.wind.scrap, electric.windmill.small, water_catcher_large, water_catcher_small, waterpurifier.deployed, waterstorage, waterbarrel, watchtower.wood, composter, water.barrel, large.furnace, vendingmachine.deployed",
"exclusions": ""
},
{
"name": "doors",
"members": "door.hinged.toptier, door.double.hinged.toptier, lock.code, door.closer, electric.doorcontroller, dragondoorknocker, wall.frame.garagedoor, lock.key, door.hinged.metal, door.double.hinged.metal, skulldoorknocker, door.double.hinged.wood, door.hinged.wood, shutter.metal.embrasure.a, shutter.metal.embrasure.b, wall.window.bars.metal, wall.window.bars.toptier, wall.window.glass.reinforced, wall.window.bars.wood, floor.ladder.hatch, floor.triangle.ladder.hatch, gates.external.high.stone, gates.external.high.wood, wall.frame.cell.gate, wall.frame.fence.gate, floor.grill, floor.triangle.grill",
"exclusions": ""
},
{
"name": "vehicles",
"members": "minicopter, minicopter.entity, scraptransporthelicopter, hotairballoon, 2module_car, 3module_car, 4module_car",
"exclusions": ""
},
{
"name": "explosives",
"members": "explosive.satchel, explosive.timed, ammo.rocket.smoke, ammo.rocket.basic, ammo.rocket.hv, ammo.rocket.smoke, ammo.rocket.fire, ammo.rifle.incendiary, ammo.rifle.explosive, grenade.f1, grenade.beancan, ammo.grenadelauncher.he, ammo.shotgun.fire, arrow.fire, surveycharge",
"exclusions": ""
},
{
"name": "dispensers",
"members": "BaseCorpse, HelicopterDebris",
"exclusions": ""
},
{
"name": "traps",
"members": "AutoTurret, BearTrap, FlameTurret, Landmine, GunTrap, ReactiveTarget, spikes.floor",
"exclusions": ""
},
{
"name": "barricades",
"members": "Barricade",
"exclusions": ""
},
{
"name": "highwalls",
"members": "wall.external.high.stone, wall.external.high.wood, gates.external.high.wood, gates.external.high.wood",
"exclusions": ""
},
{
"name": "heli",
"members": "BaseHelicopter",
"exclusions": ""
},
{
"name": "npcs",
"members": "NPCPlayerApex, BradleyAPC, NPCMurderer, murderer, NPCScientist, scientist, Zombies",
"exclusions": ""
},
{
"name": "fire",
"members": "FireBall",
"exclusions": ""
},
{
"name": "resources",
"members": "ResourceEntity, TreeEntity, OreResourceEntity, LootContainer",
"exclusions": ""
}
]
}

Merged post

Hey again.
Just wondering if you could check the code I sent you?

You mentioned that I was going to wrong way XD can you point me in the right direction please? :)

Since this is PVE then the bases should NOT be able to be destroyed at all right? Otherwise players could go and destroy each other bases and no one could kill them. Turrets could but you know what I mean :)

In this case what I did was create a base with admin account. Then I switched to a second account (using family share) and went into the base and placed c4s. I was able to do damage to the walls. I only had the code of the door since I left c4s there for my second account to have them :)

Does the game (or plugin) recognize that by having the code (but still no tc auth) I am using the base as mine therefore the "AuthorizedDamage" lets me give damage?

Sorry for this long post. I have everything set for my server to work, only this last part missing. Being able to have undestroyable bases. Once in PVP you can still raid but only doors, windows, hatches, etc..

Merged post

Just noticed I was missing 2 comas.
So I was able to do damage since the plugin was not being loaded due to these.
I correct it tried to do damage to the bases and I couldnt which is working as intended :)
Just need to test this weekend if I can destroy doors since I placed them on a category and I said that players can hurt doors.
Fingers crossed :)

Merged post

I believe it is working as I intended :)
PVE is not doing damage to bases.
I changed the time for PVP to start now and I had a base that I could only destroy the door :) Hurray :)
Now I need to speak with another developer since the pve indicator still shows as pve even when the server changed to pvp.
THANK YOU A THOUSAND TIMES for taking your time to make these plugins :)

everything seems to be in order for you now but moving forward definitely make sure to continue using defaultAllowDamage = false in a PVE ruleset, and defaultAllowDamage = true in a PVP ruleset like you are now.

this should always be the case, regardless of how you are trying to configure the plugin. it is always much easier to use defaultAllowDamage = false and add specific entity groups to allow damage to, than it is to add specific entity groups to block damage when defaultAllowDamage is true

likewise for PVP rulesets it is always better to use defaultAllowDamage = true and block specific damages instead, since the PVP (or raid) ruleset generally allows damage to most entities.

Locked automatically