bug or feature ?


(SCDS_reyalP) #1

Ok, I mentioned this in GD, but I wonder what the coders think:
src/game/g_combat.c:1275 (G_Damage)


	if( targ->client && g_friendlyFire.integer && OnSameTeam(targ, attacker) ) {
		knockback = 0;

This says, if friendly fire is ON, then team damage does 0 knockback. My guess is this was supposed to be !g_friendlyFire.integer, so that in FF off games, people couldn’t nade boost their teamates all over the place.

Or perhaps because FF off is less serious, nade boosting is allowed ? :moo:


(bacon) #2

I’m pretty sure nade boosting is supposed to be like that…


(SCDS_reyalP) #3

Any particular reason ? (by ‘like that’ I assume you mean the current behavior ?)

FWIW, RTCW does it the other way.

RTCW 1.4.1, game/src/g_damge.c:939


	if ( knockback && targ->client && (g_friendlyFire.integer || !OnSameTeam(targ, attacker))

knockback is done if the above is true. So if friendly fire is on or the target and attacker are on different teams, then knockback is done.


(=DaRk=CrAzY-NuTTeR) #4

id say it was a feature