1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

"Freon" Thaw to 100% code in UT2Vote?

Discussion in 'General Discussion' started by Piglet, Aug 17, 2009.

  1. Piglet

    Piglet New Member

    Joined:
    Sep 13, 2005
    Messages:
    32
    Likes Received:
    0
    Hi,

    Please could you share the code for the Freon "thaw to 100%" code?

    I'm updating the "cuddles" freon code at the moment, and would like to put this or some variant of it into the main package as an optional component.

    Thanks in advance
     
  2. ProAsm

    ProAsm Active Member

    Joined:
    Mar 20, 2002
    Messages:
    2,106
    Likes Received:
    0
    Sorry, I dont understand your request ?
     
  3. Wormbo

    Wormbo Administrator Staff Member

    Joined:
    Jun 4, 2001
    Messages:
    5,913
    Likes Received:
    36
    Isn't the 3SPN mod's code available in the package? Just export it and you should see how it's done.
     
  4. Piglet

    Piglet New Member

    Joined:
    Sep 13, 2005
    Messages:
    32
    Likes Received:
    0
    Ah - maybe I didn't make it clear....from a post at INA forums I understood that there was specific logic in the UT2Vote code for this. I can't look at it though as the code appears to have been removed from the package.

    I'm a terrible uscript coder as I've never properly learned what I should learn before starting! I've just jumped right in with both feet with no idea what I'm doing....

    http://utforums.epicgames.com/showpost.php?p=24799193&postcount=1


    Strangely enough the TA100.u talking icon mutator somehow achieves this too....but how on earth it does this when there's nothing in the TA100 code that I can see that is remotely related to Freon I can't tell! Maybe there's some buggy intereaction there.
     
  5. ProAsm

    ProAsm Active Member

    Joined:
    Mar 20, 2002
    Messages:
    2,106
    Likes Received:
    0
    The thawing fix was accidental as it seemed to get fixed along with the Escapekey bug - from the readme:
    Escape Key bug
    This is the bug where the Escape key does not work in custom games.
    If you want UT2Vote to handback the Escape key to Custom games,
    then add to the GameType= Command string:
    ?CustomGame=True
    This will tell UT2Vote not to block the Escape key.
    This will also help when thawing players in 3SPNs Freon game.
    NB... It is not advisable to do this for standard UT2004 games.

    And this code I found under the UT2Vote ChatIcon involving a FREON detection:
    Code:
    //===================================================================
    // UT2VoteChatting
    // (c) ProAsm - 2007
    //===================================================================
    
    class UT2VoteChatting extends Inventory;
    
    var Texture BeaconTexture;
    var PlayerController PLC;
    var UT2VoteIcon ChatIcon;
    
    var bool bChatting;
    var int Freon;
    
    simulated function PostBeginPlay()
    {
        Super.PostBeginPlay();
    
        bChatting=false;
        SetTimer(0.5, true );
    }
    
    simulated function Timer()
    {
        if (PLC != None && PLC.Pawn != None)
        {
           if (PLC.bIsTyping && !bChatting)
           {
              [b]if (Freon > 0) // Freon
              {
                 if (PLC.Pawn.FindInventoryType(class'UT2VoteChatting') == None)
                     PLC.Pawn.AddInventory(Self);
              }[/b]
              if (PLC.TeamBeaconTexture != None)
              {
                 BeaconTexture = PLC.TeamBeaconTexture;
                 PLC.TeamBeaconTexture = None;
              }
              if (ChatIcon == None)
                  ChatIcon = Spawn(class'UT2Vote59.UT2VoteIcon', PLC.Pawn);
              if (ChatIcon != None)
                  PLC.Pawn.AttachToBone(ChatIcon, 'head');
              bChatting = true;
           }
           else
           if (!PLC.bIsTyping && bChatting)
           {
              [b]if (Freon > 0) // Freon
              {
                 if (PLC.Pawn.FindInventoryType(class'UT2VoteChatting') != None)
                     PLC.Pawn.DeleteInventory(Self);
              }[/b]
              if (BeaconTexture != None)
                  PLC.TeamBeaconTexture = BeaconTexture;
              if (ChatIcon != None)
              {
                 ChatIcon.Destroy();
                 ChatIcon = None;
              }
              bChatting = false;
           }
        }
        else
        {
           if (Pawn(Owner) != None)
               PLC = PlayerController(Pawn(Owner).Controller);
        }
    }
    
    simulated function Destroyed()
    {
        Super.Destroyed();
    
        if (ChatIcon != None)
        {
           ChatIcon.Destroy();
           ChatIcon = None;
        }
    }
    
    
    Thats all there is regarding FREON.
     
    Last edited: Aug 18, 2009
  6. Piglet

    Piglet New Member

    Joined:
    Sep 13, 2005
    Messages:
    32
    Likes Received:
    0
    Interestin. Thanks - then it was likely to be the same bug as seen when using talking icon mutator.

    I wonder why it did that!
     

Share This Page