Jump to content

Support for protecting Deployables

Closed 1.1.5

Mals
  • Moderator
Mals

Posted

Would it be possible to protect deployables when in TC range and the person trying to damage it is not the owner?  I just had someone shoot up town on a PVE server. 😞

Iftebinjan

Posted

Name of the deployables pls. I am trying to recode this rules section, getting many conflicts with several rules which conflicting damage without rules! 

  • Moderator
Mals

Posted (edited)

Wow, that is a long list (I hope I did not miss anything).  Ideally anything that can be placed or parked in range of a TC should be protected.  Outside of a TC, honestly I don't care, but I decay deployables outside of TC range on my servers to clean up after deployable spammers.

1module_cockpit
1module_cockpit_armored
1module_cockpit_with_engine
1module_engine
1module_flatbed
1module_passengers_armored
1module_rear_seats
1module_storage
1module_taxi
2module_camper
2module_car_spawned.entity
2module_flatbed
2module_fuel_tank
2module_passengers
3module_car_spawned.entity
4module_car_spawned.entity
_base_car_chassis.entity
_basetrainwagon.entity
_cardtable_base
_snowmobilebase
abovegroundpool.deployed
advendcalendar.deployed
andswitch.entity
audioalarm
autoturret_deployed
barricade.concrete
barricade.cover.wood
barricade.metal
barricade.sandbags
barricade.stone
barricade.wood
barricade.woodwire
bbq.deployed
beachchair.deployed
beachparasol.deployed
beachtable.deployed
beachtowel.deployed
beartrap
bed_deployed
blackjackmachine.caboose
blackjackmachine.static
boogieboard.deployed
boombox.deployed
box.wooden.large
button
cabletunnel
campfire
car_2mod_01
car_2mod_02
car_2mod_03
car_2mod_04
car_2mod_05
car_2mod_06
car_2mod_07
car_2mod_08
car_3mod_01
car_3mod_02
car_3mod_03
car_3mod_04
car_3mod_05
car_3mod_06
car_3mod_07
car_3mod_08
car_3mod_09
car_3mod_10
car_3mod_11
car_3mod_12
car_4mod_01
car_4mod_02
car_4mod_03
car_4mod_04
car_4mod_05
car_4mod_06
car_4mod_07
car_4mod_08
car_4mod_09
car_4mod_10
car_4mod_11
car_chassis_2module.entity
car_chassis_3module.entity
car_chassis_4module.entity
cardtable.caboose
cardtable.caboose_static
cardtable.deployed
cardtable.static_configa
cardtable.static_configa_hidden
cardtable.static_configb
cardtable.static_configc
cardtable.static_configd
carvable.pumpkin
cctv_deployed
ceilinglight.deployed
ch47.entity
ch47scientists.entity
chair.deployed
chair.icethrone
chineselantern.deployed
chippyarcademachine
chippyarcademachine.static
christmas_door_wreath_deployed
clantable.deployed
coffinstorage
composter
computerstation.deployed
connectedspeaker.deployed
counter
cupboard.tool.deployed
cursedcauldron.deployed
discoball.deployed
discofloor.deployed
discofloor.largetiles.deployed
door.double.hinged.metal
door.double.hinged.toptier
door.double.hinged.wood
door.hinged.industrial.a
door.hinged.industrial.d
door.hinged.metal
door.hinged.toptier
door.hinged.wood
doorcontroller.deployed
doorgarland.deployed
double_doorgarland.deployed
dragondoorknocker.deployed
drone.deployed
dropbox.deployed
drumkit.deployed
easter_door_wreath_deployed
electric.flasherlight.deployed
electric.sirenlight.deployed
electric.sprinkler.deployed
electric.windmill.small
electrical.blocker.deployed
electrical.branch.deployed
electrical.combiner.deployed
electrical.heater
electrical.memorycell.deployed
electrical.modularcarlift.deployed
electrical.random.switch.deployed
electricfurnace.deployed
elevator
fireplace.deployed
flameturret.deployed
floor.grill
floor.ladder.hatch
floor.triangle.grill
floor.triangle.ladder.hatch
fluid.combiner.deployed
fluidsplitter
fluidswitch
fogmachine
frankensteintable.deployed
fridge.deployed
furnace
furnace.large
gates.external.high.stone
gates.external.high.wood
generator.small
giantcandycane.deployed
giantlollipops.deployed
gravestone.stone.deployed
gravestone.wood.deployed
graveyardfence
guntrap.deployed
hbhfsensor.deployed
hemp.entity
hitchtrough.deployed
hobobarrel.deployed
icewall
igniter.deployed
industrial.wall.lamp.deployed
industrial.wall.lamp.green.deployed
industrial.wall.lamp.red.deployed
industrialcombiner.deployed
industrialconveyor.deployed
industrialcrafter.deployed
industrialsplitter.deployed
innertube.deployed
innertube.horse.deployed
innertube.unicorn.deployed
jackolantern.angry
jackolantern.happy
kayak
ladder.wooden.wall
landmine
lantern.deployed
large.rechargable.battery.deployed
largecandleset
laserdetector
laserlight.deployed
locker.deployed
locomotive.entity
magnetcrane.entity
mailbox.deployed
medium.rechargable.battery.deployed
microphonestand.deployed
minicopter.entity
mining.pumpjack
mining_quarry
mixingtable.deployed
mortarblue
mortarchampagne
mortargreen
mortarorange
mortarpattern
mortarred
mortarviolet
newyeargong.deployed
orswitch.entity
paddlingpool.deployed
photoframe.landscape
photoframe.large
photoframe.portrait
piano.deployed
planter.large.deployed
planter.small.deployed
pookie_deployed
potato.entity
poweredwaterpurifier.deployed
pressurepad.deployed
ptz_cctv_deployed
pumpkin.entity
reactivetarget_deployed
refinery_small_deployed
repairbench_deployed
researchtable_deployed
rfbroadcaster
rfreceiver
rhib
romancandle
romancandle-blue
romancandle-green
romancandle-violet
rowboat
rug.bear.deployed
rug.deployed
rustigeegg_a.deployed
rustigeegg_b.deployed
rustigeegg_c.deployed
rustigeegg_d.deployed
rustigeegg_e.deployed
rustigeegg_f.deployed
sam_site_turret_deployed
scarecrow.deployed
scraptransporthelicopter
searchlight.deployed
secretlabchair.deployed
sedanrail.entity
sedantest.entity
shelves
shutter.metal.embrasure.a
shutter.metal.embrasure.b
shutter.wood.a
sign.hanging
sign.hanging.banner.large
sign.hanging.ornate
sign.huge.wood
sign.large.wood
sign.medium.wood
sign.neon.125x125
sign.neon.125x215
sign.neon.125x215.animated
sign.neon.xl
sign.neon.xl.animated
sign.pictureframe.landscape
sign.pictureframe.portrait
sign.pictureframe.tall
sign.pictureframe.xl
sign.pictureframe.xxl
sign.pole.banner.large
sign.post.double
sign.post.single
sign.post.town
sign.post.town.roof
sign.small.wood
simplelight
skull_door_knocker.deployed
skull_fire_pit
skullspikes.candles.deployed
skullspikes.deployed
skullspikes.pumpkin.deployed
skulltrophy.deployed
skulltrophy.jar.deployed
skulltrophy.jar2.deployed
skulltrophy.table.deployed
skylantern.deployed
skylantern.skylantern.green
skylantern.skylantern.orange
skylantern.skylantern.purple
skylantern.skylantern.red
sled.deployed
sled.deployed.xmas
sleepingbag_leather_deployed
small_fuel_generator.deployed
small_stash_deployed
smallcandleset
smallrechargablebattery.deployed
smartalarm
smartswitch
snowmachine
snowman.deployed
snowmobile
sofa.deployed
sofa.pattern.deployed
sofa.static
sofa_pattern.static
solarpanel.large.deployed
soundlight.deployed
spiderweba
spikes.floor
spinner.wheel.deployed
splitter
spookyspeaker
stocking_large_deployed
stocking_small_deployed
storageadaptor.deployed
storagemonitor.deployed
strobelight
submarineduo.entity
submarinesolo.entity
survivalfishtrap.deployed
switch
table.deployed
telephone.deployed
teslacoil.deployed
testridablehorse
timer
tomahasnowmobile
traincaboose.entity
trainwagona.entity
trainwagonb.entity
trainwagonc.entity
trainwagonunloadable.entity
trainwagonunloadablefuel.entity
trainwagonunloadableloot.entity
trophy.deployed
tugboat
tunalight.deployed
vendingmachine.deployed
volcanofirework
volcanofirework-red
volcanofirework-violet
wall.external.high.ice
wall.external.high.stone
wall.external.high.wood
wall.frame.cell
wall.frame.cell.gate
wall.frame.fence
wall.frame.fence.gate
wall.frame.garagedoor
wall.frame.netting
wall.frame.shopfront
wall.frame.shopfront.metal
wall.window.bars.metal
wall.window.bars.toptier
wall.window.bars.wood
wall.window.glass.reinforced
watchtower.wood
water.pump.deployed
water_catcher_large
water_catcher_small
waterbarrel
waterpurifier.deployed
windowgarland.deployed
woodbox_deployed
workbench1.deployed
workbench2.deployed
workbench3.deployed
workcart.entity
workcart_aboveground.entity
workcart_aboveground2.entity
xmas.lightstring.deployed
xmas_tree.deployed
xorswitch.entity
xylophone.deployed

 

Edited by Mals
  • Moderator
Mals

Posted

This is how I try to find them in Damage Control:

void build_dep_list()
    {
        foreach (var itemDef in ItemManager.GetItemDefinitions().ToList())
             {
                var mod = itemDef.GetComponent<ItemModDeployable>();
                if (mod != null)
				{
					if (itemDef.name.LastIndexOf(".item") > 0)
					{
						deployable_list.Add(itemDef.name.Substring(0,itemDef.name.LastIndexOf(".item")).Replace("_",".").ToLower());
						deployable_list.Add(itemDef.name.Substring(0,itemDef.name.LastIndexOf(".item")).Replace("_",".").ToLower()+".deployed"); // hack to deal with some having deployed and some not
					}
					else
					{
						deployable_list.Add(itemDef.name.Replace("_",".").ToLower());
						deployable_list.Add(itemDef.name.Replace("_",".").ToLower()+".deployed");  // hack to deal with some having deployed and some not
					}
				}
             }
		// deal with messed up repair_bench losing its "_" to become repairbench
		deployable_list.Add("repairbench.deployed");
		deployable_list.Add("refinery.small.deployed");
		deployable_list.Add("sleepingbag.leather.deployed");

		// debugging dump
		//foreach (string p in deployable_list)
        //{
        //    PrintWarning(p);
        //}
    }

 

  • Love 1
Iftebinjan

Posted

Hey, I am seeing only the car, minicopter or maybe vehicle entitys not protected inside Tc range, or am i worng or something. other deploables not taking any damage unless u r the owner or team

  • Moderator
Mals

Posted (edited)

They destroy large boxes, but I stopped them before more was damaged. They were not the owner or on a team with me.

SimplePVE.json

Edited by Mals
Iftebinjan

Posted

I couldnt recreate the situation. Might be a glitch with one or other rules. I am recoding this, hopefull fixed on next update

Iftebinjan

Posted

Changed Status from Pending to Closed

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.4k

Files Sold

Total number of files sold.

2.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.