Update v4.4.2:
- Update for FCNPC v1.7.4
- Fixed functions/callbacks
PHP код:
Tryg3D::GivePlayerDamage - call to all scripts: OnPlayerGiveDamage and OnPlayerTakeDamage
OnColAndreasRemoveBuilding - call to all scripts
- Added support for FCNPC
PHP код:
Tryg3D::GivePlayerDamage
- Added functions:
PHP код:
SetVehicleSpeed(vehicleid,Float:speed);
Float:GetCameraTargetDistance(Float:CamX,Float:CamY,Float:CamZ,Float:ObjX,Float:ObjY,Float:ObjZ,Float:FrX,Float:FrY,Float:FrZ);
IsPlayerAimingAt(playerid,Float:x,Float:y,Float:z,Float:radius);
//Explosion Damage Control support players/vehicles
//Player: Take/Give damage by weaponid 51, bodypart 3
//This function set player health to 765.0 before using explosion
CreateDynamicExplosionDMG(Float:x,Float:y,Float:z,type,Float:radius,worldid = -1,interiorid = -1,playerid = -1,Float:distance = 200.0,Float:damage=82.5,Float:vehicle_damage=82.5,byplayerid=INVALID_PLAYER_ID);
SendFakeDamageInRadius(weaponid,bodypart,Float:damage,Float:vehicle_damage,Float:x,Float:y,Float:z,Float:radius,worldid = -1,interiorid = -1,playerid = -1,byplayerid=INVALID_PLAYER_ID);
- Added IPL functions:
PHP код:
IPL_CreateObject(modelid,Float:x,Float:y,Float:z,Float:qx,Float:qy,Float:qz,Float:qw,Float:drawdistance=0.0);
IPL_CreateDynamicObject(modelid,Float:x,Float:y,Float:z,Float:qx,Float:qy,Float:qz,Float:qw,worldid=-1,interiorid=-1,playerid=-1,Float:streamdistance=STREAMER_OBJECT_SD,Float:drawdistance=STREAMER_OBJECT_DD,STREAMER_TAG_AREA areaid=STREAMER_TAG_AREA -1,priority=0);
- IPL function example:
Код:
714, veg_bevtree2, 0, 2007.609375, -1556.65625, 12.59375, 0, 0, -0.7398733497, 0.6727461815, -1
IPL_CreateDynamicObject(714, 2007.609375, -1556.65625, 12.59375, 0, 0, -0.7398733497, 0.6727461815);
- IPL function example 2 (auto decode):
PHP код:
#define ipl_extract_params(%1,%2,%3,%4,%5,%6,%7,%8) %1,%2,%3,%4,%5,%6,%7
#define ipl_decode(%0,%1,%2,%3) %0,ipl_extract_params(%3)
IPL_CreateDynamicObject(ipl_decode(714, veg_bevtree2, 0, 2007.609375, -1556.65625, 12.59375, 0, 0, -0.7398733497, 0.6727461815, -1));
Video for SetVehicleSpeed:
https://www.youtube.com/watch?v=2YyP9EktcPU