Posts: 1,208
Threads: 36
Joined: Apr 2015
14.02.2017, 06:56
(
Последний раз редактировалось AbyssMorgan; 16.09.2017 в 07:35.
)
Quote:
Originally Posted by Fynn.
Delete:
PHP код:
bool:IsPlayerInRangeOfVehicle(playerid,Float:range,vehicleid,bool:testLOS=true);
bool:IsPlayerInRangeOfPlayer(playerid,Float:range,targetid,bool:testLOS=true);
bool:IsPlayerInRangeOfObject(playerid,Float:range,objectid,bool:testLOS=true);
bool:IsPlayerInRangeOfPointCol(playerid,Float:range,Float:x,Float:y,Float:z,bool:testLOS=true);
bool:IsPlayerInRangeOfDynamicObject(playerid,Float:range,objectid,bool:testLOS=true);
bool:IsPlayerInRangeOfDynamicActor(playerid,Float:range,actorid,bool:testLOS=true);
bool:IsPlayerInRangeOfNPC(playerid,Float:range,npcid,bool:testLOS=true);
bool:IsPlayerInRangeOfActor(playerid,Float:range,actorid,bool:testLOS=true);
Add:
PHP код:
bool:IsPlayerInRangeOfElement(playerid,Float:range,Item3D_Type:target_type=item_player,bool:testLOS=true);
Greetings
Edit:
Add modules of FCNPC (FCNPC_GetPosition, etc) in the new functions (example, item_npc use GetPlayerPos, add other item as item_fcnpc...)
When using the following functions, mark "undefined symbol" ...
PHP код:
#if defined Tryg3D_Anims
Tryg3D_Function:: bool:IsPlayerSkydiving(playerid){
new T3D:index = GetPlayerAnimationIndex(playerid);
return (T3D:index >= 958 && T3D:index <= 962);
}
Tryg3D_Function:: bool:IsPlayerUsingParachute(playerid){
new T3D:index = GetPlayerAnimationIndex(playerid);
return (T3D:index >= 963 && T3D:index <= 979);
}
Tryg3D_Function:: bool:IsPlayerAiming(playerid){
switch(GetPlayerAnimationIndex(playerid)){
case 1160..1163,1167,1365,1643,1453,220: return true;
}
return false;
}
Tryg3D_Function:: bool:IsPlayerStay(playerid){
new T3D:index = GetPlayerAnimationIndex(playerid);
return (T3D:index == 1189 || T3D:index == 1133);
}
Tryg3D_Function:: bool:IsPlayerRunning_(playerid){
new T3D:index = GetPlayerAnimationIndex(playerid);
return (T3D:index == 1231 || T3D:index == 1266 || T3D:index == 1196);
}
Tryg3D_Function:: bool:IsPlayerSwim(playerid){
new T3D:index = GetPlayerAnimationIndex(playerid);
return (T3D:index == 1538 || T3D:index == 1539 || T3D:index == 1541 || T3D:index == 1544);
}
Tryg3D_Function:: bool:IsPlayerJump_(playerid){
new T3D:index = GetPlayerAnimationIndex(playerid);
return (T3D:index == 1195 || T3D:index == 1198);
}
Tryg3D_Function:: bool:IsPlayerParaFall(playerid){
new T3D:index = GetPlayerAnimationIndex(playerid);
return (T3D:index == 958 || T3D:index == 959 || T3D:index == 961 || T3D:index == 962 || T3D:index == 1134);
}
Tryg3D_Function:: bool:IsPlayerParaGlide(playerid){
new T3D:index = GetPlayerAnimationIndex(playerid);
return (T3D:index == 963 || T3D:index == 965 || T3D:index == 971 || T3D:index == 976 || T3D:index == 978);
}
Tryg3D_Function:: bool:IsPlayerFall(playerid){
return (GetPlayerAnimationIndex(playerid) == 1130);
}
#endif
|
I already adding support for FCNPC position in v4.0.1
PHP код:
#define ENABLE_3D_TRYG_ANIMS
#include <SAM/3DTryg>