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

TF2 Achivement Spam


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 03-21-2014 , 03:31   TF2 Achivement Spam
Reply With Quote #1

So there's a new thing the kiddies got, to spam achivements nonstop.
What do?
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
psychonic

BAFFLED
Join Date: May 2008
Old 03-21-2014 , 09:54   Re: TF2 Achivement Spam
Reply With Quote #2

The attached plugin should block this as best that can be done. There is no way to tell the differences between the client really earning an achievement and them faking it so rate-limiting is the only way to go.

Three convars are provided:
sm_ach_max_unlocks - Maximum number of achievements that a player can earn during a map before action is taken (default 10)
sm_ach_rate_limit_max - Maximum number of achievements that a player can earn in the last sm_ach_rate_limit_time seconds before action is taken (default 4)
sm_ach_rate_limit_time - Amount of time (in seconds) for achievements to count toward sm_ach_rate_limit_max (default 30)

If any of the three cases are true, the AchievementBanClient method inside the plugin is called. Right now it only stops future achievement messages from the client until the end of the map (where all of these values reset). Feel free to edit it to make that more persistent or kick/ban them.
  • Player "earns" any single achievement more than once
  • Player "earns" sm_ach_max_unlocks or more total achievements
  • Player "earns" sm_ach_rate_limit_max or more achievements in sm_ach_rate_limit_time seconds
Attached Files
File Type: sp Get Plugin or Get Source (achspamblock.sp - 367 views - 2.6 KB)
psychonic is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 03-21-2014 , 10:19   Re: TF2 Achivement Spam
Reply With Quote #3

Nice job psychonic! We'll probably include that in the next release.
__________________
GoD-Tony is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 03-21-2014 , 13:52   Re: TF2 Achivement Spam
Reply With Quote #4

I was hoping there was a way to block fake ones, but couldn't find it.
Thanks!
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram 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 08:48.


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