[Release] Sudden Attack Johnson_Code Upgraded to Visual Studio 2019

Has anyone else experienced a black screen bug at certain moments after reloading the weapon, after compiling and using this source? I compiled it exactly as it was released, without adding anything, and it still doesn't work properly. Does anyone know what to do? majortom1, do you know what it could be?
 
Has anyone else experienced a black screen bug at certain moments after reloading the weapon, after compiling and using this source? I compiled it exactly as it was released, without adding anything, and it still doesn't work properly. Does anyone know what to do? majortom1, do you know what it could be?
never had this issue so i don't really know the cause of it
 
i got files and source official korea :)
 
Has anyone else experienced a black screen bug at certain moments after reloading the weapon, after compiling and using this source? I compiled it exactly as it was released, without adding anything, and it still doesn't work properly. Does anyone know what to do? majortom1, do you know what it could be?
I have a same issue
 

Attachments

  • 1 - [Release] Sudden Attack Johnson_Code Upgraded to Visual Studio 2019 - RaGEZONE Forums
    1.webp
    10.4 KB · Views: 63
I have a same issue @

mnetwork iguinho123 sorry i had to reproduce the issue on my end to find a solution , the black screen issue is due to animation race condition

to fix it you can do it in your own way , but as a quick hotfix you can do it like this , ClientWeapon.cpp CClientWeapon::ReloadClip function :

C++:
    if (!bForce)
    {
        //prevent reload anim if fire anim is still active
        uint32 dwAni = g_pLTClient->GetModelAnimation(m_hObject);
        if (IsFireAni(dwAni) || IsPreFireAni(dwAni) || IsPostFireAni(dwAni))
        {
            return;
        }
        
        // Already reloading...
        if (m_hObject && (W_RELOADING == GetState()))
        {
            return;
        }

        
        //....rest of code
        }
 
mnetwork iguinho123 sorry i had to reproduce the issue on my end to find a solution , the black screen issue is due to animation race condition

to fix it you can do it in your own way , but as a quick hotfix you can do it like this , ClientWeapon.cpp CClientWeapon::ReloadClip function :

C++:
    if (!bForce)
    {
        //prevent reload anim if fire anim is still active
        uint32 dwAni = g_pLTClient->GetModelAnimation(m_hObject);
        if (IsFireAni(dwAni) || IsPreFireAni(dwAni) || IsPostFireAni(dwAni))
        {
            return;
        }
       
        // Already reloading...
        if (m_hObject && (W_RELOADING == GetState()))
        {
            return;
        }

       
        //....rest of code
        }
thanks!
 
you are welcome
the fix posted is simply so you can understand whats going on , you'll need to do it your own way , the actual fix is a bit annoying yet easy
have fun coding

you are welcome
the fix posted is simply so you can understand whats going on , you'll need to do it your own way , the actual fix is a bit annoying yet easy
have fun coding
hello do you have latest update for it i having a problem on d3dx8
 
is it
thanks but i finally manage it and im now getting some error on bomb mode but still the code works well and i change the crash handler and use bugtrap instead so no more problem on windows 10 hope it also work on windows 11. btw do you have discord?
 
Back