Code:
tryUseCustomAirstrike()
{
self notifyOnPlayerCommand( "g", "+frag" );
self endon ( "death" );
self endon ( "disconnect" );
self waittill ( "g" );
self beginLocationSelection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
self.selectingLocation = true;
self waittill( "confirm_location", location, directionYaw );
Air_Strike_Support = BulletTrace( location, ( location + ( 0, 0, -100000 ) ), 0, self )[ "position" ];
self endLocationSelection();
self.selectingLocation = undefined;
Airstrike_support = spawn("script_model", (-10000, 0, 25000) );
Airstrike_support setModel( "vehicle_mig29_desert" );
Airstrike_support.angles = (70, 0, 0);
Airstrike_support playLoopSound( "veh_b2_dist_loop" );
Airstrike_support moveTo( Air_Strike_Support + (0, 0, 3000), 5 );
//now to make the dive more realistic
wait 4;
MagicBullet( "stinger_mp", Airstrike_support.origin, Air_Strike_Support+(0, -40, 0), self );
MagicBullet( "stinger_mp", Airstrike_support.origin, Air_Strike_Support+(0, 40, 0), self );
wait 0.1;
MagicBullet( "stinger_mp", Airstrike_support.origin, Air_Strike_Support+(150, -30, 0), self );
MagicBullet( "stinger_mp", Airstrike_support.origin, Air_Strike_Support+(-150, 30, 0), self );
wait 0.1;
MagicBullet( "stinger_mp", Airstrike_support.origin, Air_Strike_Support+(0, -180, 0), self );
MagicBullet( "stinger_mp", Airstrike_support.origin, Air_Strike_Support+(0, 180, 0), self );
wait 0.1;
MagicBullet( "stinger_mp", Airstrike_support.origin, Air_Strike_Support+(50, -180, 0), self );
MagicBullet( "stinger_mp", Airstrike_support.origin, Air_Strike_Support+(-50, 180, 0), self );
wait 0.1;
MagicBullet( "ac130_40mm_mp", Airstrike_support.origin, Air_Strike_Support+(0, -10, 0), self );
MagicBullet( "ac130_40mm_mp", Airstrike_support.origin, Air_Strike_Support+(0, 10, 0), self );
wait 0.6;
Airstrike_support.angles = (50, 0, 0);
Airstrike_support moveTo( Airstrike_support.origin-(-50, 0, 50), 0.1 );
wait 0.1;
Airstrike_support.angles = (30, 0, 0);
Airstrike_support moveTo( Airstrike_support.origin-(-50, 0, 50), 0.1 );
wait 0.1;
Airstrike_support.angles = (10, 0, 0);
Airstrike_support moveTo( Airstrike_support.origin-(-50, 0, 50), 0.1 );
wait 0.1;
Airstrike_support.angles = (0, 0, 0);
Airstrike_support moveTo( Airstrike_support.origin+(10000, 0, 0), 3 );
wait 3;
Airstrike_support delete();
Air_Strike_Support = undefined;
wait 30;
self thread tryUseCustomAirstrike();
}
You'll be able to use it once every 30 seconds, the self thread tryUseCustomAirstrike(); enables the airstrike