#42 Select /poll & /kick targets by mouse...

closed-rejected
nobody
None
5
2011-07-31
2004-06-03
Ian Agar
No

This patch addresses request on bzbb.bzflag.org that
asked for a way to select targets for /poll targets. I
threw in /kick targets as well, but not /ban since the
client does not know IP addresses. The link is here:
http://bzbb.bzflag.org/viewtopic.php?t=1739 . I also
added a man page entry for this convention.

What it is, is that the player requesting /kick or /poll
does not enter a callsign. Instead, when this technique
happens, the requesting player's hunt target is selected
and appended. This allows selecting of targets without
typing, instead just selecting, much like the Hunt
phenomenon.

There is, however, one technical thing you should know
about this patch: I used a macro for the sending of the
message. Take a look and you will see what I mean. I
did this for a very good reason. I didn't know how to
keep the "if()->else()" chain going while still having it fix
the message up and then send it. I thought about
a "goto" statement, but the actual goto code section
would be overlooked by the compiler unless called upon,
so normal messages won't go through. I then thought of
a function, but so many arguments would be passed. So
a macro is easiest, though not the cleanest after the
preprocessor or without a highlighting IDE. Take a look,
and you will see. Either way, it isn't a problem, and the
patch works nicely (tested with GCC).

**Also in this patch, I threw in a few more man page
articles: /clientquery and /viewreports. Thought these
two were relevant, and needed a man page entry, since
they are not well-known.

Thank you.

Discussion

  • Ian Agar
    Ian Agar
    2004-06-03

    bankickpollselect.diff - Select kick/poll targets by mouse, like that of Hunting.

     
  • Ian Agar
    Ian Agar
    2004-06-03

    • summary: Select /poll & /kick targets by mouse (requested)... --> Select /poll & /kick targets by mouse...
     
  • Jeff Myers
    Jeff Myers
    2011-07-30

    • status: open --> closed-rejected
     
  • Jeff Myers
    Jeff Myers
    2011-07-30

    • labels: 371933 -->
     
  • Jeff Myers
    Jeff Myers
    2011-07-31

    • status: closed-rejected --> open-rejected
     
  • Jeff Myers
    Jeff Myers
    2011-07-31

    • status: open-rejected --> closed-rejected