Enemy Territory

Project: Bug Fix

The objective

The goal of this project is to provide modders in the ET community with a SDK code base that contains fixes for various bugs which are present in the stock etmain game (version 2.60).

26th september 2006: Sadly bugfix 088 had a bug :-( There were 3 lines that should have been deleted for the fix to work correctly.

Show index
Previous bug: Complaint votes sticks around, so vote no if we have complaints turned off
Next bug: Garand couldn't reload mid-clip

Bugfix 097 - Kick command is not able to kick some players by name

Problem:

When using the 'kick clientname' command there can be situations where the game can't find the client despite proper name. This is due to the game only iterating through level.numConnectedClients players. However it isn't using the level.sortedClients array.

Solution:

Use level.sortedClients to get the actual client number.

2.60 Code

g_svcmds.c @ 724 for (i = 0; i < level.numConnectedClients; i++) {
// CHRUKER: b097 - Kick command is not able to kick some players by name
cl = &level.clients[level.sortedClients[i]]; if (!Q_stricmp(cl->pers.netname, name)) { return cl;

Show index
Previous bug: Complaint votes sticks around, so vote no if we have complaints turned off
Next bug: Garand couldn't reload mid-clip

Color coding

Sample = New code
Sample = Changed code (the new version is what is displayed)
Sample = Deleted code

©2017 Chruker