@@ -50,8 +50,10 @@ public override TranslationList DefaultTranslations
50
50
{ "food" , "[FOOD] {0}" } ,
51
51
{ "arena" , "[ARENA] {0}" } ,
52
52
{ "shred" , "[SHRED] {0}" } ,
53
+ { "punch_headshot" , "{0} [PUNCH] {2} {1}" } ,
53
54
{ "punch" , "{0} [PUNCH] {1}" } ,
54
55
{ "bones" , "[BONES] {0}" } ,
56
+ { "melee_headshot" , "{0} [MELEE] {2} {1}" } ,
55
57
{ "melee" , "{0} [MELEE] {1}" } ,
56
58
{ "water" , "[WATER] {0}" } ,
57
59
{ "breath" , "[BREATH] {0}" } ,
@@ -61,7 +63,7 @@ public override TranslationList DefaultTranslations
61
63
{ "vehicle" , "[VEHICLE] {0}" } ,
62
64
{ "suicide" , "[SUICIDE] {0}" } ,
63
65
{ "burning" , "[BURNING] {0}" } ,
64
- { "headshot" , "+ [HEADSHOT]" } ,
66
+ { "headshot" , "[HEADSHOT]" } ,
65
67
{ "landmine" , "[LANDMINE] {0}" } ,
66
68
{ "roadkill" , "{0} [ROADKILL] {1}" } ,
67
69
{ "bleeding" , "[BLEEDING] {0}" } ,
@@ -83,7 +85,7 @@ private void OnPlayerDeath(UnturnedPlayer player, EDeathCause cause, ELimb limb,
83
85
{
84
86
UnturnedPlayer killer = UnturnedPlayer . FromCSteamID ( murderer ) ;
85
87
86
- string headshot = string . Empty ;
88
+ string headshot = Translate ( "headshot" ) ;
87
89
{
88
90
if ( cause . ToString ( ) == "GUN" )
89
91
{
@@ -95,14 +97,14 @@ private void OnPlayerDeath(UnturnedPlayer player, EDeathCause cause, ELimb limb,
95
97
else if ( cause . ToString ( ) == "MELEE" )
96
98
{
97
99
if ( limb == ELimb . SKULL )
98
- UnturnedChat . Say ( Translate ( "melee " , killer . DisplayName , player . DisplayName , headshot ) , UnturnedChat . GetColorFromName ( Configuration . Instance . DeathMessagesColor , Color . green ) ) ;
100
+ UnturnedChat . Say ( Translate ( "melee_headshot " , killer . DisplayName , player . DisplayName , headshot ) , UnturnedChat . GetColorFromName ( Configuration . Instance . DeathMessagesColor , Color . green ) ) ;
99
101
else
100
102
UnturnedChat . Say ( Translate ( "melee" , killer . DisplayName , player . DisplayName ) , UnturnedChat . GetColorFromName ( Configuration . Instance . DeathMessagesColor , Color . green ) ) ;
101
103
}
102
104
else if ( cause . ToString ( ) == "PUNCH" )
103
105
{
104
106
if ( limb == ELimb . SKULL )
105
- UnturnedChat . Say ( Translate ( "punch " , killer . DisplayName , player . DisplayName , headshot ) , UnturnedChat . GetColorFromName ( Configuration . Instance . DeathMessagesColor , Color . green ) ) ;
107
+ UnturnedChat . Say ( Translate ( "punch_headshot " , killer . DisplayName , player . DisplayName , headshot ) , UnturnedChat . GetColorFromName ( Configuration . Instance . DeathMessagesColor , Color . green ) ) ;
106
108
else
107
109
UnturnedChat . Say ( Translate ( "punch" , killer . DisplayName , player . DisplayName ) , UnturnedChat . GetColorFromName ( Configuration . Instance . DeathMessagesColor , Color . green ) ) ;
108
110
}
0 commit comments