Digital Paint Discussion Board

Development => Bugs, Feature Requests, and Feedback => Topic started by: T3RR0R15T on January 01, 2011, 06:19:44 PM

Title: Bug: tripping doesn't work
Post by: T3RR0R15T on January 01, 2011, 06:19:44 PM
I've tested tripping on our speed server, but it doesn't worked. No message, no function.

It is a build 31 linux server with 26 players.
Title: Re: Bug: tripping doesn't work
Post by: jitspoe on February 01, 2011, 12:32:24 PM
I don't remember, but I may have gotten rid of it because it was a setting nobody used or cared about.
Title: Re: Bug: tripping doesn't work
Post by: jitspoe on February 05, 2011, 06:35:34 PM
Hm, I guess it's still in there.  I just tried it locally and it appeared to work.
Title: Re: Bug: tripping doesn't work
Post by: T3RR0R15T on February 05, 2011, 08:57:16 PM
I tested it with bots and players.

25 bots + me: works
26 players: doesn't work
Title: Re: Bug: tripping doesn't work
Post by: jitspoe on February 22, 2011, 01:03:28 PM
I don't see anything that would cause it not to work when there are other players.  The logic is pretty simple:

Code: [Select]
if (tripping->value)
{
xyspeed = sqrt(ent->velocity[0]*ent->velocity[0] + ent->velocity[1]*ent->velocity[1]);

if (ent->groundentity && !pm.groundentity && xyspeed > 450 && CanInteract(ent))
{
if (!ent->client->always.verbpref) // jit - verbose
safe_cprintf(ent, PRINT_MEDIUM, "You've tripped... (Slow down!)\n");

ent->velocity[0] = 0;
ent->velocity[1] = 0;
ent->velocity[2] = 0;

if (pm.cmd.upmove > 0)
pm.cmd.upmove = 0;
}
}
Title: Re: Bug: tripping doesn't work
Post by: T3RR0R15T on February 22, 2011, 03:17:10 PM
At the moment it works with a b32 server. I'll have a look at it in the next time.

Maybe it was the same thing, that made the global login not working on the speed server, a few weeks ago (where we played on sphouse). That was away after 3 or 4 server restarts.