Update Player.hpp

This commit is contained in:
worldwidesorrow
2020-01-21 11:58:08 -06:00
committed by GitHub
parent d6cc795222
commit 0bbf4b4118

View File

@@ -11,7 +11,7 @@ Author: Foxy
//True if player is on a ladder, otherwise false //True if player is on a ladder, otherwise false
#define Player_IsOnLadder() ((getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1) #define Player_IsOnLadder() ((getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1)
#define Player_IsInVehicle() (player != vehicle player); #define Player_IsInVehicle (player != vehicle player)
//Gets the classname of the player's sidearm. nil if the player has no sidearm. //Gets the classname of the player's sidearm. nil if the player has no sidearm.
#define Player_GetSidearm() ({ if ((getNumber (configFile >> "CfgWeapons" >> _x >> "type")) == 2) exitWith { _x }; nil } foreach weapons player) #define Player_GetSidearm() ({ if ((getNumber (configFile >> "CfgWeapons" >> _x >> "type")) == 2) exitWith { _x }; nil } foreach weapons player)
@@ -52,4 +52,4 @@ The weaponholder containing the item is returned. Returns null if the function f
#define Player_GetStance_PRONE 3 #define Player_GetStance_PRONE 3
#define Player_GetStance() (1 + floor ((((toArray animationState player) select 5) - 100) / 5)) #define Player_GetStance() (1 + floor ((((toArray animationState player) select 5) - 100) / 5))
#endif #endif