View Single Post
Author Message
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 02-20-2010 , 20:13   [TF2] Cosmetic Leveling Mod (v0.1.2)
Reply With Quote #1



This plugin brings the nostalgic memories of RPG games like Pokemon into TF2; of course, the levels don't actually do anything. All of it is cosmetic. So no, leveling up does not make you more powerful than anyone else, you do not get any buffed weapons, or magical abilities by killing people. This is just a fun little plugin made to have players make the game a little competition, and maybe even to see how long a certain player has been on the server (if they have a high level they've been playing for a very long time, or are just very good).

NOTE: This plugin does not save progress on mapchange or reconnect to server. The players' levels are reset when the map is changed, and all progress is lost when a client disconnects. It was designed this way.







  • clm_setmylevel <#>
    Only usable by admins with the root flag (z). Sets their level to a desired one. Somewhat buggy, mostly with the EXP. Also displays the level up message.

  • clm_enabled <1>
    Enables or disables the plugin. Plugin will not work correctly if you enable it in the middle of a game (requires mapchange or all of the players to reconnect to the server).
    --------------------------------------------------
  • clm_level_default <1>
    The level for all new players to being with. It is set when they join the game.
    --------------------------------------------------
  • clm_level_max <100>
    The maximum level players can reach.
    --------------------------------------------------
  • clm_exp_default<40>
    The default EXP cap when players first join the server.
    --------------------------------------------------
  • clm_exp_levelup <20>
    Amount to add to the EXP cap when players level up.
    --------------------------------------------------
  • clm_exp_onkill <15>
    Amount of EXP for players to receive when they kill someone.
    --------------------------------------------------
  • clm_exp_onassist <5>
    Amount of EXP for players to receive when they assist in a kill.
    --------------------------------------------------
  • clm_exp_onassist_medic <15>
    Amount of EXP for players to receive when they assist in a kill as a Medic.
    --------------------------------------------------

  • Add a multiplier cvar for EXP on damage. Currently +EXP on hit is 10% of the damage done.
  • More cvars in general for better control.
  • Custom level up sound, with cvar.
  • Top 10 command, to view the highest level players in the server.
  • Add a translations file.
  • Maybe add an include file for use in other plugins?
  • Make a better way for Medics to level up (by healing, popping ubers).


Quote:
  • Version 0.1.2 - [2/27/10]
    -Added cvar clm_exp_onassist
    -Added cvar clm_exp_onassist_medic
    -Added cvar clm_exp_damage_mult
    -Improved client checks
    -Added FCVAR_NOTIFY to the version cvar
  • Version 0.1.1 - [2/20/10]
    -Fixed plugin version in myinfo
    -Fixed KillTimer errors
    -Various bugfixes
  • Version 0.1 - [2/20/10]
    -Initial release
This plugin is open to feedback and suggestions.
Lines of code: 246
Support Level: UNSUPPORTED
Attached Files
File Type: zip levelmod_withinclude.zip (6.2 KB, 2270 views)
File Type: sp Get Plugin or Get Source (levelmod.sp - 1107 views - 8.0 KB)
File Type: smx levelmod.smx (9.4 KB, 1899 views)

Last edited by noodleboy347; 04-22-2011 at 22:46.
noodleboy347 is offline