Jump to content

[Request] Help needed with a mini mod


Weatherop

Recommended Posts

I've been trying to make a small mod for myself with which I can toggle between very high graphic settings for taking photos in pause mode and my usual graphic settings for normal gameplay.

Now I'm not really familiar with how to make a new mod, so I just used an existing one ( Weather Control - Rain Fix and Climate Hotkey) and succesfully managed to incorporate this functionality into one of the hotkeys in that mod.

However when I switch graphic settings during pause the hair bugs out like the attached photo, but a quick unpause fixes this issue.

So I've tried to incorporate a quick unpause, follow by a pause into the hotkey with no success. I've tried:

    event OnRain2( action : SInputAction )
    {
    theGame.Unpause( "user_pause" );
    theSound.SoundEvent("system_resume");
    theGame.Pause( "user_pause" );
    theSound.SoundEvent("system_pause");
    }

It unpauses and then pauses the game just fine, but it happens too fast and the hair doesn't have time to fix itself. So I tried to brute force it like a monkey:

    event OnRain2( action : SInputAction )
    {
    theGame.Unpause( "user_pause" );
    theSound.SoundEvent("system_resume");
    theGame.Unpause( "user_pause" );
    theGame.Unpause( "user_pause" );
    theGame.Unpause( "user_pause" );
    theGame.Unpause( "user_pause" );
    theGame.Unpause( "user_pause" );
    theGame.Pause( "user_pause" );
    theSound.SoundEvent("system_pause");
    }

to no avail.

What do?

Edited by Weatherop
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...