DeathString question

  • 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.

Bitty

New Member
Jan 13, 2005
6
0
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.
 

BSands

New Member
Oct 1, 2004
12
0
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'
}
 

Bitty

New Member
Jan 13, 2005
6
0
0
BSands said:
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.
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. ;)