targetofhate
Wanderer
Speed Hack Detection Help..
Ok well this speedhack detection system isn't working as accurate as It should.
Should i consider hiring the 4 to a 5 maybe? Also... I was wondering how i would get this line of coding to send it to the staff only not broadcast to the players. Thanks...
line of coding i would like to get changed so it sends the message to staff only:
fastwalk.cs:
Ok well this speedhack detection system isn't working as accurate as It should.
Should i consider hiring the 4 to a 5 maybe? Also... I was wondering how i would get this line of coding to send it to the staff only not broadcast to the players. Thanks...
line of coding i would like to get changed so it sends the message to staff only:
Code:
World.Broadcast( 0x35, true, "{0} was detected speedhacking!", e.NetState.Mobile.Name );
fastwalk.cs:
Code:
using System;
using Server;
namespace Server.Misc
{
// This fastwalk detection is no longer required
// As of B36 PlayerMobile implements movement packet throttling which more reliably controls movement speeds
public class Fastwalk
{
private static int MaxSteps = 4; // Maximum number of queued steps until fastwalk is detected
private static bool Enabled = true; // Is fastwalk detection enabled?
private static bool UOTDOverride = false; // Should UO:TD clients not be checked for fastwalk?
private static AccessLevel AccessOverride = AccessLevel.GameMaster; // Anyone with this or higher access level is not checked for fastwalk
public static void Initialize()
{
Mobile.FwdMaxSteps = MaxSteps;
Mobile.FwdEnabled = Enabled;
Mobile.FwdUOTDOverride = UOTDOverride;
Mobile.FwdAccessOverride = AccessOverride;
if ( Enabled )
EventSink.FastWalk += new FastWalkEventHandler( OnFastWalk );
}
public static void OnFastWalk( FastWalkEventArgs e )
{
e.Blocked = true;//disallow this fastwalk
Console.WriteLine( "Client: {0}: Fast movement detected (name={1})", e.NetState, e.NetState.Mobile.Name );
World.Broadcast( 0x35, true, "{0} was detected speedhacking!", e.NetState.Mobile.Name );
}
}
}