A feature to enhance the service of tracking sites


(acQu) #1

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


(Cambodunum) #2

Thumbs up … but i think all rating-whores gonna cry now xD
I will add it to my mod … thank you very much.

greetz Cambo


(Paul) #3

Hope =1 RedSector will pick this up


(system) #4

paul, don’t point out to the idiot redsector cause he makes money for stupid programs.
thanks.


(hunterthebest) #5

Not everything what he makes is stupid : LoL but yes it’s lame he asked money for it.


(acQu) #6

Hey. My summary so far: not really well perceived. Too much differentiation how a rating should be measured. I apologize therefore for the thread title, because it is not really an “enhancement”.

But still very nice to have a mod supporting it (haha cambo xD). If others support it - great! Have nothing against.

If you do modifications, like implement a more sophisticated rating system to be represented with “XP” and be forwarded to trackingsites, go ahead. Would be cool if you post it here, so that it maybe stays consistent in every mod.

Cya folks