Re: Missile Launcher -
MehranGta - 28.03.2017
Can you provide example code of MissileLaunchAimPlayer ?
Re: Missile Launcher -
AbyssMorgan - 28.03.2017
PHP код:
CMD:shot(playerid,params[]){
new targetid, Float:x, Float:y, Float:z;
if(sscanf(params,"d",targetid)) return SendClientMessage(playerid,-1,"Use /shot <playerid>");
GetPlayerPos(playerid,x,y,z);
MissileLaunchAimPlayer(targetid,MISSILE_TYPE_EXPLODE_LARGE,5.0,25.0,100.0,x,y,z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid),-1,200.0,MISSILE_OBJECT_HYDRA,x,y,z+100.0,playerid);
return 1;
}
Re: Missile Launcher -
MehranGta - 28.03.2017
I dont understand tx ty tz when there is a targetid
Re: Missile Launcher -
AbyssMorgan - 28.03.2017
x,y,z - start position
tx,ty,tz - first target position
After missile moving to tx,ty,tz moving to targetid.
In my example the missile flies first up 100 meters and then flies to the target.
Re: Missile Launcher -
AbyssMorgan - 29.03.2017
Update v1.9.0:
- Auto disable all player missiles aim after player death.
- Added function:
PHP код:
DisableAllPlayerMissileAim(playerid);
- Added new missile_object:
PHP код:
MISSILE_OBJECT_BOMB
MISSILE_OBJECT_BOMB_STATIC - rotation rx always is 0.0
Re: Missile Launcher -
AbyssMorgan - 15.04.2017
Update v2.0.0:
- Update Arc System for Real Ellipse Arc.
- Updated function:
Код:
MissileLaunch(type,Float:detection_range,Float:explode_radius,Float:speed,Float:x,Float:y,Float:z,worldid,interiorid,playerid,
Float:streamdistance,missile_object,Float:tx,Float:ty,Float:tz,byplayerid=INVALID_PLAYER_ID,teamid=ANY_TEAM,
bool:remote=false,remote_count=MAX_MISSILE_REMOTE_TARGET,remote_height=1.0,Float:arc_roll=0.0);
Re: Missile Launcher -
AbyssMorgan - 19.08.2017
Update v2.1.0:
- Added callback:
PHP код:
OnMissileRequestLaunch(Float:x,Float:y,Float:z,playerid,targetid);
- Fixed Static Bomb (MISSILE_OBJECT_BOMB_STATIC)
Re: Missile Launcher -
AbyssMorgan - 21.08.2017
Update v2.2.0:
- Added support for CreateDynamicExplosionDMG (now missile auto detect player death)
- Added support for damage NPC
- Added support for Streamer Tags
- Updated functions:
Код:
MissileLaunch(type,Float:detection_range,Float:explode_radius,Float:speed,Float:x,Float:y,Float:z,worldid,interiorid,playerid,
Float:streamdistance,missile_object,Float:tx,Float:ty,Float:tz,byplayerid=INVALID_PLAYER_ID,teamid=ANY_TEAM,
bool:remote=false,remote_count=MAX_MISSILE_REMOTE_TARGET,remote_height=1.0,Float:arc_roll=0.0,
Float:damage=-1.0,Float:vehicle_damage=-1.0);
MissileLaunchAimPlayer(targetid,type,Float:detection_range,Float:explode_radius,Float:speed,Float:x,Float:y,Float:z,
worldid,interiorid,playerid,Float:streamdistance,missile_object,Float:tx,Float:ty,Float:tz,
byplayerid=INVALID_PLAYER_ID,teamid=ANY_TEAM,Float:damage=-1.0,Float:vehicle_damage=-1.0);
//if damage is -1 mine generated standard DynamicExplosion without DMG system
//if vehicle damage is -1 and damage is not -1, vehicle damage now is 750