Skip to content

Commit

Permalink
Merge pull request #1 from David-Lor/initial-release
Browse files Browse the repository at this point in the history
Initial functional script
  • Loading branch information
David-Lor authored Oct 17, 2021
2 parents b6cbdaa + 35a47bb commit 82c2dc1
Show file tree
Hide file tree
Showing 2 changed files with 590 additions and 0 deletions.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,40 @@ Grand Theft Auto IV script to create a basic battle between two teams.
## Background

This is a port of [GTA V SimpleGangWar script](https://github.com/David-Lor/GTAV-SimpleGangWar) and [RDR2 SimpleGangWar script](https://github.com/David-Lor/RDR2-SimpleGangWar). Since most functions and methods are the same between GTA5, RDR2 and GTA4, and the language used is the same (C#), almost all functionalities were ported to GTA IV.

## Installing

**Prerrequisites**: ScriptHookDotNet and its requirements. I recommend downloading [LSPD:FR](https://www.lcpdfr.com/downloads/gta4mods/g17media/4607-lcpd-first-response-legacy-edition/), which bundles all the requirements. Tested on GTA IV version 1.2.0.43 (Steam+Rockstar version) on October 2021.

**Installing**: put SimpleGangWar.cs and SimpleGangWar.ini into the `Grand Theft Auto IV/scripts` folder

## Usage

The key `F9` ("Hotkey") is used to navigate through all the steps of the script. In-game help popups will describe what to do, but these are the different stages you will find:

1. The script will ask you to move to where the enemies will spawn
2. After pressing the hotkey, you must do the same to define where the allies will spawn
3. Right after defining both spawnpoints, peds from both teams will spawn on their respective spawnpoints, and fight each other
4. Press the hotkey once to enter the "exit mode" (it will ask for confirmation to stop the battle)
5. Pressing the hotkey again will inmediately stop the battle and remove all alive & dead peds from the map

An additional hotkey `Z` ("SpawnHotkey") is used to pause/resume the ped spawning in both teams.

## Settings

At this moment, no .ini config file is supported. Configuration must be changed directly on the script. The settings will be documented here when the config file support is included.

## Known bugs

- First spawned peds may stand still and not fight. A possible workaround is to bump into them, or kill them.

## TODO

- Support .ini config file
- Make spawnpoint blips blink (or change in any other way) when spawning is paused.
- Implement other missing configuration features...

## Changelog

- 0.0.1
- Initial ported functional release; missing some features and support for config file
Loading

0 comments on commit 82c2dc1

Please sign in to comment.