View Single Post
Author Message
Ice1
Junior Member
Join Date: Jan 2010
Old 03-19-2010 , 11:13   [Hidden] Hidden Ranks
Reply With Quote #1

Quote:
/**
* Hidden Ranks
*
* Description:
* Ranks all players depending on
* 1. Who they kill
* 2. How they kill
* 3. What team they kill
* 4. How they die
* 5. Who kills them
* 6. Whether they used a handicap (optional)
*
* Rank file is read as Rank,Points,IRISPoints,HiddenPoints,IRISKills ,IRISDeaths,HiddenKills,PhysKills,
PigSticks,HiddenDeaths,Suicides,TeamKills,Dam ageDone,GameTimeMinutes,SteamID,Name
*
* Commands:
* sm_hiddenranks_version : Prints current version
* sm_hiddenranks_enable (1/0) : Enables/Disables plugin
* sm_hiddenranks_irismult : Determines the points multiplier used for an IRIS kill
* sm_hiddenranks_knifemult : Determines the points multiplier used for a Hidden knife kill
* sm_hiddenranks_pigmult : Determines the points multiplier used for a Hidden pigstick kill
* sm_hiddenranks_physmult : Determines the points multiplier used for a Hidden physics kill
* sm_hiddenranks_ranksuicides : If set to more than 0, the plugin will take the specified amount of points off and add to the deaths stat
* sm_hiddenranks_multbykd : If set to 1, the plugin will give include a k/d ratio multiplier when calculating points
* This results in it easier to keep a high rank (high k/d) and harder for lower ranked people (low k/d) to earn points
* sm_hiddenranks_usehandicapplugin : If set to 1, the plugin will include a points multiplier for a handicapped hidden
* sm_hiddenranks_handicapchangetime : The window of opportunity in seconds, that the hidden can handicap himself and have it effect his rank.
* This stops a hidden from handicapping himself and finishing people off for points
* sm_hiddenranks_irisdeathmult : Determines the points reduction multiplier used for an IRIS death
* sm_hiddenranks_hiddendeathmult : Determines the points reduction multiplier used for a Hidden death
* sm_hiddenranks_irismaxpoints : Determines the maximum points an IRIS can accumilate from 1 kill
* sm_hiddenranks_hiddenmaxpoints : Determines the maximum points a Hidden can accumilate from 1 kill
* sm_hiddenranks_iristeamkillpoints : Determines the points you loose from team killing on the iris team
* sm_hiddenranks_hiddenteamkillpoints : Determines the points you loose from team killing on the hidden team
* sm_hiddenranks_countbotkills : Will count bot kills, use this for testing but be aware that listen servers dont report iris deaths properly
*
* Rank (Chat command) : Prints your rank
* IRISRank (Chat command) : Prints your IRIS rank
* HiddenRank (Chat command) : Prints your Hidden rank
* Top (Chat command) : Creates a menu to display all players who have ranks
* IRISTop (Chat command) : Creates a menu to display all players who have ranks and arranges it by IRIS points
* HiddenTop (Chat command) : Creates a menu to display all players who have ranks and arranges it by Hidden points
* !ResetRank (Chat command) : Resets your rank
*
*
*
* Version History
* 1.0 Release
* 0.75 Various pre release fixes, additions, adjustments, testings
* 0.5 Changed points system, added more functions
* 0.1 First alpha release
* Contact:
* Ice: [email protected]
* Hidden:Source: http://forum.hidden-source.com/
*/
This plugin will see how a player has been killed and who killed them, compare the points fraction between those two players and give out points depending on all those conditions. The calculation goes as follows

Points(victim)/Points(killer) * (A predefined, customizable value depending upon how the victim was killed)

This calculation means that people who kill a higher ranked player will recieve more points than if they killed a lower ranked player, similarly they will get a higher point reduction for dying to a lower ranked player than to a higher ranked player.

The plugin also records how victims are killed (physkill, pigstick etc) and allows for the separate ranking of iris and hidden players.

Additionally, this plugin allows for the support of the hdn_handicap mod. Which means that if support is enabled (sm_hiddenranks_usehandicapplugin) and if version 2.0 is installed, a person who handicaps himself will receive more points for kills he performs while handicapped.

!!Create a text file called hiddenranks_ranks.txt in the hidden/cfg directory before launching this plugin!!
Attached Files
File Type: sp Get Plugin or Get Source (Hdn_HiddenRanks.sp - 1652 views - 49.5 KB)
File Type: txt ReadMe.txt (170 Bytes, 653 views)

Last edited by Ice1; 03-19-2010 at 23:11.
Ice1 is offline