Skip to content

Commit

Permalink
[KK*] Make bone paths unambiguous in Studio plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Sauceke committed Sep 26, 2022
1 parent 486972a commit 849dec3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions LoveMachine.KK/StudioGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ namespace LoveMachine.KK
{
internal sealed class StudioGame : AbstractKoikatsuGame
{
private const string balls = "chaM_001/BodyTop/p_cf_body_bone/cf_j_root/cf_n_height/" +
"cf_j_hips/cf_j_waist01/cf_j_waist02/cf_d_kokan/cm_J_dan_top/cm_J_dan_f_top/" +
"cm_J_dan_f_L/k_f_tamaL_00";
private Traverse<bool> isPlaying;
private Traverse<float> duration;
private Traverse<float> playbackTime;
Expand All @@ -23,9 +26,9 @@ internal sealed class StudioGame : AbstractKoikatsuGame

public override Animator GetFemaleAnimator(int girlIndex) =>
throw new NotImplementedException();
protected override GameObject GetFemaleRoot(int girlIndex) => null;
protected override GameObject GetFemaleRoot(int girlIndex) => GameObject.Find("chaF_001");

protected override Transform GetDickBase() => GameObject.Find("k_f_tamaL_00").transform;
protected override Transform GetDickBase() => GameObject.Find(balls).transform;

protected override string GetPose(int girlIndex) =>
Studio.Studio.Instance.sceneInfo.GetHashCode().ToString() + isPlaying.Value;
Expand Down

0 comments on commit 849dec3

Please sign in to comment.