Fix in ground spawn pickaxe and broken pickaxe

The pickaxe and the broken pickaxe spawned headlong in the ground. It was the same for the crowbar. We need to add an extra weaponholder for this tools for a proper spawn.
This commit is contained in:
A Man
2019-10-23 10:50:01 +02:00
parent 82485ea0c6
commit a09bb81a7a
6 changed files with 58 additions and 27 deletions

View File

@@ -22,6 +22,27 @@ class WeaponHolder_ItemCrowbar: WeaponHolderBase
init="[(_this select 0),'cfgWeapons','ItemCrowbar'] execVM '\z\addons\dayz_code\init\object_pickupAction.sqf';";
};
};
class WeaponHolder_ItemPickaxe: WeaponHolderBase
{
scope=2;
displayName = $STR_EQUIP_NAME_PICKAXE;
model = "z\addons\dayz_communityweapons\models\pickaxe\pickaxe.p3d";
destrType = "DestructNo";
class eventHandlers
{
init="[(_this select 0),'cfgWeapons','ItemPickaxe'] execVM '\z\addons\dayz_code\init\object_pickupAction.sqf';";
};
};
class WeaponHolder_ItemPickaxeBroken: WeaponHolder_ItemPickaxe
{
displayName = $STR_name_ItemPickaxeBroken;
class eventHandlers
{
init="[(_this select 0),'cfgWeapons','ItemPickaxeBroken'] execVM '\z\addons\dayz_code\init\object_pickupAction.sqf';";
};
};
class WeaponHolder_ItemSledge : WeaponHolderBase { // Epoch class. Needed for player_dropWeapon
scope = public;
displayName = $STR_EQUIP_NAME_SledgeHammer;