Page MenuHomeFeedback Tracker

New player loadout system seems to break choosing a custom character model
Reviewed, NormalPublic

Description

If we are using the new "spawnGearPresetFiles" cfgGameplay directive with the accompanying JSON file with the loadout configurations, the loadouts themselves work fine, however this seems to break the ability for a player to choose a custom character and the main menu. When they Respawn Custom, it still gives them a random character.

When we switch back to doing loadouts through init.c, this functionality is restored.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Additional Information

Please let me know if additional info is required for you to investigate. Thank you!

Event Timeline

Geez changed the task status from New to Awaiting internal Testing.Nov 8 2023, 9:21 AM
Geez changed the task status from Awaiting internal Testing to Reviewed.Nov 8 2023, 9:58 AM
Geez added a subscriber: Geez.

Hello sanguine00.
Unless we understand incorrectly, there does not appear to be an issue? If you/the server owner have chosen that only Keiko and Baty will spawn, then the players will not be able to choose random character.

@Geez When we create the loadouts through init.c, the players can choose a custom character model from the main screen and keep that character model - only their clothing/inventory is randomized by the init.c configuration.

When creating the loadouts through spawnGearPresetFiles, the character model is also overridden. Is there a way to use the new functionality to only randomize the startup clothing/inventory, while allowing the player to choose a custom character model? If not, we'll just keep using init.c. We just felt like the ultimate goal was to move away from init.c for things like this. Thank you for the reponse and advice.

Geez added a comment.Nov 8 2023, 7:40 PM

This server-side configured spawning method completely overrides the spawning of the character. Which means that character created in main menu will be overriden by the settings from Player Spawn Gear configuration on server during the character creation process. This is how this works.

sanguine00 added a comment.EditedNov 9 2023, 1:23 AM

I understand now that's how it works. "Spawning Gear Configuration" on the Wiki documentation implied to me that it was replicating the functionality from init.c that allows us to force random spawn gear while still allowing the player to choose their character model. If this new system completely overrides the character, that's fine - we'll just keep doing it through init.c. Thank you, as always.