Update some WeaponHolder to WeaponHolderBase

This commit is contained in:
ebaydayz
2016-03-31 11:35:33 -04:00
parent c54a52a103
commit 6de88c7b07
47 changed files with 621 additions and 876 deletions

View File

@@ -35,9 +35,21 @@ Return value indicates if and where the item was placed. */
#define Player_AddItem_RESULT_GROUND 2
#define Player_AddItem_RESULT_VEHICLE 3
/* Attempts to the specified item from the player inventory.
Return value indicates whether the item was actually removed. */
#define Player_RemoveWeapon(class) ((class) call dz_fn_player_removeWeapon)
#define Player_RemoveWeapon_Fast(class) ([player hasWeapon _this, player removeWeapon _this] select 0)
#define Player_RemoveMagazine(class) ((class) call dz_fn_player_removeMagazine)
#define Player_RemoveMagazine_Fast(class) ([_this in magazines player, player removeMagazine _this] select 0)
/* Adds the specifed item on the ground at the player's feet.
The weaponholder containing the item is returned. Returns null if the function fails.*/
#define Player_DropWeapon(class) ([0, class] call dz_fn_player_dropItem)
#define Player_DropMagazine(class) ([1, class] call dz_fn_player_dropItem)
#define Player_GetStance_STAND 1
#define Player_GetStance_KNEEL 2
#define Player_GetStance_PRONE 3
#define Player_GetStance() (1 + floor ((((toArray animationState player) select 5) - 100) / 5))
#endif