[FilterScript] Vehicle Missile Launcher
#10

Update VehicleMissileCol.inc v1.5.4:

- Added new Vehicle Weapon Mega Missile (Heavy Marica mortar)
Video: https://www.youtube.com/watch?v=0FlZwi34wIA

- Added functions for Mega Missile:
PHP Code:
ToggleVehicleMegaMissile(vehicleid,toggle);
IsToggleVehicleMegaMissile(vehicleid);
Float:GetVehicleMegaMissileSpeed(vehicleid);
SetVehicleMegaMissileSpeed(vehicleid,Float:speed);
GetVehicleMegaMissileReload(vehicleid);
SetVehicleMegaMissileReload(vehicleid,time);
Float:GetVehicleMegaMissileDistance(vehicleid);
SetVehicleMegaMissileDistance(vehicleid,Float:distance);
GetVehicleMegaMissileKey(vehicleid);
SetVehicleMegaMissileKey(vehicleid,key);
Float:GetVehicleMegaMissileHeight(vehicleid);
SetVehicleMegaMissileHeight(vehicleid,Float:height); 
- Added extended functions:
PHP Code:
SetVehicleMissileDefaultConfig(vehicleid);
ToggleMissileAutoDisarm(bool:toggle);
bool:IsToggleMissileAutoDisarm(); 
- Added Callback:
PHP Code:
OnVehicleArmed(playerid,vehicleid); //use to arm the vehicle at the right time (recommended to use ToggleMissileAutoDisarm(true);) 
- Added Definitions:
PHP Code:
VEHICLE_MISSILE_TYPE_MEGA
VEHICLE_MISSILE_SPEED_MEGA      
// default combat speed for Mega Missile
VEHICLE_MISSILE_RELOAD_MEGA     // default reload time in milisecond for Mega Missile
VEHICLE_MISSILE_DISTANCE_MEGA   // default maximum distance that can be overcome rocket
VEHICLE_MISSILE_KEY_MEGA        // default key (KEY_YES)
VEHICLE_MISSILE_HEIGHT_MEGA     // default arc height for Mega Missile 
Example Code:
PHP Code:
public OnGameModeInit(){ 
     
    
ToggleMissileAutoDisarm(true); 
     
    return 
1

public 
OnVehicleArmed(playerid,vehicleid){ 
    switch(
GetVehicleModel(vehicleid)){ 
        case 
564: { //rc tiger 
            
ToggleVehicleRhinoMissile(vehicleid,1); 
        } 
        case 
553: { //nevada 
            
ToggleVehicleBomberMissile(vehicleid,1); 
        } 
        case 
592: { //andromada 
            
ToggleVehicleBomberMissile(vehicleid,1); 
            
SetVehicleBomberMissileSpeed(vehicleid,60.0); 
            
SetVehicleBomberMissileReload(vehicleid,500); 
        } 
        case 
520: { //hydra 
            
ToggleVehicleBomberMissile(vehicleid,1); 
            
SetVehicleBomberMissileSpeed(vehicleid,80.0); 
            
SetVehicleBomberMissileReload(vehicleid,500); 
             
            
ToggleVehicleHeavyMissile(vehicleid,1); 
            
SetVehicleHeavyMissileSpeed(vehicleid,90.0); 
            
SetVehicleHeavyMissileKey(vehicleid,KEY_CROUCH); 
        } 
        case 
476: { //rustler 
            
ToggleVehicleMiniMissile(vehicleid,1); 
            
SetVehicleMiniMissileSpeed(vehicleid,80.0); 
             
            
ToggleVehicleBomberMissile(vehicleid,1); 
            
SetVehicleBomberMissileSpeed(vehicleid,80.0); 
            
SetVehicleBomberMissileReload(vehicleid,500); 
        } 
        case 
548497469: { //Cargobob, Police Maverik, Sparrow 
            
ToggleVehicleMiniMissile(vehicleid,1); 
            
ToggleVehicleBomberMissile(vehicleid,1); 
        } 
        case 
512: { //Cropduster 
            
ToggleVehicleBomberMissile(vehicleid,1); 
        } 
        case 
513: { //stuntplane 
            
ToggleVehicleBomberMissile(vehicleid,1); 
        } 
        case 
519: { //shamal 
            
ToggleVehicleMiniMissile(vehicleid,1); 
            
SetVehicleMiniMissileSpeed(vehicleid,80.0); 
        } 
        case 
432: { //rhino 
            
ToggleVehicleMegaMissile(vehicleid,1); 
            
SetVehicleMegaMissileSpeed(vehicleid,50.0); 
            
SetVehicleMegaMissileHeight(vehicleid,VEHICLE_MISSILE_HEIGHT_MEGA); 
            
SetVehicleMegaMissileDistance(vehicleid,VEHICLE_MISSILE_DISTANCE_MEGA); 
        } 
    } 
    return 
1

Reply


Messages In This Thread
Vehicle Missile Launcher - by AbyssMorgan - 16.06.2016, 17:35
Re: Vehicle Missile Launcher - by MBilal - 16.06.2016, 17:58
Re: Vehicle Missile Launcher - by FuNkYTheGreat - 16.06.2016, 18:17
Re: Vehicle Missile Launcher - by Ritzy2K - 16.06.2016, 18:43
Re: Vehicle Missile Launcher - by AbyssMorgan - 17.06.2016, 05:59
Re: Vehicle Missile Launcher - by AbyssMorgan - 19.06.2016, 20:39
Re: Vehicle Missile Launcher - by AbyssMorgan - 22.06.2016, 18:33
Re: Vehicle Missile Launcher - by AbyssMorgan - 05.07.2016, 07:18
Re: Vehicle Missile Launcher - by AbyssMorgan - 16.07.2016, 07:56
Re: Vehicle Missile Launcher - by AbyssMorgan - 30.07.2016, 18:10
Re: Vehicle Missile Launcher - by oMa37 - 28.09.2016, 14:07
Re: Vehicle Missile Launcher - by AbyssMorgan - 28.09.2016, 14:27
Re: Vehicle Missile Launcher - by timsosa09 - 29.09.2016, 17:14
Re: Vehicle Missile Launcher - by AbyssMorgan - 29.09.2016, 19:00
Re: Vehicle Missile Launcher - by AbyssMorgan - 14.02.2017, 18:52
Re: Vehicle Missile Launcher - by MehranGta - 28.03.2017, 10:23
Re: Vehicle Missile Launcher - by AbyssMorgan - 15.04.2017, 13:12
Re: Vehicle Missile Launcher - by Inceptio - 15.04.2017, 13:54
Re: Vehicle Missile Launcher - by Astralis - 16.04.2017, 09:56
Re: Vehicle Missile Launcher - by Azhar - 03.05.2017, 14:16
Re: Vehicle Missile Launcher - by AbyssMorgan - 19.08.2017, 09:54
Re: Vehicle Missile Launcher - by AbyssMorgan - 21.08.2017, 16:14
Re: Vehicle Missile Launcher - by vegaltasendai - 11.09.2017, 17:46
Re: Vehicle Missile Launcher - by AbyssMorgan - 11.09.2017, 18:01

Forum Jump:


Users browsing this thread: 7 Guest(s)