Here is quick dirty example plugin.
This should work on
other games as well, which have event player_death AND you know weapon names.
Cvar to enable/disable chat message:
sm_humiliationannounce 1
Install test.smx into plugins folder.
Extract and move file
humiliationannounce.kv into
...addons/sourcemod/configs/ folder.
Edit
humiliationannounce.kv file with txt editor. Notepad++ or another program is better than regular notepad.exe
Kv file look like this inside zip file
Code:
// double slash is comment line.
"humiliation"
{
"k98" // weapon name, you can find more from event player_death (net_showevents 2)
{
}
"mp40"
{
}
"mg42"
{
}
"riflegren_us"
{
}
"pschreck"
{
//"1" "%N died by rocket blast!" // This line is disabled
}
"spade"
{
"1" "Oh no! %N got a shovel in the face." // multiple phrases, are choosed randomly.
"2" "%N was killed with a spade. How humiliating!" // Victim name can be added in phrase, once, using %N.
"3" "%N is eating DIRT!"
"4" "Archaeologist dug long lost soldier, %N."
}
"punch"
{
"1" "Oh no! %N got a fist in the face."
"2" "%N was killed with a knuckles. How humiliating!"
}
"amerknife"
{
"1" "%N was killed with a amerknife. How humiliating!"
}
}
...for extra, phrases contain some hidden character what change chat message color, you wont see those in here forum post.
But you can see from Notepad++