Raised This Month: $32 Target: $400
 8% 

TF2 Round Win Text


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ritcereal
Junior Member
Join Date: Sep 2008
Plugin ID:
538
Plugin Version:
1.11
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Announces a definable string after a Round has been won.
    Old 09-06-2008 , 18:42   TF2 Round Win Text
    Reply With Quote #1

    The cvars:

    sm_roundwin_enable = 1 // Enables the Round Win plugin
    sm_roundwin_text = "BUUUUUURRR!!!" // The text to be announced after a round has been won.

    These cvars are now created on first run at <mod folder>/cfg/sourcemod/plugin_roundwin.cfg

    This my first plugin so feel free to tell me what I did wrong. I'm a little new to SourceMod so please tell me.

    Credits:
    • Cereal
    • |HS|Jesus
    Release Notes:

    1.11
    • Bug fix (cvar was not properly created)
    1.10
    • Feature Addition (mod now uses a configuration file)
    1.00
    • Initial Release
    Attached Files
    File Type: sp Get Plugin or Get Source (RoundWinText.sp - 3031 views - 943 Bytes)

    Last edited by ritcereal; 09-08-2008 at 19:08.
    ritcereal is offline
    trampi3
    New Member
    Join Date: Sep 2008
    Old 09-07-2008 , 08:58   Re: TF2 Round Win Text
    Reply With Quote #2

    Just loaded it. Very basic, but preforms exactly as advertised. No bugs yet.

    Thanks for the plugin and keep up the good work.
    trampi3 is offline
    dotISO
    Member
    Join Date: May 2008
    Old 09-07-2008 , 13:10   Re: TF2 Round Win Text
    Reply With Quote #3

    Basic, yet good.
    dotISO is offline
    ocard
    Junior Member
    Join Date: Jun 2008
    Old 09-07-2008 , 13:43   Re: TF2 Round Win Text
    Reply With Quote #4

    Nice. it would be even better if you could have a text fils so it could read and choose from a random list of messages intsead of the same message every time.

    Keep up the good work.
    ocard is offline
    ritcereal
    Junior Member
    Join Date: Sep 2008
    Old 09-07-2008 , 16:31   Re: TF2 Round Win Text
    Reply With Quote #5

    Quote:
    Originally Posted by ocard View Post
    Nice. it would be even better if you could have a text fils so it could read and choose from a random list of messages intsead of the same message every time.

    Keep up the good work.
    I'll work on it, I like the idea!
    ritcereal is offline
    willy1234x1
    Senior Member
    Join Date: Jun 2008
    Old 09-07-2008 , 16:59   Re: TF2 Round Win Text
    Reply With Quote #6

    Here's a release with an easier setting method.
    It creates a config file in the /cfg/sourcemod folder of your server with what you want to replace. You can call this version 1.1 and tweak it if you like.
    Attached Files
    File Type: sp Get Plugin or Get Source (RoundWinText.sp - 1345 views - 862 Bytes)

    Last edited by willy1234x1; 09-07-2008 at 17:01.
    willy1234x1 is offline
    willy1234x1
    Senior Member
    Join Date: Jun 2008
    Old 09-07-2008 , 17:00   Re: TF2 Round Win Text
    Reply With Quote #7

    If you want I can do a key value system so you can have multiple things that change.

    Also this cvar seems unnecessary because why have the plugin if you don't want the text to show.
    sm_roundwin_enable = 1 // Enables the Round Win plugin

    Last edited by willy1234x1; 09-07-2008 at 17:07.
    willy1234x1 is offline
    ritcereal
    Junior Member
    Join Date: Sep 2008
    Old 09-08-2008 , 10:20   Re: TF2 Round Win Text
    Reply With Quote #8

    Quote:
    Originally Posted by willy1234x1 View Post
    If you want I can do a key value system so you can have multiple things that change.
    I'd love the extra help, I've been extremely busy this week so getting to doing this wasn't a priority. Plus since I'm new to Source Mod plugins I would to have done some research so seeing your code would be great!

    Quote:
    Originally Posted by willy1234x1 View Post
    Also this cvar seems unnecessary because why have the plugin if you don't want the text to show.
    sm_roundwin_enable = 1 // Enables the Round Win plugin
    I prefer to be able to enable/disable a plugin while in a game, you never know when you might want to disable it (tournament or something). That's just my picky personal preference is all. Otherwise to disable it you need to restart which I avoid at all costs.

    Also, thanks for making the change to include the config file, I can definitely see that helping people out (I was content on just using sourcemod.cfg, but I can see the usefulness of having a seperate file). I will be updating the first post with version 1.1.
    ritcereal is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 09-08-2008 , 15:21   Re: TF2 Round Win Text
    Reply With Quote #9

    Just so you know, you can always just go into sm options and disable the plugin within game. You dont even need a cvar, although thats probably easier. You can always disable any plugin within game, even if it doesnt have a cvar to do so. Well, I suppose that is assuming you have rcon access.
    retsam is offline
    willy1234x1
    Senior Member
    Join Date: Jun 2008
    Old 09-08-2008 , 16:41   Re: TF2 Round Win Text
    Reply With Quote #10

    If you turn on War Mode AKA match mode only a set list of plugins stay loaded.
    willy1234x1 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 18:49.


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