Raised This Month: $51 Target: $400
 12% 

[TF2] Set Spell


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Tylerst
Veteran Member
Join Date: Oct 2010
Plugin ID:
3955
Plugin Version:
1.0.2
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    9 
    Plugin Description:
    Set Spell and Spell Uses on target(s)
    Old 11-01-2013 , 20:41   [TF2] Set Spell
    Reply With Quote #1

    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
    Attached Files
    File Type: txt Custom Admin Menu Example.txt (946 Bytes, 2006 views)
    File Type: sp Get Plugin or Get Source (SetSpell.sp - 5484 views - 6.2 KB)

    Last edited by Tylerst; 11-05-2013 at 06:18.
    Tylerst is offline
    Tylerst
    Veteran Member
    Join Date: Oct 2010
    Old 11-01-2013 , 20:47   Re: [TF2] Set Spell
    Reply With Quote #2

    Reserved
    Tylerst is offline
    Windroid
    Member
    Join Date: Mar 2013
    Old 11-02-2013 , 01:38   Re: [TF2] Set Spell
    Reply With Quote #3

    Amazing work!I'm gonna try it!
    Windroid is offline
    Bjorngomes
    Member
    Join Date: Jun 2013
    Old 11-02-2013 , 03:41   Re: [TF2] Set Spell
    Reply With Quote #4

    Good i waited for a plugin like this

    EDIT: Found a bug on engineer that hes not getting any spells when using the command wierd...

    Last edited by Bjorngomes; 11-02-2013 at 06:48. Reason: Bug found!
    Bjorngomes is offline
    Jimleet1337
    SourceMod Donor
    Join Date: Oct 2013
    Location: TF2 BEELINE
    Old 11-02-2013 , 08:19   Re: [TF2] Set Spell
    Reply With Quote #5

    Thankkkkkks
    Jimleet1337 is offline
    Send a message via Skype™ to Jimleet1337
    ImAnApple
    Junior Member
    Join Date: Nov 2012
    Old 11-02-2013 , 11:06   Re: [TF2] Set Spell
    Reply With Quote #6

    There are some more spells granted by the halloween spells of this year, for example the engineer can shot purple pumpkin rockets at people with the right halloween spell on his wrench. Only problem is that I don't know the ID of the halloween spell spells.
    ImAnApple is offline
    luki1412
    Veteran Member
    Join Date: Oct 2008
    Location: OnPluginStart()
    Old 11-02-2013 , 11:07   Re: [TF2] Set Spell
    Reply With Quote #7

    Plugin is great, though that small spell counter would be nice, cause you dont know how many are left-maybe just small hud text in the same place...
    For spy/engie sometimes works sometimes does not...Seems to be working after class change spy>scout>spy kinda strange...

    You can use them while taunting. You should not be able to.
    __________________

    Last edited by luki1412; 11-02-2013 at 12:25.
    luki1412 is offline
    FrozenHaxor
    Senior Member
    Join Date: Jun 2009
    Location: Poland
    Old 11-02-2013 , 12:31   Re: [TF2] Set Spell
    Reply With Quote #8

    I believe there is some targetting issue. It simply doesn't work for some people.

    And doing sm_setspell @all 10 10 will return Unknown command: sm_setspell.

    One of my Admins has reported that sm_setspell @me has no effect on him whatsoever, while it works fine for me.

    The error log appears to be spammed with:
    Code:
    L 11/02/2013 - 17:02:34: [SM] Native "GetPlayerWeaponSlot" reported: Client 11 is not in game
    L 11/02/2013 - 17:02:34: [SM] Displaying call stack trace for plugin "SetSpell.smx":
    L 11/02/2013 - 17:02:34: [SM]   [0]  Line 96, SetSpell.sp::SetSpell()
    L 11/02/2013 - 17:02:34: [SM]   [1]  Line 56, SetSpell.sp::Command_SetSpell()
    That's all I know for now.
    __________________
    FrozenHaxor is offline
    Roundcat
    Senior Member
    Join Date: Feb 2012
    Old 11-02-2013 , 17:51   Re: [TF2] Set Spell
    Reply With Quote #9

    Obvioussly a flag attached would be nice too eg:

    sm_setspell "steamID xxxxxxx" "0,1,2,3,4,5,6,7,8,9,10,11" "20"

    or the flagged version:

    sm_setspell "o" "0,1,2,3,4,5,6,7,8,9,10,11" "20"
    __________________
    I know not my ar*e from its elbow.
    Roundcat is offline
    El Diablo War3Evo
    Veteran Member
    Join Date: Jun 2013
    Old 11-03-2013 , 19:57   Re: [TF2] Set Spell
    Reply With Quote #10

    I'm not sure if this can be fixed, but I feel that the Halloween gift keeps saying it disappears to everyone on the server. It also makes everyone explode when they get killed.

    Any way to fix these from not happening?
    El Diablo War3Evo is offline
    Reply



    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 06:09.


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