Runningaway

Member
Apr 7, 2021
173
359
139
Finally saw and read your new fanfic, in my opnion that ending was "Funny"
You don't have permission to view the spoiler content. Log in or register now.
Quick question, whay do you want to change the ending? Because of the fanfic or because you want to know more stuff about enemies spawn and things like that?
 

user182737

Active Member
Feb 6, 2021
602
578
208
I might have been mistaken, so sorry
Try this

1. Create a boolean IsPlayerAnim or any name you want (KMod use this name)
2. Add this before if (this.H_Num == 14)
Code:
GameObject h_Object = GameObject.Find("Menu").GetComponent<Menu_Control>().H_Object;
if (h_Object != null)
{
    H_Ani component = h_Object.GetComponent<H_Ani>();
    if (component != null)
    {
        this.IsPlayerAnim = (component == this);
    }
}
3.Add this after this.onEnd = true;
Code:
if (this.GM != null  && this.IsPlayerAnim )
{
this.isLoop = true;                
}
Thanks for the reply.
Sadly I get the same result. After cumshot she just loops the same animation.
I basically copied you code (after creating a bool for "IsPlayerAnim") and inserted it as instructed.
Got no error, using a clean csharp file.


I think you may also have to check H_Ani()/Update() and H_Ani()/H_Loop()
I think this is where it ends for me.
I have no idea what i`m supposed to check.
So i copy-pasted your first code in there, hopping it does something, but no.
Same result.
 

kwanlier

Active Member
Oct 26, 2019
588
1,084
328
Quick question, why do you want to change the ending? Because of the fanfic or because you want to know more stuff about enemies spawn and things like that?
Kind of both
  • Fanfic reason: Comparing to the original ending, this one is "a happy endding" (best ending for Chad(TM) alien case) and can even lead to a "happier" sequel.
  • Gameplay reason: the idea come from people request the "press button to spawn random enemy button" (which I did not try this yet) but my brain think differently. Instead of "press button to spawn random enemy", I think of "what if I turn an egg into a gacha box" instead, and to test that function, I tries to make Chad(TM) alien to spawn from egg instead of facehugger, that's it.
 
  • Like
Reactions: Runningaway

okmbhu001

Newbie
Aug 23, 2018
40
84
173
I think, in the unmodded version of the game, try this
  • Go to the H_Ani()/H_End()
  • Add this.isLoop = true before this.onEnd = true
  • Change this.onEnd = true to this.onEnd = false
Actually,U can ADD“this.Play(1, 1f); ” at the end of H_Ani/H_Ani : MonoBehaviour .
Like this: QQ图片20240624210223.png
 

user182737

Active Member
Feb 6, 2021
602
578
208
The First“1”is the gallery animated‘s number,if change to“2”that will be start for the second animated and so on。
The Second“1”is control to the animated‘s speed.
It works as advertised... but not what i`m searching for.
I want the entire sex scene looped.
This "this.play(X, 1f)" think looks promising though.
I typed in as such:
this.Play(1, 1f);
this.Play(2, 1f);
this.Play(3, 1f);
this.Play(4, 1f);

this will play all animation... but at 4 it starts looping the end_scene as it does when you put either "loop" or set "end = false"
Putting
this.Play(1, 1f);
this.Play(2, 1f);
this.Play(3, 1f);
this.Play(4, 1f);
this.Play(1, 1f);
this.Play(2, 1f);
this.Play(3, 1f);
this.Play(4, 1f);
this.Play(1, 1f);
this.Play(2, 1f);
this.Play(3, 1f);
this.Play(4, 1f);

only plays till 4 and then loops that as bevor.

Is there some smart trick to let the system start again from "this.Play(1, 1f);"?
 

kwanlier

Active Member
Oct 26, 2019
588
1,084
328
It works as advertised... but not what i`m searching for.
I want the entire sex scene looped.
This "this.play(X, 1f)" think looks promising though.
I typed in as such:
this.Play(1, 1f);
this.Play(2, 1f);
this.Play(3, 1f);
this.Play(4, 1f);

this will play all animation... but at 4 it starts looping the end_scene as it does when you put either "loop" or set "end = false"
Putting
this.Play(1, 1f);
this.Play(2, 1f);
this.Play(3, 1f);
this.Play(4, 1f);
this.Play(1, 1f);
this.Play(2, 1f);
this.Play(3, 1f);
this.Play(4, 1f);
this.Play(1, 1f);
this.Play(2, 1f);
this.Play(3, 1f);
this.Play(4, 1f);

only plays till 4 and then loops that as bevor.

Is there some smart trick to let the system start again from "this.Play(1, 1f);"?
Can you try this for me?
Code:
    private void H_End()
    {
        if (!this.isGallery)
        {
            GameObject h_Object = GameObject.Find("Menu").GetComponent<Menu_Control>().H_Object;
            if (h_Object != null)
            {
                H_Ani component = h_Object.GetComponent<H_Ani>();
                if (component != null)
                {
                    this.IsPlayerAnim = (component == this);
                }
            }
            if (this.H_Num == 14)
            {
                this.End_Timer = 4.5f;
            }
            else if (this.H_Num == 15 || this.H_Num == 21 || this.H_Num == 22 || this.H_Num == 25)
            {
                this.End_Timer = 4f;
            }
            else if (this.H_Num == 3 || this.H_Num == 9 || this.H_Num == 10 || this.H_Num == 11 || this.H_Num == 12)
            {
                this.End_Timer = 3f;
            }
            else
            {
                this.End_Timer = 2f;
            }
            this.onEnd = true;
            if (this.GM != null && this.IsPlayerAnim)
            {
                this.isLoop = true;
            }
        }
    }
 

kwanlier

Active Member
Oct 26, 2019
588
1,084
328
or this is from around line 106 of H_Ani() (under the if (this.H_Num <= 50 && this.H_Num != 13 && this.H_Num != 23 && this.H_Num != 29) )

Code:
if ((this.isGallery || this.isLoop) && this.onEnd && this.End_Timer <= 0f)
{
                    base.GetComponent<Animator>().SetBool("isLoop", this.isLoop);
                    base.GetComponent<Animator>().SetInteger("State", 1);
                    base.GetComponent<Animator>().SetTrigger("onPlay");
                    base.GetComponent<Animator>().SetBool("isStopped", false);
                    base.GetComponent<Animator>().SetBool("isLoop", this.isLoop);
                    this.onEnd = false;
                    this.Sound_Timer = 0.2f;
                    this.Moan_Timer = 0f;
                    this.Moan_End_Timer = 0f;
                    this.onSoundEnd = false;
    
}
 

user182737

Active Member
Feb 6, 2021
602
578
208
Can you try this for me?
No change, it just loops the last animation after sex scene.
This is how the code looks:
You don't have permission to view the spoiler content. Log in or register now.


or this is from around line 106 of H_Ani() (under the if (this.H_Num <= 50 && this.H_Num != 13 && this.H_Num != 23 && this.H_Num != 29) )
}[/CODE]
Copying this as is threw some errors, so needed to change stuff until errors disappeared:
You don't have permission to view the spoiler content. Log in or register now.
Be aware that i have no idea what i`m doing, so i don`t know if that " this.H_Exit();" is really bad at that position. But trying to change the { around just broke stuff.


wtf is this i trying to play H games to fap guys not the coder group in here!
We try to change code so fap is better without you needing to let go of pipi.

It`s not like we are disrupting anything important here. The 104 "did Grim release new game yet" post certainly isn`t speeding up a new release, if any is even planned
 

kwanlier

Active Member
Oct 26, 2019
588
1,084
328
it just loops the last animation after sex scene
As in the cumming animation?

Be aware that i have no idea what i`m doing, so i don`t know if that " this.H_Exit();" is really bad at that position. But trying to change the { around just broke stuff.
I think the this.H_Exit(); should be in a different parentheses.
can you try add
Code:
else
{
this.H_exit();
}
after the if(!this.isGallery&& !this.isLoop... condition?

wtf is this i trying to play H games to fap guys not the coder group in here
Code before Coom
 
  • Like
Reactions: McAztec

okmbhu001

Newbie
Aug 23, 2018
40
84
173
As in the cumming animation?



I think the this.H_Exit(); should be in a different parentheses.
can you try add
Code:
else
{
this.H_exit();
}
after the if(!this.isGallery&& !this.isLoop... condition?



Code before Coom
Actually your initial code “ this.isLoop = true; ” is right,but the sequence is wrong.
QQ图片20240625111240.png
 

okmbhu001

Newbie
Aug 23, 2018
40
84
173
No change, it just loops the last animation after sex scene.
This is how the code looks:
You don't have permission to view the spoiler content. Log in or register now.




Copying this as is threw some errors, so needed to change stuff until errors disappeared:
You don't have permission to view the spoiler content. Log in or register now.
Be aware that i have no idea what i`m doing, so i don`t know if that " this.H_Exit();" is really bad at that position. But trying to change the { around just broke stuff.



We try to change code so fap is better without you needing to let go of pipi.

It`s not like we are disrupting anything important here. The 104 "did Grim release new game yet" post certainly isn`t speeding up a new release, if any is even planned
Try My code
 

okmbhu001

Newbie
Aug 23, 2018
40
84
173
He asked for "Is there a way to get the repeat for sex scenes as stand alone?"

English is not my first language so I don't know whether that's what he want or not:cry:
I understand what you mean,but I not sure if it's what he needs
 

user182737

Active Member
Feb 6, 2021
602
578
208
I`m currently at work so I try out the code later.

He asked for "Is there a way to get the repeat for sex scenes as stand alone?"

English is not my first language so I don't know whether that's what he want or not:cry:
I understand what you mean,but I not sure if it's what he needs
To make sure we are on the same page here:
kwanlier
You have in your KMOD included that the entire sex scenes can repeat.
I want that but without needing to install your mod. (the other stuff is not my cup of tea, sorry)
 
Last edited:

user182737

Active Member
Feb 6, 2021
602
578
208
Ok, I'm super confused right now

As in the cumming animation?
I think the this.H_Exit(); should be in a different parentheses.
can you try add
Code:
else
{
this.H_exit();
}
after the if(!this.isGallery&& !this.isLoop... condition?
Code before Coom
Doing it like this instantly ends the animation.

Code
You don't have permission to view the spoiler content. Log in or register now.

After this I completely deleted
}
else
{
this.H_exit();

and tried okmbhu001 suggestion and putting the "this.isloop" at the end in "H_End()"
it now does this:


This is almost exactly what I want.
Now
How do I tell the game to repeat the ENTIRE sex scene?
 

kwanlier

Active Member
Oct 26, 2019
588
1,084
328
tried @okmbhu001 suggestion and putting the "this.isloop" at the end in "H_End()"
it now does this:
Video

This is almost exactly what I want.
Now
How do I tell the game to repeat the ENTIRE sex scene?
I think this is what you are looking for.
Have you try this with the monster that has long sex scene? I recommend the Chad(TM) alien's mating press animation.
 

user182737

Active Member
Feb 6, 2021
602
578
208
I think this is what you are looking for.
Have you try this with the monster that has long sex scene? I recommend the Chad(TM) alien's mating press animation.
Nono, i want to let it repeat the entire sex scene.
From start to finish.

This way it only does the entire Sex scene ones and then starts looping the first sex scene.
 
4.50 star(s) 129 Votes