host_client->clientconnectcalled = false;
PRVM_serverglobalfloat(time) = sv.time;
PRVM_serverglobaledict(self) = PRVM_EDICT_TO_PROG(host_client->edict);
+ // optional entity parameter for self (EXT_ENTITYPARAM)
+ PRVM_G_INT(OFS_PARM0) = PRVM_EDICT_TO_PROG(host_client->edict);
prog->ExecuteProgram(prog, PRVM_serverfunction(ClientDisconnect), "QC function ClientDisconnect is missing");
PRVM_serverglobaledict(self) = saveSelf;
}
// process console commands
// R_TimeReport("preconsole");
CL_VM_PreventInformationLeaks();
+ Cbuf_Frame(&cmd_clientfromserver);
Cbuf_Frame(&cmd_client);
Cbuf_Frame(&cmd_server);
Cbuf_Frame(&cmd_serverfromclient);
}
- if(cls.netcon)
- {
- Cbuf_Frame(&cmd_clientfromserver);
- }
-
// R_TimeReport("console");
}
}
}
+extern hook_t *csqc_concmd;
+
/*
====================
Host_Init
// initialize memory subsystem cvars/commands
Memory_Init_Commands();
+ Hook_Init();
+ csqc_concmd = Hook_Register(csqc_concmd,CL_VM_ConsoleCommand,1);
// initialize console and logging and its cvars/commands
Con_Init();