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.

DeathString question

Discussion in 'Programming' started by Bitty, Jan 30, 2005.

  1. Bitty

    Bitty New Member

    Joined:
    Jan 13, 2005
    Messages:
    6
    Likes Received:
    0
    We're making a mutator that's going to be used by a few clans (collaborative project). We'd like to make the DeathString and suicide strings customizable through a set of configurable options in the mutator. Is this possible, and if so, how the heck is it done? Whatever we try, it always displays the string that's in the default properties of the custom damagetype class as it's compiled.

    Any help would be greatly appreciated.

    Thanks.
     
  2. BSands

    BSands New Member

    Joined:
    Oct 1, 2004
    Messages:
    12
    Likes Received:
    0
    Those are localized strings. Its not worth trying to hack around that IMO. You can hardcode new messages by changing the damagetype. Extend each damagetype class and change the strings in the default properties.

    Something like this:
    Code:
    class DeathMessages extends Mutator;
    
    var class<DamageType> RocketDamage;
    
    simulated function PostBeginPlay()
    {
        Super.PostBeginPlay();
        class'RocketProj'.default.MyDamageType = RocketDamage;
    }
    
    defaultproperties
    {
        bAlwaysRelevant=true
        RemoteRole=ROLE_SimulatedProxy
        bAddToServerPackages=true
        RocketDamage=class'DamTypeMyRocket'
    }
    
     
  3. Bitty

    Bitty New Member

    Joined:
    Jan 13, 2005
    Messages:
    6
    Likes Received:
    0
    Thanks for the reply. We were hoping that it could be changed by a server admin in a config file, but it doesn't look like it's going to happen. They'll just have to take what we give them, and like it. ;)
     

Share This Page