C#/.NET Solutions for Off-Road Navigation 1.3.0

Gameplay


Description


C#/.NET Solutions for Off-Road Navigation

This script generates vehicles on dirt roads to create a more lively environment. The types of cars spawned are randomly selected from a configurable list within the script. Cops and Marines will spawn with two random weapons (Marines only appear at the military base).

Installation:

You need ScripthookvDotNet installed for this mod to work. Place the Traffic.cs file in either your ...\Installationfolder\Scripts\ folder, or if you use a mod manager, place it in its own subdirectory like this:
GTAV Mods\OffRoadTraffic\Scripts\Traffic.cs

Changes:

**From 1.2.2 to 1.3.0:**
  • Improved vehicle spawn location code
  • Ensured vehicles face the correct direction on the road
  • Prevented vehicle spawning when the player is airborne
  • **From 1.2.1 to 1.2.2:**
  • Minor code adjustment to prevent issues when adding more locations
  • Overhauled vehicle and pedestrian generation
  • **From 1.1 to 1.2.1:**
  • Fixed a typo that may have caused the script to malfunction
  • Added three more Jeeps (thanks tall70)
  • Added BF Injection and Dune vehicles (thanks JWillMac51!)
  • Removed hardcoded distance and used per-location distance for checks
  • Lowered the tick rate for speeds above 40 mph (from 3 seconds to 2)
  • Added a check to ensure pedestrians spawn before attempting to give them weapons
  • Added configurable settings for spawn speed at high and low speeds.
  • Credits:

    This mod is based on the mod released by @5mith. I converted the code from VB and rewrote most functions to be less demanding on CPU time and easier to modify and read.
    First Upload: November 12, 2024 Last Updated: November 12, 2024


    0 Comments