Raised This Month: $305 Target: $400
 76%   Almost there!

[TF2] Spells 1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Author
pear
Member
Join Date: May 2017
Location: sea
Plugin ID:
7546
Plugin Version:
1.1
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Cast halloween spells
    Old 03-08-2021 , 12:38   [TF2] Spells 1.1
    Reply With Quote #1

    This plugin allows you to cast halloween spells.
    It equips the player with a spellbook magazine and fires the spells from there so that the animations play.



    Command:
    sm_spells [index] | ADMFLAG_GENERIC
    sm_spell [index] | ADMFLAG_GENERIC

    Cvars:
    sm_spells_version - Shows plugin version
    sm_spells_cooldown - Spell usage cooldown
    sm_spells_cooldown_rare - Rare spell usage cooldown (Added on top of normal cooldown)

    Installation:
    Put spells.smx into tf/addons/sourcemod/plugins

    Changelog:
    1.1
    Attached Files
    File Type: sp Get Plugin or Get Source (spells.sp - 135 views - 4.6 KB)

    Last edited by pear; 03-16-2021 at 08:07.
    pear is offline
    ph
    AlliedModders Donor
    Join Date: Mar 2006
    Old 03-14-2021 , 13:54   Re: [TF2] Spells
    Reply With Quote #2

    Can you set a cool down timer?

    You can basically spam the commands constantly.
    __________________
    ph is offline
    CrazyGhostRider
    Member
    Join Date: Apr 2014
    Location: Russia
    Old 03-14-2021 , 14:48   Re: [TF2] Spells
    Reply With Quote #3

    Quote:
    Originally Posted by ph View Post
    Can you set a cool down timer?

    You can basically spam the commands constantly.
    Try this
    https://forums.alliedmods.net/showthread.php?t=230384
    CrazyGhostRider is offline
    pear
    Member
    Join Date: May 2017
    Location: sea
    Old 03-16-2021 , 08:07   Re: [TF2] Spells
    Reply With Quote #4

    Quote:
    Originally Posted by ph View Post
    Can you set a cool down timer?

    You can basically spam the commands constantly.
    Added in v1.1!
    pear is offline
    ph
    AlliedModders Donor
    Join Date: Mar 2006
    Old 03-18-2021 , 16:32   Re: [TF2] Spells 1.1
    Reply With Quote #5

    Thank you, working nicely.


    --- Can I ask for a special favour, for me ---
    Just for me, can you re-compile the plugin to only have these 3 options only.

    "Fireball",
    "Swarm of Bats",
    "Blast Jump"

    Much appreciated, Many Thanks.
    __________________
    ph is offline
    Teamkiller324
    Senior Member
    Join Date: Feb 2014
    Location: m_bTeamKiller
    Old 03-18-2021 , 19:43   Re: [TF2] Spells 1.1
    Reply With Quote #6

    Quote:
    Originally Posted by ph View Post
    Thank you, working nicely.


    --- Can I ask for a special favour, for me ---
    Just for me, can you re-compile the plugin to only have these 3 options only.

    "Fireball",
    "Swarm of Bats",
    "Blast Jump"

    Much appreciated, Many Thanks.
    Attached Files
    File Type: sp Get Plugin or Get Source (spells.sp - 61 views - 4.4 KB)
    File Type: smx spells.smx (6.4 KB, 11 views)
    __________________
    Teamkiller324 is offline
    Send a message via Skype™ to Teamkiller324
    ph
    AlliedModders Donor
    Join Date: Mar 2006
    Old 03-18-2021 , 22:30   Re: [TF2] Spells 1.1
    Reply With Quote #7

    It doesn't work, by removing the names listed on the menu.

    Unfortunately it still remembers, originally listed number 3 as ("Overheal") even thou it is listed on the menu as "Blast Jump".
    __________________
    ph is offline
    pear
    Member
    Join Date: May 2017
    Location: sea
    Old 03-19-2021 , 06:04   Re: [TF2] Spells 1.1
    Reply With Quote #8

    Quote:
    Originally Posted by ph View Post
    It doesn't work, by removing the names listed on the menu.

    Unfortunately it still remembers, originally listed number 3 as ("Overheal") even thou it is listed on the menu as "Blast Jump".
    this and string empty check does the job just fine~

    Also removed sm_spells_cooldown_rare cvar for this one, enjoy
    Attached Files
    File Type: sp Get Plugin or Get Source (spells.sp - 71 views - 3.7 KB)

    Last edited by pear; 03-19-2021 at 06:13.
    pear is offline
    ph
    AlliedModders Donor
    Join Date: Mar 2006
    Old 03-20-2021 , 14:57   Re: [TF2] Spells 1.1
    Reply With Quote #9

    Quote:
    Originally Posted by pear View Post
    this and string empty check does the job just fine~

    Also removed sm_spells_cooldown_rare cvar for this one, enjoy
    Thank you, working nicely.
    __________________
    ph is offline
    Reply


    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 20:00.


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