Warning!

Make suggestions for improving one of the best games on the net!
Post Reply
User avatar
I_Died_Once
Special Forces
Special Forces
Posts: 635
Joined: Sun Nov 28, 2004 5:27 pm
Location: The Dark Side
Contact:

Warning!

Post by I_Died_Once »

I was playing last ngiht and it dawned on me that we need a couple more warnings, and one warning changed a little.

Know how some servers will kick you for being idle for so long? Why not a warning "You got fifteen seconds to do SOMETHING or the server will kick you for in-activity" (of course, fine tune that message to something proper)

I know that when someone has GM, when they lock on you, a little message comes across where your other messages are. Thats not enough, and I'm surprised no one else has ever said this... Why not allow, if only as an option, for more of an alert when someone locks on to you? A new, unique, warning sound would be a good start. Plus, if the server could show it in much the same fashion it shows a negative flag, or a server countdown, that would be even better.

Just some thoughts.
...This has been a recording.
User avatar
L4m3r
Hater of Everything
Hater of Everything
Posts: 724
Joined: Tue Feb 08, 2005 5:15 am
Location: Los Angeles

Post by L4m3r »

Isn't there already a GM warning sound?

The idle kick warning would be a good idea, as would some other kick warnings (TK, spam, etc).
Optimism is just a milder alternative to denial.
User avatar
(Dvn)
Private First Class
Private First Class
Posts: 80
Joined: Thu Nov 03, 2005 12:17 am
Location: U.S. S.L.C Utah
Contact:

Post by (Dvn) »

that would be a bit better. for a warning for idleness
Owner@gnurux.homelinux.net:5159
Owner@YOUR DEAD's
Admin/Owner@No Guts No Glory's
Admin@Win Xp's
Admin@Lddw's Admin@SirKay's
Admin@Theme97's
Admin@A Heart Attacks's
Cop@AlliedArmours
Ducati member@Teh g33ks

Image
1veedo
Private First Class
Private First Class
Posts: 184
Joined: Sat Feb 05, 2005 1:26 am
Location: usa

Post by 1veedo »

This should do the trick

src/bzfs/bzfs.cxx

Code: Select all

static void doStuffOnPlayer(GameKeeper::Player &playerData)
{
  int p = playerData.getIndex();

  // kick idle players
  if (clOptions->idlekickthresh > 0) {
    if ((playerData.player.isTooMuchIdling(clOptions->idlekickthresh)) &&
       (!playerData.accessInfo.hasPerm(PlayerAccessInfo::antikick))) {
      char message[MessageLen]
   = "You were kicked because you were idle too long";
      sendMessage(ServerPlayer, p,  message);
      removePlayer(p, "idling");
      return;
    }
   else if((playerData.player.isTooMuchIdling(clOptions->idlekickthresh - 15) && !playerData.player.isIdleWarned()) &&
       (!playerData.accessInfo.hasPerm(PlayerAccessInfo::antikick))) {
sendMessage(ServerPlayer, p,  "You have less than fifteen seconds to do SOMETHING or the server will kick you for in-activity");
playerData.player.setIdleWarn(true);
} 
else if(!playerData.player.isTooMuchIdling(clOptions->idlekickthresh - 15) && playerData.player.isIdleWarned())
	playerData.player.setIdleWarn(false);
}

// Check authorization
src/game/PlayerInfo.cxx

Code: Select all

bool PlayerInfo::isIdleWarned()
{
    return idleWarned;
}

void PlayerInfo::setIdleWarn(bool a)
{
    idleWarned = a;
}
include/PlayerInfo.h

Code: Select all

In Public:
bool isIdleWarned();
void setIdleWarn(bool a);

In Private:
bool idleWarned;
Have fun :wink:
1veedo (libcurl.so.2) I have version 3!
Post Reply