mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
So we can steal ezquake's fragstats files without warnings appearing
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2618 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
324c93ff10
commit
d33ea9a76b
1 changed files with 16 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
typedef enum {
|
typedef enum {
|
||||||
//one componant
|
//one componant
|
||||||
ff_death,
|
ff_death,
|
||||||
|
ff_tkdeath,
|
||||||
ff_suicide,
|
ff_suicide,
|
||||||
ff_bonusfrag,
|
ff_bonusfrag,
|
||||||
ff_tkbonus,
|
ff_tkbonus,
|
||||||
|
@ -227,8 +228,22 @@ void Stats_Evaluate(fragfilemsgtypes_t mt, int wid, int p1, int p2)
|
||||||
Stats_Message("%s kills: %i (%i/%i)\n", fragstats.weapontotals[wid].fullname, fragstats.clienttotals[p2].kills, fragstats.weapontotals[wid].kills);
|
Stats_Message("%s kills: %i (%i/%i)\n", fragstats.weapontotals[wid].fullname, fragstats.clienttotals[p2].kills, fragstats.weapontotals[wid].kills);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case ff_tkdeath:
|
||||||
|
//killed by a teammate, but we don't know who
|
||||||
|
//kinda useless, but this is all some mods give us
|
||||||
|
fragstats.weapontotals[wid].teamkills++;
|
||||||
|
fragstats.weapontotals[wid].kills++;
|
||||||
|
fragstats.totalkills++; //its a kill, but we don't know who from
|
||||||
|
fragstats.totalteamkills++;
|
||||||
|
|
||||||
|
fragstats.clienttotals[p1].teamdeaths++;
|
||||||
|
fragstats.clienttotals[p1].deaths++;
|
||||||
|
fragstats.totaldeaths++;
|
||||||
|
break;
|
||||||
|
|
||||||
case ff_tkills:
|
case ff_tkills:
|
||||||
case ff_tkilledby:
|
case ff_tkilledby:
|
||||||
|
//p1 killed by p2 (kills is already inverted)
|
||||||
fragstats.weapontotals[wid].teamkills++;
|
fragstats.weapontotals[wid].teamkills++;
|
||||||
fragstats.weapontotals[wid].kills++;
|
fragstats.weapontotals[wid].kills++;
|
||||||
|
|
||||||
|
@ -421,6 +436,7 @@ static void Stats_LoadFragFile(char *name)
|
||||||
else if (!stricmp(tk, "PLAYER_SUICIDE")) {fftype = ff_suicide;}
|
else if (!stricmp(tk, "PLAYER_SUICIDE")) {fftype = ff_suicide;}
|
||||||
else if (!stricmp(tk, "X_FRAGS_UNKNOWN")) {fftype = ff_bonusfrag;}
|
else if (!stricmp(tk, "X_FRAGS_UNKNOWN")) {fftype = ff_bonusfrag;}
|
||||||
else if (!stricmp(tk, "X_TEAMKILLS_UNKNOWN")) {fftype = ff_tkbonus;}
|
else if (!stricmp(tk, "X_TEAMKILLS_UNKNOWN")) {fftype = ff_tkbonus;}
|
||||||
|
else if (!stricmp(tk, "X_TEAMKILLED_UNKNOWN")) {fftype = ff_tkdeath;}
|
||||||
else if (!stricmp(tk, "X_FRAGS_Y")) {fftype = ff_frags;}
|
else if (!stricmp(tk, "X_FRAGS_Y")) {fftype = ff_frags;}
|
||||||
else if (!stricmp(tk, "X_FRAGGED_BY_Y")) {fftype = ff_fragedby;}
|
else if (!stricmp(tk, "X_FRAGGED_BY_Y")) {fftype = ff_fragedby;}
|
||||||
else if (!stricmp(tk, "X_TEAMKILLS_Y")) {fftype = ff_tkills;}
|
else if (!stricmp(tk, "X_TEAMKILLS_Y")) {fftype = ff_tkills;}
|
||||||
|
|
Loading…
Reference in a new issue