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

Change Command: loadout_set_skill_variant #124

Open
DestroyedClone opened this issue Apr 16, 2022 · 0 comments
Open

Change Command: loadout_set_skill_variant #124

DestroyedClone opened this issue Apr 16, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@DestroyedClone
Copy link
Contributor

Which Command
Vanilla command loadout_set_skill_variant

What should it do?
Use loose bodymatching, and change the current character if no body is specified.
The code for the command is found in RoR2.UserProfile as CCLoadoutSetSkillVariant(ConCommandArgs args)
For the loose bodymatching, I believe an IL hook can be performed at the BodyIndex set as the first variable argBodyIndex to the loose bodymatching provided by the mod for other mod commands.
For the second option, it has two routes:

  • Ignore BodyIndex
    • This would allow the command to run additionally as loadout_set_skill_variant x y
    • Requires more editing of the method.
  • Use 'self' instead
    • The command could be ran as loadout_set_skill_variant self x y where self is the NetworkUser's current body.
    • May cause an outlier issue if there is a body with the internal string of 'self', but it is a non-issue.
@DestroyedClone DestroyedClone added the enhancement New feature or request label Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant