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

[TF2] AutoAllTalk (1.0.1, 2018-05-03)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
RalphORama
Junior Member
Join Date: Jan 2013
Location: USA
Plugin ID:
6120
Plugin Version:
1.0.1
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Automatically enable sv_alltalk when there are fewer than a certain number of players playing.
    Old 05-03-2018 , 00:24   [TF2] AutoAllTalk (1.0.1, 2018-05-03)
    Reply With Quote #1

    This is my first SourceMod plugin! Any feedback would be appreciated.

    AutoAllTalk is a simple plugin that enables sv_alltalk when your player count drops below a certain threshold. For example, if your threshold is 17, sv_alltalk will be 1 until there are 17 players in the server, at which point the plugin will set sv_alltalk to 0. Once the player count drops back down to 16 or less, sv_alltalk will be set back to 1.

    CVARS
    • sm_aat_threshold - player count at which to disable alltalk.

    Dependencies
    Changelog
    Commit history available here: https://gitlab.com/ralphorama/tf2-autoalltalk.

    2018-05-03 (v1.0.1)
    • Switched to using GetConvarInt() rather than <convar>.IntValue

    2018-05-02 (v1.0.0)
    • Initial creation
    Attached Files
    File Type: sp Get Plugin or Get Source (autoalltalk.sp - 255 views - 5.0 KB)
    File Type: smx autoalltalk.smx (11.3 KB, 368 views)

    Last edited by RalphORama; 06-26-2023 at 16:13.
    RalphORama is offline
    ThatKidWhoGames
    Veteran Member
    Join Date: Jun 2013
    Location: IsValidClient()
    Old 05-03-2018 , 08:20   Re: [TF2] AutoAllTalk (1.0.1, 2018-05-03)
    Reply With Quote #2

    Very nice! Thank you for this!!
    ThatKidWhoGames is offline
    RalphORama
    Junior Member
    Join Date: Jan 2013
    Location: USA
    Old 06-26-2023 , 16:15   Re: [TF2] AutoAllTalk (1.0.1, 2018-05-03)
    Reply With Quote #3

    2023 update: The source code for this plugin is now hosted on GitLab: https://gitlab.com/ralphorama/tf2-autoalltalk
    RalphORama is offline
    Happy DODs player
    AlliedModders Donor
    Join Date: Sep 2009
    Old 06-27-2023 , 10:29   Re: [TF2] AutoAllTalk (1.0.1, 2018-05-03)
    Reply With Quote #4

    This works also on ? Besides Tf2 ( Dods ? )
    __________________
    Happy DODs player is offline
    RalphORama
    Junior Member
    Join Date: Jan 2013
    Location: USA
    Old 06-27-2023 , 12:46   Re: [TF2] AutoAllTalk (1.0.1, 2018-05-03)
    Reply With Quote #5

    Quote:
    Originally Posted by Happy DODs player View Post
    This works also on ? Besides Tf2 ( Dods ? )
    This was written with TF2 specifically in mind but uses these generic hooks:

    Code:
    teamplay_round_start
    teamplay_waiting_begins
    teamplay_round_win
    teamplay_round_stalemate
    If these hooks are supported by DOD:S the plugin should work. I haven't coded plugins for any game that isn't TF2 so I can't say for sure.

    Last edited by RalphORama; 06-27-2023 at 12:46.
    RalphORama 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 19:30.


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