Vehicle Smart Targeting

Vehicle Smart Targeting

Gives the mounted machine guns on armed vehicles two targeting modes: Smart Lock, which locks on and homes its rounds like the missile launchers do, and Gimbal Aim, which fires where your crosshair points. An optional Garage add-on sells both as per-vehicle upgrades.

[size=5][b]Vehicle Smart Targeting[/b][/size]

Vehicle missile launchers lock on. The machine guns bolted to the same cars never did. This mod gives mounted machine guns two targeting modes of their own.

[youtube]DfUjUl_xXn0[/youtube]

[size=4][b]The two modes[/b][/size]
[list]
[][b]Smart Lock[/b] - the guns lock on to a hostile target the way the missile launcher does, and their rounds home on it.[/]
[][b]Gimbal Aim[/b] - no lock. Rounds leave the guns aimed at whatever is under your crosshair, within an arc in front of the car.[/]
[/list]Both modes use the missile launcher's HUD as the crosshair. They work on every vehicle that uses the stock mounted machine guns, vanilla or modded.

[size=4][b]Controls[/b][/size]
While the mounted guns are out:
[list]
[][b]Car with guns only:[/b] 1 selects Smart Lock, 2 selects Gimbal Aim, and Alt (Triangle / Y on a pad) switches between them.[/]
[][b]Car with guns and missiles:[/b] press 1 again while the guns are already out to switch modes. 2 and Alt still swap to missiles as usual.[/]
[/list]These are the game's own mounted-weapon keys, so they follow your key bindings. A short on-screen message tells you which mode you are in.

[size=4][b]Options[/b][/size]
With Mod Settings installed you get a Vehicle Smart Targeting page:
[list]
[][b]Miss chance[/b] (default 10%) - how often a Smart Lock round strays wide.[/]
[][b]Jammer effect[/b] (default 100%) - how much enemies with smart-weapon jammers throw off the guns. 100 is the same penalty on-foot smart weapons take; 0 ignores jammers.[/]
[][b]Guidance arc[/b] (default 45 degrees) - Smart Lock only homes on targets within this angle of straight ahead.[/]
[][b]Gimbal arc[/b] (default 45 degrees) - how far Gimbal Aim can swing to follow the crosshair.[/]
[][b]Debug logging[/b] (default off).[/]
[/list]Changes apply straight away, no restart. Without Mod Settings the defaults are used.

[size=4][b]Files[/b][/size]
[b]Core (main file)[/b]
Everything above. On its own, every armed vehicle has both modes immediately.

[b]Garage add-on (optional file)[/b]
Turns the two modes into upgrades you buy per vehicle through [url=https://www.nexusmods.com/cyberpunk2077/mods/30297]Garage[/url]. A TARGETING service appears in the garage hub for owned vehicles with mounted guns.
[list]
[]Smart Lock: 50,000 eddies[/]
[]Gimbal Aim: 35,000 eddies[/]
[]Removing an upgrade is free. Refitting one the vehicle has already bought costs 10% (5,000 / 3,500).[/]
[]What you pay goes into that garage's cash pool.[/]
[]A vehicle with neither upgrade fires straight, with the stock gun crosshair.[/]
[/list]Installing the add-on is what makes the modes cost money. Remove it and both modes are free again; your purchases stay in the save.

[size=4][b]Requirements[/b][/size]
[b]Core:[/b]
[list]
[][url=https://www.nexusmods.com/cyberpunk2077/mods/2380]RED4ext[/url][/]
[][url=https://www.nexusmods.com/cyberpunk2077/mods/1511]redscript[/url][/]
[][url=https://www.nexusmods.com/cyberpunk2077/mods/4197]TweakXL[/url][/]
[][url=https://www.nexusmods.com/cyberpunk2077/mods/4885]Mod Settings[/url] (optional, for the options page)[/]
[/list][b]Garage add-on:[/b]
[list]
[]The core file from this page[/]
[][url=https://www.nexusmods.com/cyberpunk2077/mods/30297]Garage[/url] ([url=https://www.nexusmods.com/cyberpunk2077/mods/31684]VehicleCore[/url] and [url=https://www.nexusmods.com/cyberpunk2077/mods/30297]GarageCore[/url])[/]
[][url=https://www.nexusmods.com/cyberpunk2077/mods/7780]Codeware[/url][/]
[][url=https://www.nexusmods.com/cyberpunk2077/mods/107]Cyber Engine Tweaks[/url][/]
[/list]Do not install the add-on without Garage. The game will stop at launch with a script error.

[size=4][b]Installation[/b][/size]
Install with a mod manager, or extract each zip into your Cyberpunk 2077 folder. Both are laid out from the game root.

To uninstall, remove the files. Nothing is left behind in your game folder.

[size=4][b]Good to know[/b][/size]
[list]
[]Smart Lock only locks hostile targets, the same as the missile launcher.[/]
[]The red gun aiming lasers do not move in Gimbal Aim. Only the rounds leave at an angle.[/]
[]Smart Lock rounds only home on targets inside the guidance arc. A locked target beside or behind the car gets straight fire.[/]
[]Enemies with smart-weapon jammers make a lot of Smart Lock rounds miss. Lower the Jammer effect option if that is not to your taste.[/]
[][b][color=#ff0000][size=4]Modded vehicles that replace the gun's projectile with their own keep it, so those guns are not affected.[/size][/color][/b][/]
[]Most testing was on a guns-only car. Cars with both guns and missiles are less tested.[/]
[/list]Built and tested on game version 2.3x.

[size=4][b]Credits[/b][/size]
[list]
[][b][url=https://www.nexusmods.com/profile/theCyanideX]theCyanideX[/url][/b] for Garage, its service API and its wiki, which the add-on is built on.[/]
[][b][url=https://www.nexusmods.com/profile/SDH0?gameId=3333]SDH0[/url][/b] for the [url=https://www.nexusmods.com/cyberpunk2077/mods/34377]Nitrous Addon (Garage)[/url], the reference third-party Garage service, and for the vehicles this was tested on.[/]
[]Both kindly gave permission for the Garage add-on to be published.[/]
[/list]I should say up front that I did not write the code myself. I built this with Claude (the AI): I decided what it should do and tested every build in-game, and it wrote the code.

[size=4][b]Source[/b][/size]
MIT licensed. Source on GitHub: [url=https://github.com/oitenk/VehicleSmartTargeting]github.com/oitenk/VehicleSmartTargeting[/url]