You are an unregistered user, you can register here
Navigation

Information

Site

Donations
If you wish to make a donation you can by clicking the image below.


 
Go Back   The Unreal Admins Page > Forums > Hosted Forums > UTPure > UTPure - Client Side Hack Protection > General Anti-Cheat Discussion

Reply
Thread Tools Display Modes
  #1  
Unread 20th August, 2005, 04:43 PM
Matthew Matthew is offline
Holy Shit!!
 
Join Date: Dec 2004
Posts: 2,382
Question Coders, can you help me out with the ASC?

I maintain the ASC for UT99. There is one thing that Pure causes that I can't seem to fix, and I was wondering if you all have any suggestions and could help me out with it.

The ASC calls a class to open the ASC window. Whenever this window is called, then it appears on the very top, in front of the UT desktop, game, HUD, and so fourth.

Well when any UTPure 7 version is running, this window gets called, but does not appear on top. Instead, it appears at the very lowest layer - on the top of the UT desktop. This therefore means that to perform any action inside the window, the player must always hit escape, which can become quite annoying.

If any of you have any idea how to solve this issue, then I would be very very thankful if you shared.

I will gladly give someone (someone who is at least known) the entire source for the ASC if contacted privately.



Thanks!
Reply With Quote
  #2  
Unread 20th August, 2005, 05:44 PM
AnthraX's Avatar
AnthraX AnthraX is offline
Administrator
 
Join Date: Jun 2004
Location: Ghent (Belgium)
Posts: 1,380
Default

wrote this a long time ago, there's probably a much better way but it works...

Code:
var bool bWindowPending; // Window will re-open half a second after this is set to true
var float zzCounter; // counter
var WindowConsole zzC; // set this to WindowConsole(PlayerPawn(Owner).Player.Console)

// =============================================================================
// Tick ~ Call the clientside tickfunction
// =============================================================================

function Tick (float DeltaTime)
{
    // Player left
    if (PlayerPawn(Owner) == None)
        Destroy();

    xxTick(DeltaTime);
}

// =============================================================================
// xxTick ~ Clientside tick that will keep the window on top & activated
// =============================================================================

simulated function xxTick (float DeltaTime)
{
    local UWindowWindow Prev, Child;
    
    if (ROLE < ROLE_AUTHORITY)
    {
        if (!bWindowShouldBeOpen)
             return;

        if (bWindowPending)
        {
            zzCounter+=DeltaTime;

            if (zzCounter > 0.5)
            {
                for(Child = zzC.Root.LastChildWindow; Child != None; Child = Prev)
                {
                    Prev = Child.PrevSiblingWindow;
                    if (Prev.IsA('myWindowClass'))
                    {                    
                        Prev.Close();
                    }
                }

                xxShowWindow();

                bWindowPending = false;
                zzCounter = 0.0;
            }
        }
        else if(!zzC.Root.ActiveWindow.IsA('myWindowClass'))
        {
            Log("### Window Deactivated, Reactivating ...");
            bWindowPending=true;
            zzCounter = 0.0;
        }
    }
}

// =============================================================================
// xxShowWindow ~ Show the login window on the client's screen
// =============================================================================

simulated function xxShowWindow ()
{
    if (zzC==None || ROLE==ROLE_AUTHORITY)
        return;

    if ((!zzC.bCreatedRoot) || (zzC.Root==None))
        zzC.CreateRootWindow(none);

    zzC.bQuickKeyEnable = true;
    zzC.LaunchUWindow();
    zzWindow = myWindowClass(zzC.root.CreateWindow(class'myWindowClass',32,32,392,162));
}
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:20 PM.


 

All pages are copyright The Unreal Admins Page.
You may not copy any pages without our express permission.