mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
There is no point in having two variables for the same purpose. It is also pointless to keep an action count tally like r_action_count was doing, since it is only ever checked for being 0 or 1. Any count higher or lower than that is irrelevant. I will make this change in vanilla too.
24 lines
535 B
C++
24 lines
535 B
C++
class ItemWire : CA_Magazine
|
|
{
|
|
scope = public;
|
|
count = 1;
|
|
type = WeaponSlotItem;
|
|
|
|
model = "\dayz_equip\models\Fence_wire_kit.p3d";
|
|
picture = "\dayz_equip\textures\equip_fencewire_kit_CA.paa";
|
|
displayName = $STR_EQUIP_NAME_23;
|
|
descriptionShort = $STR_EQUIP_DESC_23;
|
|
|
|
class ItemActions
|
|
{
|
|
class Build
|
|
{
|
|
text = $STR_ACTION_BUILD;
|
|
script = "spawn player_build;";
|
|
require[] = {"ItemToolbox"};
|
|
consume[] = {"ItemWire"};
|
|
create = "Fort_RazorWire"; // 1.8.7 uses Wire_cat1
|
|
byPass = "byPassRoadCheck";
|
|
};
|
|
};
|
|
}; |