Cube  Diff

Differences From Artifact [0b8b0d202d]:

To Artifact [418707bf92]:


309
310
311
312
313
314
315

316

317
318
319
320

321
322
323
324
325
326
327
328
329
330
331
332
333
334
335

336
337
338
339
340
341
342
343
309
310
311
312
313
314
315
316

317




318


319
320
321
322
323
324
325
326
327
328
329
330

331

332
333
334
335
336
337
338







+
-
+
-
-
-
-
+
-
-












-
+
-







	// let armour absorb when possible
	int ad = damage * (player1.armourType + 1) * 20 / 100;
	if (ad > Player.player1.armour)
		ad = Player.player1.armour;
	player1.armour -= ad;
	damage -= ad;
	float droll = damage / 0.5f;
	// give player a kick depending on amount of damage
	player1.roll += player1.roll > 0
	player1.roll += player1.roll > 0 ? droll : (player1.roll < 0 ? -droll :
	    ? droll
	    : (player1.roll < 0
	              ? -droll
	              : (rnd(2) ? droll
	    (rnd(2) ? droll : -droll));
	                        : -droll)); // give player a kick depending
	                                    // on amount of damage
	if ((player1.health -= damage) <= 0) {
		if (actor == -2) {
			conoutf(@"you got killed by %@!", act.name);
		} else if (actor == -1) {
			actor = getclientnum();
			conoutf(@"you suicided!");
			addmsg(1, 2, SV_FRAGS, --player1.frags);
		} else {
			Player *a = getclient(actor);
			if (a != nil) {
				if (isteam(a.team, player1.team))
					conoutf(@"you got fragged by a "
					        @"teammate (%@)",
					    @"teammate (%@)", a.name);
					    a.name);
				else
					conoutf(
					    @"you got fragged by %@", a.name);
			}
		}
		showscores(true);
		addmsg(1, 2, SV_DIED, actor);