Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgWeapons/Tools/Shovel.hpp
ebaydayz c2b16f0828 Consolidate DZE_ActionInProgress and r_action_count to one variable
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.
2016-08-25 15:38:27 -04:00

40 lines
913 B
C++

class ItemShovel : ItemCore
{
scope = public;
model = "\z\addons\dayz_communityassets\models\shovel.p3d";
picture = "\z\addons\dayz_communityassets\pictures\equip_shovel_ca.paa";
displayName = $STR_EQUIP_NAME_1b;
descriptionShort = $STR_EQUIP_DESC_1b;
stashsmall = "StashSmall";
stashmedium = "StashMedium";
consume = "ItemSandbag";
class ItemActions
{
class Build
{
text = "Build Sandbag Fence";
script = "spawn player_build;";
require[] = {"ItemShovel"};
consume[] = {"ItemSandbag"};
create = "Sandbag1_DZ";
};
class Use
{
text = $STR_CREATE_STASH;
script = "spawn player_createstash;";
};
};
};
class ItemShovelBroken : ItemCore
{
scope = public;
model = "\z\addons\dayz_communityassets\models\shovel.p3d";
picture = "\z\addons\dayz_communityassets\pictures\equip_shovel_ca.paa";
displayName = "Broken Shovel";
descriptionShort = $STR_EQUIP_DESC_1b;
};