:o
This commit is contained in:
parent
53332dbe76
commit
d7caf3803e
|
@ -106,10 +106,8 @@ void CPlayer::Reset()
|
||||||
}
|
}
|
||||||
BOOL CPlayer::ClientCommand()
|
BOOL CPlayer::ClientCommand()
|
||||||
{
|
{
|
||||||
// As of now, all that needs to be checked is the "menuselect" command.
|
|
||||||
if (menucmd.inmenu)
|
if (menucmd.inmenu)
|
||||||
{
|
{
|
||||||
LOG_CONSOLE(PLID,"Checking menuselect...");
|
|
||||||
if (FStrEq(CMD_ARGV(0),"menuselect"))
|
if (FStrEq(CMD_ARGV(0),"menuselect"))
|
||||||
{
|
{
|
||||||
int key=0;
|
int key=0;
|
||||||
|
@ -125,14 +123,9 @@ BOOL CPlayer::ClientCommand()
|
||||||
if (key_mask & menucmd.keys)
|
if (key_mask & menucmd.keys)
|
||||||
{
|
{
|
||||||
ClearHudMessage(edict,menuhudtext," ");
|
ClearHudMessage(edict,menuhudtext," ");
|
||||||
LOG_CONSOLE(PLID,"Clearing hud text...");
|
|
||||||
LOG_CONSOLE(PLID,"this->menucmd.iFunctionIndex: %i, this->index: %i key: %i",this->menucmd.iFunctionIndex,this->index,key);
|
|
||||||
int temp = this->menucmd.iFunctionIndex;
|
int temp = this->menucmd.iFunctionIndex;
|
||||||
MF_ExecuteForward(this->menucmd.iFunctionIndex,this->index,key);
|
MF_ExecuteForward(this->menucmd.iFunctionIndex,this->index,key);
|
||||||
MF_UnregisterSPForward(temp);
|
MF_UnregisterSPForward(temp);
|
||||||
|
|
||||||
LOG_CONSOLE(PLID,"Executing...");
|
|
||||||
// AMX_EXEC(menucmd.amx,NULL,menucmd.iFunctionIndex,2,index,key);
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user