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

Replace gamemode with separate settings #374

Merged
merged 7 commits into from
Sep 24, 2023

Conversation

thecraftianman
Copy link
Member

@thecraftianman thecraftianman commented Sep 14, 2023

Fulfills #243

  • Removed the gamemode setting, competitive fuel settings, and everything directly related to them (ACF.Gamemode, ACF.CompFuelRate, ACF.CompFuelFactor)
  • Added new serverside settings to enable/disable legality checks (ACF.LegalChecks) and enable/disable fuel requirements for engines (ACF.RequireFuel) to match Sandbox mode behavior
  • Changed the default value of ACF.FuelRate to the Competitive mode value
  • Added callback messages for every setting that didn't have one and fixed up the existing ones a bit because why not
  • Very minor bits of style cleanup

I'm not sure if it would be ideal to keep the dropdown gamemode menu (to use as presets for the new settings) and/or a separate multiplier for the Competitive fuel consumption (as a checkbox probably?), but these can be added back if desired.

Radar behavior will also need to be changed to account for this PR (maybe moved to use the RestrictInfo setting instead or something? Done in ACF-Team/ACF-3-Missiles#88 )

- Removed ACF.Gamemode, ACF.CompFuelRate, and ACF.CompFuelFactor
- Added ACF.LegalChecks and associated settings option to replace Sandbox mode behavior
- ACF.FuelRate now replaces uses of ACF.CompFuelRate and has had its min/max values changed to 0-30 in order to replace Sandbox and Competitive fuel behaviors
- Fuel usage is disabled when ACF.FuelFactor == 0 rather than ACF.Gamemode ~= 1
I realized that there could maybe be issues if you set the fuel factor to 0 and then to something else
@Stooberton
Copy link
Collaborator

Quality work 👍

Besides upping the default consumption to 27.8 I've got no issues with this.

Also set the FuelFactor max back to 2 to account for the change and removed the duplicate FuelRate multipliers in engine efficiency
Noticed this while working on this PR. Every setting that did not have a callback message now has one, and the existing ones now have a bit better phrasing.

Also changed the GunsCanSmoke text to not trail out of the spawnmenu.
@TwistedTail TwistedTail merged commit bcd2f4b into ACF-Team:dev Sep 24, 2023
2 checks passed
@thecraftianman thecraftianman deleted the replace-gamemode branch September 25, 2023 01:47
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

Successfully merging this pull request may close these issues.

3 participants