All pastes #571990 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-17 13:16 UTC
rendered paste body
case 'c':
					strncat(out, va("%i", eth.killCountNoDeath), sizeof(out));
					break;
					case 'm': {
						char *multikillmsg;
						int randmsg = rand() % 3;
						if (eth.killSpreeCount == 2) {
							if (!randmsg)
								multikillmsg = "DOUBLE KILL";
							else if (randmsg == 1)
								multikillmsg = "PERFECT";
							else
								multikillmsg = "OUTSMARTED";
						}
						else if (eth.killSpreeCount == 3) {
							if (!randmsg)
								multikillmsg = "TRIPLE KILL";
							else if (randmsg == 1)
								multikillmsg = "GODLIKE";
							else
								multikillmsg = "LUDICROUS";
						}
						else if (eth.killSpreeCount == 4) {
							if (!randmsg)
								multikillmsg = "DOMINATING";
							else if (randmsg == 1)
								multikillmsg = "ULTRA KILL";
							else
								multikillmsg = "MEGA KILL";
						}
						else if (eth.killSpreeCount > 4) {
							if (!randmsg)
								multikillmsg = "WICKED SICK";
							else if (randmsg == 1)
								multikillmsg = "MONSTER KILL";
							else
								multikillmsg = "BOOM HEADSHOT";
						}
						else
							break;
						strncat(out, multikillmsg, sizeof(out));
						break;
					}
				default:
					break;
			}
			a += 2;
		}
		else
			out[b] = in[a];
		b = strlen(out);
	}

	strncpy(in,out,sizeof(out));
	return in;
}