Raised This Month: $ Target: $400
 0% 

award MVP Fragger based on: 1) frags, 2) HS's, 3) total dmg


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Riddick51
BANNED
Join Date: Jul 2005
Location: Lincoln, Nebr US
Old 10-14-2005 , 18:24   award MVP Fragger based on: 1) frags, 2) HS's, 3) total dmg
Reply With Quote #1

ok, i collect the following data for each round of play:
1. total frags (each player)
2. total headshots (each player)
3. total damage (each player)

objective: assign the title "MVP Fragger: playername" based on:
1. Rank of total Frags comparing each of the 32 players against the others
2. Rank of total Headshots comparing each of the 32 players against the others
3. Rank of total Damage comparing each of the 32 players against the others

if You have the time, show me a structure i can use to evaluate the rank of each player in relation to all the others in each of the 3 categories. i'll probly figure out how to do this in time, but if You feel like offering suggestions on how to go about it, that'd be cool.

Code:
#define MAXPLAYERS 32 new g_MaxPlayers new gs_Name[MAXPLAYERS+1][32] // Arrays used for for public stats new g_KillStreak[MAXPLAYERS+1]      // How many kills a user has in a row. new g_DeathCount[MAXPLAYERS+1]      //Deaths per round (ea. player) new g_HeadShotK[MAXPLAYERS+1]       //Total Headshots (ea. killer) new g_HeadShotV[MAXPLAYERS+1]       //Headshots Taken (ea. victim) new g_KillCount[MAXPLAYERS+1]       //Total Killcount (ea. player) new g_DmgGiven[MAXPLAYERS+1]        //Total Dmg (ea. player) new g_DmgTaken[MAXPLAYERS+1]        //Dmg Taken (ea. player) // Used for personaly stats new g_PKillerStats[MAXPLAYERS+1][MAXPLAYERS+1]
Here are stats for 1 round of play:

Playername Frags HS's Damage
Player1: 3 2 320
Player2: 7 1 1200
Player3: 12 6 1200
Player4: 16 8 1900

Ok, the MVP Fragger for the round should be: Player4, because he ranked #1 in each of the 3 categories.
Riddick51 is offline
Send a message via AIM to Riddick51 Send a message via MSN to Riddick51 Send a message via Yahoo to Riddick51
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode