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
521 B
C++
24 lines
521 B
C++
class ItemGenerator : CA_Magazine
|
|
{
|
|
scope = public;
|
|
count = 1;
|
|
type = WeaponSlotItem;
|
|
|
|
model = "\dayz_equip\models\generator_gear.p3d";
|
|
picture = "\dayz_equip\textures\equip_generator_ca.paa";
|
|
displayName = $STR_EQUIP_NAME_31;
|
|
descriptionShort = $STR_EQUIP_DESC_31;
|
|
weight = 30; // used in R3F weight
|
|
|
|
class ItemActions
|
|
{
|
|
class Build
|
|
{
|
|
text = $STR_ACTION_BUILD;
|
|
script = "spawn player_build;";
|
|
require[] = {"ItemToolbox"};
|
|
consume[] = {"ItemGenerator"};
|
|
create = "Generator_DZ";
|
|
};
|
|
};
|
|
}; |