Author Topic: Avoiding Vote-Kick  (Read 23617 times)

lord.undergamer

  • Guest
Avoiding Vote-Kick
« Reply #60 on: November 06, 2007, 03:59:03 am »
Mmm, I had a patch awhile back for adaptive votekick that would be a bit more intelligent than the one currently in place. The listplayers approach works, but its vulnerable to newbies calling votes on servers when most votes get F1/yes to nearly anything.


benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Avoiding Vote-Kick
« Reply #62 on: November 07, 2007, 06:15:17 pm »
Quote from: "tuple"
Warning: Tangent :P
Of course, having the vote kick cache the IP at the time the vote is called may not be a bad idea.  That way, a vote kick called on slot 4, client at slot 4 quits before the vote ends, User "Poor Sucker" joins into slot 4 before the vote is over and is then vote kicked for whatever reason could be avoided.  The vote kick ban could be placed on the IP, so even if poor sucker at slot 4 is kicked, he wouldn't be banned for an extended period of time, which is common anymore with vote kicks.

Already fixed in SVN :)
Code: [Select]
// use ip in case this player disconnects before the vote ends
    Com_sprintf( level.voteString, sizeof( level.voteString ),
      "!ban %s %d vote kick", level.clients[ clientNum ].pers.ip,
      g_adminTempBan.integer + 1 );
    Com_sprintf( level.voteDisplayString, sizeof( level.voteDisplayString ),
      "Kick player \'%s\'", name );
benmachine

player1

  • Posts: 3062
  • Turrets: +527/-401
    • My Avatar! (if they were enabled) [by mietz]
hoo-haah!!!
« Reply #63 on: November 07, 2007, 10:45:49 pm »
Quote from: "benmachine"
Quote from: "tuple"
Warning: Tangent :P
Of course, having the vote kick cache the IP at the time the vote is called may not be a bad idea.  That way, a vote kick called on slot 4, client at slot 4 quits before the vote ends, User "Poor Sucker" joins into slot 4 before the vote is over and is then vote kicked for whatever reason could be avoided.  The vote kick ban could be placed on the IP, so even if poor sucker at slot 4 is kicked, he wouldn't be banned for an extended period of time, which is common anymore with vote kicks.

Already fixed in SVN :)
Code: [Select]
// use ip in case this player disconnects before the vote ends
    Com_sprintf( level.voteString, sizeof( level.voteString ),
      "!ban %s %d vote kick", level.clients[ clientNum ].pers.ip,
      g_adminTempBan.integer + 1 );
    Com_sprintf( level.voteDisplayString, sizeof( level.voteDisplayString ),
      "Kick player \'%s\'", name );


heh! :)