Forums

Pages: [1]
Author Topic: Skillsrank (sqlite-Version)  (Read 1348 times)
Offline  CrancK
Rocketeer
*

ehh... what?
Posts: 397
dude...
Plugin for speedrun stats, now with sqlite, menus and some more stuff...

This isn't the final version yet, but it is fully working

Commands:
!srstats
!amenu (needs to be admin, otherwise after 3 times you get kicked (or maybe banned, not sure)
!setnick [name]
!stoptimer
!srhelp
!topmaps
!top


for those that don't want to use the menu, most of it can also be done by chat commands:
!top [course] (shows top times for all classes for current map for course x)
!top [course] [mapname] (toptimes, all classes, course x, map x)
!top [course] [classname] (toptimes, only class x, course x, current map)
!top [course] [mapname] [classname] (toptimes, only class x, course x, map x)
!checkdifficulty
!checkubers
!regme

for admin:
!emptymap (empties all data for current map from db, but keeps the tables (dunno why you'd wanna use this, was usefull for me during testing though))
!resetpos (clears the servers memory of positions (shouldn't need to be used))
!savestart [course] [modelpath] (if you want different models)
!savecheckpoint [course] [modelpath] (if you want different models)
!savefinish [course] [modelpath] (if you want different models)

CVARs:
sr_enabled 0/1, def: 1 (for turning the plugin completely off)
sr_keywords "string,string", def: "jump,rj_" and some more (on maps with these prefixes, the plugin can be used, sr_enabled also has to be 1 ofc)
sr_allowclass "soldier,demo"  (for deciding which classes are allowed to speedrun)
sr_startmodel "models/skillsrank/pillar/pillar.mdl"
sr_finishmodel "models/skillsrank/pillar/pillar.mdl"
sr_cpmodel "models/props_gameplay/cap_point_base.mdl"
sr_autoreg_players 0/1/2 (0=off, 1=reg on touching pole, 2=always reg)
sr_autoreg_maps 0/1 (0=off, 1=always reg as long as map is found with sr_keywords)
sr_menuadminflag "1" (0=generic, 1=root)

To Do list:
-red skin for start/finish pillar
-checkpoint model
-any usefull suggestions
-fixing any bugs that come up
-making premade clean db with positions for all/most jump maps already set
-fixing !topmaps
-fixing download not working
-possibly improving the saving position in menu


Install Instructions
-Needs sourcemod and metamod
-Needs SDKHooks : http://forums.alliedmods.net/showthread.php?t=106748
-Download skillsrank.rar, and extract the tf folder to the tf folder
-Either move databases.cfg from root folder of the .rar to tf/addons/sourcemod/configs or add the skillsrank bit to your already existing one

-also, for now you need a downloader plugin to download the custom pillar, because somehow at some point the @!%$@g downloadfunction stopped working

Setting up Maps:
-Needs admins setup with admin flag set by sr_menuadminflag
-!amenu, (will check if you're registered, if not it'll ask you to register)
from there, start by registering the map into db (creating the tables in db)
the menu will then automatically take you into the coursebuilding part,
which starts by asking which course,
after which it'll ask you which kind of point you want to save on the location you're at (your coordinates are the coordinates that are saved to db)
the moment you choose the end, it'll ask you what difficulty you want the course to have,
and when you choose done, it'll upload all the points to database

from there on either use the menu to reload the models or create more courses, or do both or whatever

Download:
www.arpcon.info/downloads/mod.rar

Thanks to Bl4ckie (for model), rush (for logical stuff), clf, 11, matti + anyone else that i now forgot that helped me test
« Last Edit: February 03, 2011, 11:22:26 AM by CrancK »


---------------------------
   
Offline  CrancK
Rocketeer
*

ehh... what?
Posts: 397
dude...
patch-time, new version:

-cvars for modelpaths
-checkmap renamed to top, and no parameters needed anymore (though if you have no class, itll show times for all classes, working as intended)
-pmenu renamed to srstats
-hidetime command for hiding timer + time to beat
-autoreg player cvar
-autoreg map cvar
-miliseconds
-better way of allowing only certain classes to speedrun


---------------------------
   
0 Members and 1 Guest are viewing this topic.
Pages: [1]
« previous next »


spirit Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC