Raised This Month: $73 Target: $400

[TF2] Spellbook Commands

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Veteran Member
Join Date: Jul 2010
Plugin ID:
Plugin Version:
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    Plugin Description:
    Set the number of spells and type of spell on players' spellbooks
    Old 11-02-2013 , 20:14   [TF2] Spellbook Commands
    Reply With Quote #1

    While this plugin performs the same functions as http://forums.alliedmods.net/showthread.php?t=229123, I wrote it with self-usage in mind. That is, "sm_setspell <charges>" as the base command that targets yourself, with various other options available as parameters.

    sm_setspell <charges> [spell] [target] - Defaults to "cheats" admin access. Set the number of spell <charges> on yourself. Optional parameter [spell] accepts a number to set the spell type as well. Optional parameter [target] allows you to specify some target(s) instead of targetting yourself. The number of charges and the ability to target other players is dependent on the cvars and overrides listed further down.
    sm_spelllist - Defaults to public access. Displays the list of spells and the number associated with each spell.

    tf_spellbookcmds_version - Ignore this, it does nothing and you shouldn't touch it.
    tf_spellbookcmds_limit -1 - If >= 0, sets the maximum number of charges you're allowed to set with sm_setspell. Whether this affects a player or not depends on one of the overrides listed below.

    sm_setspell_target - Default "cheats" access. Players with access to this will be able to use the 3rd parameter of sm_setspell to target other players instead of only being able to target themselves.
    sm_setspell_unlimit - Default "root" access. Players with access to this will ignore the spell charge limit cvar.

    As a reminder, if you want to make sm_setspell public/less-restricted-access (the way I pretty much intended it to be for use with overrides), you can use an override for sm_setspell to change who can access it. Basically, you can give everyone access to sm_setspell but only give certain people access to the ability to target others or go over the spell limit. Give it a try.

    1.0 - 11/2/2013
    *Initial release
    *Split spell limit cvar split into rare vs. normal spells, other changes regarding this dichotomy.
    *Release another plugin that enables the Spell HUD/spell drops on any map (I've already figured it out, just need to write it up nicely)

    Previous plugin view count: --
    Attached Files
    File Type: sp Get Plugin or Get Source (tf_spellbookcmds.sp - 2188 views - 5.4 KB)
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.

    Last edited by FlaminSarge; 11-02-2013 at 20:19.
    FlaminSarge is offline

    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump

    All times are GMT -4. The time now is 19:40.

    Powered by vBulletin®
    Copyright ©2000 - 2019, vBulletin Solutions, Inc.
    Theme made by Freecode