# LongRangePursuit

An LSPDFR plugin for GTA V that lets you start pursuits on distant vehicles and peds by free-aiming at them, up to 800 meters away.

## Features

- Free-aim at any vehicle or ped up to 800m away and start a pursuit
- Two-press system: first press marks the target persistent, second press initiates the pursuit
- Targets all occupants when aiming at a vehicle
- Adds suspects to an existing pursuit if one is already active
- Supports both keyboard and controller
- Controller uses double-tap detection to avoid accidental activation
- Fallback aim-cone targeting when ray tracing misses at long range

## Requirements

- Grand Theft Auto V
- RagePluginHook (RPH)
- LSPDFR

## Installation

1. Copy `LongRangePursuit.dll` and `LongRangePursuit.ini` into your GTA V `plugins\LSPDFR` folder.
2. Launch GTA V through RagePluginHook.

## Configuration

Edit `LongRangePursuit.ini` in your `plugins\LSPDFR` folder:

[Keys]
PursuitKey=B

[Buttons]
PursuitButton=A

[Settings]
MaxRange=800

## Usage

1. Free-aim (hold LT / right-click) at a distant vehicle or ped.
2. Press **B** (keyboard) or double-tap **A** (controller) to mark the target.
3. Keep aiming at the same target and press again to start the pursuit.

The first press makes the target persistent so it won't despawn. The second press on the same target initiates the pursuit. If a pursuit is already active, the new suspect is added to it.

## Author

Gamecock Tomahawk
