Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Randomize the stats of bots available in the single player campaign? #8

Open
theastropath opened this issue Dec 27, 2024 · 0 comments

Comments

@theastropath
Copy link
Owner

Maybe outside the scope of this mod, but it could be interesting to randomize the stats of the bots available to hire in the single player campaign.

The stats are loaded (in multiplel places) via the XGame.XUtil::FindPlayerRecord function, which pulls the stats (by name) directly from the UPL files (see below) using a native function.

Stats that could be randomized include:

  • Accuracy
  • Aggressiveness
  • StrafingAbility
  • CombatStyle
  • Tactics
  • ReactionTime
  • Jumpiness
  • FavoriteWeapon

The UPL files that stats are loaded from are:

  • xplayersL1.upl
  • xplayersL2.upl
  • xaplayersl3.upl (I believe this is added via the Editor's Choice Edition, which is included in patch v3369)

My guess is that it isn't really feasible to do this randomization in-game. It might just be easier to have an external tool that randomizes the UPL files themselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant