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
-
Our picks
Вообщем на основе обычных тряпок сделал свои.
Изменено только Название и текстура.
Как и в дефолтных тряпках стоит InventorySlot "Rags"
При этом, тряпки не вставляются в костёр.
class RagDirty : Rag { scope = public; displayName = "Грязная тряпка"; descriptionShort = "Кусок грязной ткани. В экстренном случае можно использовать для остановки кровотечения, но есть шанс подхватить инфекцию."; model = "\dz\gear\consumables\Rags.p3d"; itemSize[] = {1, 2}; inventorySlot = "Rags"; ChangeInventorySlot[] = {"Mask"}; ChangeIntoOnAttach[] = {"", "MouthRag"}; weight = 20; absorbency = 1; canBeSplit = 1; varQuantityInit = 6; varQuantityMin = 0; varQuantityMax = 6; varQuantityDestroyOnMin = 1; repairableWithKits[] = {5, 2}; repairCosts[] = {30, 25}; rotationFlags = 17; hiddenSelections[] = {"zbytek"}; hiddenSelectionsTextures[] = {"\ResidentEvil\textures\Rag\dirty_rag.paa", "\ResidentEvil\textures\Rag\dirty_rag.paa", "\ResidentEvil\textures\Rag\dirty_rag.paa"}; class DamageSystem { class GlobalHealth { class Health { hitpoints = 50; healthLevels[] = {{1, {"DZ\gear\consumables\data\rags_bandages.rvmat"}}, {0.7, {"DZ\gear\consumables\data\rags_bandages.rvmat"}}, {0.5, {"DZ\gear\consumables\data\rags_bandages_damage.rvmat"}}, {0.3, {"DZ\gear\consumables\data\rags_bandages_damage.rvmat"}}, {0, {"DZ\gear\consumables\data\rags_bandages_destruct.rvmat"}}}; }; }; }; };
А вот код костра...
class Fireplace : FireplaceBase { scope = public; displayName = "$STR_CfgVehicles_Fireplace0"; descriptionShort = "$STR_CfgVehicles_Fireplace1"; model = "\dz\gear\cooking\Fireplace.p3d"; overrideDrawArea = 8.0; slopeTolerance = 0.3; physLayer = "item_large"; openable = 0; lootCategory = "Crafted"; itemSize[] = {4, 4}; itemsCargoSize[] = {10, 4}; useEntityHierarchy = "true"; attachments[] = {"Firewood", "WoodenStick", "CookingEquipment", "Rags", "MedicalBandage", "Paper", "Bark", "CookingTripod", "Stones", "DirectCookingA", "DirectCookingB", "DirectCookingC", "SmokingA", "SmokingB", "SmokingC", "SmokingD"}; class GUIInventoryAttachmentsProps { class CookingEquipment { name = "$STR_attachment_CookingEquipment0"; description = ""; attachmentSlots[] = {"CookingTripod", "CookingEquipment"}; icon = "cat_fp_cooking"; view_index = 1; }; class Smoking { name = "$STR_attachment_Smoking"; description = ""; attachmentSlots[] = {"SmokingA", "SmokingB", "SmokingC", "SmokingD"}; icon = "cookingequipment"; view_index = 2; }; class DirectCooking { name = "$STR_attachment_CookingEquipment0"; description = ""; attachmentSlots[] = {"DirectCookingA", "DirectCookingB", "DirectCookingC"}; icon = "cookingequipment"; view_index = 3; }; class Upgrade { name = "$STR_attachment_Upgrade0"; description = ""; attachmentSlots[] = {"Stones"}; icon = "cat_fp_upgrade"; view_index = 4; }; class Fuel { name = "$STR_attachment_Fuel0"; description = ""; attachmentSlots[] = {"Firewood", "WoodenStick"}; icon = "cat_fp_fuel"; view_index = 5; }; class Kindling { name = "$STR_attachment_Kindling0"; description = ""; attachmentSlots[] = {"Rags", "MedicalBandage", "Paper", "Bark"}; icon = "cat_fp_kindling"; view_index = 6; }; }; hiddenSelections[] = {"ashes", "inventory"}; hiddenSelectionsTextures[] = {"\dz\gear\cooking\data\stoneground_co.paa", "\dz\gear\cooking\data\fireplacekit_co.paa"}; hiddenSelectionsMaterials[] = {"\dz\gear\cooking\data\stonegroundnoemit.rvmat", "\dz\gear\cooking\data\fireplacekit.rvmat"}; hologramMaterial = "FireplaceKit"; hologramMaterialPath = "dz\gear\cooking\data"; };
Всю голову сломал почему не вставляются, если InventorySlot стоит и там и там Rags.
Прошу помочь.
Edited by Verum (see edit history)Share this post
Link to post
Share on other sites