Im looking into changing the Sentances that appear in chat when you kill someone, can anyone give me an example Code that I can put in the .u like for the linkgun
Announcement
Collapse
No announcement yet.
Batman Mut
Collapse
X
-
Would this work >
class Batman extends Mutator;
var localized string KillString[7];
var sound KillSound[7]; // OBSOLETE
var name KillSoundName[7];
static function string GetString(
optional int Switch,
optional PlayerReplicationInfo RelatedPRI_1,
optional PlayerReplicationInfo RelatedPRI_2,
optional Object OptionalObject
)
{
if ( class'PlayerController'.default.bNoMatureLanguage )
return Default.KillString[Min(Switch,6)-1];
else
return Default.KillString[Min(Switch,7)-1];
}
static simulated function ClientReceive(
PlayerController P,
optional int Switch,
optional PlayerReplicationInfo RelatedPRI_1,
optional PlayerReplicationInfo RelatedPRI_2,
optional Object OptionalObject
)
{
Super.ClientReceive(P, Switch, RelatedPRI_1, RelatedPRI_2, OptionalObject);
if ( class'PlayerController'.default.bNoMatureLanguage )
P.PlayRewardAnnouncement(Default.KillSoundName[Min(Switch-1,5)],1,true);
else
P.PlayRewardAnnouncement(Default.KillSoundName[Min(Switch-1,6)],1,true);
}
static function int GetFontSize( int Switch, PlayerReplicationInfo RelatedPRI1, PlayerReplicationInfo RelatedPRI2, PlayerReplicationInfo LocalPlayer )
{
if ( Switch < 4 )
return 0;
if ( Switch == 4 )
return 1;
if ( Switch == 7 )
return 3;
return 2;
}
defaultproperties
{
KillString(0)="POW"
KillString(1)="Smack"
KillString(2)="<BAM>"
KillString(3)="Sex ME!"
KillString(4)="M O N S T E R K I L L !!!"
KillString(5)="L U D I C R O U S !!!"
KillString(6)="H O L Y S H I T !"
KillSoundName(0)=Double_Kill
KillSoundName(1)=MultiKill
KillSoundName(2)=MegaKill
KillSoundName(3)=UltraKill
KillSoundName(4)=MonsterKill_F
KillSoundName(5)=LudicrousKill_F
KillSoundName(6)=Holy****_F
bFadeMessage=True
bIsSpecial=True
bIsUnique=True
Lifetime=3
bBeep=False
DrawColor=(R=255,G=0,B=0)
FontSize=1
StackMode=SM_Down
PosY=0.242
}
and then I just edit the killstrings which I did already a bitt..
Comment