Set Spell
Description: Set Spell and Spell Uses on target(s)
Warning: This WILL work on all maps, however the HUD will not show the spell/uses. I haven't found a way to enable it yet.
Cvars:
sm_setspells_version "1.0.2"
sm_setspell_rarespelladmin "0" - If enabled, rare spells require a separate admin flag from common spells(Override with sm_setspell_rareadminflag) -Default cheats flag
Commands:
sm_setspell "target" "spell index" "uses" - Set Spell and Spell Uses on target(s)
-Default slay flag
Can leave out target to use on self
Note: Uses from 0 - 2147483647 (
See below for spell numbers)
sm_setspelluses "target" "uses" - Set Spell Uses on target(s)
-Default slay flag
Can leave out target to use on self
Note: Uses form 0 - 2147483647 and must already have a spell
sm_showspell - Shows your current spell/uses on HUD(for use on non-event maps) -No admin flag(public)
Examples:
sm_setspell 0 5 -Give yourself 5 uses of Fireball
sm_setspell @all 1 3 -Give everyone 3 uses of Ball O' Bats
sm_setspelluses 5 -Set your spell uses to 5
sm_setspelluses @all 2147483647 -Set everyone's spell uses to 2147483647
sm_setspelluses @!me 0 -Set spell uses on everyone except yourself to 0
Spell Number List
0 = Fireball
1 = Ball O' Bats
2 = Healing Aura
3 = Pumpkin MIRV
4 = Superjump
5 = Invisibility
6 = Teleport
7 = Tesla Bolt
8 = Minify
9 = Summon Monoculus
10 = Meteor Shower
11 = Summon Skeletons
Changelog
Code:
Version 1.0.0 - November 1, 2013
*Initial Release
Version 1.0.1 - November 4, 2013
*Fixed commands not working for Engineer and Spy(GetPlayerWeaponSlot was getting the PDA instead of the spellbook)
*Added cvar to allow admin flag for rare spells
*Added sm_showspell to show spell/uses on non-event maps
*sm_setspell and sm_setspelluses now allow leaving out the target flag to target yourself
Version 1.0.2 - November 5, 2013
*Fixed an error that would occur if no players had a spellbook equiped