Parent Directory | Revision Log
Revision 1 - (view) (download)
1 : | ian | 1 | /* AMX Mod X |
2 : | * Rank Calculation | ||
3 : | * | ||
4 : | * by the AMX Mod X Development Team | ||
5 : | * originally developed by OLO | ||
6 : | * | ||
7 : | * This file is part of AMX Mod X. | ||
8 : | * | ||
9 : | * | ||
10 : | * This program is free software; you can redistribute it and/or modify it | ||
11 : | * under the terms of the GNU General Public License as published by the | ||
12 : | * Free Software Foundation; either version 2 of the License, or (at | ||
13 : | * your option) any later version. | ||
14 : | * | ||
15 : | * This program is distributed in the hope that it will be useful, but | ||
16 : | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
17 : | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
18 : | * General Public License for more details. | ||
19 : | * | ||
20 : | * You should have received a copy of the GNU General Public License | ||
21 : | * along with this program; if not, write to the Free Software Foundation, | ||
22 : | * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
23 : | * | ||
24 : | * In addition, as a special exception, the author gives permission to | ||
25 : | * link the code of this program with the Half-Life Game Engine ("HL | ||
26 : | * Engine") and Modified Game Libraries ("MODs") developed by Valve, | ||
27 : | * L.L.C ("Valve"). You must obey the GNU General Public License in all | ||
28 : | * respects for all of the code used other than the HL Engine and MODs | ||
29 : | * from Valve. If you modify this file, you may extend this exception | ||
30 : | * to your version of the file, but you are not obligated to do so. If | ||
31 : | * you do not wish to do so, delete this exception statement from your | ||
32 : | * version. | ||
33 : | */ | ||
34 : | |||
35 : | /* File location: $moddir/addons/amxmodx/data/csstats.amxx */ | ||
36 : | |||
37 : | #include <amxmodx> | ||
38 : | |||
39 : | /* Function calculates position in rank. | ||
40 : | * | ||
41 : | * Stats: | ||
42 : | * 0 - kills | ||
43 : | * 1 - deaths | ||
44 : | * 2 - headshots | ||
45 : | * 3 - teamkills | ||
46 : | * 4 - shots | ||
47 : | * 5 - hits | ||
48 : | * 6 - damage | ||
49 : | * | ||
50 : | * Returning cellmin as value in get_score function | ||
51 : | * makes that rank won't be saved. */ | ||
52 : | |||
53 : | public get_score(stats[8], body[8]) | ||
54 : | return stats[0] - stats[1] - stats[3] // kills - deaths - teamkills |
Contact | ViewVC Help |
Powered by ViewVC 1.0.4 |