mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +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
514 B
C++
24 lines
514 B
C++
class ItemTankTrap : CA_Magazine
|
|
{
|
|
scope = public;
|
|
count = 1;
|
|
type = WeaponSlotItem;
|
|
|
|
model = "\dayz_equip\models\tank_trap_kit.p3d";
|
|
picture = "\dayz_equip\textures\equip_tanktrap_kit_CA.paa";
|
|
displayName = $STR_EQUIP_NAME_22;
|
|
descriptionShort = $STR_EQUIP_DESC_22;
|
|
|
|
class ItemActions
|
|
{
|
|
class Build
|
|
{
|
|
text = $STR_ACTION_BUILD;
|
|
script = "spawn player_build;";
|
|
require[] = {"ItemToolbox"};
|
|
consume[] = {"ItemTankTrap"};
|
|
create = "Hedgehog_DZ";
|
|
byPass = "byPassRoadCheck";
|
|
};
|
|
};
|
|
}; |