Hey guys,
here a little cvar, it is called g_ratingMode.
Functionality: letting a trackingsite only know those XP, which were gained by fragging and battlesense, hide all the other XP so that they will not be considered, but can be used normally at the server.
Implement this into your mod (i do not want credits):
Create a cvar like g_antilag. The cvar should be viewable at ‘server info’ tab at masterlist (g_antilag is shown there as well), so that maybe admins from the trackingsite can enable/disable rating on this server, when cvar set/not set. Call your new cvar g_ratingMode.
After the cvar is done you can use it in your server.cfg and set a value in there. The following code changes do the actual trick, very simpel stuff. Go to G_SetPlayerScore in g_stats.c.
Change it to:
void G_SetPlayerScore( gclient_t *client ) { if(g_ratingMode.integer) { client->ps.persistant[PERS_SCORE] = 0; client->ps.persistant[PERS_SCORE] += client->sess.skillpoints[SK_BATTLE_SENSE]; client->ps.persistant[PERS_SCORE] += client->sess.skillpoints[SK_LIGHT_WEAPONS]; } else { int i; for( client->ps.persistant[PERS_SCORE] = 0, i = 0; i < SK_NUM_SKILLS; i++ ) { client->ps.persistant[PERS_SCORE] += client->sess.skillpoints[i]; } } }If your mod supports any more frag specific XP, then just add the skills, but do not add support skills, as this would totally be against the intention.
That was it. If you have any questions, ask.
Greetz