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.
57 lines
1.4 KiB
C++
57 lines
1.4 KiB
C++
class TrapBear : CA_Magazine
|
|
{
|
|
scope = public;
|
|
count = 1;
|
|
type = WeaponSlotItem;
|
|
|
|
model = "\dayz_equip\models\bear_trap_gear.p3d";
|
|
picture = "\dayz_equip\textures\equip_bear_trap_ca.paa";
|
|
displayName = $STR_EQUIP_NAME_BEARTRAP;
|
|
descriptionShort = $STR_EQUIP_DESC_BEARTRAP;
|
|
|
|
class ItemActions
|
|
{
|
|
class Build
|
|
{
|
|
text = $STR_ACTION_BUILD;
|
|
script = "spawn player_build;";
|
|
require[] = {"ItemToolbox"};
|
|
consume[] = {"TrapBear"};
|
|
create = "BearTrap_DZ";
|
|
};
|
|
};
|
|
};
|
|
|
|
class ItemTrapBearTrapFlare : TrapBear
|
|
{
|
|
model = "z\addons\dayz_communityassets\models\trap_beartrap_dropped_flare.p3d";
|
|
picture = "\z\addons\dayz_communityassets\pictures\equip_trap_beartrap_dropped_flare.paa";
|
|
displayName = $STR_ITEM_NAME_BEAR_TRAP_FLARE;
|
|
descriptionShort = $STR_ITEM_DESC_BEAR_TRAP_FLARE;
|
|
|
|
class ItemActions : ItemActions
|
|
{
|
|
class Build : Build
|
|
{
|
|
consume[] = {"ItemTrapBearTrapFlare"};
|
|
create = "TrapBearTrapFlare";
|
|
};
|
|
};
|
|
};
|
|
|
|
class ItemTrapBearTrapSmoke : TrapBear
|
|
{
|
|
model = "z\addons\dayz_communityassets\models\trap_beartrap_dropped_smoke.p3d";
|
|
picture = "\z\addons\dayz_communityassets\pictures\equip_trap_beartrap_dropped_smoke.paa";
|
|
displayName = $STR_ITEM_NAME_BEAR_TRAP_SMOKE;
|
|
descriptionShort = $STR_ITEM_DESC_BEAR_TRAP_SMOKE;
|
|
|
|
class ItemActions : ItemActions
|
|
{
|
|
class Build : Build
|
|
{
|
|
consume[] = {"ItemTrapBearTrapSmoke"};
|
|
create = "TrapBearTrapSmoke";
|
|
};
|
|
};
|
|
}; |