mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Update Player.hpp
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user