Page 1 of 1

[227e] Need an idea!!! Quick!!!

Posted: Fri Nov 28, 2008 5:22 pm
by Chaos13
Any idea of how to somehow hook to player's render?
For ex to draw lasers? (Draw3dLine)
I need just idea cause not very good of thinking them out atm.

Re: [227e] Need an idea!!! Quick!!!

Posted: Fri Nov 28, 2008 7:01 pm
by []KAOS[]Casey
.:..: : UWinInteraction!!!

Re: [227e] Need an idea!!! Quick!!!

Posted: Fri Nov 28, 2008 7:59 pm
by Chaos13
As what I looked from Console code UWinInteraction wont work in this case. It will only render stuff if console is in UWindow state. I need laser nodes to be rendered all the times.

Re: [227e] Need an idea!!! Quick!!!

Posted: Fri Nov 28, 2008 9:08 pm
by []KAOS[]Casey
make a hudmutator and put it in unrealhud subclass

Re: [227e] Need an idea!!! Quick!!!

Posted: Sat Nov 29, 2008 10:29 am
by .:..:
As what I looked from Console code UWinInteraction wont work in this case. It will only render stuff if console is in UWindow state. I need laser nodes to be rendered all the times.
False:

Code: Select all

state UWindow
{
...
      event PostRender( canvas Canvas )
      {
            local UWinInteraction I;

            if ( Viewport.Actor.myHUD != None )
                  Viewport.Actor.myHUD.DisplayMessages(Canvas);
            if( TimeDemo != None )
                  TimeDemo.PostRender( Canvas );
            For( I=FirstInteraction; I!=None; I=I.NextInter )
            {
                  if( I.bRequestRender )
                        I.PostRender(Canvas);
            }
            if(Root != None)
                  Root.bUWindowActive = True;
            RenderUWindow( Canvas );
      }
...
}

Code: Select all

event PostRender( canvas Canvas )
{
      local UWinInteraction I;

      if( !bCreatedRoot )
      {
            bShowConsole = False;
            CreateRootWindow(Canvas);
      }
      Super.PostRender(Canvas);
      For( I=FirstInteraction; I!=None; I=I.NextInter )
      {
            if( I.bRequestRender )
                  I.PostRender(Canvas);
      }
}

Re: [227e] Need an idea!!! Quick!!!

Posted: Tue Dec 02, 2008 10:22 pm
by Chaos13
1
Sorry, case(y) closed.