7DTD A19 Serverseitige Scripts - Server-side scripts7DTD Car Respawn

Our server side scripts that do not need to be downloaded. Every player gets all settings directly from the server.
Benutzeravatar
sx_schaddi
Site Admin
Beiträge: 52
Registriert: Dienstag 21. Mai 2019, 11:41

7DTD Car Respawn

#1

Ungelesener Beitrag von sx_schaddi » Montag 31. August 2020, 10:00

Auto Respawn | car respawn hinzugefügt:
blocks.xml
Block hinzufügen:

Code: Alles auswählen

	
		<block name="carRespawnerRH">
		<property name="CreativeMode" value="None"/>
		<property name="DescriptionKey" value="plantsBlockGroupDesc"/>
		<property name="CustomIcon" value="treeForestGrassDiagonal"/>
		<property name="Class" value="PlantGrowing"/>
		<property name="PlantGrowing.Next" value="carsRandomHelper"/>
		<property name="PlantGrowing.GrowthRate" value="32850" />
		<!-- Tage x 60 Minuten - heißt bei uns 365 (1 Jahr) x 90 Minuten Tageslänge= 32850 Minuten Echtzeit bis Respawn.) -->
		<property name="PlantGrowing.FertileLevel" value="0" />
		<property name="PlantGrowing.IsRandom" value="false" />
		<property name="Material" value="Mtallgrass"/>
		<property name="StabilitySupport" value="false"/>
		<property name="Shape" value="Grass"/>
		<property name="Mesh" value="grass"/>
		<property name="MaxDamage" value="1500"/>
		<property name="Texture" value="350,368,369,370,350,368"/>
		<property name="ImposterDontBlock" value="true"/>
		<property name="Collide" value="melee"/>
		<property name="CanDecorateOnSlopes" value="true"/>
		<property name="IsTerrainDecoration" value="true"/>
		<property name="IsDecoration" value="true"/>
		<property name="HarvestOverdamage" value="false"/>
		<drop event="Harvest" name="resourceYuccaFibers" count="2" tag="allHarvest"/>
		<drop event="Destroy" count="0"/>
		<drop event="Fall" name="resourceYuccaFibers" count="0" prob="1" stick_chance="0"/>
		<property name="FilterTags" value="foutdoor,fshrubbery"/>
		<property name="SortOrder1" value="a030"/>
		<property name="SortOrder2" value="0002"/>
	</block>  
		<block name="carsRandomHelperRH">
		<property name="CreativeMode" value="Dev"/>
		<property name="CustomIcon" value="cntCar03SedanDamage0Master"/>
		<property name="CustomIconTint" value="ff8080"/>
		<property name="ItemTypeIcon" value="explosion"/>
		<property name="Material" value="Mmetal"/>
		<property name="Class" value="Loot"/>
		<property name="LootList" value="16"/>
		<property name="IsReplaceRandom" value="false"/>
		<property name="Shape" value="ModelEntity"/>
		<property name="IsTerrainDecoration" value="true"/>
		<property name="Place" value="TowardsPlacer"/>
		<property name="Model" value="#Entities/Vehicles?Car/car_white_dmg0Prefab.prefab"/>
		<property name="ImposterDontBlock" value="true"/>
		<property name="ShowModelOnFall" value="false"/>
		<drop event="Destroy" count="0"/>
		<property name="BigDecorationRadius" value="5"/>
		<property name="CanDecorateOnSlopes" value="false"/>
		<property name="ActivationDistance" value="8"/>
		<property name="FilterTags" value="floot,fdesign"/>
		<property name="DisplayInfo" value="Name"/>
	</block>
Block ersetzen:

Code: Alles auswählen

	<block name="cntCar03SedanDamage2Master"> <!-- car wreck -->
	<property name="CreativeMode" value="None"/>
	<property name="Class" value="CarExplode"/>
	<property name="CustomIcon" value="cntCar03SedanDamage2Master"/>
	<property name="ItemTypeIcon" value="explosion"/>
	<property name="Material" value="Mmetal"/>
	<property name="Shape" value="ModelEntity"/>
	<property name="ImposterDontBlock" value="true"/>
	<property name="IsTerrainDecoration" value="true"/>
	<property name="Place" value="TowardsPlacer"/>
	<property name="Model" value="#Entities/Vehicles?Car/car_white_dmg2Prefab.prefab"/>
	<property name="ModelOffset" value="0,0,0"/>
	<property name="DisplayType" value="blockMulti"/>
	<property name="MultiBlockDim" value="2,2,6"/>
	<property name="ShowModelOnFall" value="false"/>
	<drop event="Harvest" name="terrStone" count="0" tool_category="Disassemble"/>
	<drop event="Harvest" name="resourceMetalPipe" count="5" prob="0.5" tag="salvageHarvest"/>
	<drop event="Harvest" name="ammoGasCan" count="50,500" prob="0.5" tag="allHarvest"/>
	<drop event="Harvest" name="ammoGasCan" count="50,500" prob="0.5" tag="salvageHarvest"/> <!-- together 100 avg -->
	<drop event="Harvest" name="resourceHeadlight" count="1" prob="0.45" tag="salvageHarvest"/>
	<drop event="Harvest" name="resourceScrapIron" count="20" tag="salvageHarvest"/>
	<drop event="Harvest" name="resourceScrapPolymers" count="2,7" tag="salvageHarvest"/>
	<drop event="Destroy" count="0"/>
	<drop event="Harvest" name="resourceMechanicalParts" count="1,5" tag="salvageHarvest"/>
	<drop event="Harvest" name="resourceElectricParts" count="0,2" prob="0.1" tag="salvageHarvest"/>
	<drop event="Harvest" name="resourceScrapIron" count="12" tag="allHarvest"/>
	<drop event="Fall" name="scrapMetalPile" count="1" prob="1" stick_chance="1"/>
	<property name="BigDecorationRadius" value="5"/>
	<property name="CanDecorateOnSlopes" value="false"/>
	<property class="Explosion">
		<property name="ParticleIndex" value="4"/> <!-- which prefab/particle is used -->
		<property name="RadiusBlocks" value="3.5"/> <!-- damage radius for blocks -->
		<property name="BlockDamage" value="500"/> <!-- damage for blocks in the center of the explosion -->
		<property name="RadiusEntities" value="5"/> <!-- damage radius for entities -->
		<property name="EntityDamage" value="250"/> <!-- damage for entities in the center of the explosion -->
	</property>
	<property name="ActivationDistance" value="6"/>
	<property name="FilterTags" value="floot"/>
	
				       <property name="DowngradeBlock" value="carRespawnerRH"/>  <!-- Diese zusätzliche Zeile ist entscheidend! -->
	
</block>
Hinzufügen:
blockplaceholder.xml

Code: Alles auswählen

	
		<placeholder name="carsRandomHelperRH">
		<block name="cntCarOldSedanRH" prob="0.7"/>

		<block name="cntBeetleRoofRH" prob="0.7"/>
		<block name="cntBeetleBeigeRH" prob="0.7"/>
		<block name="cntClassicMotorcycle02RH" prob="0.7"/>
		<block name="cntClassicMotorcycle01RH" prob="0.7"/>
		<block name="cntClassicCarBlueRH" prob="0.7"/>
		<block name="cntClassicCarRedRH" prob="0.7"/>
		<block name="cntClassicCarBlackRH" prob="0.7"/>


		<block name="cntCarBusCityRH" prob="0.5"/>
		<block name="cntCarMailTruckRH" prob="0.5"/>
		<block name="cntCarTaxiCabRH" prob="0.5"/>
		<block name="cntCarFoodTruckRH" prob="0.5"/>
		<block name="cntCarForkliftRH" prob="0.3"/>
		<block name="cntCarOldTrailerRH" prob="0.1"/>

		<block name="cntCarSemiTruck01RH" prob="0.1"/>
		<block name="cntCarSemiTruck01rRH" prob="0.1"/>
		<block name="cntCarSemiTruck01wRH" prob="0.1"/>
		<block name="cntCarOldPoliceCarRH" prob="0.1"/>
		<block name="cntCarAmbulanceRH" prob="0.3"/>
		<block name="cntCarFireTruckRH" prob="0.3"/>
		<block name="cntCarJeepSnowRH" prob="0.3"/>
		<block name="cntCarHummer01RH" prob="0.1"/>

		<block name="cntCarSWAT01RH" prob="0.05"/>
		<block name="cntCarM1A1AbramsRH" prob="0.05"/>	

		<block name="cntCar03SedanDamage0v01" prob="0.7"/>
		<block name="cntCar03SedanDamage0v02" prob="0.7"/>
		<block name="cntCar03SedanDamage0v03" prob="0.7"/>
		<block name="cntCar03SedanDamage0v04" prob="0.7"/>
		<block name="cntCar03SedanDamage0v05" prob="0.7"/>
		<block name="cntCar03SedanDamage0v06" prob="0.7"/>
		<block name="cntCar03SedanDamage0v07" prob="0.7"/>

		<block name="cntCar03SedanDamage1v01" prob="0.5"/>
		<block name="cntCar03SedanDamage1v02" prob="0.5"/>
		<block name="cntCar03SedanDamage1v03" prob="0.5"/>
		<block name="cntCar03SedanDamage1v04" prob="0.5"/>
		<block name="cntCar03SedanDamage1v05" prob="0.5"/>
		<block name="cntCar03SedanDamage1v06" prob="0.5"/>
		<block name="cntCar03SedanDamage1v07" prob="0.5"/>

		<block name="cntCar03SedanDamage2v01" prob="0.5"/>
		<block name="cntCar03SedanDamage2v02" prob="0.5"/>
		<block name="cntCar03SedanDamage2v03" prob="0.5"/>
		<block name="cntCar03SedanDamage2v04" prob="0.5"/>
		<block name="cntCar03SedanDamage2v05" prob="0.5"/>
		<block name="cntCar03SedanDamage2v06" prob="0.5"/>
		<block name="cntCar03SedanDamage2v07" prob="0.5"/>			
	</placeholder>