Raised This Month: $89 Target: $400
 22% 

[TF2] Smack Talk


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Munra
Senior Member
Join Date: May 2004
Plugin ID:
1483
Plugin Version:
2.0.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    7 
    Plugin Description:
    Toggles alltalk at roundend/roundstart
    Old 02-20-2010 , 09:22   [TF2] Smack Talk
    Reply With Quote #1

    Description
    This plugin turns alltalk on at the end of the round and back off after a set amount of time after the next round starts.

    Special Thanks
    Thor - For their help in irc
    psychonic - For their help in irc
    Hipster - For their help in irc
    Martin_ - For their help in irc
    I started with bl4nk's code from this topic

    ConVars
    Code:
    // This file was auto-generated by SourceMod (v1.4.0)
    // ConVars for plugin "smacktalk_2.smx"
    
    
    // The amount of time in seconds to extend alltalk after Round Start
    // -
    // Default: "15"
    // Minimum: "0.000000"
    // Maximum: "60.000000"
    sm_extendalltalk "15"
    
    // Enable/Disable suppression of the server cvar sv_alltalk has changed messages, 1 = ON 0 = OFF
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_smackcvarsuppress "0"
    
    // Set the time befor alltalk is turned off to print a warning
    // -
    // Default: "5"
    // Minimum: "0.000000"
    // Maximum: "59.000000"
    sm_smackwarntime "5"
    
    // Enable/Disable alltalk during the Waiting for players round, 1 = ON 0 = OFF
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_waitroundalltalk "0"
    Adjust convars in cfg/sourcemod/plugin.tf2smacktalk.cfg

    Setting sm_smackwarntime to 0 or setting it equal to or greater then sm_extendalltalk will disable the print warning.

    Notes
    I know there are other plugins that do the same thing the problem I had was we have alltalk as a vote so every time the round restarted it would turn alltalk off. This plugin will take into account if alltalk was already on before the round ends and will do nothing if it was already on.

    REQUIRES Sourcemod 1.4 or Newer

    This is my first plugin please go easy
    Alternate support topic
    http://tinyurl.com/34md5lh


    History
    1.1.0 Initial Release
    1.1.1 Fixed timer issues
    1.5.0 Added waiting for players round alltalk
    2.0.0
    Added version cvar tf2smacktalk_version
    Added a option to suppress the "sv_alltalk" has changed server messages "sm_smackcvarsuppress"
    Added some new SM 1.4 api functionality
    Added extend alltalk time after waiting for players
    Auto creates config file cfg/sourcemod/plugin.tf2smacktalk.cfg
    Attached Files
    File Type: sp Get Plugin or Get Source (tf2smacktalk.sp - 742 views - 4.6 KB)
    __________________
    http://anbservers.net
    My Plugins
    PMs for support will be ignored please use the plugin topic for support.

    Last edited by Munra; 11-05-2011 at 18:31. Reason: New Version 2.0.0
    Munra is offline
    Afronanny
    Veteran Member
    Join Date: Aug 2009
    Old 02-20-2010 , 14:39   Re: [TF2] Smack Talk
    Reply With Quote #2

    I LOVE IT! Great idea.
    Afronanny is offline
    Kevin_b_er
    SourceMod Donor
    Join Date: Feb 2009
    Old 02-22-2010 , 00:07   Re: [TF2] Smack Talk
    Reply With Quote #3

    Simple plugin, great idea.
    Kevin_b_er is offline
    saulstari
    Member
    Join Date: Jan 2006
    Old 03-10-2010 , 16:57   Re: [TF2] Smack Talk
    Reply With Quote #4

    L 03/10/2010 - 23:51:07: [SM] Plugin "tf2smacktalk.smx" encountered error 23: Native detected error
    L 03/10/2010 - 23:51:07: [SM] Invalid data handle 0 (error 4) passed during timer end with TIMER_DATA_HNDL_CLOSE
    L 03/10/2010 - 23:51:07: [SM] Unable to call function "printmessage" due to above error(s).
    L 03/10/2010 - 23:51:12: [SM] Plugin "tf2smacktalk.smx" encountered error 23: Native detected error
    L 03/10/2010 - 23:51:12: [SM] Invalid data handle 0 (error 4) passed during timer end with TIMER_DATA_HNDL_CLOSE
    L 03/10/2010 - 23:51:12: [SM] Unable to call function "extendalltalk" due to above error(s).
    saulstari is offline
    Greyscale
    SourceMod Plugin Approver
    Join Date: Dec 2007
    Location: strYoMommasHouse[you];
    Old 03-10-2010 , 19:05   Re: [TF2] Smack Talk
    Reply With Quote #5

    Don't use TIMER_DATA_HNDL_CLOSE unless you are passing a datapack handle in the 'data' parameter. That flag tries to close the value of 'data' after the timer callback is called. (Which in your case is the default value, INVALID_HANDLE)
    __________________
    Greyscale is offline
    Munra
    Senior Member
    Join Date: May 2004
    Old 03-10-2010 , 22:44   Re: [TF2] Smack Talk
    Reply With Quote #6

    Quote:
    Originally Posted by saulstari View Post
    L 03/10/2010 - 23:51:07: [SM] Plugin "tf2smacktalk.smx" encountered error 23: Native detected error
    L 03/10/2010 - 23:51:07: [SM] Invalid data handle 0 (error 4) passed during timer end with TIMER_DATA_HNDL_CLOSE
    L 03/10/2010 - 23:51:07: [SM] Unable to call function "printmessage" due to above error(s).
    L 03/10/2010 - 23:51:12: [SM] Plugin "tf2smacktalk.smx" encountered error 23: Native detected error
    L 03/10/2010 - 23:51:12: [SM] Invalid data handle 0 (error 4) passed during timer end with TIMER_DATA_HNDL_CLOSE
    L 03/10/2010 - 23:51:12: [SM] Unable to call function "extendalltalk" due to above error(s).

    Thanks I will look into and fix the issue

    EDIT: Uploaded new file
    __________________
    http://anbservers.net
    My Plugins
    PMs for support will be ignored please use the plugin topic for support.

    Last edited by Munra; 03-11-2010 at 17:18. Reason: New file added
    Munra is offline
    Munra
    Senior Member
    Join Date: May 2004
    Old 09-04-2010 , 16:17   Re: [TF2] Smack Talk
    Reply With Quote #7

    Plugin updated with waiting for players round alltalk
    __________________
    http://anbservers.net
    My Plugins
    PMs for support will be ignored please use the plugin topic for support.
    Munra is offline
    Thraka
    AlliedModders Donor
    Join Date: Aug 2005
    Old 06-30-2011 , 14:31   Re: [TF2] Smack Talk
    Reply With Quote #8

    I use this plugin but i have tons of problems of people still hearing eachother after it's turned alltalk off. Sometimes it's a single person on one team that the other team can hear, but they themselves cannot hear the opposite team..

    It's got to be an issue with timing. I don't know. Anyone else have this problem?

    Also, here is an update versioned 1.5.1. It has a toggle function that will turn all talk on or off silently. So no chat spam about alltalk variable being 0 or 1.
    Attached Files
    File Type: sp Get Plugin or Get Source (tf2smacktalk.sp - 367 views - 3.7 KB)

    Last edited by Thraka; 06-30-2011 at 14:41.
    Thraka is offline
    Munra
    Senior Member
    Join Date: May 2004
    Old 07-06-2011 , 15:41   Re: [TF2] Smack Talk
    Reply With Quote #9

    I have been running the plugin successfully for months now

    Got any errors in the log file?
    __________________
    http://anbservers.net
    My Plugins
    PMs for support will be ignored please use the plugin topic for support.
    Munra is offline
    moxie2020
    Veteran Member
    Join Date: Aug 2011
    Old 09-13-2011 , 18:15   Re: [TF2] Smack Talk
    Reply With Quote #10

    Quote:
    Originally Posted by Thraka View Post
    I use this plugin but i have tons of problems of people still hearing eachother after it's turned alltalk off. Sometimes it's a single person on one team that the other team can hear, but they themselves cannot hear the opposite team..

    It's got to be an issue with timing. I don't know. Anyone else have this problem?

    Also, here is an update versioned 1.5.1. It has a toggle function that will turn all talk on or off silently. So no chat spam about alltalk variable being 0 or 1.
    I have a couple of requests:
    1. I would like to have a version that chat says "Smack Talk has been enabled" like the smack talk ending warning. (I have another program that blocks the cvar messages)
    2. Is it possible to add a player threshold to enable/disable alltalk that ignores bots. Basically so if there is less than say 10 players alltalk is turned on.
    3. It appears alltalk is turned on during the waiting period on new maps but is turned off at the round start. For consistencies stake is there a way to have it work so that it still goes over the limit by whatever the setting is?
    I tried the simple alltalk plugin which has some of these features but it does not have the waiting period and for some reason it does not enable during the setup period. It also does not ignore bots for the player threshold.
    moxie2020 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 15:31.


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