Black Ops III

IsFiring

Returns true if the player is currently meleeing

Example:

player IsFiring()