void HUD_KillNotify(string s1, string s2, string s3, float type, float msg)
{
float w;
- float alsoprint;
+ float alsoprint, gentle;
alsoprint = (autocvar_hud_notify_print || !panel_enabled); // print message to console if: notify panel disabled, or cvar to do so enabled
+ gentle = (autocvar_cl_gentle || autocvar_cl_gentle_messages);
if(msg == MSG_SUICIDE) {
// TODO: cl_gentle
HUD_KillNotify_Push(s1, s2, 1, type);
if(alsoprint)
{
- if(cvar("cl_gentle")) {
+ if(gentle) {
print ("^1", s1, "^1 took action against a team mate\n");
} else {
print ("^1", s1, "^1 mows down a team mate\n");
}
}
if (stof(s2) > 2 && type == KILL_TEAM_SPREE) {
- if(cvar("cl_gentle"))
+ if(gentle)
print ("^1",s1,"^1 ended a ",s3," scoring spree by going against a team mate\n");
else
print ("^1",s1,"^1 ended a ",s3," kill spree by killing a team mate\n");
}
else if (stof(s2) > 2) {
- if(cvar("cl_gentle"))
+ if(gentle)
print ("^1",s1,"'s ^1",s3," scoring spree was ended by a team mate!\n");
else
print ("^1",s1,"'s ^1",s3," kill spree was ended by a team mate!\n");
}
} else if(msg == MSG_SPREE) {
if(type == KILL_END_SPREE) {
- if(cvar("cl_gentle"))
+ if(gentle)
print ("^1",s1,"'s ^1", s2, " scoring spree was ended by ", s3, "\n");
else
print ("^1",s1,"'s ^1", s2, " kill spree was ended by ", s3, "\n");
} else if(type == KILL_SPREE) {
- if(cvar("cl_gentle"))
+ if(gentle)
print ("^1",s1,"^1 made ",s2," scores in a row\n");
else
print ("^1",s1,"^1 has ",s2," frags in a row\n");
} else if(type == KILL_SPREE_3) {
- if(cvar("cl_gentle"))
+ if(gentle)
print (s1,"^7 made a ^1TRIPLE SCORE\n");
else
print (s1,"^7 made a ^1TRIPLE FRAG\n");
} else if(type == KILL_SPREE_5) {
- if(cvar("cl_gentle"))
+ if(gentle)
print (s1,"^7 unleashes ^1SCORING RAGE\n");
else
print (s1,"^7 unleashes ^1RAGE\n");
} else if(type == KILL_SPREE_10) {
- if(cvar("cl_gentle"))
+ if(gentle)
print (s1,"^7 made ^1TEN SCORES IN A ROW!\n");
else
print (s1,"^7 starts the ^1MASSACRE!\n");
} else if(type == KILL_SPREE_15) {
- if(cvar("cl_gentle"))
+ if(gentle)
print (s1,"^7 made ^1FIFTEEN SCORES IN A ROW!\n");
else
print (s1,"^7 executes ^1MAYHEM!\n");
} else if(type == KILL_SPREE_20) {
- if(cvar("cl_gentle"))
+ if(gentle)
print (s1,"^7 made ^1TWENTY SCORES IN A ROW!\n");
else
print (s1,"^7 is a ^1BERSERKER!\n");
} else if(type == KILL_SPREE_25) {
- if(cvar("cl_gentle"))
+ if(gentle)
print (s1,"^7 made ^1TWENTY FIFE SCORES IN A ROW!\n");
else
print (s1,"^7 inflicts ^1CARNAGE!\n");
} else if(type == KILL_SPREE_30) {
- if(cvar("cl_gentle"))
+ if(gentle)
print (s1,"^7 made ^1THIRTY SCORES IN A ROW!\n");
else
print (s1,"^7 unleashes ^1ARMAGEDDON!\n");
HUD_KillNotify_Push(s1, "", 0, DEATH_DROWN);
if(alsoprint)
{
- if(cvar("cl_gentle"))
+ if(gentle)
print ("^1",s1, "^1 was in the water for too long\n");
else
print ("^1",s1, "^1 drowned\n");
HUD_KillNotify_Push(s1, "", 0, DEATH_LAVA);
if(alsoprint)
{
- if(cvar("cl_gentle"))
+ if(gentle)
print ("^1",s1, "^1 found a hot place\n");
else
print ("^1",s1, "^1 turned into hot slag\n");
HUD_KillNotify_Push(s1, "", 0, DEATH_GENERIC);
if(alsoprint)
{
- if(cvar("cl_gentle"))
+ if(gentle)
print ("^1",s1, "^1 tested gravity (and it worked)\n");
else
print ("^1",s1, "^1 hit the ground with a crunch\n");
HUD_KillNotify_Push(s1, "", 0, DEATH_GENERIC);
if(alsoprint)
{
- if(cvar("cl_gentle"))
+ if(gentle)
print ("^1",s1, "^1 discovered a swamp\n");
else
print ("^1",s1, "^1 is now conserved for centuries to come\n");
HUD_KillNotify_Push(s1, "", 0, DEATH_GENERIC);
if(alsoprint)
{
- if(cvar("cl_gentle"))
+ if(gentle)
print ("^1",s1, "^1 felt a little hot\n");
else
print ("^1",s1, "^1 burnt to death\n");
HUD_KillNotify_Push(s1, "", 0, DEATH_GENERIC);
if(alsoprint)
{
- if(cvar("cl_gentle"))
+ if(gentle)
print ("^1",s1, "^1 needs a restart\n");
else
print ("^1",s1, "^1 died\n");
}
}
} else if(msg == MSG_KILL_ACTION_SPREE) {
- if(cvar("cl_gentle"))
+ if(gentle)
print ("^1",s1,"^1 needs a restart after a ",s2," scoring spree\n");
else
print ("^1",s1,"^1 died with a ",s2," kill spree\n");
void HUD_Centerprint(string s1, string s2, float type, float msg)
{
+ float gentle;
+ gentle = (autocvar_cl_gentle || autocvar_cl_gentle_messages);
if(msg == MSG_SUICIDE) {
if (type == DEATH_TEAMCHANGE) {
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "You are now on: ", s1));
} else if (type == DEATH_AUTOTEAMCHANGE) {
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "You have been moved into a different team to improve team balance\nYou are now on: ", s1));
} else if (type == DEATH_CAMP) {
- if(cvar("cl_gentle"))
+ if(gentle)
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1Reconsider your tactics, camper!"));
else
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1Die camper!"));
} else if (type == DEATH_NOAMMO) {
- if(cvar("cl_gentle"))
+ if(gentle)
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1You are reinserted into the game for running out of ammo..."));
else
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1You were killed for running out of ammo..."));
} else if (type == DEATH_ROT) {
- if(cvar("cl_gentle"))
+ if(gentle)
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1You need to preserve your health"));
else
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1You grew too old without taking your medicine"));
} else if (type == KILL_TEAM_RED || type == KILL_TEAM_BLUE) {
- if(cvar("cl_gentle"))
+ if(gentle)
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1Don't go against team mates!"));
else
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1Don't shoot your team mates!"));
} else if (type == DEATH_QUIET) {
// do nothing
} else if (type == DEATH_KILL) {
- if(cvar("cl_gentle"))
+ if(gentle)
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1You need to be more careful!"));
else
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1You killed your own dumb self!"));
}
} else if(msg == MSG_KILL) {
if (type == KILL_TEAM_RED || type == KILL_TEAM_BLUE) {
- if(cvar("cl_gentle")) {
+ if(gentle) {
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1Moron! You went against", s1, ",a team mate!"));
} else {
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1Moron! You fragged ", s1, ", a team mate!"));
}
} else if (type == KILL_FIRST_BLOOD) {
- if(cvar("cl_gentle")) {
+ if(gentle) {
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1First score"));
} else {
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1First blood"));
}
} else if (type == KILL_FIRST_VICTIM) {
- if(cvar("cl_gentle")) {
+ if(gentle) {
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1First casualty"));
} else {
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1First victim"));
}
} else if (type == KILL_TYPEFRAG) { // s2 contains "advanced kill messages" such as ping, handicap...
- if(cvar("cl_gentle")) {
+ if(gentle) {
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1You scored against ^7", s1, "^1 who was typing!", s2));
} else {
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1You typefragged ^7", s1, s2));
}
} else if (type == KILL_TYPEFRAGGED) {
- if(cvar("cl_gentle")) {
+ if(gentle) {
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1You were scored against by ^7", s1, "^1 while you were typing!", s2));
} else {
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1You were typefragged by ^7", s1, s2));
}
} else if (type == KILL_FRAG) {
- if(cvar("cl_gentle")) {
+ if(gentle) {
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^4You scored against ^7", s1, s2));
} else {
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^4You fragged ^7", s1, s2));
}
} else if (type == KILL_FRAGGED) {
- if(cvar("cl_gentle")) {
+ if(gentle) {
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1You were scored against by ^7", s1, s2));
} else {
centerprint(strcat(DAMAGE_CENTERPRINT_SPACER, "^1You were fragged by ^7", s1, s2));