News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 30th Jan 2005, 11:18 PM   #1
Bitty
Registered User
 
Join Date: Jan. 13th, 2005
Posts: 6
DeathString question

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.
Bitty is offline   Reply With Quote
Old 15th Feb 2005, 11:44 AM   #2
BSands
Registered User
 
Join Date: Oct. 1st, 2004
Posts: 12
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'
}
BSands is offline   Reply With Quote
Old 15th Feb 2005, 12:19 PM   #3
Bitty
Registered User
 
Join Date: Jan. 13th, 2005
Posts: 6
Quote:
Originally Posted by BSands
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.
Bitty is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:07 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer