Skip to content

Change Command: loadout_set_skill_variant #124

@DestroyedClone

Description

@DestroyedClone

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions