mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Update some WeaponHolder to WeaponHolderBase
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user