08-09-2003, 10:07 AM
(This post was last modified: 08-09-2003, 10:08 AM by evil_admin.)
You are right .asm, I was trying to block it there but it still allowed push disc blocking.
What I found if I block out the following code in /pm_shared/pm_shared.c I can block the USE key:
pm_shared is the section of code that talks with the client.dll and although the code looks like it wouldn't be for this, it works. Now, if I can pull the map type (arena/deathmatch) at that point I can block it for arena and allow it for deathmatch. Unfortunately map type is not sent to the HL engine so I am trying to set up a global variable that will update during map change.
What I found if I block out the following code in /pm_shared/pm_shared.c I can block the USE key:
Code:
// Slow down, I'm pulling it! (a box maybe) but only when I'm standing on ground
if ( ( pmove->onground != -1 ) && ( pmove->cmd.buttons & IN_USE) )
 {
 VectorScale( pmove->velocity, 0.3, pmove->velocity );
 }
pm_shared is the section of code that talks with the client.dll and although the code looks like it wouldn't be for this, it works. Now, if I can pull the map type (arena/deathmatch) at that point I can block it for arena and allow it for deathmatch. Unfortunately map type is not sent to the HL engine so I am trying to set up a global variable that will update during map change.