AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Auto-Alltalk (https://forums.alliedmods.net/showthread.php?t=65158)

ferret 01-02-2008 12:47

Auto-Alltalk
 
1 Attachment(s)
Auto-Alltalk
Version 1.0

By: ferret!

Description

This plugin will automatically adjust the value of sv_alltalk based on the number of connected players. It can work both ways, either turning on OR off. Please be aware that when running this plugin you will lose control of sv_alltalk, as the plugin will automatically reset the convar to what it believes should be the value. You can stop this by setting the limit to 0.

Cvars
  • sm_aatlimit
    • Number of players required to change alltalk. Defaults to 10. Maximum of 64. Set to 0 to disable.
  • sm_aatmode
    • Sets whether alltalk is enabled or disabled when the limit is reached. Default is "0".
    • When set to 0, alltalk will be disabled when the limit is reached, and enabled when you fall below the limit.
    • When set to 1, alltalk will be enabled when the limit is reached, and disabled when you fall below the limit.
Change Log:
  • Version 1.0
    • Release
Bugs, Requests, Translations, or Other Issues

Post bugs here. I do not plan to make any major changes to this plugin or heavily support it. As long as it works, it works. If it breaks, I'll fix it.

ferret 01-02-2008 12:49

Re: Auto-Alltalk
 
This plugin compiles. I wrote it at lunch out of boredom. I'm 99.9999999999% confident that it works, but it hasn't actually been tested. It's not exactly rocket science, just fulfilling a small request:

http://forums.alliedmods.net/showthread.php?t=64938

Freelancer 01-02-2008 18:45

Re: Auto-Alltalk
 
Thanks ferret

Neo_Bahamut_19 01-02-2008 20:07

Re: Auto-Alltalk
 
as I have already said in my request thread for this, thank you, this helps a lot, i love having fun in small groups, but i also love talking to the team in large groups

Edit: Uploaded it to my server, and may I make a suggestion for a possible update, shouldn't be hard, but mabe make something that flashes up in the 3 admin chat display areas saying something to the tune of "18 Players Reached. Alltalk Will Now Be Turned Off." or something to that accord when the players is reached for it to be turned on or off. Also, I would put a toggle in the admin menu to turn this script on and off so that admins can override it ;)

ferret 01-03-2008 09:49

Re: Auto-Alltalk
 
If someone wants to make a more advanced version, they are welcome to take this as a start and add to it. I may add a message saying whether or not Alltalk has been turned on/off.

ratty 01-06-2008 15:54

Re: Auto-Alltalk
 
I'm working on this now, using as an excuse to learn sourcepawn.
Rather than hijack this thread, I started another thread. I'll appreciate your input.

http://forums.alliedmods.net/showthread.php?p=571089

Also, in OnClientDisconnect, the SetConVarBool sets alltalk to mode, shouldn't it be !mode?

tkaway69 01-09-2008 23:51

Re: Auto-Alltalk
 
Hello "Ferret". Any idea what this error means?

Code:

L 01/09/2008 - 20:59:38: [SM] Plugin encountered error 8: Not enough space on the stack
L 01/09/2008 - 20:59:38: [SM] Debug mode is not enabled for "autoalltalk.smx"
L 01/09/2008 - 20:59:38: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 6 on


StevenT 01-23-2008 11:49

Re: Auto-Alltalk
 
Code:

L 01/19/2008 - 13:48:56: SourceMod error session started
L 01/19/2008 - 13:48:56: Info (map "emp_vehicletraining_rc4") (file "errors_20080119.log")
L 01/19/2008 - 13:48:56: [SM] Plugin encountered error 8: Not enough space on the stack
L 01/19/2008 - 13:48:56: [SM] Native "GetConVarBool" encountered a generic error.
L 01/19/2008 - 13:48:56: [SM] Displaying call stack trace for plugin "autoalltalk.smx":
L 01/19/2008 - 13:48:56: [SM]  [0]  Line 108, /home/groups/alliedmodders/forums/files/1/4/0/6/8/22586.attach::ConVarChange_Alltalk()
L 01/19/2008 - 14:15:24: [SM] Plugin encountered error 8: Not enough space on the stack
L 01/19/2008 - 14:15:24: [SM] Native "GetConVarInt" encountered a generic error.
L 01/19/2008 - 14:15:24: [SM] Displaying call stack trace for plugin "autoalltalk.smx":
L 01/19/2008 - 14:15:24: [SM]  [0]  Line 95, /home/groups/alliedmodders/forums/files/1/4/0/6/8/22586.attach::ConVarChange_Alltalk()
L 01/19/2008 - 14:16:12: [SM] Plugin encountered error 8: Not enough space on the stack
L 01/19/2008 - 14:16:12: [SM] Native "GetConVarInt" encountered a generic error.
L 01/19/2008 - 14:16:12: [SM] Displaying call stack trace for plugin "autoalltalk.smx":
L 01/19/2008 - 14:16:12: [SM]  [0]  Line 95, /home/groups/alliedmodders/forums/files/1/4/0/6/8/22586.attach::ConVarChange_Alltalk()
L 01/19/2008 - 14:53:45: Error log file session closed.
L 01/19/2008 - 14:53:45: SourceMod error session started
L 01/19/2008 - 14:53:45: Info (map "emp_vehicletraining_rc4") (file "errors_20080119.log")
L 01/19/2008 - 14:53:45: [SM] Plugin encountered error 8: Not enough space on the stack
L 01/19/2008 - 14:53:45: [SM] Native "GetConVarBool" encountered a generic error.
L 01/19/2008 - 14:53:45: [SM] Displaying call stack trace for plugin "autoalltalk.smx":
L 01/19/2008 - 14:53:45: [SM]  [0]  Line 108, /home/groups/alliedmodders/forums/files/1/4/0/6/8/22586.attach::ConVarChange_Alltalk()
L 01/19/2008 - 14:54:41: [SM] Plugin encountered error 8: Not enough space on the stack
L 01/19/2008 - 14:54:41: [SM] Native "GetConVarInt" encountered a generic error.
L 01/19/2008 - 14:54:41: [SM] Displaying call stack trace for plugin "autoalltalk.smx":
L 01/19/2008 - 14:54:41: [SM]  [0]  Line 95, /home/groups/alliedmodders/forums/files/1/4/0/6/8/22586.attach::ConVarChange_Alltalk()
L 01/19/2008 - 14:55:09: [SM] Plugin encountered error 8: Not enough space on the stack
L 01/19/2008 - 14:55:09: [SM] Native "GetConVarInt" encountered a generic error.
L 01/19/2008 - 14:55:09: [SM] Displaying call stack trace for plugin "autoalltalk.smx":
L 01/19/2008 - 14:55:09: [SM]  [0]  Line 95, /home/groups/alliedmodders/forums/files/1/4/0/6/8/22586.attach::ConVarChange_Alltalk()
L 01/19/2008 - 15:14:54: Error log file session closed.


thx for the nice plugin ferret, doesnt crash my server and works like a charm, but if you have time, take a look at these errors :) no idea what it means ^^

oh btw is it possible to add a PrintToAllChat saying sv_alltalk has been turned off or on , just so players know when that happens

i didnt even know when alltalk was on or off, i kept on talking with the idea of having the other state of alltalk lol

Neo_Bahamut_19 01-24-2008 01:59

Re: Auto-Alltalk
 
another thing is that sometimes it doesn't turn it off either, so it will hit 20 players (my trigger) and then 6 people will drop off and it will stay with alltalk on...

StevenT 01-29-2008 13:26

Re: Auto-Alltalk
 
Quote:

Originally Posted by Neo_Bahamut_19 (Post 577797)
another thing is that sometimes it doesn't turn it off either, so it will hit 20 players (my trigger) and then 6 people will drop off and it will stay with alltalk on...

To go into detail in the above post,
this auto-alltalk doesnt change on-the-fly, whenever there is a mapchange it checks for how many players are connecting (status) and will force sv_alltalk to that value you have set fot that amount of players.
So whenever the sv_alltalk value should change during the same map, it won't, until mapchange occurs.
You also cannot override sv_alltalk with admin power, the script keeps overriding the value that the admin wants to change.
(So atm you just need to turn of the plugin or unload it if you want to override)


All times are GMT -4. The time now is 05:25.

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