That sounds pretty easy to do, although I'm pretty sure you'd have to use a
Metamod plugin to get it to work right. If you have the Half-Life SDK you
can open "X:\SDK\Multiplayer Source\common\in_buttons.h". That file contains
a number of #define's for buttons. Notice "#define IN_USE (1 << 5)". I
think you could use something like the code below in a Metamod plugin to
prevent users from using the "use" button. Of course, I could be way off.
This is just to give you an idea of what to do.
// Keep in mind none of this code has been tested or even compiled, so
experiment with it if it doesn't work at first.
//....
void PlayerPreThink (edict_t *pEntity)
{
if (!FStrEq(STRING(pEntity->v.netname), "") &&
(FStrEq(STRING(pEntity->v.classname), "player"))) {
if (pEntity->v.button & (IN_USE)) {
pEntity->v.button = 0;
}
}
RETURN_META (MRES_IGNORED);
}
//...
Regards,
Disk2
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 12:36 PM
Subject: [hlcoders] anti-cheat ricochet
> Sorry...forgot to update the subject
>
> I am an admin for a couple of Ricochet servers which I play frequently.
For
> those of you who haven't played it consists of 2 or more players throwing
2
> types of discs, one a push disc and the other a decap disc.
>
> There is a bug in the program which allows a player to press the +USE key
(left
> over bind from HL) that can block the push discs only.
>
> I would like to come up with a way to prevent players from exploiting this
bug
> without actually playing them, calling them on it and kick/banning them. I
know
> I can go into the SDK and fix it but was wondering if there might be a way
to
> rebind the alias "+USE" when players enter the server. Since +USE is not
> legally used in Ricochet there is no need for it. Is it possible to do
> something like bind "+USE" "say I just pressed USE" or maybe unbind +USE.
>
> Thanks for the help,
>
> desNotes
>
>
>
>
>
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders