07-28-2003, 08:20 PM
(This post was last modified: 07-28-2003, 08:22 PM by evil_admin.)
Here is some code sent to me before the SDK was out
That resulted in Hullu's plugin to disable the USE key.
It is based on stopping the USE key rather than
stopping the problem of blocking push discs but it
might be a good start to just enable it when an arena
map is loaded. I am way too tired to look at it this evening
but will look at it closer when I load .asm's latest fix.
..\SDK\Multiplayer Source\common\in_buttons.h
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);
}
That resulted in Hullu's plugin to disable the USE key.
It is based on stopping the USE key rather than
stopping the problem of blocking push discs but it
might be a good start to just enable it when an arena
map is loaded. I am way too tired to look at it this evening
but will look at it closer when I load .asm's latest fix.
..\SDK\Multiplayer Source\common\in_buttons.h
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);
}