09.10.2016, 13:20
Update v3.0.0:
- Added contributors in the header file.
- Update compatibility for i_quat.inc by IllidanS4
- Update compatibility for rotation.inc by Nero_3D
- Added functions:
- Added FCNPC functions (ColAndreas):
- Added FCNPC function:
- Fixed FCNPC functionts (ColAndreas):
- Updated algorithm:
Video for FCNPC_GoToPlayerOnGroundCol:
https://www.youtube.com/watch?v=Y2ZcCaxajrY
Video for FCNPC_GoToAirCol:
https://www.youtube.com/watch?v=snZ-25QuBm0
- Added contributors in the header file.
- Update compatibility for i_quat.inc by IllidanS4
- Update compatibility for rotation.inc by Nero_3D
- Added functions:
PHP Code:
bool:IsRotationTest(Float:rotation,Float:r_min,Float:r_max); //internal function 3DTryg
GetRandomPointInCircularSector(Float:x,Float:y,Float:rz,Float:radius,Float:view_angle,&Float:tx,&Float:ty);
GetRandomPointOnCircularSector(Float:x,Float:y,Float:rz,Float:radius,Float:view_angle,&Float:tx,&Float:ty);
PHP Code:
FCNPC_GoToPlayerOnGroundCol(npcid,playerid,type = MOVE_TYPE_AUTO,Float:speed = MOVE_SPEED_AUTO,bool:UseMapAndreas = false,Float:cut_size = 1.0,Float:climbing = 2.0,bool:setangle = true);
FCNPC_GoToAirCol(npcid,Float:x,Float:y,Float:z,type = MOVE_TYPE_AUTO,Float:speed = MOVE_SPEED_AUTO,Float:cut_size = 0.0); //for airplanes
PHP Code:
FCNPC_GoToAir(npcid,Float:x,Float:y,Float:z,type = MOVE_TYPE_AUTO,Float:speed = MOVE_SPEED_AUTO); //for airplanes
PHP Code:
FCNPC_GoToCol(npcid,Float:x,Float:y,Float:z,type = MOVE_TYPE_AUTO,Float:speed = MOVE_SPEED_AUTO,bool:UseMapAndreas = false,Float:cut_size = 0.0,bool:setangle = true);
FCNPC_GoToPlayerCol(npcid,playerid,type = MOVE_TYPE_AUTO,Float:speed = MOVE_SPEED_AUTO,bool:UseMapAndreas = false,Float:cut_size = 0.0,bool:setangle = true);
PHP Code:
bool:IsPointInCircularSector(Float:px,Float:py,Float:x,Float:y,Float:rz,Float:radius,Float:view_angle);
bool:IsPointInSphericalSector(Float:px,Float:py,Float:pz,Float:x,Float:y,Float:z,Float:rx,Float:rz,Float:radius,Float:vrx,Float:vrz);
bool:IsPlayerOnPlayerScreen(playerid,targetid,Float:rx=INVALID_ROTATION,Float:rz=INVALID_ROTATION,Float:vertical=VERTICAL_CAMERA_RADIUS,Float:horizontal=HORIZONTAL_CAMERA_RADIUS,bool:testLOS=true); *
bool:IsPlayerOnFakeScreen(Float:x,Float:y,Float:z,targetid,Float:rx,Float:rz,Float:vertical=VERTICAL_CAMERA_RADIUS,Float:horizontal=HORIZONTAL_CAMERA_RADIUS,bool:testLOS=true);
https://www.youtube.com/watch?v=Y2ZcCaxajrY
Video for FCNPC_GoToAirCol:
https://www.youtube.com/watch?v=snZ-25QuBm0