- if(sv_gentle) {
- bprint ("^1",s, "^1 needs a restart thanks to ", a, "\n");
- } else {
- w = DEATH_WEAPONOF(deathtype);
- if(WEP_VALID(w))
- {
- w_deathtypestring = "was blasted by";
- w_deathtype = deathtype;
- weapon_action(w, WR_KILLMESSAGE);
- p = strstrofs(w_deathtypestring, "#", 0);
- if(p < 0)
- bprint("^1", s, "^1 ", w_deathtypestring, " ", a, "\n");
- else
- bprint("^1", s, "^1 ", substring(w_deathtypestring, 0, p), a, "^1", substring(w_deathtypestring, p+1, strlen(w_deathtypestring) - (p+1)), "\n");
- }
- else if (deathtype == DEATH_TELEFRAG)
- bprint ("^1",s, "^1 was telefragged by ", a, "\n");
- else if (deathtype == DEATH_DROWN)
- bprint ("^1",s, "^1 was drowned by ", a, "\n");
- else if (deathtype == DEATH_SLIME)
- bprint ("^1",s, "^1 was slimed by ", a, "\n");
- else if (deathtype == DEATH_LAVA)
- bprint ("^1",s, "^1 was cooked by ", a, "\n");
- else if (deathtype == DEATH_FALL)
- bprint ("^1",s, "^1 was grounded by ", a, "\n");
- else if (deathtype == DEATH_SHOOTING_STAR)
- bprint ("^1",s, "^1 was shot into space by ", a, "\n");
- else if (deathtype == DEATH_SWAMP)
- bprint ("^1",s, "^1 was conserved by ", a, "\n");
- else if (deathtype == DEATH_HURTTRIGGER && inflictor.message2 != "")
- {
- p = strstrofs(inflictor.message2, "#", 0);
- if(p < 0)
- bprint("^1", s, "^1 ", inflictor.message2, " ", a, "\n");
- else
- bprint("^1", s, "^1 ", substring(inflictor.message2, 0, p), a, "^1", substring(inflictor.message2, p+1, strlen(inflictor.message2) - (p+1)), "\n");
- }
- else if(deathtype == DEATH_SBCRUSH)
- bprint ("^1",s, "^1 was crushed by ^1", a, "\n");
- else if(deathtype == DEATH_SBMINIGUN)
- bprint ("^1",s, "^1 got shredded by ^1", a, "\n");
- else if(deathtype == DEATH_SBROCKET)
- bprint ("^1",s, "^1 was blased to bits by ^1", a, "\n");
- else if(deathtype == DEATH_SBBLOWUP)
- bprint ("^1",s, "^1 got cought in the destruction of ^1", a, "'s vehicle\n");
-
- else if(deathtype == DEATH_WAKIGUN)
- bprint ("^1",s, "^1 was bolted down by ^1", a, "\n");
- else if(deathtype == DEATH_WAKIROCKET)
- bprint ("^1",s, "^1 could find no shelter from ^1", a, "'s rockets\n");
- else if(deathtype == DEATH_WAKIBLOWUP)
- bprint ("^1",s, "^1 dies when ^1", a, "'s wakizashi dies.\n");
-
- else if(deathtype == DEATH_TURRET)
- bprint ("^1",s, "^1 was pushed into the line of fire by ^1", a, "\n");
- else if(deathtype == DEATH_TOUCHEXPLODE)
- bprint ("^1",s, "^1 was pushed into an accident by ^1", a, "\n");
- else if(deathtype == DEATH_CHEAT)
- bprint ("^1",s, "^1 was unfairly eliminated by ^1", a, "\n");
- else if (deathtype == DEATH_FIRE)
- bprint ("^1",s, "^1 was burnt to death by ^1", a, "\n");
- else if (deathtype == DEATH_CUSTOM)
- bprint ("^1",s, "^1 ", deathmessage, " by ^1", a, "\n");
- else
- bprint ("^1",s, "^1 was fragged by ", a, "\n");