EOSERV Forum > EOSERV > A timer to catch speeders
Topic is locked.
Page: << 1 >>
A timer to catch speeders
Author Message
Post #109071 A timer to catch speeders

Im trying to write this code to catch people speeding but I am not good with using timers this way, I think its almost done but im kinda stuck anyone know how I can do this? I have this in the map.cpp /character walk function

    double now = Timer::GetTime();
    double delay = 0.46;
    from->last_walk = Timer::GetTime();
    double added = from->last_walk + 0.46;
    Console::Out(util::to_string(added) + "ADDED");
    Console::Out(util::to_string(from->last_walk) + "LASTWALK");
    Console::Out(util::to_string(now) + "NOW");
    if (from->last_walk + delay < now)
        {
         Console::Out("What");
         return false;
        }

13 years, 33 weeks ago
Post #109084 Re: A timer to catch speeders

kewl ;D  would this also work if your using eo trainor to go faster

---
~~ When life give you pasta, you eat it ~~
13 years, 33 weeks ago
Post #109088 Re: A timer to catch speeders

Well this code is incomplete and Im hoping someone can help me finish this code so it can be applied to walking,attacking and spell cast hacks Im not 100% on if this the correct way to go about this,so any help or direction is appreciated!

13 years, 33 weeks ago
Post #109334 Re: A timer to catch speeders


I'm not good with those eaither. Just think of it like this.

Make the console (always) checking the current speed of players. If the server relaizes the speed is off just put a server message (or a PM msg).

 

Thats what I would do, just to test it... if it works then I'd wip something nice up... it would be fun that's for sure.. and to test it just use EOTrainer.

13 years, 33 weeks ago
Post #111175 Re: A timer to catch speeders

I dont care if its a timer or if this code is close to correct or not I think we need to come up with a way to prevent this from happening on our servers. I had a speed walker moving so fast on the server,from the host computer I pinged at 200 ms >.<! Packet editors are my servers worst enemy how to protect yourself from that? Ip changers people login right after being banned. I know this team on eoserv originated from creating the oppisite how do we speed, how do we pass by a ban, so I know you guys have the answers.

I liked how sausage added in the newer revs character->attacks and last_walk if im correct last_walk was meant to track the last_step by a character and compare it to .046 and make sure its less than that if its not{ x,y,map = x,y,map} but t was never implemented? Anyway I feel like this is a big deal to my community and myself and just need a push in the right direct to finish this code and secure my server from this crap. Thanx..

13 years, 31 weeks ago
Post #111308 Re: A timer to catch speeders

There's already an anti speeder feature in EOSERV.. It's called packet queue.

13 years, 31 weeks ago
Post #111316 Re: A timer to catch speeders
kenobi13 posted: (15th Oct 2011, 05:58 am)

There's already an anti speeder feature in EOSERV.. It's called packet queue.


yeh, thought so too lol.
---
opensource isometric game engine ~ www.avac-engine.blogspot.com
13 years, 31 weeks ago
Post #111317 Re: A timer to catch speeders
kenobi13 posted: (15th Oct 2011, 05:58 am)

There's already an anti speeder feature in EOSERV.. It's called packet queue.


Ah as far as Im concerned all that does is make the clients connected to the server see their speed as "walkspeed"0.46" doesnt prevent it they still speed you just dont see it so infact I removed all the client ques so my staff can identify the speeders which also seemed to reduce server crashes by about 5% 2 crashes in 48 hrs!
13 years, 31 weeks ago
Post #113309 Re: A timer to catch speeders

I think most games use ping to determine if a player is speeding. We'll have to test this on Origins with a speeder program. If i remember correctly super speed has to be set to 9am or 9pm to work. Then the small speed is 1.4x the original speed of the server, so if we can test the results of speed from these variations compared to the ping while using the speed.

13 years, 30 weeks ago
Post #113702 Re: A timer to catch speeders

I think that is a sick idea but im clueless so I guess its time to read some guides or anyone here know a method for detecting ping ?

13 years, 29 weeks ago
Post #113734 Re: A timer to catch speeders

I hope that you don't plan on keeping it as Console::Out, because you wouldn't be able to see anything if you have more than 10+ people, it would spam the console each time they walk/attack/cast spell. I can't help you out too much right now, as I'm at school, but I might be able to trytonight.

---
Create your own destiny, don't let someone else do it for you.
13 years, 29 weeks ago
Post #113745 Re: A timer to catch speeders

The console outputs are just to make sure the code works so it's easily to check.

13 years, 29 weeks ago
Post #113778 Re: A timer to catch speeders

Yeah I recently started using the console outs it makes the code explain what its doing easy debug!

13 years, 29 weeks ago
Post #113883 Re: A timer to catch speeders

I know why he's using it, all I'm saying that is when he finishes it, get rid of that Console::Out..

---
Create your own destiny, don't let someone else do it for you.
13 years, 29 weeks ago
Post #113888 Re: A timer to catch speeders
AustinB posted: (29th Oct 2011, 11:13 pm)

I know why he's using it, all I'm saying that is when he finishes it, get rid of that Console::Out..


Yeah of course!
13 years, 29 weeks ago
Page: << 1 >>
Topic is locked.
EOSERV Forum > EOSERV > A timer to catch speeders