Basically all i did, was translate the plugin from amx to sourcemod, so i'll let the original readme do the all talking (bit modded though
)
* TF2 Skills Player Rank with Speed Run Timer
*
* by Lt Llama for tfc & Remade for TF2 by Cranck
*
*
* Thanks to:
* - Lt. Llama
* - MikeJS
* - P3tsin
* - Everyone else that helped make this..
*
* WHAT IS THIS?
* ====================
* The TF2 skills community has never had an ingame ranking system, like other mods
* where you can count how many frags you got by using what. Skillsrank solves
* this by using a difficulty setting for each map. This is added to a map cfg which
* is read by this plugin, When a player finish a map with a difficulty setting he
* triggers a goal model and data is saved to two SQL tables.
*
* If the map config has coords for the start model it spawns it and you have a
* speedrun timer.
*
* Skillsrank is designed so you can only finish and collect points ONE time during
* the current loaded map. This is to not get a skewed collection of points because
* someone continuosly collects points on an easy map.
*
* WHAT IS CALCULATED?
* ===================
* - How many maps you finished and compared to others
* - Which class you finished with
* - How many points you have collected and compared to others
* - First and last time you finished a map on the server
* - Your best speedrun on the current map
* - The all time high speed run on the current map
* - The average difficulty of finished map (UBER factor)
* - The top 5 players in 3 categories 1. Ubers, 2. Finished maps, 3. Collected
* points.
*
* WHAT IS AN UBER?
* ================
* UBER is someone who have finished at least the amount of maps defined by:
* #define uberCount 10. When someone finished in this case 10 maps the plugin
* divclientes <sum of collected points>/<number of finished maps>. It then compares
* these players average difficulty and sort it. The top 5 gets into the /top 5 list.
* This is to encourage playing harder maps. If you play easier maps your average
* drops.
*
* CONTENT OF SQL TABLES
* =====================
* Table skillranks (1 row for each player)
* ================
* - steam client
* - nickname
* - number of times finished the map
* - total collected points
* - average of all points collected
* Table skillmaps (1 row each time someone finish a map)
* ================
* - steam client
* - nickname
* - map name
* - player class (all Tf2 classes)
* - date
* - time
* - difficulty
* - speedrun time
*
* MAP CONFIGS
* ===========
* Map configs goes in tf/cfg/mapscfg/
* Map configs is added by admins with ADMINFLG_GENERIC access.
* Use sr_adminmenu to add or manipulate current map config data.
*
* THIS PLUGIN NEEDS AN SQL DATABASE TO WORK
* =========================================
* If you don't have SQL forget this. If you have it then see to that you have set
* $moddir/addons/sourcemod/configs/databases.cfg
*
* INSTALLATION
* ============
* _ Create the folder tf/cfg/mapscfg and put all cfg files there
*
*
*
* SETTINGS YOU MAY CHANGE
* =======================
* Change to whatever you like under "// Customizable globals" below and recompile.
*
* FUTURE PLANS FOR THIS PLUGIN
* ============================
* - Leet custom stuff attached to top5 players on 4 cathegories: Ubers, High rankers,
* most finished maps and speed runners (on current map)
* - Allow players to keep speed running the current map and update db. Now only the first
* run i saved.
* - Ability to say YES or NO to if you want the ranks to be saved on the current map.
* If NO you can speed run but it wont be saved.
*
* USER COMMANDS
* =============
* - say '/difficulty' to show difficulty (number between 1-100)
* - say '/top5' to show top 5 players in 3 cathegories (finished times, total points, average difficulty)
* - say '/mapStats' to show your stats on the current map.
* - say '/stats' to see your overall stats.
* - 'sr_stoptimer' = Client command to stop speed run timer
* - 'sr_adminmenu' = Admin tool to add coords and difficulty
To Do:
-changing the start and goal model, to either a stock tf2 model or a custom one, atm the plugin is using a hl2 model
(anyone reading this that perhaps either: has a model i could use for this, or know of a stock tf2 model which can be a prop_physics_override?, ideally it would simply be a tile, with 2 skins, 1 with an F on it, 1 with an S, where people can stand on, to start the timer)
-finishing making cfg files for all the jump maps out there atm, and getting several good jumpers or a community vote or something, concerning difficulty ratings for maps.
REQUIREMENTS:
Dukehacks
Note on files:
the zip file contains the .cfg files for jump maps, i'll update it with more .cfg as more maps will be released and for finetuning difficulty ratings