+ Reply to Thread
Results 1 to 10 of 10

Thread: [USCript] Ruffian GUI

  1. #1
    [RAM]Ruffian' Silver Dragon
    Join Date
    14th Feb 2005
    Location
    Ohio
    Posts
    986

    [USCript] Ruffian GUI

    This is a ghetto GUI - but its easy and it works great......
    Credits: Me (I did everything)


    PHP Code:
    #exec Texture Import File=Textures\selectbox.bmp  Name=select//GUI Texture
    var int iselect;//This controls the GUI
    var bool bnorecoil,bretlock,bwallhack;//Just some random bools for an example :)
    function PostRender(Canvas Canvas)
    {
    local pawn p;    
            if(
    iselect<=0){iselect=3;}
        if(
    iselect>=4){iselect=1;}
        
    //The above is so the your selector doesnt disapear

        
    SelectBool(Canvas);//This calls the GUI function
        
        //RANDOM BOOLS\\
        
    if(bnorecoil)
        {
    R6PlayerController(MyController).m_bShakeactive=false;}else{R6PlayerController(MyController).m_bShakeactive=true;}
        if(
    bretlock)
        {
    Me.EngineWeapon.PerfectAim();}
        if(
    bwallhack)
        {
            foreach 
    mycontroller.allactors(class'pawn',p)
            {
             if((
    p!=none)&&(p!=me)&&(p.isalive()))
             {
            
    Canvas.drawactor(p2,false,true);
            
    p.bhidden=false;
             }
            }
        }
    }
    function 
    SelectBool(Canvas Canvas)//GUI Function
    {
        
    local float PosXPosY;
        
    Canvas.Style=1;
        
    PosX=10;
        if(
    iselect==1)
        {
    Canvas.SetDrawColor(117,117,177);}    //If Selected, then use this color
        
    else{Canvas.SetDrawColor(74,74,74);}    //If not Selected, then use different color
            
    PosY Canvas.ClipY 2-62;
            
    Canvas.SetPos(PosXPosY);    
            
    Canvas.DrawIcon(Texture'Select'0.90);
        if(
    iselect==2)
        {
    Canvas.SetDrawColor(117,117,177);}    //If Selected, then use this color
        
    else{Canvas.SetDrawColor(74,74,74);}    //If not Selected, then use different color
            
    PosY Canvas.ClipY 2-47;
            
    Canvas.SetPos(PosXPosY);    
            
    Canvas.DrawIcon(Texture'Select'0.90);
        if(
    iselect==3)
        {
    Canvas.SetDrawColor(117,117,177);}    //If Selected, then use this color
        
    else{Canvas.SetDrawColor(74,74,74);}    //If not Selected, then use different color
            
    PosY Canvas.ClipY 2-32;
            
    Canvas.SetPos(PosXPosY);    
            
    Canvas.DrawIcon(Texture'Select'0.90);
        
    //Text for the GUI
        
    Canvas.Font=Canvas.SmallFont;
        
    Canvas.SetDrawColor(255,239,219);
        
    PosX=20;
        
    PosY=Canvas.ClipY 2-60;
        
    Canvas.SetPos(PosXPosY);
        
    Canvas.DrawText("NoRecoil   " string(bnorecoil));
        
    PosY=Canvas.ClipY 2-45;
        
    Canvas.SetPos(PosXPosY);
        
    Canvas.DrawText("Retlock    " string(bretlock));
        
    PosY=Canvas.ClipY 2-30;
        
    Canvas.SetPos(PosXPosY);
        
    Canvas.DrawText("Wallhack   " string(bwallhack));
    }
    function 
    bool KeyEventEInputKey KeyEInputAction ActionFLOAT Delta )
    {    
    //To interact with the GUI
        
    if( Action==IST_Press )
        {
            if (
    Key==IK_Up)
            {
                
    iselect-=1;//Up to lower iselect (selecting higher on the menu)
            
    }
            if (
    Key==IK_Down)
            {
                
    iselect+=1;//Down to raise iselect (selecting lower on the menu)
            
    }
            if(
    iselect==1)//IF iselect is = to 1, then right key toggles Norecoil
            
    {
                if (
    Key==IK_Right)
                {
                
    bnorecoil=!bnorecoil;
                }
            }
            if(
    iselect==2)//IF iselect is = to 2, then right key toggles Retlock
            
    {
                if (
    Key==IK_Right)
                {
                    
    bretlock=!bretlock;
                }
            }
            if(
    iselect==3)//IF iselect is = to 3, then right key toggles Wallhack
            
    {
                if (
    Key==IK_Right)
                {
                    
    bwallhack=!bwallhack;
                }
            }
        }else{return 
    false;}
    }
    defaultproperties
    {
    iselect=1//So the selector starts at the first toggle

    How to make Ruffian GUI Movable from in game!

    Happy Coding
    Attached Images
    Last edited by RuffianSoldier; 18th October 2005 at 01:28.
    [RAM] Coding Team
    BF3 Beta Sign Up

  2. #2
    teh native god Evil One KizZamP-'s Avatar
    Join Date
    28th Jan 2005
    Location
    vectorcity
    Posts
    4,434
    nice code,looks clean,and the gui looks good too
    =>>>> added to sticky.
    kizzamp@visualcoding.com (MSN - No email.)








    BattleApps, Your private cheating resource since 2005

  3. #3
    MPC Veteran Lord of Destiny Duke420's Avatar
    Join Date
    24th Sep 2005
    Location
    Florida > Miami > With your Sister
    Posts
    74
    Very nice ruffian.... will give creds for this in my up coming .u
    CS:S Legend / RvS Legend / AA Legend / Tribes Modder / Hard.fm DJ

  4. #4
    Haxor the Pimp Knight of Wars $T$'s Avatar
    Join Date
    6th Mar 2003
    Posts
    127
    nice tut guy

  5. #5
    70GG13 Devil of Hell Fluid's Avatar
    Join Date
    12th May 2005
    Location
    Minnesota
    Posts
    334
    can i c a pick of whta the fianl looks like?
    Hack Ravenshield
    MPC Design
    Click Me!

    Also known as 70GGL3 or Toggle.

  6. #6
    Pretty cool.. alot of releases all in a short time.

  7. #7
    Banned by Admins Silent Killer DarkCode's Avatar
    Join Date
    13th Jun 2005
    Location
    Massachusetts
    Posts
    439
    Sexy Ruffian, Very Sexy.

    I love how in RVS there is no huge worries about the length of your bot cause everyone's is long and equally slow to an extent.

    Again, nice work dude. Glad you could release this, still got the e-mail you sent me with the source to this a while ago.

  8. #8
    [RAM]Ruffian' Silver Dragon
    Join Date
    14th Feb 2005
    Location
    Ohio
    Posts
    986
    I updated the tut.
    Changed the GUI to the simpler version
    Last edited by RuffianSoldier; 6th October 2005 at 09:05.
    [RAM] Coding Team
    BF3 Beta Sign Up

  9. #9
    MPC Veteran Lord of Destiny Duke420's Avatar
    Join Date
    24th Sep 2005
    Location
    Florida > Miami > With your Sister
    Posts
    74
    Creds:
    RuffianSoldier - His GUI owns
    Duke420 - Me, Coder

    thats the cast of my .u so far!!!! lol
    CS:S Legend / RvS Legend / AA Legend / Tribes Modder / Hard.fm DJ

  10. #10
    Necromancer of the Light
    Join Date
    24th Jan 2005
    Location
    Nederland
    Posts
    668
    nice indeed ruffian nice tut bro..

    wuv glogg

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts