mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +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.
30 lines
604 B
C++
30 lines
604 B
C++
class ItemEtool : ItemCore
|
|
{
|
|
scope = public;
|
|
model = "\dayz_equip\models\etool.p3d";
|
|
picture = "\dayz_equip\textures\equip_etool_ca.paa";
|
|
displayName = $STR_EQUIP_NAME_1;
|
|
descriptionShort = $STR_EQUIP_DESC_1;
|
|
|
|
stashsmall = "StashSmall";
|
|
stashmedium = "StashMedium";
|
|
consume = "ItemSandbag";
|
|
|
|
class ItemActions
|
|
{
|
|
class Build
|
|
{
|
|
text = "Build Sandbag Fence";
|
|
script = "spawn player_build;";
|
|
require[] = {"ItemEtool"};
|
|
consume[] = {"ItemSandbag"};
|
|
create = "Sandbag1_DZ";
|
|
};
|
|
|
|
/*class Use
|
|
{
|
|
text=$STR_CREATE_STASH;
|
|
script="spawn player_createstash;";
|
|
};*/
|
|
};
|
|
}; |