Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
USE key code
#1
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);
}
Reply


Messages In This Thread
USE key code - by evil_admin - 07-28-2003, 08:20 PM
USE key code - by Guest - 07-29-2003, 02:32 AM
USE key code - by kermit - 07-29-2003, 06:48 AM
USE key code - by Guest - 07-29-2003, 01:24 PM
USE key code - by GRITS - 07-29-2003, 02:14 PM
USE key code - by Guest - 07-29-2003, 04:09 PM
USE key code - by Guest - 07-29-2003, 04:16 PM
USE key code - by Pique - 08-03-2003, 12:43 PM
USE key code - by evil_admin - 08-03-2003, 01:37 PM
USE key code - by Guest - 08-03-2003, 02:47 PM
USE key code - by kermit - 08-08-2003, 07:57 PM
USE key code - by evil_admin - 08-09-2003, 10:07 AM
USE key code - by evil_admin - 08-09-2003, 01:40 PM
USE key code - by kermit - 08-09-2003, 06:04 PM
USE key code - by evil_admin - 08-09-2003, 06:43 PM
USE key code - by kermit - 08-09-2003, 06:50 PM
USE key code - by evil_admin - 08-09-2003, 10:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)