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.
Which Command
Vanilla command
loadout_set_skill_variantWhat 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.UserProfileasCCLoadoutSetSkillVariant(ConCommandArgs args)For the loose bodymatching, I believe an IL hook can be performed at the
BodyIndexset as the first variableargBodyIndexto the loose bodymatching provided by the mod for other mod commands.For the second option, it has two routes:
loadout_set_skill_variant x yloadout_set_skill_variant self x ywhereselfis theNetworkUser's currentbody.