Need help?
Create a topic in the appropriate section
Don't write everything in the chat!Take a look at the marketplace
There you can buy
everything related to game serversDon't want a ban?
Please read our rules
Don't disturb the order!Sell or buy?
Use services of the guarantor
We will make your deal safe
- 0
Sign in to follow this
Followers
0
Увеличение ХП у построек и уменьшение повреждения их с разного типа оружия
Asked by
GreeAL
-
Our picks
Всем привет ! Видел гайды по этой теме , но не смог разобраться , может кто-то подробно написать как увеличть хп у стен и уменьшать дамаг по ним с разного оружия .
Спустя 4 часа поиска гайдов и разбирательства каждого файла в DayZ Server нашёл файл по пути DayZServer\addons\gear_camping\config.cpp . Вот кусок кода кода:
class Fence: BaseBuildingBase { scope=2; displayName="$STR_CfgVehicles_Fence0"; descriptionShort="$STR_CfgVehicles_Fence1"; model="\DZ\gear\camping\fence.p3d"; bounding="BSphere"; overrideDrawArea="3.0"; forceFarBubble="true"; handheld="false"; lootCategory="Crafted"; carveNavmesh=1; weight=10000; itemSize[]={2,3}; physLayer="item_large"; createProxyPhysicsOnInit="false"; createdProxiesOnInit[]= { "Deployed" }; hybridAttachments[]= { "Material_WoodenLogs", "Material_MetalWire", "Wall_Barbedwire_1", "Wall_Barbedwire_2" }; mountables[]= { "Wall_Barbedwire_1", "Wall_Barbedwire_2" }; rotationFlags=2; class DamageSystem { class GlobalHealth { class Health { hitpoints=100; healthLevels[]= { { 1, { "" } }, { 0.69999999, { "" } }, { 0.5, { "" } }, { 0.30000001, { "" } }, { 0, { "" } } }; }; }; class GlobalArmor { class FragGrenade { class Health { damage=0; }; class Blood { damage=0; }; class Shock { damage=0; }; }; }; class DamageZones { class Body { class Health { hitpoints=100; transferToGlobalCoef=0; healthLevels[]= { { 1, { "DZ\gear\camping\data\fence_pile_of_planks.rvmat" } }, { 0.69999999, { "DZ\gear\camping\data\fence_pile_of_planks.rvmat" } }, { 0.5, { "DZ\gear\camping\data\fence_pile_of_planks_damage.rvmat" } }, { 0.30000001, { "DZ\gear\camping\data\fence_pile_of_planks_damage.rvmat" } }, { 0, { "DZ\gear\camping\data\fence_pile_of_planks_destruct.rvmat" } } }; }; class ArmorType { class Projectile { class Health { damage=0; }; class Blood { damage=0; }; class Shock { damage=0; }; }; class Melee { class Health { damage=0; }; class Blood { damage=0; }; class Shock { damage=0; }; }; class FragGrenade { class Health { damage=0; }; class Blood { damage=0; }; class Shock { damage=0; }; }; }; componentNames[]= { "body" }; fatalInjuryCoef=-1; }; class Wall_Base_Down { class Health { hitpoints=12000; transferToGlobalCoef=0; healthLevels[]= { { 1, { "DZ\gear\camping\data\fence_pile_of_planks.rvmat" } }, { 0.69999999, { "DZ\gear\camping\data\fence_pile_of_planks_worn.rvmat" } }, { 0.5, { "DZ\gear\camping\data\fence_pile_of_planks_damage.rvmat" } }, { 0.30000001, { "DZ\gear\camping\data\fence_pile_of_planks_bdamage.rvmat" } }, { 0, { "DZ\gear\camping\data\fence_pile_of_planks_bdamage.rvmat" } } }; }; displayName="$STR_CfgVehicles_Construction_Part_Base_Down"; class ArmorType { class Projectile { class Health { damage=1; }; class Blood { damage=0; }; class Shock { damage=0; }; }; class Melee { class Health { damage=0.64999998; }; class Blood { damage=0; }; class Shock { damage=0; }; }; class FragGrenade { class Health { damage=20; }; class Blood { damage=0; }; class Shock { damage=0; }; }; };
В class Fence: BaseBuildingBase хп составляет 100 , но гранаты и др не наносят домаг .
В class Wall_Base_Down хп составляет 12000 и гранаты и др наносят урон .
Подскажите , что редактировать в данном случае ?
Share this post
Link to post
Share on other sites