Jets Intercept When Wanted 1.1
7.872
141
7.872
141
Scramble jets (of your choice, including add-on jets) when the player has a 3+ star wanted level and is in a helicopter/plane. Now supports usage of custom weapons!
Requirements:
ScriptHookVDotNet 3.4
.NET Runtime 4.8
Installation:
Drop all files into scripts directory
Usage:
Jets are scrambled automatically
The number of jets at each wanted level can be changed in .INI
Models of jets scrambled and weapons used can be changed in .INI
Changelog:
1.1:
- added planesOnly option. If set to true, jets will not spawn if player is in a helicopter
1.0.2:
- Jet blips on the map/radar now show heading of the jets. Updated once per second
1.0.1:
- bugfix: disable AI pilot switching weapon after being assigned their custom weapon
1.0:
- enabled custom weapons for intercepting jets; read instructions in Settings section!
0.3:
- restored `aircraftOnly` option
0.2.5:
- implemented below radar setting; jets will not be scrambled if player's aircraft is less than 100 meters above the ground
0.2.4:
- make pursuing jets spawn behind player instead of in front, by default
0.2.3:
- added INI setting for spawn distance; default value 500 meters
0.2.2 (unreleased):
- added cheats to get you back into a dogfight quickly after death. In cheats, type:
- `goto lsia`, `goto zancudo`, or `goto sandyshores` to teleport to an airport
- `stars` to set wanted level. For example, `3stars` will set your wanted level to 3
0.2.1:
- suppressed "jets needed" debug output
0.2:
- renamed file to CustomWantedAirTraffic. Please remove CustomAirTraffic if you have already installed 0.1
Requirements:
ScriptHookVDotNet 3.4
.NET Runtime 4.8
Installation:
Drop all files into scripts directory
Usage:
Jets are scrambled automatically
The number of jets at each wanted level can be changed in .INI
Models of jets scrambled and weapons used can be changed in .INI
Changelog:
1.1:
- added planesOnly option. If set to true, jets will not spawn if player is in a helicopter
1.0.2:
- Jet blips on the map/radar now show heading of the jets. Updated once per second
1.0.1:
- bugfix: disable AI pilot switching weapon after being assigned their custom weapon
1.0:
- enabled custom weapons for intercepting jets; read instructions in Settings section!
0.3:
- restored `aircraftOnly` option
0.2.5:
- implemented below radar setting; jets will not be scrambled if player's aircraft is less than 100 meters above the ground
0.2.4:
- make pursuing jets spawn behind player instead of in front, by default
0.2.3:
- added INI setting for spawn distance; default value 500 meters
0.2.2 (unreleased):
- added cheats to get you back into a dogfight quickly after death. In cheats, type:
- `goto lsia`, `goto zancudo`, or `goto sandyshores` to teleport to an airport
- `stars` to set wanted level. For example, `3stars` will set your wanted level to 3
0.2.1:
- suppressed "jets needed" debug output
0.2:
- renamed file to CustomWantedAirTraffic. Please remove CustomAirTraffic if you have already installed 0.1
İlk Yüklenme Zamanı: 23 Nisan 2020, Perşembe
Son Güncellenme Zamanı: 4 Şubat 2022, Cuma
Last Downloaded: 13 hours ago
All Versions
109 Yorum
Scramble jets (of your choice, including add-on jets) when the player has a 3+ star wanted level and is in a helicopter/plane. Now supports usage of custom weapons!
Requirements:
ScriptHookVDotNet 3.4
.NET Runtime 4.8
Installation:
Drop all files into scripts directory
Usage:
Jets are scrambled automatically
The number of jets at each wanted level can be changed in .INI
Models of jets scrambled and weapons used can be changed in .INI
Changelog:
1.1:
- added planesOnly option. If set to true, jets will not spawn if player is in a helicopter
1.0.2:
- Jet blips on the map/radar now show heading of the jets. Updated once per second
1.0.1:
- bugfix: disable AI pilot switching weapon after being assigned their custom weapon
1.0:
- enabled custom weapons for intercepting jets; read instructions in Settings section!
0.3:
- restored `aircraftOnly` option
0.2.5:
- implemented below radar setting; jets will not be scrambled if player's aircraft is less than 100 meters above the ground
0.2.4:
- make pursuing jets spawn behind player instead of in front, by default
0.2.3:
- added INI setting for spawn distance; default value 500 meters
0.2.2 (unreleased):
- added cheats to get you back into a dogfight quickly after death. In cheats, type:
- `goto lsia`, `goto zancudo`, or `goto sandyshores` to teleport to an airport
- `stars` to set wanted level. For example, `3stars` will set your wanted level to 3
0.2.1:
- suppressed "jets needed" debug output
0.2:
- renamed file to CustomWantedAirTraffic. Please remove CustomAirTraffic if you have already installed 0.1
Requirements:
ScriptHookVDotNet 3.4
.NET Runtime 4.8
Installation:
Drop all files into scripts directory
Usage:
Jets are scrambled automatically
The number of jets at each wanted level can be changed in .INI
Models of jets scrambled and weapons used can be changed in .INI
Changelog:
1.1:
- added planesOnly option. If set to true, jets will not spawn if player is in a helicopter
1.0.2:
- Jet blips on the map/radar now show heading of the jets. Updated once per second
1.0.1:
- bugfix: disable AI pilot switching weapon after being assigned their custom weapon
1.0:
- enabled custom weapons for intercepting jets; read instructions in Settings section!
0.3:
- restored `aircraftOnly` option
0.2.5:
- implemented below radar setting; jets will not be scrambled if player's aircraft is less than 100 meters above the ground
0.2.4:
- make pursuing jets spawn behind player instead of in front, by default
0.2.3:
- added INI setting for spawn distance; default value 500 meters
0.2.2 (unreleased):
- added cheats to get you back into a dogfight quickly after death. In cheats, type:
- `goto lsia`, `goto zancudo`, or `goto sandyshores` to teleport to an airport
- `stars` to set wanted level. For example, `3stars` will set your wanted level to 3
0.2.1:
- suppressed "jets needed" debug output
0.2:
- renamed file to CustomWantedAirTraffic. Please remove CustomAirTraffic if you have already installed 0.1
İlk Yüklenme Zamanı: 23 Nisan 2020, Perşembe
Son Güncellenme Zamanı: 4 Şubat 2022, Cuma
Last Downloaded: 13 hours ago
iLike2Teabag I have a question, can i use your mod for a police mod and later upload? Tank you!
The Lazer works well but custom addon aircraft won't fire missiles and the script crashes when trying to spawn the savage. Also when AI fire the missiles only about 10% of the time do they properly home in on my plane, usually they go in opposite directions.
@iLike2Teabag when i use mod of morgan made by skyline and set the weapon of STL ( its not the default weapon but the special weapon) Then the system report errors that the ai polit cant switch the weapon to STL.
@Missilejet Is the weapon you're wanting to use present in the handling.meta file? Sometimes Skyline has custom weapons that don't get used. Next, is it a weapon that you have to add to the aircraft via vehicle mod in a trainer? If so then the AI won't be able to select it. Some of Skylines vehicles are this way. One of his F14 for instance has missiles added via vehicle modkit.
Okay so I've had some time to play around with this mod and I have to say it is incredibly fun. You can even do dogfights with addon WW2 aircraft like the FW-190, ME-262, P-40E, etc. HOWEVER it does require some additional tweaks and changes to the various vehicles & vehicle weapons in order to work best
Here are some common issues and their solutions:
1: Disappearing textures when add-on aircraft spawn. This is usually caused by liveries. Many aircraft made by SkylineGTRFreak & such have multiple liveries which are either 4096x4096 or 2048x2048 resolution (4K or 2K) using DXT5 compression. This requires large amounts of GPU memory and RAM. I have 10gb of RAM and I run into issues with disappearing textures even with only 3 add-on airplanes spawning with each a 4K livery. However if your PC is sufficiently powerful then you may not experience this issue.
I resolved this by opening the .ytd files in OpenIV for the add-on vehicles/planes I was using and deleting the liveries I don't want. I try to reduce it down to only 1 or maybe 2 liveries per vehicle. Then I export the liveries I kept & use Paint.NET to resize them to either 2048x2048 or 1024x1024. Then I save them using the same .dds format with DXT1 compression & if they originally have mip maps then I generate mip maps using "fant" scaling. (It shows in OpenIV whether or not a texture has mip maps.) I also resize the specular map as well to match the livery resolution.
This can lower the quality of the aircraft's exterior texture a bit especially if it originally had 4K liveries, but it's only noticeable when very close to the plane. If it's an enemy fighter jet 250 - 1000 meters away then you won't be able to notice. I'm personally not bothered by it at all & it makes this script run a lot smoother.
2: Unable to spawn error.
NOTE: Often this error just means the plane can't spawn because the script has already spawned the 3 planes (or however many you have it set to spawn). It doesn't necessarily indicate an issue.
3: Unable to spawn pilot.
Add these lines to the vehicles.meta files for the planes you're wanting to spawn with this script:
Under flags put FLAG_LAW_ENFORCEMENT.
Next replace whichever driver it has with this:
<drivers>
<Item>
<driverName>S_M_M_Marine_02 </driverName>
<npcName> />
</Item>
</drivers>
I can't 100% tell if putting in the driver makes a difference, but this combined with FLAG_LAW_ENFORCEMENT fixes the "unable to spawn pilot" error for me. If there's no driver at all then find the <drivers /> line and replace it with the above.
Also the "Swankness" level seems to have an affect on spawning too. Set it to SWANKNESS_1 or SWANKNESS_2 if it's not already.
4. NPC's have extremely inaccurate homing missiles.
For the vanilla homing missiles you can edit these values in update.rpf>common>ai>weapons.meta.
AMMO_SPACE_ROCKET
LifeTime value="30.000000"
FromVehicleLifeTime value="30.000000"
LaunchSpeed value="1800.000000"
TimeBeforeHoming value="0.100000"
PitchChangeRate value="80.000000"
YawChangeRate value="80.000000"
RollChangeRate value="80.000000"
MaxRollAngleSin value="0.500000"
AMMO_PLANE_ROCKET
(I set the values identical to AMMO_SPACE_ROCKET.)
VEHICLE_WEAPON_SPACE_ROCKET
LockOnRange value="900.000000"
WeaponRange value="1200.000000"
Delete "HomingToggle" under WeaponFlags. This removes the ability to switch between homing & non-homing as sometimes it seems like the AI switches to non-homing and they're terribly inaccurate.
VEHICLE_WEAPON_PLANE_ROCKET
(Again I set these values identical to VEHICLE_WEAPON_SPACE_ROCKET.)
For add-on vehicles with custom weapons you'll need to look in the dlc.rpf each specific add-on vehicle to find the weapons.meta file & edit the weapons there. I also like to increase the WeaponRange value for the various aircraft machine guns & cannons. I normally set it to 500. (The range values are in meters.)
If you want you can also edit these same values in weaponhominglauncher.meta located in update.rpf>dlc_patch>mpchristmas2>ai in order to make the Homing Launcher have faster & more accurate rockets which can travel much farther and change their flight path better. Otherwise it won't be very effective against fast moving fighter jets & such firing at you from long range.
You can play around with these values a little bit to fit what you find to be the most fun. Make the missiles faster or slower, etc.
Lastly, I recommend opening ScriptHookVDotNet.ini in Notepad or Notepad++ and making sure to set "ReloadKey=Insert". This way if you get a script error you can simply press "Insert" to reload your scripts, that way you don't have to close & reopen GTA. It also makes it so you can change whichever airplanes are being spawned without closing the game. Alt-Tab out of GTA, edit CustomWantedAirTraffic.ini, save, go back into GTA, and reload scripts. Then the new airplanes will start spawning instead.
That's all I can think of for now. I know it's a lot of stuff to do but for me it really improves this mod. I very rarely get spawn errors now and it works extremely well.
Hey, i love this mod, could you make a mod like this but for helicopters? I really want a mod like this but with helis instead
@Executable did you get it yet?, because he had sent me a fully working beta version months ago?
@nj5050 No i haven't but it's cool that you have it
@Executable I don't think he would mine if I share it though, since he most likely got very busy & caught up.
@nj5050 Ok then, send it to my discord account FileNotFound#4688 if you wanna
@Executable https://github.com/DavidLiuGit/GTAV_JetIntercept/releases/tag/v0.1b
Hello, i wanted to ask if is it possible to make a way that the helicopter despawn in the variant of this mod when it s spawn helicopter becuase when you die after some time the helicopter is turn back and it s remain over you forever. If is possible thanks
@Davide24P This particular 'Jets Intercept' Mod is not design to spawn Helicopters though?
Yes, the base for the mod is the same and a people already release a speriemental version, but there is only a problem and it s quite annoying, when you clear your wanted level the helicopter doesn't despawn so after some time they turn back and follow you forever
@Davide24P Sorry it seems I'm having trouble getting notification from people's messages.
To clarify what you stated, although the base script of the Mod may appear to support Helicopters, you're more than likely to run into issues because the Heli's behave differently than the Jets, as this should be clearly obvious when playing the game. Thats why the author created another script specifically for Helicopters, to avoid potential issues as it seems you're having.
I know that but the problem that i m having is when i use the helicopter script, so i think they need to add the feature to despawn when you clear your wanted level
Glad to announce a new update or should I say upgrade, is coming for this Jets Intercept mod in 2 weeks from now. Which will now be combined with "Heli Intercept When Wanted" mod & support my new SixStars Army mod coming in 3weeks from now. Where the US AirForce will be the main theme for these Airborne intercepts, as well any custom wanted options users may choose. So Stay Tuned!!
No crashes so damn fun because ive got danthemans heist mods and i tried to escape via a lazar its almost impossible 10/10
Kills my fps. Might be user based.
@Godtoven If thats true, then try out my mod with same author: "Airforce Intercept When Wanted w/SixStar Support".