mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-26 14:11:22 +00:00
326 lines
11 KiB
C
326 lines
11 KiB
C
//-----------------------------------------------------------------------------
|
|
//
|
|
// $Id$
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
//
|
|
// $Log$
|
|
// Revision 1.7 2002/06/16 20:06:14 jbravo
|
|
// Reindented all the source files with "indent -kr -ut -i8 -l120 -lc120 -sob -bad -bap"
|
|
//
|
|
// Revision 1.6 2002/06/16 17:38:00 jbravo
|
|
// Removed the MISSIONPACK ifdefs and missionpack only code.
|
|
//
|
|
// Revision 1.5 2002/04/01 02:56:50 jbravo
|
|
// Some sourcecode reformatting
|
|
//
|
|
// Revision 1.4 2002/01/11 19:48:30 jbravo
|
|
// Formatted the source in non DOS format.
|
|
//
|
|
// Revision 1.3 2001/12/31 16:28:42 jbravo
|
|
// I made a Booboo with the Log tag.
|
|
//
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
// g_rankings.h -- score keys for global rankings
|
|
|
|
#ifndef _G_RANKINGS_H_
|
|
#define _G_RANKINGS_H_
|
|
|
|
/*
|
|
==============================================================================
|
|
|
|
Key digits:
|
|
10^9: report type
|
|
1 = normal
|
|
2 = developer-only
|
|
10^8: stat type
|
|
0 = match stat
|
|
1 = single player stat
|
|
2 = duel stat
|
|
10^7: data type
|
|
0 = string
|
|
1 = uint32
|
|
10^6: calculation
|
|
0 = use raw value
|
|
1 = add to total
|
|
2 = average
|
|
3 = max
|
|
4 = min
|
|
10^5
|
|
10^4: category
|
|
00 = general
|
|
01 = session
|
|
02 = weapon
|
|
03 = ammo
|
|
04 = health
|
|
05 = armor
|
|
06 = powerup
|
|
07 = holdable
|
|
08 = hazard
|
|
09 = reward
|
|
10 = teammate
|
|
11 = ctf
|
|
10^3:
|
|
10^2: sub-category
|
|
10^1:
|
|
10^0: ordinal
|
|
|
|
==============================================================================
|
|
*/
|
|
|
|
// general keys
|
|
#define QGR_KEY_MATCH_RATING 1112000001
|
|
#define QGR_KEY_PLAYED_WITH 1210000002
|
|
|
|
// session keys
|
|
#define QGR_KEY_HOSTNAME 1000010000
|
|
#define QGR_KEY_MAP 1000010001
|
|
#define QGR_KEY_MOD 1000010002
|
|
#define QGR_KEY_GAMETYPE 1010010003
|
|
#define QGR_KEY_FRAGLIMIT 1010010004
|
|
#define QGR_KEY_TIMELIMIT 1010010005
|
|
#define QGR_KEY_MAXCLIENTS 1010010006
|
|
#define QGR_KEY_MAXRATE 1010010007
|
|
#define QGR_KEY_MINPING 1010010008
|
|
#define QGR_KEY_MAXPING 1010010009
|
|
#define QGR_KEY_DEDICATED 1010010010
|
|
#define QGR_KEY_VERSION 1000010011
|
|
|
|
// weapon keys
|
|
#define QGR_KEY_FRAG 1211020000
|
|
#define QGR_KEY_SUICIDE 1111020001
|
|
#define QGR_KEY_SHOT_FIRED 1111020002
|
|
#define QGR_KEY_HIT_GIVEN 1111020003
|
|
#define QGR_KEY_HIT_TAKEN 1111020004
|
|
#define QGR_KEY_DAMAGE_GIVEN 1111020005
|
|
#define QGR_KEY_DAMAGE_TAKEN 1111020006
|
|
#define QGR_KEY_SPLASH_GIVEN 1111020007
|
|
#define QGR_KEY_SPLASH_TAKEN 1111020008
|
|
#define QGR_KEY_PICKUP_WEAPON 1111020009
|
|
#define QGR_KEY_TIME 1111020010
|
|
|
|
#define QGR_KEY_FRAG_GAUNTLET 1211020100
|
|
#define QGR_KEY_SUICIDE_GAUNTLET 1111020101
|
|
#define QGR_KEY_SHOT_FIRED_GAUNTLET 1111020102
|
|
#define QGR_KEY_HIT_GIVEN_GAUNTLET 1111020103
|
|
#define QGR_KEY_HIT_TAKEN_GAUNTLET 1111020104
|
|
#define QGR_KEY_DAMAGE_GIVEN_GAUNTLET 1111020105
|
|
#define QGR_KEY_DAMAGE_TAKEN_GAUNTLET 1111020106
|
|
#define QGR_KEY_SPLASH_GIVEN_GAUNTLET 1111020107
|
|
#define QGR_KEY_SPLASH_TAKEN_GAUNTLET 1111020108
|
|
#define QGR_KEY_PICKUP_GAUNTLET 1111020109
|
|
#define QGR_KEY_TIME_GAUNTLET 1111020110
|
|
|
|
#define QGR_KEY_FRAG_MACHINEGUN 1211020200
|
|
#define QGR_KEY_SUICIDE_MACHINEGUN 1111020201
|
|
#define QGR_KEY_SHOT_FIRED_MACHINEGUN 1111020202
|
|
#define QGR_KEY_HIT_GIVEN_MACHINEGUN 1111020203
|
|
#define QGR_KEY_HIT_TAKEN_MACHINEGUN 1111020204
|
|
#define QGR_KEY_DAMAGE_GIVEN_MACHINEGUN 1111020205
|
|
#define QGR_KEY_DAMAGE_TAKEN_MACHINEGUN 1111020206
|
|
#define QGR_KEY_SPLASH_GIVEN_MACHINEGUN 1111020207
|
|
#define QGR_KEY_SPLASH_TAKEN_MACHINEGUN 1111020208
|
|
#define QGR_KEY_PICKUP_MACHINEGUN 1111020209
|
|
#define QGR_KEY_TIME_MACHINEGUN 1111020210
|
|
|
|
#define QGR_KEY_FRAG_SHOTGUN 1211020300
|
|
#define QGR_KEY_SUICIDE_SHOTGUN 1111020301
|
|
#define QGR_KEY_SHOT_FIRED_SHOTGUN 1111020302
|
|
#define QGR_KEY_HIT_GIVEN_SHOTGUN 1111020303
|
|
#define QGR_KEY_HIT_TAKEN_SHOTGUN 1111020304
|
|
#define QGR_KEY_DAMAGE_GIVEN_SHOTGUN 1111020305
|
|
#define QGR_KEY_DAMAGE_TAKEN_SHOTGUN 1111020306
|
|
#define QGR_KEY_SPLASH_GIVEN_SHOTGUN 1111020307
|
|
#define QGR_KEY_SPLASH_TAKEN_SHOTGUN 1111020308
|
|
#define QGR_KEY_PICKUP_SHOTGUN 1111020309
|
|
#define QGR_KEY_TIME_SHOTGUN 1111020310
|
|
|
|
#define QGR_KEY_FRAG_GRENADE 1211020400
|
|
#define QGR_KEY_SUICIDE_GRENADE 1111020401
|
|
#define QGR_KEY_SHOT_FIRED_GRENADE 1111020402
|
|
#define QGR_KEY_HIT_GIVEN_GRENADE 1111020403
|
|
#define QGR_KEY_HIT_TAKEN_GRENADE 1111020404
|
|
#define QGR_KEY_DAMAGE_GIVEN_GRENADE 1111020405
|
|
#define QGR_KEY_DAMAGE_TAKEN_GRENADE 1111020406
|
|
#define QGR_KEY_SPLASH_GIVEN_GRENADE 1111020407
|
|
#define QGR_KEY_SPLASH_TAKEN_GRENADE 1111020408
|
|
#define QGR_KEY_PICKUP_GRENADE 1111020409
|
|
#define QGR_KEY_TIME_GRENADE 1111020410
|
|
|
|
#define QGR_KEY_FRAG_ROCKET 1211020500
|
|
#define QGR_KEY_SUICIDE_ROCKET 1111020501
|
|
#define QGR_KEY_SHOT_FIRED_ROCKET 1111020502
|
|
#define QGR_KEY_HIT_GIVEN_ROCKET 1111020503
|
|
#define QGR_KEY_HIT_TAKEN_ROCKET 1111020504
|
|
#define QGR_KEY_DAMAGE_GIVEN_ROCKET 1111020505
|
|
#define QGR_KEY_DAMAGE_TAKEN_ROCKET 1111020506
|
|
#define QGR_KEY_SPLASH_GIVEN_ROCKET 1111020507
|
|
#define QGR_KEY_SPLASH_TAKEN_ROCKET 1111020508
|
|
#define QGR_KEY_PICKUP_ROCKET 1111020509
|
|
#define QGR_KEY_TIME_ROCKET 1111020510
|
|
|
|
#define QGR_KEY_FRAG_PLASMA 1211020600
|
|
#define QGR_KEY_SUICIDE_PLASMA 1111020601
|
|
#define QGR_KEY_SHOT_FIRED_PLASMA 1111020602
|
|
#define QGR_KEY_HIT_GIVEN_PLASMA 1111020603
|
|
#define QGR_KEY_HIT_TAKEN_PLASMA 1111020604
|
|
#define QGR_KEY_DAMAGE_GIVEN_PLASMA 1111020605
|
|
#define QGR_KEY_DAMAGE_TAKEN_PLASMA 1111020606
|
|
#define QGR_KEY_SPLASH_GIVEN_PLASMA 1111020607
|
|
#define QGR_KEY_SPLASH_TAKEN_PLASMA 1111020608
|
|
#define QGR_KEY_PICKUP_PLASMA 1111020609
|
|
#define QGR_KEY_TIME_PLASMA 1111020610
|
|
|
|
#define QGR_KEY_FRAG_RAILGUN 1211020700
|
|
#define QGR_KEY_SUICIDE_RAILGUN 1111020701
|
|
#define QGR_KEY_SHOT_FIRED_RAILGUN 1111020702
|
|
#define QGR_KEY_HIT_GIVEN_RAILGUN 1111020703
|
|
#define QGR_KEY_HIT_TAKEN_RAILGUN 1111020704
|
|
#define QGR_KEY_DAMAGE_GIVEN_RAILGUN 1111020705
|
|
#define QGR_KEY_DAMAGE_TAKEN_RAILGUN 1111020706
|
|
#define QGR_KEY_SPLASH_GIVEN_RAILGUN 1111020707
|
|
#define QGR_KEY_SPLASH_TAKEN_RAILGUN 1111020708
|
|
#define QGR_KEY_PICKUP_RAILGUN 1111020709
|
|
#define QGR_KEY_TIME_RAILGUN 1111020710
|
|
|
|
#define QGR_KEY_FRAG_LIGHTNING 1211020800
|
|
#define QGR_KEY_SUICIDE_LIGHTNING 1111020801
|
|
#define QGR_KEY_SHOT_FIRED_LIGHTNING 1111020802
|
|
#define QGR_KEY_HIT_GIVEN_LIGHTNING 1111020803
|
|
#define QGR_KEY_HIT_TAKEN_LIGHTNING 1111020804
|
|
#define QGR_KEY_DAMAGE_GIVEN_LIGHTNING 1111020805
|
|
#define QGR_KEY_DAMAGE_TAKEN_LIGHTNING 1111020806
|
|
#define QGR_KEY_SPLASH_GIVEN_LIGHTNING 1111020807
|
|
#define QGR_KEY_SPLASH_TAKEN_LIGHTNING 1111020808
|
|
#define QGR_KEY_PICKUP_LIGHTNING 1111020809
|
|
#define QGR_KEY_TIME_LIGHTNING 1111020810
|
|
|
|
#define QGR_KEY_FRAG_BFG 1211020900
|
|
#define QGR_KEY_SUICIDE_BFG 1111020901
|
|
#define QGR_KEY_SHOT_FIRED_BFG 1111020902
|
|
#define QGR_KEY_HIT_GIVEN_BFG 1111020903
|
|
#define QGR_KEY_HIT_TAKEN_BFG 1111020904
|
|
#define QGR_KEY_DAMAGE_GIVEN_BFG 1111020905
|
|
#define QGR_KEY_DAMAGE_TAKEN_BFG 1111020906
|
|
#define QGR_KEY_SPLASH_GIVEN_BFG 1111020907
|
|
#define QGR_KEY_SPLASH_TAKEN_BFG 1111020908
|
|
#define QGR_KEY_PICKUP_BFG 1111020909
|
|
#define QGR_KEY_TIME_BFG 1111020910
|
|
|
|
#define QGR_KEY_FRAG_GRAPPLE 1211021000
|
|
#define QGR_KEY_SUICIDE_GRAPPLE 1111021001
|
|
#define QGR_KEY_SHOT_FIRED_GRAPPLE 1111021002
|
|
#define QGR_KEY_HIT_GIVEN_GRAPPLE 1111021003
|
|
#define QGR_KEY_HIT_TAKEN_GRAPPLE 1111021004
|
|
#define QGR_KEY_DAMAGE_GIVEN_GRAPPLE 1111021005
|
|
#define QGR_KEY_DAMAGE_TAKEN_GRAPPLE 1111021006
|
|
#define QGR_KEY_SPLASH_GIVEN_GRAPPLE 1111021007
|
|
#define QGR_KEY_SPLASH_TAKEN_GRAPPLE 1111021008
|
|
#define QGR_KEY_PICKUP_GRAPPLE 1111021009
|
|
#define QGR_KEY_TIME_GRAPPLE 1111021010
|
|
|
|
#define QGR_KEY_FRAG_UNKNOWN 1211021100
|
|
#define QGR_KEY_SUICIDE_UNKNOWN 1111021101
|
|
#define QGR_KEY_SHOT_FIRED_UNKNOWN 1111021102
|
|
#define QGR_KEY_HIT_GIVEN_UNKNOWN 1111021103
|
|
#define QGR_KEY_HIT_TAKEN_UNKNOWN 1111021104
|
|
#define QGR_KEY_DAMAGE_GIVEN_UNKNOWN 1111021105
|
|
#define QGR_KEY_DAMAGE_TAKEN_UNKNOWN 1111021106
|
|
#define QGR_KEY_SPLASH_GIVEN_UNKNOWN 1111021107
|
|
#define QGR_KEY_SPLASH_TAKEN_UNKNOWN 1111021108
|
|
#define QGR_KEY_PICKUP_UNKNOWN 1111021109
|
|
#define QGR_KEY_TIME_UNKNOWN 1111021110
|
|
|
|
// ammo keys
|
|
#define QGR_KEY_BOXES 1111030000
|
|
#define QGR_KEY_ROUNDS 1111030001
|
|
|
|
#define QGR_KEY_BOXES_BULLETS 1111030100
|
|
#define QGR_KEY_ROUNDS_BULLETS 1111030101
|
|
|
|
#define QGR_KEY_BOXES_SHELLS 1111030200
|
|
#define QGR_KEY_ROUNDS_SHELLS 1111030201
|
|
|
|
#define QGR_KEY_BOXES_GRENADES 1111030300
|
|
#define QGR_KEY_ROUNDS_GRENADES 1111030301
|
|
|
|
#define QGR_KEY_BOXES_ROCKETS 1111030400
|
|
#define QGR_KEY_ROUNDS_ROCKETS 1111030401
|
|
|
|
#define QGR_KEY_BOXES_CELLS 1111030500
|
|
#define QGR_KEY_ROUNDS_CELLS 1111030501
|
|
|
|
#define QGR_KEY_BOXES_SLUGS 1111030600
|
|
#define QGR_KEY_ROUNDS_SLUGS 1111030601
|
|
|
|
#define QGR_KEY_BOXES_LG_AMMO 1111030700
|
|
#define QGR_KEY_ROUNDS_LG_AMMO 1111030701
|
|
|
|
#define QGR_KEY_BOXES_BFG_AMMO 1111030800
|
|
#define QGR_KEY_ROUNDS_BFG_AMMO 1111030801
|
|
|
|
// health keys
|
|
#define QGR_KEY_HEALTH 1111040000
|
|
#define QGR_KEY_HEALTH_TOTAL 1111040001
|
|
|
|
#define QGR_KEY_HEALTH_5 1111040100
|
|
#define QGR_KEY_HEALTH_25 1111040200
|
|
#define QGR_KEY_HEALTH_50 1111040300
|
|
#define QGR_KEY_HEALTH_MEGA 1111040400
|
|
|
|
// armor keys
|
|
#define QGR_KEY_ARMOR 1111050000
|
|
#define QGR_KEY_ARMOR_TOTAL 1111050001
|
|
|
|
#define QGR_KEY_ARMOR_SHARD 1111050100
|
|
#define QGR_KEY_ARMOR_YELLOW 1111050200
|
|
#define QGR_KEY_ARMOR_RED 1111050300
|
|
|
|
// powerup keys
|
|
#define QGR_KEY_POWERUP 1111060000
|
|
#define QGR_KEY_QUAD 1111060100
|
|
#define QGR_KEY_SUIT 1111060200
|
|
#define QGR_KEY_HASTE 1111060300
|
|
#define QGR_KEY_INVIS 1111060400
|
|
#define QGR_KEY_REGEN 1111060500
|
|
#define QGR_KEY_FLIGHT 1111060600
|
|
|
|
// holdable item keys
|
|
#define QGR_KEY_MEDKIT 1111070000
|
|
#define QGR_KEY_MEDKIT_USE 1111070001
|
|
|
|
#define QGR_KEY_TELEPORTER 1111070100
|
|
#define QGR_KEY_TELEPORTER_USE 1111070101
|
|
|
|
// hazard keys
|
|
#define QGR_KEY_HAZARD_DEATH 1111080000
|
|
#define QGR_KEY_WATER 1111080100
|
|
#define QGR_KEY_SLIME 1111080200
|
|
#define QGR_KEY_LAVA 1111080300
|
|
#define QGR_KEY_CRUSH 1111080400
|
|
#define QGR_KEY_TELEFRAG 1111080500
|
|
#define QGR_KEY_FALLING 1111080600
|
|
#define QGR_KEY_SUICIDE_CMD 1111080700
|
|
#define QGR_KEY_TRIGGER_HURT 1111080800
|
|
#define QGR_KEY_HAZARD_MISC 1111080900
|
|
|
|
// reward keys
|
|
#define QGR_KEY_IMPRESSIVE 1111090000
|
|
#define QGR_KEY_EXCELLENT 1111090100
|
|
|
|
// teammate keys
|
|
#define QGR_KEY_TEAMMATE_FRAG 1211100000
|
|
#define QGR_KEY_TEAMMATE_HIT_GIVEN 1111100001
|
|
#define QGR_KEY_TEAMMATE_HIT_TAKEN 1111100002
|
|
#define QGR_KEY_TEAMMATE_DAMAGE_GIVEN 1111100003
|
|
#define QGR_KEY_TEAMMATE_DAMAGE_TAKEN 1111100004
|
|
#define QGR_KEY_TEAMMATE_SPLASH_GIVEN 1111100005
|
|
#define QGR_KEY_TEAMMATE_SPLASH_TAKEN 1111100006
|
|
#define QGR_KEY_TEAM_NAME 1100100007
|
|
|
|
// ctf keys
|
|
#define QGR_KEY_FLAG_PICKUP 1111110000
|
|
#define QGR_KEY_FLAG_CAPTURE 1111110001
|
|
|
|
#endif // _G_RANKINGS_H_
|