# RDR 2 SimpleGangWar script
Red Dead Redemption 2 script to create a basic battle between two teams.
This is a port of GTA V SimpleGangWar script. Since most functions and methods are the same between GTA5 and RDR2, and the language used is the same (C#), almost all functionalities were ported to RDR2.
The main differences with the GTA V version are: no armor, no combat movement, no combat range, and not run to spawnpoint (as RDR2 peds seem to fight well on wide range).
SimpleGangWar.cs
& SimpleGangWar.ini
into Red Dead Redemption 2/scripts
folderThe 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:
An additional hotkey Z
("SpawnHotkey") is used to pause/resume the ped spawning in both teams.
Settings can be defined on the SimpleGangWar.ini
file, being the following:
All lists of items (models & weapons) are separated by comma (,
) or semi-colon (;
). Spaces and case ignored.
Models
: list of ped models (Reference)Weapons
: list of ped weapons, each ped receiving one random weapon from the list (Reference)
(Optional; if not set, peds on the team will use their in-game default weapons, and no other weapons are given)Health
: health for peds on the team (Optional; if not set or zero, health for peds will not be changed)Accuracy
: accuracy for peds on the team (Optional; if not set, accuracy for peds will not be changed)CombatMovement
: how the peds will move through the battlefield. This can be used to make one team defend its spawnpoint, while the other team tries to attack it - although it may not have a great effect. One of following:
none
: do not change CombatMovement of team peds (default setting)stationary
: not move at alldefensive
: stay near the spawnpoint and take coveroffensive
: focus on attacking the enemy teamsuicidal
: more aggresive attackMaxPeds
: maximum alive peds on the team (Pseudo-Optional; if not set, the MaxPedsPerTeam setting will be used)Hotkey
: the single hotkey used to iterate over the script stages (Reference)SpawnHotkey
: hotkey used to pause/resume ped spawn in both teams (Reference)MaxPedsPerTeam
: maximum alive peds on each team (teams with the setting MaxPeds set will ignore this setting)NoWantedLevel
: if true, disable wanted level during the battle (true/false)ShowBlipsOnPeds
: if true, each spawned ped will have a blip on the map (true/false)DropWeaponOnDead
: if false, dead peds won't drop their weapons - they will remain stick to their bodies (true/false)RemoveDeadPeds
: if true, mark dead peds as no longer needed, making the game handle their cleanup (true/false)SpawnpointFloodLimitDistance
: radius distance from the spawnpoint to sum peds onSpawnpointFloodLimitPeds
: if more than this amount of peds are within the Distance set, spawn will be blockedInterval
settings, specifying time in ms.
The given times are valid, but may be changed to alter the behaviour of the script or to solve certain problems.
The higher the delay, the less responsive and slow the mod will work (which may result in slower spawn rate of peds).
There are two Interval settings available, depending on the context:
IdleInterval
: when battle is not BattleInterval
: when battle is running